transcribe

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 20

Documentation

Overview

Package transcribe provides the client and types for making API requests to Amazon Transcribe Service.

Operations and objects for transcribing speech to text.

See https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26 for more information on this service.

See transcribe package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/transcribe/

Using the Client

To use Amazon Transcribe Service with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Transcribe Service client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/transcribe/#New

Index

Constants

View Source
const (
	ServiceName = "Amazon Transcribe Service" // Service's name
	ServiceID   = "Transcribe"                // Service's identifier
	EndpointsID = "transcribe"                // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// Your request didn't pass one or more validation tests. For example, if the
	// transcription you're trying to delete doesn't exist or if it is in a non-terminal
	// state (for example, it's "in progress"). See the exception Message field
	// for more information.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// When you are using the CreateVocabulary operation, the JobName field is a
	// duplicate of a previously entered job name. Resend your request with a different
	// name.
	//
	// When you are using the UpdateVocabulary operation, there are two jobs running
	// at the same time. Resend the second request later.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalFailureException for service response error code
	// "InternalFailureException".
	//
	// There was an internal error. Check the error message and try your request
	// again.
	ErrCodeInternalFailureException = "InternalFailureException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// Either you have sent too many requests or your input file is too long. Wait
	// before you resend your request, or use a smaller file and resend the request.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// We can't find the requested resource. Check the name and try your request
	// again.
	ErrCodeNotFoundException = "NotFoundException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to Amazon Transcribe Service. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := transcribe.New(myConfig)

func (*Client) CreateVocabularyFilterRequest added in v0.19.0

func (c *Client) CreateVocabularyFilterRequest(input *CreateVocabularyFilterInput) CreateVocabularyFilterRequest

CreateVocabularyFilterRequest returns a request value for making API operation for Amazon Transcribe Service.

Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.

// Example sending a request using CreateVocabularyFilterRequest.
req := client.CreateVocabularyFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter

func (*Client) CreateVocabularyRequest

func (c *Client) CreateVocabularyRequest(input *CreateVocabularyInput) CreateVocabularyRequest

CreateVocabularyRequest returns a request value for making API operation for Amazon Transcribe Service.

Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.

// Example sending a request using CreateVocabularyRequest.
req := client.CreateVocabularyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabulary

func (*Client) DeleteTranscriptionJobRequest

func (c *Client) DeleteTranscriptionJobRequest(input *DeleteTranscriptionJobInput) DeleteTranscriptionJobRequest

DeleteTranscriptionJobRequest returns a request value for making API operation for Amazon Transcribe Service.

Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.

// Example sending a request using DeleteTranscriptionJobRequest.
req := client.DeleteTranscriptionJobRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob

func (*Client) DeleteVocabularyFilterRequest added in v0.19.0

func (c *Client) DeleteVocabularyFilterRequest(input *DeleteVocabularyFilterInput) DeleteVocabularyFilterRequest

DeleteVocabularyFilterRequest returns a request value for making API operation for Amazon Transcribe Service.

Removes a vocabulary filter.

// Example sending a request using DeleteVocabularyFilterRequest.
req := client.DeleteVocabularyFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter

func (*Client) DeleteVocabularyRequest

func (c *Client) DeleteVocabularyRequest(input *DeleteVocabularyInput) DeleteVocabularyRequest

DeleteVocabularyRequest returns a request value for making API operation for Amazon Transcribe Service.

Deletes a vocabulary from Amazon Transcribe.

// Example sending a request using DeleteVocabularyRequest.
req := client.DeleteVocabularyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabulary

func (*Client) GetTranscriptionJobRequest

func (c *Client) GetTranscriptionJobRequest(input *GetTranscriptionJobInput) GetTranscriptionJobRequest

GetTranscriptionJobRequest returns a request value for making API operation for Amazon Transcribe Service.

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.

// Example sending a request using GetTranscriptionJobRequest.
req := client.GetTranscriptionJobRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob

func (*Client) GetVocabularyFilterRequest added in v0.19.0

func (c *Client) GetVocabularyFilterRequest(input *GetVocabularyFilterInput) GetVocabularyFilterRequest

GetVocabularyFilterRequest returns a request value for making API operation for Amazon Transcribe Service.

Returns information about a vocabulary filter.

// Example sending a request using GetVocabularyFilterRequest.
req := client.GetVocabularyFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter

func (*Client) GetVocabularyRequest

func (c *Client) GetVocabularyRequest(input *GetVocabularyInput) GetVocabularyRequest

GetVocabularyRequest returns a request value for making API operation for Amazon Transcribe Service.

Gets information about a vocabulary.

// Example sending a request using GetVocabularyRequest.
req := client.GetVocabularyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary

func (*Client) ListTranscriptionJobsRequest

func (c *Client) ListTranscriptionJobsRequest(input *ListTranscriptionJobsInput) ListTranscriptionJobsRequest

ListTranscriptionJobsRequest returns a request value for making API operation for Amazon Transcribe Service.

Lists transcription jobs with the specified status.

// Example sending a request using ListTranscriptionJobsRequest.
req := client.ListTranscriptionJobsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs

func (*Client) ListVocabulariesRequest

func (c *Client) ListVocabulariesRequest(input *ListVocabulariesInput) ListVocabulariesRequest

ListVocabulariesRequest returns a request value for making API operation for Amazon Transcribe Service.

Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.

// Example sending a request using ListVocabulariesRequest.
req := client.ListVocabulariesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularies

func (*Client) ListVocabularyFiltersRequest added in v0.19.0

func (c *Client) ListVocabularyFiltersRequest(input *ListVocabularyFiltersInput) ListVocabularyFiltersRequest

ListVocabularyFiltersRequest returns a request value for making API operation for Amazon Transcribe Service.

Gets information about vocabulary filters.

// Example sending a request using ListVocabularyFiltersRequest.
req := client.ListVocabularyFiltersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters

func (*Client) StartTranscriptionJobRequest

func (c *Client) StartTranscriptionJobRequest(input *StartTranscriptionJobInput) StartTranscriptionJobRequest

StartTranscriptionJobRequest returns a request value for making API operation for Amazon Transcribe Service.

Starts an asynchronous job to transcribe speech to text.

// Example sending a request using StartTranscriptionJobRequest.
req := client.StartTranscriptionJobRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob

func (*Client) UpdateVocabularyFilterRequest added in v0.19.0

func (c *Client) UpdateVocabularyFilterRequest(input *UpdateVocabularyFilterInput) UpdateVocabularyFilterRequest

UpdateVocabularyFilterRequest returns a request value for making API operation for Amazon Transcribe Service.

Updates a vocabulary filter with a new list of filtered words.

// Example sending a request using UpdateVocabularyFilterRequest.
req := client.UpdateVocabularyFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter

func (*Client) UpdateVocabularyRequest

func (c *Client) UpdateVocabularyRequest(input *UpdateVocabularyInput) UpdateVocabularyRequest

UpdateVocabularyRequest returns a request value for making API operation for Amazon Transcribe Service.

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.

// Example sending a request using UpdateVocabularyRequest.
req := client.UpdateVocabularyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabulary

type ContentRedaction added in v0.20.0

type ContentRedaction struct {

	// Request parameter where you choose whether to output only the redacted transcript
	// or generate an additional unredacted transcript.
	//
	// When you choose redacted Amazon Transcribe outputs a JSON file with only
	// the redacted transcript and related information.
	//
	// When you choose redacted_and_unredacted Amazon Transcribe outputs a JSON
	// file with the unredacted transcript and related information in addition to
	// the JSON file with the redacted transcript.
	//
	// RedactionOutput is a required field
	RedactionOutput RedactionOutput `type:"string" required:"true" enum:"true"`

	// Request parameter that defines the entities to be redacted. The only accepted
	// value is PII.
	//
	// RedactionType is a required field
	RedactionType RedactionType `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Settings for content redaction within a transcription job.

You can redact transcripts in US English (en-us). For more information see: Automatic Content Redaction (https://docs.aws.amazon.com/transcribe/latest/dg/content-redaction.html)

func (ContentRedaction) String added in v0.20.0

func (s ContentRedaction) String() string

String returns the string representation

func (*ContentRedaction) Validate added in v0.20.0

func (s *ContentRedaction) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateVocabularyFilterInput added in v0.19.0

type CreateVocabularyFilterInput struct {

	// 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 is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// 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 `min:"1" type:"string"`

	// The vocabulary filter name. The name must be unique within the account that
	// contains it.
	//
	// VocabularyFilterName is a required field
	VocabularyFilterName *string `min:"1" type:"string" required:"true"`

	// 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 `min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (CreateVocabularyFilterInput) String added in v0.19.0

String returns the string representation

func (*CreateVocabularyFilterInput) Validate added in v0.19.0

func (s *CreateVocabularyFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateVocabularyFilterOutput added in v0.19.0

type CreateVocabularyFilterOutput struct {

	// The language code of the words in the collection.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary filter was modified.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary filter.
	VocabularyFilterName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (CreateVocabularyFilterOutput) String added in v0.19.0

String returns the string representation

type CreateVocabularyFilterRequest added in v0.19.0

type CreateVocabularyFilterRequest struct {
	*aws.Request
	Input *CreateVocabularyFilterInput
	Copy  func(*CreateVocabularyFilterInput) CreateVocabularyFilterRequest
}

CreateVocabularyFilterRequest is the request type for the CreateVocabularyFilter API operation.

func (CreateVocabularyFilterRequest) Send added in v0.19.0

Send marshals and sends the CreateVocabularyFilter API request.

type CreateVocabularyFilterResponse added in v0.19.0

type CreateVocabularyFilterResponse struct {
	*CreateVocabularyFilterOutput
	// contains filtered or unexported fields
}

CreateVocabularyFilterResponse is the response type for the CreateVocabularyFilter API operation.

func (*CreateVocabularyFilterResponse) SDKResponseMetdata added in v0.19.0

func (r *CreateVocabularyFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVocabularyFilter request.

type CreateVocabularyInput

type CreateVocabularyInput struct {

	// The language code of the vocabulary entries.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// An array of strings that contains the vocabulary entries.
	Phrases []string `type:"list"`

	// 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
	//
	// https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
	//
	// For example:
	//
	// https://s3.us-east-1.amazonaws.com/examplebucket/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 Custom Vocabularies (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary).
	VocabularyFileUri *string `min:"1" type:"string"`

	// The name of the vocabulary. The name must be unique within an AWS account.
	// The name is case-sensitive.
	//
	// VocabularyName is a required field
	VocabularyName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateVocabularyInput) String

func (s CreateVocabularyInput) String() string

String returns the string representation

func (*CreateVocabularyInput) Validate

func (s *CreateVocabularyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateVocabularyOutput

type CreateVocabularyOutput struct {

	// If the VocabularyState field is FAILED, this field contains information about
	// why the job failed.
	FailureReason *string `type:"string"`

	// The language code of the vocabulary entries.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary was created.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary.
	VocabularyName *string `min:"1" type:"string"`

	// The processing state of the vocabulary. When the VocabularyState field contains
	// READY the vocabulary is ready to be used in a StartTranscriptionJob request.
	VocabularyState VocabularyState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateVocabularyOutput) String

func (s CreateVocabularyOutput) String() string

String returns the string representation

type CreateVocabularyRequest

type CreateVocabularyRequest struct {
	*aws.Request
	Input *CreateVocabularyInput
	Copy  func(*CreateVocabularyInput) CreateVocabularyRequest
}

CreateVocabularyRequest is the request type for the CreateVocabulary API operation.

func (CreateVocabularyRequest) Send

Send marshals and sends the CreateVocabulary API request.

type CreateVocabularyResponse

type CreateVocabularyResponse struct {
	*CreateVocabularyOutput
	// contains filtered or unexported fields
}

CreateVocabularyResponse is the response type for the CreateVocabulary API operation.

func (*CreateVocabularyResponse) SDKResponseMetdata

func (r *CreateVocabularyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVocabulary request.

type DeleteTranscriptionJobInput

type DeleteTranscriptionJobInput struct {

	// The name of the transcription job to be deleted.
	//
	// TranscriptionJobName is a required field
	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTranscriptionJobInput) String

String returns the string representation

func (*DeleteTranscriptionJobInput) Validate

func (s *DeleteTranscriptionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteTranscriptionJobOutput

type DeleteTranscriptionJobOutput struct {
	// contains filtered or unexported fields
}

func (DeleteTranscriptionJobOutput) String

String returns the string representation

type DeleteTranscriptionJobRequest

type DeleteTranscriptionJobRequest struct {
	*aws.Request
	Input *DeleteTranscriptionJobInput
	Copy  func(*DeleteTranscriptionJobInput) DeleteTranscriptionJobRequest
}

DeleteTranscriptionJobRequest is the request type for the DeleteTranscriptionJob API operation.

func (DeleteTranscriptionJobRequest) Send

Send marshals and sends the DeleteTranscriptionJob API request.

type DeleteTranscriptionJobResponse

type DeleteTranscriptionJobResponse struct {
	*DeleteTranscriptionJobOutput
	// contains filtered or unexported fields
}

DeleteTranscriptionJobResponse is the response type for the DeleteTranscriptionJob API operation.

func (*DeleteTranscriptionJobResponse) SDKResponseMetdata

func (r *DeleteTranscriptionJobResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTranscriptionJob request.

type DeleteVocabularyFilterInput added in v0.19.0

type DeleteVocabularyFilterInput struct {

	// The name of the vocabulary filter to remove.
	//
	// VocabularyFilterName is a required field
	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVocabularyFilterInput) String added in v0.19.0

String returns the string representation

func (*DeleteVocabularyFilterInput) Validate added in v0.19.0

func (s *DeleteVocabularyFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteVocabularyFilterOutput added in v0.19.0

type DeleteVocabularyFilterOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVocabularyFilterOutput) String added in v0.19.0

String returns the string representation

type DeleteVocabularyFilterRequest added in v0.19.0

type DeleteVocabularyFilterRequest struct {
	*aws.Request
	Input *DeleteVocabularyFilterInput
	Copy  func(*DeleteVocabularyFilterInput) DeleteVocabularyFilterRequest
}

DeleteVocabularyFilterRequest is the request type for the DeleteVocabularyFilter API operation.

func (DeleteVocabularyFilterRequest) Send added in v0.19.0

Send marshals and sends the DeleteVocabularyFilter API request.

type DeleteVocabularyFilterResponse added in v0.19.0

type DeleteVocabularyFilterResponse struct {
	*DeleteVocabularyFilterOutput
	// contains filtered or unexported fields
}

DeleteVocabularyFilterResponse is the response type for the DeleteVocabularyFilter API operation.

func (*DeleteVocabularyFilterResponse) SDKResponseMetdata added in v0.19.0

func (r *DeleteVocabularyFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVocabularyFilter request.

type DeleteVocabularyInput

type DeleteVocabularyInput struct {

	// The name of the vocabulary to delete.
	//
	// VocabularyName is a required field
	VocabularyName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVocabularyInput) String

func (s DeleteVocabularyInput) String() string

String returns the string representation

func (*DeleteVocabularyInput) Validate

func (s *DeleteVocabularyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteVocabularyOutput

type DeleteVocabularyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVocabularyOutput) String

func (s DeleteVocabularyOutput) String() string

String returns the string representation

type DeleteVocabularyRequest

type DeleteVocabularyRequest struct {
	*aws.Request
	Input *DeleteVocabularyInput
	Copy  func(*DeleteVocabularyInput) DeleteVocabularyRequest
}

DeleteVocabularyRequest is the request type for the DeleteVocabulary API operation.

func (DeleteVocabularyRequest) Send

Send marshals and sends the DeleteVocabulary API request.

type DeleteVocabularyResponse

type DeleteVocabularyResponse struct {
	*DeleteVocabularyOutput
	// contains filtered or unexported fields
}

DeleteVocabularyResponse is the response type for the DeleteVocabulary API operation.

func (*DeleteVocabularyResponse) SDKResponseMetdata

func (r *DeleteVocabularyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVocabulary request.

type GetTranscriptionJobInput

type GetTranscriptionJobInput struct {

	// The name of the job.
	//
	// TranscriptionJobName is a required field
	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTranscriptionJobInput) String

func (s GetTranscriptionJobInput) String() string

String returns the string representation

func (*GetTranscriptionJobInput) Validate

func (s *GetTranscriptionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetTranscriptionJobOutput

type GetTranscriptionJobOutput struct {

	// An object that contains the results of the transcription job.
	TranscriptionJob *TranscriptionJob `type:"structure"`
	// contains filtered or unexported fields
}

func (GetTranscriptionJobOutput) String

func (s GetTranscriptionJobOutput) String() string

String returns the string representation

type GetTranscriptionJobRequest

type GetTranscriptionJobRequest struct {
	*aws.Request
	Input *GetTranscriptionJobInput
	Copy  func(*GetTranscriptionJobInput) GetTranscriptionJobRequest
}

GetTranscriptionJobRequest is the request type for the GetTranscriptionJob API operation.

func (GetTranscriptionJobRequest) Send

Send marshals and sends the GetTranscriptionJob API request.

type GetTranscriptionJobResponse

type GetTranscriptionJobResponse struct {
	*GetTranscriptionJobOutput
	// contains filtered or unexported fields
}

GetTranscriptionJobResponse is the response type for the GetTranscriptionJob API operation.

func (*GetTranscriptionJobResponse) SDKResponseMetdata

func (r *GetTranscriptionJobResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetTranscriptionJob request.

type GetVocabularyFilterInput added in v0.19.0

type GetVocabularyFilterInput struct {

	// The name of the vocabulary filter for which to return information.
	//
	// VocabularyFilterName is a required field
	VocabularyFilterName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetVocabularyFilterInput) String added in v0.19.0

func (s GetVocabularyFilterInput) String() string

String returns the string representation

func (*GetVocabularyFilterInput) Validate added in v0.19.0

func (s *GetVocabularyFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetVocabularyFilterOutput added in v0.19.0

type GetVocabularyFilterOutput struct {

	// The URI of the list of words in the vocabulary filter. You can use this URI
	// to get the list of words.
	DownloadUri *string `min:"1" type:"string"`

	// The language code of the words in the vocabulary filter.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the contents of the vocabulary filter were updated.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary filter.
	VocabularyFilterName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetVocabularyFilterOutput) String added in v0.19.0

func (s GetVocabularyFilterOutput) String() string

String returns the string representation

type GetVocabularyFilterRequest added in v0.19.0

type GetVocabularyFilterRequest struct {
	*aws.Request
	Input *GetVocabularyFilterInput
	Copy  func(*GetVocabularyFilterInput) GetVocabularyFilterRequest
}

GetVocabularyFilterRequest is the request type for the GetVocabularyFilter API operation.

func (GetVocabularyFilterRequest) Send added in v0.19.0

Send marshals and sends the GetVocabularyFilter API request.

type GetVocabularyFilterResponse added in v0.19.0

type GetVocabularyFilterResponse struct {
	*GetVocabularyFilterOutput
	// contains filtered or unexported fields
}

GetVocabularyFilterResponse is the response type for the GetVocabularyFilter API operation.

func (*GetVocabularyFilterResponse) SDKResponseMetdata added in v0.19.0

func (r *GetVocabularyFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetVocabularyFilter request.

type GetVocabularyInput

type GetVocabularyInput struct {

	// The name of the vocabulary to return information about. The name is case-sensitive.
	//
	// VocabularyName is a required field
	VocabularyName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetVocabularyInput) String

func (s GetVocabularyInput) String() string

String returns the string representation

func (*GetVocabularyInput) Validate

func (s *GetVocabularyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetVocabularyOutput

type GetVocabularyOutput struct {

	// 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 `min:"1" type:"string"`

	// If the VocabularyState field is FAILED, this field contains information about
	// why the job failed.
	FailureReason *string `type:"string"`

	// The language code of the vocabulary entries.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary was last modified.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary to return.
	VocabularyName *string `min:"1" type:"string"`

	// The processing state of the vocabulary.
	VocabularyState VocabularyState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (GetVocabularyOutput) String

func (s GetVocabularyOutput) String() string

String returns the string representation

type GetVocabularyRequest

type GetVocabularyRequest struct {
	*aws.Request
	Input *GetVocabularyInput
	Copy  func(*GetVocabularyInput) GetVocabularyRequest
}

GetVocabularyRequest is the request type for the GetVocabulary API operation.

func (GetVocabularyRequest) Send

Send marshals and sends the GetVocabulary API request.

type GetVocabularyResponse

type GetVocabularyResponse struct {
	*GetVocabularyOutput
	// contains filtered or unexported fields
}

GetVocabularyResponse is the response type for the GetVocabulary API operation.

func (*GetVocabularyResponse) SDKResponseMetdata

func (r *GetVocabularyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetVocabulary request.

type JobExecutionSettings added in v0.19.0

type JobExecutionSettings struct {

	// Indicates whether a job should be queued by Amazon Transcribe when the concurrent
	// execution limit is exceeded. When the AllowDeferredExecution field is true,
	// jobs are queued and will be executed when the number of executing jobs falls
	// below the concurrent execution limit. If the field is false, Amazon Transcribe
	// returns a LimitExceededException exception.
	//
	// If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn
	// field.
	AllowDeferredExecution *bool `type:"boolean"`

	// The Amazon Resource Name (ARN) of a role that has access to the S3 bucket
	// that contains the input files. Amazon Transcribe will assume this role to
	// read queued media files. If you have specified an output S3 bucket for the
	// transcription results, this role should have access to the output bucket
	// as well.
	//
	// If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn
	// field.
	DataAccessRoleArn *string `type:"string"`
	// contains filtered or unexported fields
}

Provides information about when a transcription job should be executed.

func (JobExecutionSettings) String added in v0.19.0

func (s JobExecutionSettings) String() string

String returns the string representation

type LanguageCode

type LanguageCode string
const (
	LanguageCodeEnUs LanguageCode = "en-US"
	LanguageCodeEsUs LanguageCode = "es-US"
	LanguageCodeEnAu LanguageCode = "en-AU"
	LanguageCodeFrCa LanguageCode = "fr-CA"
	LanguageCodeEnGb LanguageCode = "en-GB"
	LanguageCodeDeDe LanguageCode = "de-DE"
	LanguageCodePtBr LanguageCode = "pt-BR"
	LanguageCodeFrFr LanguageCode = "fr-FR"
	LanguageCodeItIt LanguageCode = "it-IT"
	LanguageCodeKoKr LanguageCode = "ko-KR"
	LanguageCodeEsEs LanguageCode = "es-ES"
	LanguageCodeEnIn LanguageCode = "en-IN"
	LanguageCodeHiIn LanguageCode = "hi-IN"
	LanguageCodeArSa LanguageCode = "ar-SA"
	LanguageCodeRuRu LanguageCode = "ru-RU"
	LanguageCodeZhCn LanguageCode = "zh-CN"
	LanguageCodeNlNl LanguageCode = "nl-NL"
	LanguageCodeIdId LanguageCode = "id-ID"
	LanguageCodeTaIn LanguageCode = "ta-IN"
	LanguageCodeFaIr LanguageCode = "fa-IR"
	LanguageCodeEnIe LanguageCode = "en-IE"
	LanguageCodeEnAb LanguageCode = "en-AB"
	LanguageCodeEnWl LanguageCode = "en-WL"
	LanguageCodePtPt LanguageCode = "pt-PT"
	LanguageCodeTeIn LanguageCode = "te-IN"
	LanguageCodeTrTr LanguageCode = "tr-TR"
	LanguageCodeDeCh LanguageCode = "de-CH"
	LanguageCodeHeIl LanguageCode = "he-IL"
	LanguageCodeMsMy LanguageCode = "ms-MY"
	LanguageCodeJaJp LanguageCode = "ja-JP"
	LanguageCodeArAe LanguageCode = "ar-AE"
)

Enum values for LanguageCode

func (LanguageCode) MarshalValue

func (enum LanguageCode) MarshalValue() (string, error)

func (LanguageCode) MarshalValueBuf

func (enum LanguageCode) MarshalValueBuf(b []byte) ([]byte, error)

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 `min:"1" type:"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 *int64 `min:"1" type:"integer"`

	// If the result of the previous request to ListTranscriptionJobs was truncated,
	// include the NextToken to fetch the next set of jobs.
	NextToken *string `type:"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 TranscriptionJobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (ListTranscriptionJobsInput) String

String returns the string representation

func (*ListTranscriptionJobsInput) Validate

func (s *ListTranscriptionJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `type:"string"`

	// The requested status of the jobs returned.
	Status TranscriptionJobStatus `type:"string" enum:"true"`

	// A list of objects containing summary information for a transcription job.
	TranscriptionJobSummaries []TranscriptionJobSummary `type:"list"`
	// contains filtered or unexported fields
}

func (ListTranscriptionJobsOutput) String

String returns the string representation

type ListTranscriptionJobsPaginator

type ListTranscriptionJobsPaginator struct {
	aws.Pager
}

ListTranscriptionJobsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListTranscriptionJobsPaginator

func NewListTranscriptionJobsPaginator(req ListTranscriptionJobsRequest) ListTranscriptionJobsPaginator

NewListTranscriptionJobsRequestPaginator returns a paginator for ListTranscriptionJobs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListTranscriptionJobsRequest(input)
p := transcribe.NewListTranscriptionJobsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListTranscriptionJobsPaginator) CurrentPage

type ListTranscriptionJobsRequest

type ListTranscriptionJobsRequest struct {
	*aws.Request
	Input *ListTranscriptionJobsInput
	Copy  func(*ListTranscriptionJobsInput) ListTranscriptionJobsRequest
}

ListTranscriptionJobsRequest is the request type for the ListTranscriptionJobs API operation.

func (ListTranscriptionJobsRequest) Send

Send marshals and sends the ListTranscriptionJobs API request.

type ListTranscriptionJobsResponse

type ListTranscriptionJobsResponse struct {
	*ListTranscriptionJobsOutput
	// contains filtered or unexported fields
}

ListTranscriptionJobsResponse is the response type for the ListTranscriptionJobs API operation.

func (*ListTranscriptionJobsResponse) SDKResponseMetdata

func (r *ListTranscriptionJobsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListTranscriptionJobs request.

type ListVocabulariesInput

type ListVocabulariesInput struct {

	// 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 *int64 `min:"1" type:"integer"`

	// When specified, the vocabularies returned in the list are limited to vocabularies
	// whose name contains the specified string. The search is case-insensitive,
	// ListVocabularies will return both "vocabularyname" and "VocabularyName" in
	// the response list.
	NameContains *string `min:"1" type:"string"`

	// If the result of the previous request to ListVocabularies was truncated,
	// include the NextToken to fetch the next set of jobs.
	NextToken *string `type:"string"`

	// When specified, only returns vocabularies with the VocabularyState field
	// equal to the specified state.
	StateEquals VocabularyState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (ListVocabulariesInput) String

func (s ListVocabulariesInput) String() string

String returns the string representation

func (*ListVocabulariesInput) Validate

func (s *ListVocabulariesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListVocabulariesOutput

type ListVocabulariesOutput struct {

	// 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 `type:"string"`

	// The requested vocabulary state.
	Status TranscriptionJobStatus `type:"string" enum:"true"`

	// A list of objects that describe the vocabularies that match the search criteria
	// in the request.
	Vocabularies []VocabularyInfo `type:"list"`
	// contains filtered or unexported fields
}

func (ListVocabulariesOutput) String

func (s ListVocabulariesOutput) String() string

String returns the string representation

type ListVocabulariesPaginator

type ListVocabulariesPaginator struct {
	aws.Pager
}

ListVocabulariesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListVocabulariesPaginator

func NewListVocabulariesPaginator(req ListVocabulariesRequest) ListVocabulariesPaginator

NewListVocabulariesRequestPaginator returns a paginator for ListVocabularies. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListVocabulariesRequest(input)
p := transcribe.NewListVocabulariesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListVocabulariesPaginator) CurrentPage

type ListVocabulariesRequest

type ListVocabulariesRequest struct {
	*aws.Request
	Input *ListVocabulariesInput
	Copy  func(*ListVocabulariesInput) ListVocabulariesRequest
}

ListVocabulariesRequest is the request type for the ListVocabularies API operation.

func (ListVocabulariesRequest) Send

Send marshals and sends the ListVocabularies API request.

type ListVocabulariesResponse

type ListVocabulariesResponse struct {
	*ListVocabulariesOutput
	// contains filtered or unexported fields
}

ListVocabulariesResponse is the response type for the ListVocabularies API operation.

func (*ListVocabulariesResponse) SDKResponseMetdata

func (r *ListVocabulariesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListVocabularies request.

type ListVocabularyFiltersInput added in v0.19.0

type ListVocabularyFiltersInput struct {

	// 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 *int64 `min:"1" type:"integer"`

	// Filters the response so that it only contains vocabulary filters whose name
	// contains the specified string.
	NameContains *string `min:"1" type:"string"`

	// If the result of the previous request to ListVocabularyFilters was truncated,
	// include the NextToken to fetch the next set of collections.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListVocabularyFiltersInput) String added in v0.19.0

String returns the string representation

func (*ListVocabularyFiltersInput) Validate added in v0.19.0

func (s *ListVocabularyFiltersInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListVocabularyFiltersOutput added in v0.19.0

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 `type:"string"`

	// The list of vocabulary filters. It will contain 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 []VocabularyFilterInfo `type:"list"`
	// contains filtered or unexported fields
}

func (ListVocabularyFiltersOutput) String added in v0.19.0

String returns the string representation

type ListVocabularyFiltersPaginator added in v0.19.0

type ListVocabularyFiltersPaginator struct {
	aws.Pager
}

ListVocabularyFiltersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListVocabularyFiltersPaginator added in v0.19.0

func NewListVocabularyFiltersPaginator(req ListVocabularyFiltersRequest) ListVocabularyFiltersPaginator

NewListVocabularyFiltersRequestPaginator returns a paginator for ListVocabularyFilters. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListVocabularyFiltersRequest(input)
p := transcribe.NewListVocabularyFiltersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListVocabularyFiltersPaginator) CurrentPage added in v0.19.0

type ListVocabularyFiltersRequest added in v0.19.0

type ListVocabularyFiltersRequest struct {
	*aws.Request
	Input *ListVocabularyFiltersInput
	Copy  func(*ListVocabularyFiltersInput) ListVocabularyFiltersRequest
}

ListVocabularyFiltersRequest is the request type for the ListVocabularyFilters API operation.

func (ListVocabularyFiltersRequest) Send added in v0.19.0

Send marshals and sends the ListVocabularyFilters API request.

type ListVocabularyFiltersResponse added in v0.19.0

type ListVocabularyFiltersResponse struct {
	*ListVocabularyFiltersOutput
	// contains filtered or unexported fields
}

ListVocabularyFiltersResponse is the response type for the ListVocabularyFilters API operation.

func (*ListVocabularyFiltersResponse) SDKResponseMetdata added in v0.19.0

func (r *ListVocabularyFiltersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListVocabularyFilters request.

type Media

type Media struct {

	// The S3 object location of the input media file. The URI must be in the same
	// region as the API endpoint that you are calling. The general form is:
	//
	// s3://<bucket-name>/<keyprefix>/<objectkey>
	//
	// For example:
	//
	// s3://examplebucket/example.mp4
	//
	// s3://examplebucket/mediadocs/example.mp4
	//
	// 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.
	MediaFileUri *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes the input media file in a transcription request.

func (Media) String

func (s Media) String() string

String returns the string representation

func (*Media) Validate

func (s *Media) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type MediaFormat

type MediaFormat string
const (
	MediaFormatMp3  MediaFormat = "mp3"
	MediaFormatMp4  MediaFormat = "mp4"
	MediaFormatWav  MediaFormat = "wav"
	MediaFormatFlac MediaFormat = "flac"
)

Enum values for MediaFormat

func (MediaFormat) MarshalValue

func (enum MediaFormat) MarshalValue() (string, error)

func (MediaFormat) MarshalValueBuf

func (enum MediaFormat) MarshalValueBuf(b []byte) ([]byte, error)

type OutputLocationType

type OutputLocationType string
const (
	OutputLocationTypeCustomerBucket OutputLocationType = "CUSTOMER_BUCKET"
	OutputLocationTypeServiceBucket  OutputLocationType = "SERVICE_BUCKET"
)

Enum values for OutputLocationType

func (OutputLocationType) MarshalValue

func (enum OutputLocationType) MarshalValue() (string, error)

func (OutputLocationType) MarshalValueBuf

func (enum OutputLocationType) MarshalValueBuf(b []byte) ([]byte, error)

type RedactionOutput added in v0.20.0

type RedactionOutput string
const (
	RedactionOutputRedacted              RedactionOutput = "redacted"
	RedactionOutputRedactedAndUnredacted RedactionOutput = "redacted_and_unredacted"
)

Enum values for RedactionOutput

func (RedactionOutput) MarshalValue added in v0.20.0

func (enum RedactionOutput) MarshalValue() (string, error)

func (RedactionOutput) MarshalValueBuf added in v0.20.0

func (enum RedactionOutput) MarshalValueBuf(b []byte) ([]byte, error)

type RedactionType added in v0.20.0

type RedactionType string
const (
	RedactionTypePii RedactionType = "PII"
)

Enum values for RedactionType

func (RedactionType) MarshalValue added in v0.20.0

func (enum RedactionType) MarshalValue() (string, error)

func (RedactionType) MarshalValueBuf added in v0.20.0

func (enum RedactionType) MarshalValueBuf(b []byte) ([]byte, error)

type Settings

type Settings struct {

	// Instructs Amazon Transcribe to process each audio channel separately and
	// then merge the transcription output of each channel into a single transcription.
	//
	// Amazon Transcribe also produces a transcription of each item detected on
	// an audio channel, including the start time and end time of the item and alternative
	// transcriptions of the item including the confidence that Amazon Transcribe
	// has in the transcription.
	//
	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
	// request. If you set both, your request returns a BadRequestException.
	ChannelIdentification *bool `type:"boolean"`

	// The number of alternative transcriptions that the service should return.
	// If you specify the MaxAlternatives field, you must set the ShowAlternatives
	// field to true.
	MaxAlternatives *int64 `min:"2" type:"integer"`

	// The maximum number of speakers to identify in the input audio. If there are
	// more speakers in the audio than this number, multiple speakers will be identified
	// as a single speaker. If you specify the MaxSpeakerLabels field, you must
	// set the ShowSpeakerLabels field to true.
	MaxSpeakerLabels *int64 `min:"2" type:"integer"`

	// Determines whether the transcription contains alternative transcriptions.
	// If you set the ShowAlternatives field to true, you must also set the maximum
	// number of alternatives to return in the MaxAlternatives field.
	ShowAlternatives *bool `type:"boolean"`

	// Determines whether the transcription job uses speaker recognition to identify
	// different speakers in the input audio. Speaker recognition labels individual
	// speakers in the audio file. If you set the ShowSpeakerLabels field to true,
	// you must also set the maximum number of speaker labels MaxSpeakerLabels field.
	//
	// You can't set both ShowSpeakerLabels and ChannelIdentification in the same
	// request. If you set both, your request returns a BadRequestException.
	ShowSpeakerLabels *bool `type:"boolean"`

	// Set to mask to remove filtered text from the transcript and replace it with
	// three asterisks ("***") as placeholder text. Set to remove to remove filtered
	// text from the transcript without using placeholder text.
	VocabularyFilterMethod VocabularyFilterMethod `type:"string" enum:"true"`

	// The name of the vocabulary filter to use when transcribing the audio. The
	// filter that you specify must have the same language code as the transcription
	// job.
	VocabularyFilterName *string `min:"1" type:"string"`

	// The name of a vocabulary to use when processing the transcription job.
	VocabularyName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides optional settings for the StartTranscriptionJob operation.

func (Settings) String

func (s Settings) String() string

String returns the string representation

func (*Settings) Validate

func (s *Settings) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartTranscriptionJobInput

type StartTranscriptionJobInput struct {

	// An object that contains the request parameters for content redaction.
	ContentRedaction *ContentRedaction `type:"structure"`

	// 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 *JobExecutionSettings `type:"structure"`

	// The language code for the language used in the input media file.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// An object that describes the input media for a transcription job.
	//
	// Media is a required field
	Media *Media `type:"structure" required:"true"`

	// The format of the input media file.
	MediaFormat MediaFormat `type:"string" enum:"true"`

	// 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 *int64 `min:"8000" type:"integer"`

	// 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 `type:"string"`

	// 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 `min:"1" type:"string"`

	// A Settings object that provides optional settings for a transcription job.
	Settings *Settings `type:"structure"`

	// 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.
	//
	// TranscriptionJobName is a required field
	TranscriptionJobName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartTranscriptionJobInput) String

String returns the string representation

func (*StartTranscriptionJobInput) Validate

func (s *StartTranscriptionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartTranscriptionJobOutput

type StartTranscriptionJobOutput struct {

	// An object containing details of the asynchronous transcription job.
	TranscriptionJob *TranscriptionJob `type:"structure"`
	// contains filtered or unexported fields
}

func (StartTranscriptionJobOutput) String

String returns the string representation

type StartTranscriptionJobRequest

type StartTranscriptionJobRequest struct {
	*aws.Request
	Input *StartTranscriptionJobInput
	Copy  func(*StartTranscriptionJobInput) StartTranscriptionJobRequest
}

StartTranscriptionJobRequest is the request type for the StartTranscriptionJob API operation.

func (StartTranscriptionJobRequest) Send

Send marshals and sends the StartTranscriptionJob API request.

type StartTranscriptionJobResponse

type StartTranscriptionJobResponse struct {
	*StartTranscriptionJobOutput
	// contains filtered or unexported fields
}

StartTranscriptionJobResponse is the response type for the StartTranscriptionJob API operation.

func (*StartTranscriptionJobResponse) SDKResponseMetdata

func (r *StartTranscriptionJobResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StartTranscriptionJob request.

type Transcript

type Transcript struct {

	// The S3 object location of the redacted transcript.
	//
	// Use this URI to access the redacated transcript. If you specified an S3 bucket
	// in the OutputBucketName field when you created the job, this is the URI of
	// that bucket. If you chose to store the transcript in Amazon Transcribe, this
	// is a shareable URL that provides secure access to that location.
	RedactedTranscriptFileUri *string `min:"1" type:"string"`

	// The S3 object location of the the transcript.
	//
	// Use this URI to access the transcript. If you specified an S3 bucket in the
	// OutputBucketName field when you created the job, this is the URI of that
	// bucket. If you chose to store the transcript in Amazon Transcribe, this is
	// a shareable URL that provides secure access to that location.
	TranscriptFileUri *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Identifies the location of a transcription.

func (Transcript) String

func (s Transcript) String() string

String returns the string representation

type TranscriptionJob

type TranscriptionJob struct {

	// A timestamp that shows when the job was completed.
	CompletionTime *time.Time `type:"timestamp"`

	// An object that describes content redaction settings for the transcription
	// job.
	ContentRedaction *ContentRedaction `type:"structure"`

	// A timestamp that shows when the job was created.
	CreationTime *time.Time `type:"timestamp"`

	// If the TranscriptionJobStatus field is FAILED, this field contains information
	// about why the job failed.
	//
	// The FailureReason field can contain one of the following values:
	//
	//    * Unsupported media format - The media format specified in the MediaFormat
	//    field of the request isn't valid. See the description of the MediaFormat
	//    field for a list of valid values.
	//
	//    * The media format provided does not match the detected media format -
	//    The media format of the audio file doesn't match the format specified
	//    in the MediaFormat field in the request. Check the media format of your
	//    media file and make sure that the two values match.
	//
	//    * Invalid sample rate for audio file - The sample rate specified in the
	//    MediaSampleRateHertz of the request isn't valid. The sample rate must
	//    be between 8000 and 48000 Hertz.
	//
	//    * The sample rate provided does not match the detected sample rate - The
	//    sample rate in the audio file doesn't match the sample rate specified
	//    in the MediaSampleRateHertz field in the request. Check the sample rate
	//    of your media file and make sure that the two values match.
	//
	//    * Invalid file size: file size too large - The size of your audio file
	//    is larger than Amazon Transcribe can process. For more information, see
	//    Limits (https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits)
	//    in the Amazon Transcribe Developer Guide.
	//
	//    * Invalid number of channels: number of channels too large - Your audio
	//    contains more channels than Amazon Transcribe is configured to process.
	//    To request additional channels, see Amazon Transcribe Limits (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits-amazon-transcribe)
	//    in the Amazon Web Services General Reference.
	FailureReason *string `type:"string"`

	// Provides information about how a transcription job is executed.
	JobExecutionSettings *JobExecutionSettings `type:"structure"`

	// The language code for the input speech.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// An object that describes the input media for the transcription job.
	Media *Media `type:"structure"`

	// The format of the input media file.
	MediaFormat MediaFormat `type:"string" enum:"true"`

	// The sample rate, in Hertz, of the audio track in the input media file.
	MediaSampleRateHertz *int64 `min:"8000" type:"integer"`

	// Optional settings for the transcription job. Use these settings to turn on
	// speaker recognition, to set the maximum number of speakers that should be
	// identified and to specify a custom vocabulary to use when processing the
	// transcription job.
	Settings *Settings `type:"structure"`

	// A timestamp that shows with the job was started processing.
	StartTime *time.Time `type:"timestamp"`

	// An object that describes the output of the transcription job.
	Transcript *Transcript `type:"structure"`

	// The name of the transcription job.
	TranscriptionJobName *string `min:"1" type:"string"`

	// The status of the transcription job.
	TranscriptionJobStatus TranscriptionJobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes an asynchronous transcription job that was created with the StartTranscriptionJob operation.

func (TranscriptionJob) String

func (s TranscriptionJob) String() string

String returns the string representation

type TranscriptionJobStatus

type TranscriptionJobStatus string
const (
	TranscriptionJobStatusQueued     TranscriptionJobStatus = "QUEUED"
	TranscriptionJobStatusInProgress TranscriptionJobStatus = "IN_PROGRESS"
	TranscriptionJobStatusFailed     TranscriptionJobStatus = "FAILED"
	TranscriptionJobStatusCompleted  TranscriptionJobStatus = "COMPLETED"
)

Enum values for TranscriptionJobStatus

func (TranscriptionJobStatus) MarshalValue

func (enum TranscriptionJobStatus) MarshalValue() (string, error)

func (TranscriptionJobStatus) MarshalValueBuf

func (enum TranscriptionJobStatus) MarshalValueBuf(b []byte) ([]byte, error)

type TranscriptionJobSummary

type TranscriptionJobSummary struct {

	// A timestamp that shows when the job was completed.
	CompletionTime *time.Time `type:"timestamp"`

	// The content redaction settings of the transcription job.
	ContentRedaction *ContentRedaction `type:"structure"`

	// A timestamp that shows when the job was created.
	CreationTime *time.Time `type:"timestamp"`

	// If the TranscriptionJobStatus field is FAILED, a description of the error.
	FailureReason *string `type:"string"`

	// The language code for the input speech.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// Indicates the location of the output of the transcription job.
	//
	// If the value is CUSTOMER_BUCKET then the location is the S3 bucket specified
	// in the outputBucketName field when the transcription job was started with
	// the StartTranscriptionJob operation.
	//
	// If the value is SERVICE_BUCKET then the output is stored by Amazon Transcribe
	// and can be retrieved using the URI in the GetTranscriptionJob response's
	// TranscriptFileUri field.
	OutputLocationType OutputLocationType `type:"string" enum:"true"`

	// A timestamp that shows when the job started processing.
	StartTime *time.Time `type:"timestamp"`

	// The name of the transcription job.
	TranscriptionJobName *string `min:"1" type:"string"`

	// The status of the transcription job. When the status is COMPLETED, use the
	// GetTranscriptionJob operation to get the results of the transcription.
	TranscriptionJobStatus TranscriptionJobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Provides a summary of information about a transcription job.

func (TranscriptionJobSummary) String

func (s TranscriptionJobSummary) String() string

String returns the string representation

type UpdateVocabularyFilterInput added in v0.19.0

type UpdateVocabularyFilterInput 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 `min:"1" type:"string"`

	// The name of the vocabulary filter to update.
	//
	// VocabularyFilterName is a required field
	VocabularyFilterName *string `min:"1" type:"string" required:"true"`

	// 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 `min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (UpdateVocabularyFilterInput) String added in v0.19.0

String returns the string representation

func (*UpdateVocabularyFilterInput) Validate added in v0.19.0

func (s *UpdateVocabularyFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateVocabularyFilterOutput added in v0.19.0

type UpdateVocabularyFilterOutput struct {

	// The language code of the words in the vocabulary filter.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary filter was updated.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the updated vocabulary filter.
	VocabularyFilterName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateVocabularyFilterOutput) String added in v0.19.0

String returns the string representation

type UpdateVocabularyFilterRequest added in v0.19.0

type UpdateVocabularyFilterRequest struct {
	*aws.Request
	Input *UpdateVocabularyFilterInput
	Copy  func(*UpdateVocabularyFilterInput) UpdateVocabularyFilterRequest
}

UpdateVocabularyFilterRequest is the request type for the UpdateVocabularyFilter API operation.

func (UpdateVocabularyFilterRequest) Send added in v0.19.0

Send marshals and sends the UpdateVocabularyFilter API request.

type UpdateVocabularyFilterResponse added in v0.19.0

type UpdateVocabularyFilterResponse struct {
	*UpdateVocabularyFilterOutput
	// contains filtered or unexported fields
}

UpdateVocabularyFilterResponse is the response type for the UpdateVocabularyFilter API operation.

func (*UpdateVocabularyFilterResponse) SDKResponseMetdata added in v0.19.0

func (r *UpdateVocabularyFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateVocabularyFilter request.

type UpdateVocabularyInput

type UpdateVocabularyInput struct {

	// The language code of the vocabulary entries.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// An array of strings containing the vocabulary entries.
	Phrases []string `type:"list"`

	// 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
	//
	// https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
	//
	// For example:
	//
	// https://s3.us-east-1.amazonaws.com/examplebucket/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 Custom Vocabularies (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary).
	VocabularyFileUri *string `min:"1" type:"string"`

	// The name of the vocabulary to update. The name is case-sensitive.
	//
	// VocabularyName is a required field
	VocabularyName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateVocabularyInput) String

func (s UpdateVocabularyInput) String() string

String returns the string representation

func (*UpdateVocabularyInput) Validate

func (s *UpdateVocabularyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateVocabularyOutput

type UpdateVocabularyOutput struct {

	// The language code of the vocabulary entries.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary was updated.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary that was updated.
	VocabularyName *string `min:"1" type:"string"`

	// The processing state of the vocabulary. When the VocabularyState field contains
	// READY the vocabulary is ready to be used in a StartTranscriptionJob request.
	VocabularyState VocabularyState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (UpdateVocabularyOutput) String

func (s UpdateVocabularyOutput) String() string

String returns the string representation

type UpdateVocabularyRequest

type UpdateVocabularyRequest struct {
	*aws.Request
	Input *UpdateVocabularyInput
	Copy  func(*UpdateVocabularyInput) UpdateVocabularyRequest
}

UpdateVocabularyRequest is the request type for the UpdateVocabulary API operation.

func (UpdateVocabularyRequest) Send

Send marshals and sends the UpdateVocabulary API request.

type UpdateVocabularyResponse

type UpdateVocabularyResponse struct {
	*UpdateVocabularyOutput
	// contains filtered or unexported fields
}

UpdateVocabularyResponse is the response type for the UpdateVocabulary API operation.

func (*UpdateVocabularyResponse) SDKResponseMetdata

func (r *UpdateVocabularyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateVocabulary request.

type VocabularyFilterInfo added in v0.19.0

type VocabularyFilterInfo struct {

	// The language code of the words in the vocabulary filter.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary was last updated.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary filter. The name must be unique in the account
	// that holds the filter.
	VocabularyFilterName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Provides information about a vocabulary filter.

func (VocabularyFilterInfo) String added in v0.19.0

func (s VocabularyFilterInfo) String() string

String returns the string representation

type VocabularyFilterMethod added in v0.19.0

type VocabularyFilterMethod string
const (
	VocabularyFilterMethodRemove VocabularyFilterMethod = "remove"
	VocabularyFilterMethodMask   VocabularyFilterMethod = "mask"
)

Enum values for VocabularyFilterMethod

func (VocabularyFilterMethod) MarshalValue added in v0.19.0

func (enum VocabularyFilterMethod) MarshalValue() (string, error)

func (VocabularyFilterMethod) MarshalValueBuf added in v0.19.0

func (enum VocabularyFilterMethod) MarshalValueBuf(b []byte) ([]byte, error)

type VocabularyInfo

type VocabularyInfo struct {

	// The language code of the vocabulary entries.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// The date and time that the vocabulary was last modified.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the vocabulary.
	VocabularyName *string `min:"1" type:"string"`

	// The processing state of the vocabulary. If the state is READY you can use
	// the vocabulary in a StartTranscriptionJob request.
	VocabularyState VocabularyState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Provides information about a custom vocabulary.

func (VocabularyInfo) String

func (s VocabularyInfo) String() string

String returns the string representation

type VocabularyState

type VocabularyState string
const (
	VocabularyStatePending VocabularyState = "PENDING"
	VocabularyStateReady   VocabularyState = "READY"
	VocabularyStateFailed  VocabularyState = "FAILED"
)

Enum values for VocabularyState

func (VocabularyState) MarshalValue

func (enum VocabularyState) MarshalValue() (string, error)

func (VocabularyState) MarshalValueBuf

func (enum VocabularyState) MarshalValueBuf(b []byte) ([]byte, error)

Directories

Path Synopsis
Package transcribeiface provides an interface to enable mocking the Amazon Transcribe Service service client for testing your code.
Package transcribeiface provides an interface to enable mocking the Amazon Transcribe Service service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL