package transcribe
import "github.com/aws/aws-sdk-go-v2/service/transcribe"
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) CreateMedicalVocabulary(ctx context.Context, params *CreateMedicalVocabularyInput, optFns ...func(*Options)) (*CreateMedicalVocabularyOutput, error)
- func (c *Client) CreateVocabulary(ctx context.Context, params *CreateVocabularyInput, optFns ...func(*Options)) (*CreateVocabularyOutput, error)
- func (c *Client) CreateVocabularyFilter(ctx context.Context, params *CreateVocabularyFilterInput, optFns ...func(*Options)) (*CreateVocabularyFilterOutput, error)
- func (c *Client) DeleteMedicalTranscriptionJob(ctx context.Context, params *DeleteMedicalTranscriptionJobInput, optFns ...func(*Options)) (*DeleteMedicalTranscriptionJobOutput, error)
- func (c *Client) DeleteMedicalVocabulary(ctx context.Context, params *DeleteMedicalVocabularyInput, optFns ...func(*Options)) (*DeleteMedicalVocabularyOutput, error)
- func (c *Client) DeleteTranscriptionJob(ctx context.Context, params *DeleteTranscriptionJobInput, optFns ...func(*Options)) (*DeleteTranscriptionJobOutput, error)
- func (c *Client) DeleteVocabulary(ctx context.Context, params *DeleteVocabularyInput, optFns ...func(*Options)) (*DeleteVocabularyOutput, error)
- func (c *Client) DeleteVocabularyFilter(ctx context.Context, params *DeleteVocabularyFilterInput, optFns ...func(*Options)) (*DeleteVocabularyFilterOutput, error)
- func (c *Client) GetMedicalTranscriptionJob(ctx context.Context, params *GetMedicalTranscriptionJobInput, optFns ...func(*Options)) (*GetMedicalTranscriptionJobOutput, error)
- func (c *Client) GetMedicalVocabulary(ctx context.Context, params *GetMedicalVocabularyInput, optFns ...func(*Options)) (*GetMedicalVocabularyOutput, error)
- func (c *Client) GetTranscriptionJob(ctx context.Context, params *GetTranscriptionJobInput, optFns ...func(*Options)) (*GetTranscriptionJobOutput, error)
- func (c *Client) GetVocabulary(ctx context.Context, params *GetVocabularyInput, optFns ...func(*Options)) (*GetVocabularyOutput, error)
- func (c *Client) GetVocabularyFilter(ctx context.Context, params *GetVocabularyFilterInput, optFns ...func(*Options)) (*GetVocabularyFilterOutput, error)
- func (c *Client) ListMedicalTranscriptionJobs(ctx context.Context, params *ListMedicalTranscriptionJobsInput, optFns ...func(*Options)) (*ListMedicalTranscriptionJobsOutput, error)
- func (c *Client) ListMedicalVocabularies(ctx context.Context, params *ListMedicalVocabulariesInput, optFns ...func(*Options)) (*ListMedicalVocabulariesOutput, error)
- func (c *Client) ListTranscriptionJobs(ctx context.Context, params *ListTranscriptionJobsInput, optFns ...func(*Options)) (*ListTranscriptionJobsOutput, error)
- func (c *Client) ListVocabularies(ctx context.Context, params *ListVocabulariesInput, optFns ...func(*Options)) (*ListVocabulariesOutput, error)
- func (c *Client) ListVocabularyFilters(ctx context.Context, params *ListVocabularyFiltersInput, optFns ...func(*Options)) (*ListVocabularyFiltersOutput, error)
- func (c *Client) StartMedicalTranscriptionJob(ctx context.Context, params *StartMedicalTranscriptionJobInput, optFns ...func(*Options)) (*StartMedicalTranscriptionJobOutput, error)
- func (c *Client) StartTranscriptionJob(ctx context.Context, params *StartTranscriptionJobInput, optFns ...func(*Options)) (*StartTranscriptionJobOutput, error)
- func (c *Client) UpdateMedicalVocabulary(ctx context.Context, params *UpdateMedicalVocabularyInput, optFns ...func(*Options)) (*UpdateMedicalVocabularyOutput, error)
- func (c *Client) UpdateVocabulary(ctx context.Context, params *UpdateVocabularyInput, optFns ...func(*Options)) (*UpdateVocabularyOutput, error)
- func (c *Client) UpdateVocabularyFilter(ctx context.Context, params *UpdateVocabularyFilterInput, optFns ...func(*Options)) (*UpdateVocabularyFilterOutput, error)
- type CreateMedicalVocabularyInput
- type CreateMedicalVocabularyOutput
- type CreateVocabularyFilterInput
- type CreateVocabularyFilterOutput
- type CreateVocabularyInput
- type CreateVocabularyOutput
- type DeleteMedicalTranscriptionJobInput
- type DeleteMedicalTranscriptionJobOutput
- type DeleteMedicalVocabularyInput
- type DeleteMedicalVocabularyOutput
- type DeleteTranscriptionJobInput
- type DeleteTranscriptionJobOutput
- type DeleteVocabularyFilterInput
- type DeleteVocabularyFilterOutput
- type DeleteVocabularyInput
- type DeleteVocabularyOutput
- type EndpointResolver
- type EndpointResolverFunc
- type GetMedicalTranscriptionJobInput
- type GetMedicalTranscriptionJobOutput
- type GetMedicalVocabularyInput
- type GetMedicalVocabularyOutput
- type GetTranscriptionJobInput
- type GetTranscriptionJobOutput
- type GetVocabularyFilterInput
- type GetVocabularyFilterOutput
- type GetVocabularyInput
- type GetVocabularyOutput
- type HTTPClient
- type HTTPSignerV4
- type ListMedicalTranscriptionJobsInput
- type ListMedicalTranscriptionJobsOutput
- type ListMedicalVocabulariesInput
- type ListMedicalVocabulariesOutput
- type ListTranscriptionJobsInput
- type ListTranscriptionJobsOutput
- type ListVocabulariesInput
- type ListVocabulariesOutput
- type ListVocabularyFiltersInput
- type ListVocabularyFiltersOutput
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type StartMedicalTranscriptionJobInput
- type StartMedicalTranscriptionJobOutput
- type StartTranscriptionJobInput
- type StartTranscriptionJobOutput
- type UpdateMedicalVocabularyInput
- type UpdateMedicalVocabularyOutput
- type UpdateVocabularyFilterInput
- type UpdateVocabularyFilterOutput
- type UpdateVocabularyInput
- type UpdateVocabularyOutput
Constants ¶
const ServiceAPIVersion = "2017-10-26"
const ServiceID = "Transcribe"
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Operations and objects for transcribing speech to text.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateMedicalVocabulary ¶
func (c *Client) CreateMedicalVocabulary(ctx context.Context, params *CreateMedicalVocabularyInput, optFns ...func(*Options)) (*CreateMedicalVocabularyOutput, error)
Creates a new custom vocabulary that you can use to change how Amazon Transcribe Medical transcribes your audio file.
func (*Client) CreateVocabulary ¶
func (c *Client) CreateVocabulary(ctx context.Context, params *CreateVocabularyInput, optFns ...func(*Options)) (*CreateVocabularyOutput, error)
Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
func (*Client) CreateVocabularyFilter ¶
func (c *Client) CreateVocabularyFilter(ctx context.Context, params *CreateVocabularyFilterInput, optFns ...func(*Options)) (*CreateVocabularyFilterOutput, error)
Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.
func (*Client) DeleteMedicalTranscriptionJob ¶
func (c *Client) DeleteMedicalTranscriptionJob(ctx context.Context, params *DeleteMedicalTranscriptionJobInput, optFns ...func(*Options)) (*DeleteMedicalTranscriptionJobOutput, error)
Deletes a transcription job generated by Amazon Transcribe Medical and any related information.
func (*Client) DeleteMedicalVocabulary ¶
func (c *Client) DeleteMedicalVocabulary(ctx context.Context, params *DeleteMedicalVocabularyInput, optFns ...func(*Options)) (*DeleteMedicalVocabularyOutput, error)
Deletes a vocabulary from Amazon Transcribe Medical.
func (*Client) DeleteTranscriptionJob ¶
func (c *Client) DeleteTranscriptionJob(ctx context.Context, params *DeleteTranscriptionJobInput, optFns ...func(*Options)) (*DeleteTranscriptionJobOutput, error)
Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
func (*Client) DeleteVocabulary ¶
func (c *Client) DeleteVocabulary(ctx context.Context, params *DeleteVocabularyInput, optFns ...func(*Options)) (*DeleteVocabularyOutput, error)
Deletes a vocabulary from Amazon Transcribe.
func (*Client) DeleteVocabularyFilter ¶
func (c *Client) DeleteVocabularyFilter(ctx context.Context, params *DeleteVocabularyFilterInput, optFns ...func(*Options)) (*DeleteVocabularyFilterOutput, error)
Removes a vocabulary filter.
func (*Client) GetMedicalTranscriptionJob ¶
func (c *Client) GetMedicalTranscriptionJob(ctx context.Context, params *GetMedicalTranscriptionJobInput, optFns ...func(*Options)) (*GetMedicalTranscriptionJobOutput, error)
Returns information about a transcription job from Amazon Transcribe Medical. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished. You find the results of the completed job in the TranscriptFileUri field.
func (*Client) GetMedicalVocabulary ¶
func (c *Client) GetMedicalVocabulary(ctx context.Context, params *GetMedicalVocabularyInput, optFns ...func(*Options)) (*GetMedicalVocabularyOutput, error)
Retrieve information about a medical vocabulary.
func (*Client) GetTranscriptionJob ¶
func (c *Client) GetTranscriptionJob(ctx context.Context, params *GetTranscriptionJobInput, optFns ...func(*Options)) (*GetTranscriptionJobOutput, error)
Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri.
func (*Client) GetVocabulary ¶
func (c *Client) GetVocabulary(ctx context.Context, params *GetVocabularyInput, optFns ...func(*Options)) (*GetVocabularyOutput, error)
Gets information about a vocabulary.
func (*Client) GetVocabularyFilter ¶
func (c *Client) GetVocabularyFilter(ctx context.Context, params *GetVocabularyFilterInput, optFns ...func(*Options)) (*GetVocabularyFilterOutput, error)
Returns information about a vocabulary filter.
func (*Client) ListMedicalTranscriptionJobs ¶
func (c *Client) ListMedicalTranscriptionJobs(ctx context.Context, params *ListMedicalTranscriptionJobsInput, optFns ...func(*Options)) (*ListMedicalTranscriptionJobsOutput, error)
Lists medical transcription jobs with a specified status or substring that matches their names.
func (*Client) ListMedicalVocabularies ¶
func (c *Client) ListMedicalVocabularies(ctx context.Context, params *ListMedicalVocabulariesInput, optFns ...func(*Options)) (*ListMedicalVocabulariesOutput, error)
Returns a list of vocabularies that match the specified criteria. You get the entire list of vocabularies if you don't enter a value in any of the request parameters.
func (*Client) ListTranscriptionJobs ¶
func (c *Client) ListTranscriptionJobs(ctx context.Context, params *ListTranscriptionJobsInput, optFns ...func(*Options)) (*ListTranscriptionJobsOutput, error)
Lists transcription jobs with the specified status.
func (*Client) ListVocabularies ¶
func (c *Client) ListVocabularies(ctx context.Context, params *ListVocabulariesInput, optFns ...func(*Options)) (*ListVocabulariesOutput, error)
Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.
func (*Client) ListVocabularyFilters ¶
func (c *Client) ListVocabularyFilters(ctx context.Context, params *ListVocabularyFiltersInput, optFns ...func(*Options)) (*ListVocabularyFiltersOutput, error)
Gets information about vocabulary filters.
func (*Client) StartMedicalTranscriptionJob ¶
func (c *Client) StartMedicalTranscriptionJob(ctx context.Context, params *StartMedicalTranscriptionJobInput, optFns ...func(*Options)) (*StartMedicalTranscriptionJobOutput, error)
Start a batch job to transcribe medical speech to text.
func (*Client) StartTranscriptionJob ¶
func (c *Client) StartTranscriptionJob(ctx context.Context, params *StartTranscriptionJobInput, optFns ...func(*Options)) (*StartTranscriptionJobOutput, error)
Starts an asynchronous job to transcribe speech to text.
func (*Client) UpdateMedicalVocabulary ¶
func (c *Client) UpdateMedicalVocabulary(ctx context.Context, params *UpdateMedicalVocabularyInput, optFns ...func(*Options)) (*UpdateMedicalVocabularyOutput, error)
Updates an existing vocabulary with new values in a different text file. The UpdateMedicalVocabulary operation overwrites all of the existing information with the values that you provide in the request.
func (*Client) UpdateVocabulary ¶
func (c *Client) UpdateVocabulary(ctx context.Context, params *UpdateVocabularyInput, optFns ...func(*Options)) (*UpdateVocabularyOutput, error)
Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.
func (*Client) UpdateVocabularyFilter ¶
func (c *Client) UpdateVocabularyFilter(ctx context.Context, params *UpdateVocabularyFilterInput, optFns ...func(*Options)) (*UpdateVocabularyFilterOutput, error)
Updates a vocabulary filter with a new list of filtered words.
type CreateMedicalVocabularyInput ¶
type CreateMedicalVocabularyInput struct { // The Amazon S3 location of the text file you use to define your custom // vocabulary. The URI must be in the same AWS region as the API endpoint you're // calling. Enter information about your VocabularyFileUri in the following format: // https://s3..amazonaws.com/// This is an example of a vocabulary file uri // location in Amazon S3: // https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt For more // information about S3 object names, see Object Keys // (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) // in the Amazon S3 Developer Guide. For more information about custom // vocabularies, see Medical Custom Vocabularies // (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary-med). VocabularyFileUri *string // The language code used for the entries within your custom vocabulary. The // language code of your custom vocabulary must match the language code of your // transcription job. US English (en-US) is the only language code available for // Amazon Transcribe Medical. LanguageCode types.LanguageCode // The name of the custom vocabulary. This case-sensitive name must be unique // within an AWS account. If you try to create a vocabulary with the same name as a // previous vocabulary you will receive a ConflictException error. VocabularyName *string }
type CreateMedicalVocabularyOutput ¶
type CreateMedicalVocabularyOutput struct { // The language code you chose to describe the entries in your custom vocabulary. // US English (en-US) is the only valid language code for Amazon Transcribe // Medical. LanguageCode types.LanguageCode // The name of the vocabulary. The name must be unique within an AWS account. It is // also case-sensitive. VocabularyName *string // If the VocabularyState field is FAILED, this field contains information about // why the job failed. FailureReason *string // The date and time you created the vocabulary. LastModifiedTime *time.Time // The processing state of your custom vocabulary in Amazon Transcribe Medical. If // the state is READY you can use the vocabulary in a StartMedicalTranscriptionJob // request. VocabularyState types.VocabularyState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateVocabularyFilterInput ¶
type CreateVocabularyFilterInput struct { // The Amazon S3 location of a text file used as input to create the vocabulary // filter. Only use characters from the character set defined for custom // vocabularies. For a list of character sets, see Character Sets for Custom // Vocabularies // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // The specified file must be less than 50 KB of UTF-8 characters. If you provide // the location of a list of words in the VocabularyFilterFileUri parameter, you // can't use the Words parameter. VocabularyFilterFileUri *string // The language code of the words in the vocabulary filter. All words in the filter // must be in the same language. The vocabulary filter can only be used with // transcription jobs in the specified language. LanguageCode types.LanguageCode // The words to use in the vocabulary filter. Only use characters from the // character set defined for custom vocabularies. For a list of character sets, see // Character Sets for Custom Vocabularies // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // If you provide a list of words in the Words parameter, you can't use the // VocabularyFilterFileUri parameter. Words []*string // The vocabulary filter name. The name must be unique within the account that // contains it.If you try to create a vocabulary filter with the same name as a // previous vocabulary filter you will receive a ConflictException error. VocabularyFilterName *string }
type CreateVocabularyFilterOutput ¶
type CreateVocabularyFilterOutput struct { // The name of the vocabulary filter. VocabularyFilterName *string // The date and time that the vocabulary filter was modified. LastModifiedTime *time.Time // The language code of the words in the collection. LanguageCode types.LanguageCode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateVocabularyInput ¶
type CreateVocabularyInput struct { // The name of the vocabulary. The name must be unique within an AWS account. The // name is case-sensitive. If you try to create a vocabulary with the same name as // a previous vocabulary you will receive a ConflictException error. VocabularyName *string // The language code of the vocabulary entries. LanguageCode types.LanguageCode // An array of strings that contains the vocabulary entries. Phrases []*string // The S3 location of the text file that contains the definition of the custom // vocabulary. The URI must be in the same region as the API endpoint that you are // calling. The general form is <p>For more information about S3 object names, see // <a // href="http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys">Object // Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p> <p>For more information // about custom vocabularies, see <a // href="http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary">Custom // Vocabularies</a>.</p> VocabularyFileUri *string }
type CreateVocabularyOutput ¶
type CreateVocabularyOutput struct { // The date and time that the vocabulary was created. LastModifiedTime *time.Time // The processing state of the vocabulary. When the VocabularyState field contains // READY the vocabulary is ready to be used in a StartTranscriptionJob request. VocabularyState types.VocabularyState // If the VocabularyState field is FAILED, this field contains information about // why the job failed. FailureReason *string // The language code of the vocabulary entries. LanguageCode types.LanguageCode // The name of the vocabulary. VocabularyName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteMedicalTranscriptionJobInput ¶
type DeleteMedicalTranscriptionJobInput struct { // The name you provide to the DeleteMedicalTranscriptionJob object to delete a // transcription job. MedicalTranscriptionJobName *string }
type DeleteMedicalTranscriptionJobOutput ¶
type DeleteMedicalTranscriptionJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteMedicalVocabularyInput ¶
type DeleteMedicalVocabularyInput struct { // The name of the vocabulary you are choosing to delete. VocabularyName *string }
type DeleteMedicalVocabularyOutput ¶
type DeleteMedicalVocabularyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteTranscriptionJobInput ¶
type DeleteTranscriptionJobInput struct { // The name of the transcription job to be deleted. TranscriptionJobName *string }
type DeleteTranscriptionJobOutput ¶
type DeleteTranscriptionJobOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteVocabularyFilterInput ¶
type DeleteVocabularyFilterInput struct { // The name of the vocabulary filter to remove. VocabularyFilterName *string }
type DeleteVocabularyFilterOutput ¶
type DeleteVocabularyFilterOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteVocabularyInput ¶
type DeleteVocabularyInput struct { // The name of the vocabulary to delete. VocabularyName *string }
type DeleteVocabularyOutput ¶
type DeleteVocabularyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type GetMedicalTranscriptionJobInput ¶
type GetMedicalTranscriptionJobInput struct { // The name of the medical transcription job. MedicalTranscriptionJobName *string }
type GetMedicalTranscriptionJobOutput ¶
type GetMedicalTranscriptionJobOutput struct { // An object that contains the results of the medical transcription job. MedicalTranscriptionJob *types.MedicalTranscriptionJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetMedicalVocabularyInput ¶
type GetMedicalVocabularyInput struct { // The name of the vocabulary you are trying to get information about. The value // you enter for this request is case-sensitive. VocabularyName *string }
type GetMedicalVocabularyOutput ¶
type GetMedicalVocabularyOutput struct { // The Amazon S3 location where the vocabulary is stored. Use this URI to get the // contents of the vocabulary. You can download your vocabulary from the URI for a // limited time. DownloadUri *string // The processing state of the vocabulary. VocabularyState types.VocabularyState // The valid name that Amazon Transcribe Medical returns. VocabularyName *string // The date and time the vocabulary was last modified with a text file different // from what was previously used. LastModifiedTime *time.Time // If the VocabularyState is FAILED, this field contains information about why the // job failed. FailureReason *string // The valid language code returned for your vocabulary entries. LanguageCode types.LanguageCode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetTranscriptionJobInput ¶
type GetTranscriptionJobInput struct { // The name of the job. TranscriptionJobName *string }
type GetTranscriptionJobOutput ¶
type GetTranscriptionJobOutput struct { // An object that contains the results of the transcription job. TranscriptionJob *types.TranscriptionJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetVocabularyFilterInput ¶
type GetVocabularyFilterInput struct { // The name of the vocabulary filter for which to return information. VocabularyFilterName *string }
type GetVocabularyFilterOutput ¶
type GetVocabularyFilterOutput struct { // The language code of the words in the vocabulary filter. LanguageCode types.LanguageCode // The name of the vocabulary filter. VocabularyFilterName *string // The date and time that the contents of the vocabulary filter were updated. LastModifiedTime *time.Time // The URI of the list of words in the vocabulary filter. You can use this URI to // get the list of words. DownloadUri *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetVocabularyInput ¶
type GetVocabularyInput struct { // The name of the vocabulary to return information about. The name is // case-sensitive. VocabularyName *string }
type GetVocabularyOutput ¶
type GetVocabularyOutput struct { // The date and time that the vocabulary was last modified. LastModifiedTime *time.Time // The S3 location where the vocabulary is stored. Use this URI to get the contents // of the vocabulary. The URI is available for a limited time. DownloadUri *string // The processing state of the vocabulary. VocabularyState types.VocabularyState // The name of the vocabulary to return. VocabularyName *string // The language code of the vocabulary entries. LanguageCode types.LanguageCode // If the VocabularyState field is FAILED, this field contains information about // why the job failed. FailureReason *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error }
type ListMedicalTranscriptionJobsInput ¶
type ListMedicalTranscriptionJobsInput struct { // When specified, the jobs returned in the list are limited to jobs whose name // contains the specified string. JobNameContains *string // When specified, returns only medical transcription jobs with the specified // status. Jobs are ordered by creation date, with the newest jobs returned first. // If you don't specify a status, Amazon Transcribe Medical returns all // transcription jobs ordered by creation date. Status types.TranscriptionJobStatus // If you a receive a truncated result in the previous request of // ListMedicalTranscriptionJobs, include NextToken to fetch the next set of jobs. NextToken *string // The maximum number of medical transcription jobs to return in the response. IF // there are fewer results in the list, this response contains only the actual // results. MaxResults *int32 }
type ListMedicalTranscriptionJobsOutput ¶
type ListMedicalTranscriptionJobsOutput struct { // The ListMedicalTranscriptionJobs operation returns a page of jobs at a time. The // maximum size of the page is set by the MaxResults parameter. If the number of // jobs exceeds what can fit on a page, Amazon Transcribe Medical returns the // NextPage token. Include the token in the next request to the // ListMedicalTranscriptionJobs operation to return in the next page of jobs. NextToken *string // A list of objects containing summary information for a transcription job. MedicalTranscriptionJobSummaries []*types.MedicalTranscriptionJobSummary // The requested status of the medical transcription jobs returned. Status types.TranscriptionJobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListMedicalVocabulariesInput ¶
type ListMedicalVocabulariesInput struct { // The maximum number of vocabularies to return in the response. MaxResults *int32 // When specified, only returns vocabularies with the VocabularyState equal to the // specified vocabulary state. StateEquals types.VocabularyState // Returns vocabularies in the list whose name contains the specified string. The // search is case-insensitive, ListMedicalVocabularies returns both // "vocabularyname" and "VocabularyName" in the response list. NameContains *string // If the result of your previous request to ListMedicalVocabularies was truncated, // include the NextToken to fetch the next set of jobs. NextToken *string }
type ListMedicalVocabulariesOutput ¶
type ListMedicalVocabulariesOutput struct { // The requested vocabulary state. Status types.VocabularyState // A list of objects that describe the vocabularies that match the search criteria // in the request. Vocabularies []*types.VocabularyInfo // The ListMedicalVocabularies operation returns a page of vocabularies at a time. // The maximum size of the page is set by the MaxResults parameter. If there are // more jobs in the list than the page size, Amazon Transcribe Medical returns the // NextPage token. Include the token in the next request to the // ListMedicalVocabularies operation to return the next page of jobs. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTranscriptionJobsInput ¶
type ListTranscriptionJobsInput struct { // When specified, the jobs returned in the list are limited to jobs whose name // contains the specified string. JobNameContains *string // When specified, returns only transcription jobs with the specified status. Jobs // are ordered by creation date, with the newest jobs returned first. If you don’t // specify a status, Amazon Transcribe returns all transcription jobs ordered by // creation date. Status types.TranscriptionJobStatus // If the result of the previous request to ListTranscriptionJobs was truncated, // include the NextToken to fetch the next set of jobs. NextToken *string // The maximum number of jobs to return in the response. If there are fewer results // in the list, this response contains only the actual results. MaxResults *int32 }
type ListTranscriptionJobsOutput ¶
type ListTranscriptionJobsOutput struct { // The ListTranscriptionJobs operation returns a page of jobs at a time. The // maximum size of the page is set by the MaxResults parameter. If there are more // jobs in the list than the page size, Amazon Transcribe returns the NextPage // token. Include the token in the next request to the ListTranscriptionJobs // operation to return in the next page of jobs. NextToken *string // The requested status of the jobs returned. Status types.TranscriptionJobStatus // A list of objects containing summary information for a transcription job. TranscriptionJobSummaries []*types.TranscriptionJobSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListVocabulariesInput ¶
type ListVocabulariesInput struct { // When specified, only returns vocabularies with the VocabularyState field equal // to the specified state. StateEquals types.VocabularyState // If the result of the previous request to ListVocabularies was truncated, include // the NextToken to fetch the next set of jobs. NextToken *string // The maximum number of vocabularies to return in the response. If there are fewer // results in the list, this response contains only the actual results. MaxResults *int32 // When specified, the vocabularies returned in the list are limited to // vocabularies whose name contains the specified string. The search is // case-insensitive, ListVocabularies returns both "vocabularyname" and // "VocabularyName" in the response list. NameContains *string }
type ListVocabulariesOutput ¶
type ListVocabulariesOutput struct { // The requested vocabulary state. Status types.VocabularyState // The ListVocabularies operation returns a page of vocabularies at a time. The // maximum size of the page is set by the MaxResults parameter. If there are more // jobs in the list than the page size, Amazon Transcribe returns the NextPage // token. Include the token in the next request to the ListVocabularies operation // to return in the next page of jobs. NextToken *string // A list of objects that describe the vocabularies that match the search criteria // in the request. Vocabularies []*types.VocabularyInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListVocabularyFiltersInput ¶
type ListVocabularyFiltersInput struct { // If the result of the previous request to ListVocabularyFilters was truncated, // include the NextToken to fetch the next set of collections. NextToken *string // Filters the response so that it only contains vocabulary filters whose name // contains the specified string. NameContains *string // The maximum number of filters to return in the response. If there are fewer // results in the list, this response contains only the actual results. MaxResults *int32 }
type ListVocabularyFiltersOutput ¶
type ListVocabularyFiltersOutput struct { // The ListVocabularyFilters operation returns a page of collections at a time. The // maximum size of the page is set by the MaxResults parameter. If there are more // jobs in the list than the page size, Amazon Transcribe returns the NextPage // token. Include the token in the next request to the ListVocabularyFilters // operation to return in the next page of jobs. NextToken *string // The list of vocabulary filters. It contains at most MaxResults number of // filters. If there are more filters, call the ListVocabularyFilters operation // again with the NextToken parameter in the request set to the value of the // NextToken field in the response. VocabularyFilters []*types.VocabularyFilterInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetRegion ¶
func (Options) GetRetryer ¶
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type StartMedicalTranscriptionJobInput ¶
type StartMedicalTranscriptionJobInput struct { // The medical specialty of any clinician speaking in the input media. Specialty types.Specialty // The name of the medical transcription job. You can't use the strings "." or ".." // by themselves as the job name. The name must also be unique within an AWS // account. If you try to create a medical transcription job with the same name as // a previous medical transcription job you will receive a ConflictException error. MedicalTranscriptionJobName *string // The Amazon S3 location where the transcription is stored. You must set // OutputBucketName for Amazon Transcribe Medical to store the transcription // results. Your transcript appears in the S3 location you specify. When you call // the GetMedicalTranscriptionJob (), the operation returns this location in the // TranscriptFileUri field. The S3 bucket must have permissions that allow Amazon // Transcribe Medical to put files in the bucket. For more information, see // Permissions Required for IAM User Roles // (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user). // You can specify an AWS Key Management Service (KMS) key to encrypt the output of // your transcription using the OutputEncryptionKMSKeyId parameter. If you don't // specify a KMS key, Amazon Transcribe Medical uses the default Amazon S3 key for // server-side encryption of transcripts that are placed in your S3 bucket. OutputBucketName *string // The language code for the language spoken in the input media file. US English // (en-US) is the valid value for medical transcription jobs. Any other value you // enter for language code results in a BadRequestException error. LanguageCode types.LanguageCode // The type of speech in the input audio. CONVERSATION refers to conversations // between two or more speakers, e.g., a conversations between doctors and // patients. DICTATION refers to single-speaker dictated speech, e.g., for clinical // notes. Type types.Type // The audio format of the input media file. MediaFormat types.MediaFormat // Optional settings for the medical transcription job. Settings *types.MedicalTranscriptionSetting // The sample rate, in Hertz, of the audio track in the input media file. If you do // not specify the media sample rate, Amazon Transcribe Medical determines the // sample rate. If you specify the sample rate, it must match the rate detected by // Amazon Transcribe Medical. In most cases, you should leave the // MediaSampleRateHertz field blank and let Amazon Transcribe Medical determine the // sample rate. MediaSampleRateHertz *int32 // Describes the input media file in a transcription request. Media *types.Media // The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used // to encrypt the output of the transcription job. The user calling the // StartMedicalTranscriptionJob () operation must have permission to use the // specified KMS key. You use either of the following to identify a KMS key in the // current account: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // // * KMS Key Alias: "alias/ExampleAlias" // // You can use either of the following to // identify a KMS key in the current account or another account: // // * Amazon // Resource Name (ARN) of a KMS key in the current account or another account: // "arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab" // // * // ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias" // // If // you don't specify an encryption key, the output of the medical transcription job // is encrypted with the default Amazon S3 key (SSE-S3). If you specify a KMS key // to encrypt your output, you must also specify an output location in the // OutputBucketName parameter. OutputEncryptionKMSKeyId *string }
type StartMedicalTranscriptionJobOutput ¶
type StartMedicalTranscriptionJobOutput struct { // A batch job submitted to transcribe medical speech to text. MedicalTranscriptionJob *types.MedicalTranscriptionJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartTranscriptionJobInput ¶
type StartTranscriptionJobInput struct { // Provides information about how a transcription job is executed. Use this field // to indicate that the job can be queued for deferred execution if the concurrency // limit is reached and there are no slots available to immediately run the job. JobExecutionSettings *types.JobExecutionSettings // A Settings object that provides optional settings for a transcription job. Settings *types.Settings // The sample rate, in Hertz, of the audio track in the input media file. If you do // not specify the media sample rate, Amazon Transcribe determines the sample rate. // If you specify the sample rate, it must match the sample rate detected by Amazon // Transcribe. In most cases, you should leave the MediaSampleRateHertz field blank // and let Amazon Transcribe determine the sample rate. MediaSampleRateHertz *int32 // The location where the transcription is stored. If you set the OutputBucketName, // Amazon Transcribe puts the transcript in the specified S3 bucket. When you call // the GetTranscriptionJob () operation, the operation returns this location in the // TranscriptFileUri field. If you enable content redaction, the redacted // transcript appears in RedactedTranscriptFileUri. If you enable content redaction // and choose to output an unredacted transcript, that transcript's location still // appears in the TranscriptFileUri. The S3 bucket must have permissions that allow // Amazon Transcribe to put files in the bucket. For more information, see // Permissions Required for IAM User Roles // (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user). // You can specify an AWS Key Management Service (KMS) key to encrypt the output of // your transcription using the OutputEncryptionKMSKeyId parameter. If you don't // specify a KMS key, Amazon Transcribe uses the default Amazon S3 key for // server-side encryption of transcripts that are placed in your S3 bucket. If you // don't set the OutputBucketName, Amazon Transcribe generates a pre-signed URL, a // shareable URL that provides secure access to your transcription, and returns it // in the TranscriptFileUri field. Use this URL to download the transcription. OutputBucketName *string // The language code for the language used in the input media file. LanguageCode types.LanguageCode // The format of the input media file. MediaFormat types.MediaFormat // The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used // to encrypt the output of the transcription job. The user calling the // StartTranscriptionJob operation must have permission to use the specified KMS // key. You can use either of the following to identify a KMS key in the current // account: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * KMS // Key Alias: "alias/ExampleAlias" // // You can use either of the following to identify // a KMS key in the current account or another account: // // * Amazon Resource Name // (ARN) of a KMS Key: "arn:aws:kms:region:account // ID:key/1234abcd-12ab-34cd-56ef-1234567890ab" // // * ARN of a KMS Key Alias: // "arn:aws:kms:region:account ID:alias/ExampleAlias" // // If you don't specify an // encryption key, the output of the transcription job is encrypted with the // default Amazon S3 key (SSE-S3). If you specify a KMS key to encrypt your output, // you must also specify an output location in the OutputBucketName parameter. OutputEncryptionKMSKeyId *string // An object that contains the request parameters for content redaction. ContentRedaction *types.ContentRedaction // An object that describes the input media for a transcription job. Media *types.Media // The name of the job. Note that you can't use the strings "." or ".." by // themselves as the job name. The name must also be unique within an AWS account. // If you try to create a transcription job with the same name as a previous // transcription job you will receive a ConflictException error. TranscriptionJobName *string }
type StartTranscriptionJobOutput ¶
type StartTranscriptionJobOutput struct { // An object containing details of the asynchronous transcription job. TranscriptionJob *types.TranscriptionJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateMedicalVocabularyInput ¶
type UpdateMedicalVocabularyInput struct { // The Amazon S3 location of the text file containing the definition of the custom // vocabulary. The URI must be in the same AWS region as the API endpoint you are // calling. You can see the fields you need to enter for you Amazon S3 location in // the example URI here: https://s3..amazonaws.com/// For example: // https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt For more // information about S3 object names, see Object Keys // (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) // in the Amazon S3 Developer Guide. For more information about custom vocabularies // in Amazon Transcribe Medical, see Medical Custom Vocabularies // (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary). VocabularyFileUri *string // The language code of the entries in the updated vocabulary. US English (en-US) // is the only valid language code in Amazon Transcribe Medical. LanguageCode types.LanguageCode // The name of the vocabulary to update. The name is case-sensitive. If you try to // update a vocabulary with the same name as a previous vocabulary you will receive // a ConflictException error. VocabularyName *string }
type UpdateMedicalVocabularyOutput ¶
type UpdateMedicalVocabularyOutput struct { // The language code for the text file used to update the custom vocabulary. US // English (en-US) is the only language supported in Amazon Transcribe Medical. LanguageCode types.LanguageCode // The name of the updated vocabulary. VocabularyName *string // The date and time the vocabulary was updated. LastModifiedTime *time.Time // The processing state of the update to the vocabulary. When the VocabularyState // field is READY the vocabulary is ready to be used in a // StartMedicalTranscriptionJob request. VocabularyState types.VocabularyState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateVocabularyFilterInput ¶
type UpdateVocabularyFilterInput struct { // The name of the vocabulary filter to update. If you try to update a vocabulary // filter with the same name as a previous vocabulary filter you will receive a // ConflictException error. VocabularyFilterName *string // The Amazon S3 location of a text file used as input to create the vocabulary // filter. Only use characters from the character set defined for custom // vocabularies. For a list of character sets, see Character Sets for Custom // Vocabularies // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // The specified file must be less than 50 KB of UTF-8 characters. If you provide // the location of a list of words in the VocabularyFilterFileUri parameter, you // can't use the Words parameter. VocabularyFilterFileUri *string // The words to use in the vocabulary filter. Only use characters from the // character set defined for custom vocabularies. For a list of character sets, see // Character Sets for Custom Vocabularies // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // If you provide a list of words in the Words parameter, you can't use the // VocabularyFilterFileUri parameter. Words []*string }
type UpdateVocabularyFilterOutput ¶
type UpdateVocabularyFilterOutput struct { // The name of the updated vocabulary filter. VocabularyFilterName *string // The date and time that the vocabulary filter was updated. LastModifiedTime *time.Time // The language code of the words in the vocabulary filter. LanguageCode types.LanguageCode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateVocabularyInput ¶
type UpdateVocabularyInput struct { // An array of strings containing the vocabulary entries. Phrases []*string // The language code of the vocabulary entries. LanguageCode types.LanguageCode // The name of the vocabulary to update. The name is case-sensitive. If you try to // update a vocabulary with the same name as a previous vocabulary you will receive // a ConflictException error. VocabularyName *string // The S3 location of the text file that contains the definition of the custom // vocabulary. The URI must be in the same region as the API endpoint that you are // calling. The general form is <p>For example:</p> <p>For more information about // S3 object names, see <a // href="http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys">Object // Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p> <p>For more information // about custom vocabularies, see <a // href="http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary">Custom // Vocabularies</a>.</p> VocabularyFileUri *string }
type UpdateVocabularyOutput ¶
type UpdateVocabularyOutput struct { // The language code of the vocabulary entries. LanguageCode types.LanguageCode // The processing state of the vocabulary. When the VocabularyState field contains // READY the vocabulary is ready to be used in a StartTranscriptionJob request. VocabularyState types.VocabularyState // The date and time that the vocabulary was updated. LastModifiedTime *time.Time // The name of the vocabulary that was updated. VocabularyName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
api_client.go api_op_CreateMedicalVocabulary.go api_op_CreateVocabulary.go api_op_CreateVocabularyFilter.go api_op_DeleteMedicalTranscriptionJob.go api_op_DeleteMedicalVocabulary.go api_op_DeleteTranscriptionJob.go api_op_DeleteVocabulary.go api_op_DeleteVocabularyFilter.go api_op_GetMedicalTranscriptionJob.go api_op_GetMedicalVocabulary.go api_op_GetTranscriptionJob.go api_op_GetVocabulary.go api_op_GetVocabularyFilter.go api_op_ListMedicalTranscriptionJobs.go api_op_ListMedicalVocabularies.go api_op_ListTranscriptionJobs.go api_op_ListVocabularies.go api_op_ListVocabularyFilters.go api_op_StartMedicalTranscriptionJob.go api_op_StartTranscriptionJob.go api_op_UpdateMedicalVocabulary.go api_op_UpdateVocabulary.go api_op_UpdateVocabularyFilter.go deserializers.go endpoints.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- now –
Tools for package owners.