Documentation ¶
Overview ¶
Package transcribestreamingservice provides the client and types for making API requests to Amazon Transcribe Streaming Service.
Amazon Transcribe streaming offers three main types of real-time transcription: Standard, Medical, and Call Analytics.
Standard transcriptions are the most common option. Refer to for details.
Medical transcriptions are tailored to medical professionals and incorporate medical terms. A common use case for this service is transcribing doctor-patient dialogue in real time, so doctors can focus on their patient instead of taking notes. Refer to for details.
Call Analytics transcriptions are designed for use with call center audio on two different channels; if you're looking for insight into customer service calls, use this option. Refer to for details.
See https://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26 for more information on this service.
See transcribestreamingservice package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/
Using the Client ¶
To contact Amazon Transcribe Streaming 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 Streaming Service client TranscribeStreamingService for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#New
Index ¶
- Constants
- func CallAnalyticsLanguageCode_Values() []string
- func ContentIdentificationType_Values() []string
- func ContentRedactionOutput__Values() []string
- func ContentRedactionType_Values() []string
- func ItemType_Values() []string
- func LanguageCode_Values() []string
- func MediaEncoding_Values() []string
- func MedicalContentIdentificationType_Values() []string
- func PartialResultsStability_Values() []string
- func ParticipantRole_Values() []string
- func Sentiment_Values() []string
- func Specialty_Values() []string
- func StreamAudioFromReader(ctx aws.Context, stream AudioStreamWriter, frameSize int, input io.Reader) (err error)
- func Type_Values() []string
- func VocabularyFilterMethod_Values() []string
- type Alternative
- type AudioEvent
- func (s AudioEvent) GoString() string
- func (s *AudioEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *AudioEvent) SetAudioChunk(v []byte) *AudioEvent
- func (s AudioEvent) String() string
- func (s *AudioEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type AudioStreamEvent
- type AudioStreamWriter
- type BadRequestException
- func (s *BadRequestException) Code() string
- func (s *BadRequestException) Error() string
- func (s BadRequestException) GoString() string
- func (s *BadRequestException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *BadRequestException) Message() string
- func (s *BadRequestException) OrigErr() error
- func (s *BadRequestException) RequestID() string
- func (s *BadRequestException) StatusCode() int
- func (s BadRequestException) String() string
- func (s *BadRequestException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type CallAnalyticsEntity
- func (s CallAnalyticsEntity) GoString() string
- func (s *CallAnalyticsEntity) SetBeginOffsetMillis(v int64) *CallAnalyticsEntity
- func (s *CallAnalyticsEntity) SetCategory(v string) *CallAnalyticsEntity
- func (s *CallAnalyticsEntity) SetConfidence(v float64) *CallAnalyticsEntity
- func (s *CallAnalyticsEntity) SetContent(v string) *CallAnalyticsEntity
- func (s *CallAnalyticsEntity) SetEndOffsetMillis(v int64) *CallAnalyticsEntity
- func (s *CallAnalyticsEntity) SetType(v string) *CallAnalyticsEntity
- func (s CallAnalyticsEntity) String() string
- type CallAnalyticsItem
- func (s CallAnalyticsItem) GoString() string
- func (s *CallAnalyticsItem) SetBeginOffsetMillis(v int64) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetConfidence(v float64) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetContent(v string) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetEndOffsetMillis(v int64) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetStable(v bool) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetType(v string) *CallAnalyticsItem
- func (s *CallAnalyticsItem) SetVocabularyFilterMatch(v bool) *CallAnalyticsItem
- func (s CallAnalyticsItem) String() string
- type CallAnalyticsTranscriptResultStreamEvent
- type CallAnalyticsTranscriptResultStreamReader
- type CallAnalyticsTranscriptResultStreamUnknownEvent
- type CategoryEvent
- func (s CategoryEvent) GoString() string
- func (s *CategoryEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *CategoryEvent) SetMatchedCategories(v []*string) *CategoryEvent
- func (s *CategoryEvent) SetMatchedDetails(v map[string]*PointsOfInterest) *CategoryEvent
- func (s CategoryEvent) String() string
- func (s *CategoryEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ChannelDefinition
- type CharacterOffsets
- type ConfigurationEvent
- func (s ConfigurationEvent) GoString() string
- func (s *ConfigurationEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ConfigurationEvent) SetChannelDefinitions(v []*ChannelDefinition) *ConfigurationEvent
- func (s *ConfigurationEvent) SetPostCallAnalyticsSettings(v *PostCallAnalyticsSettings) *ConfigurationEvent
- func (s ConfigurationEvent) String() string
- func (s *ConfigurationEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ConflictException
- func (s *ConflictException) Code() string
- func (s *ConflictException) Error() string
- func (s ConflictException) GoString() string
- func (s *ConflictException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ConflictException) Message() string
- func (s *ConflictException) OrigErr() error
- func (s *ConflictException) RequestID() string
- func (s *ConflictException) StatusCode() int
- func (s ConflictException) String() string
- func (s *ConflictException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type Entity
- func (s Entity) GoString() string
- func (s *Entity) SetCategory(v string) *Entity
- func (s *Entity) SetConfidence(v float64) *Entity
- func (s *Entity) SetContent(v string) *Entity
- func (s *Entity) SetEndTime(v float64) *Entity
- func (s *Entity) SetStartTime(v float64) *Entity
- func (s *Entity) SetType(v string) *Entity
- func (s Entity) String() string
- type InternalFailureException
- func (s *InternalFailureException) Code() string
- func (s *InternalFailureException) Error() string
- func (s InternalFailureException) GoString() string
- func (s *InternalFailureException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *InternalFailureException) Message() string
- func (s *InternalFailureException) OrigErr() error
- func (s *InternalFailureException) RequestID() string
- func (s *InternalFailureException) StatusCode() int
- func (s InternalFailureException) String() string
- func (s *InternalFailureException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type IssueDetected
- type Item
- func (s Item) GoString() string
- func (s *Item) SetConfidence(v float64) *Item
- func (s *Item) SetContent(v string) *Item
- func (s *Item) SetEndTime(v float64) *Item
- func (s *Item) SetSpeaker(v string) *Item
- func (s *Item) SetStable(v bool) *Item
- func (s *Item) SetStartTime(v float64) *Item
- func (s *Item) SetType(v string) *Item
- func (s *Item) SetVocabularyFilterMatch(v bool) *Item
- func (s Item) String() string
- type LanguageWithScore
- type LimitExceededException
- func (s *LimitExceededException) Code() string
- func (s *LimitExceededException) Error() string
- func (s LimitExceededException) GoString() string
- func (s *LimitExceededException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *LimitExceededException) Message() string
- func (s *LimitExceededException) OrigErr() error
- func (s *LimitExceededException) RequestID() string
- func (s *LimitExceededException) StatusCode() int
- func (s LimitExceededException) String() string
- func (s *LimitExceededException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type MedicalAlternative
- func (s MedicalAlternative) GoString() string
- func (s *MedicalAlternative) SetEntities(v []*MedicalEntity) *MedicalAlternative
- func (s *MedicalAlternative) SetItems(v []*MedicalItem) *MedicalAlternative
- func (s *MedicalAlternative) SetTranscript(v string) *MedicalAlternative
- func (s MedicalAlternative) String() string
- type MedicalEntity
- func (s MedicalEntity) GoString() string
- func (s *MedicalEntity) SetCategory(v string) *MedicalEntity
- func (s *MedicalEntity) SetConfidence(v float64) *MedicalEntity
- func (s *MedicalEntity) SetContent(v string) *MedicalEntity
- func (s *MedicalEntity) SetEndTime(v float64) *MedicalEntity
- func (s *MedicalEntity) SetStartTime(v float64) *MedicalEntity
- func (s MedicalEntity) String() string
- type MedicalItem
- func (s MedicalItem) GoString() string
- func (s *MedicalItem) SetConfidence(v float64) *MedicalItem
- func (s *MedicalItem) SetContent(v string) *MedicalItem
- func (s *MedicalItem) SetEndTime(v float64) *MedicalItem
- func (s *MedicalItem) SetSpeaker(v string) *MedicalItem
- func (s *MedicalItem) SetStartTime(v float64) *MedicalItem
- func (s *MedicalItem) SetType(v string) *MedicalItem
- func (s MedicalItem) String() string
- type MedicalResult
- func (s MedicalResult) GoString() string
- func (s *MedicalResult) SetAlternatives(v []*MedicalAlternative) *MedicalResult
- func (s *MedicalResult) SetChannelId(v string) *MedicalResult
- func (s *MedicalResult) SetEndTime(v float64) *MedicalResult
- func (s *MedicalResult) SetIsPartial(v bool) *MedicalResult
- func (s *MedicalResult) SetResultId(v string) *MedicalResult
- func (s *MedicalResult) SetStartTime(v float64) *MedicalResult
- func (s MedicalResult) String() string
- type MedicalTranscript
- type MedicalTranscriptEvent
- func (s MedicalTranscriptEvent) GoString() string
- func (s *MedicalTranscriptEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *MedicalTranscriptEvent) SetTranscript(v *MedicalTranscript) *MedicalTranscriptEvent
- func (s MedicalTranscriptEvent) String() string
- func (s *MedicalTranscriptEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type MedicalTranscriptResultStreamEvent
- type MedicalTranscriptResultStreamReader
- type MedicalTranscriptResultStreamUnknownEvent
- type PointsOfInterest
- type PostCallAnalyticsSettings
- func (s PostCallAnalyticsSettings) GoString() string
- func (s *PostCallAnalyticsSettings) SetContentRedactionOutput(v string) *PostCallAnalyticsSettings
- func (s *PostCallAnalyticsSettings) SetDataAccessRoleArn(v string) *PostCallAnalyticsSettings
- func (s *PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId(v string) *PostCallAnalyticsSettings
- func (s *PostCallAnalyticsSettings) SetOutputLocation(v string) *PostCallAnalyticsSettings
- func (s PostCallAnalyticsSettings) String() string
- type Result
- func (s Result) GoString() string
- func (s *Result) SetAlternatives(v []*Alternative) *Result
- func (s *Result) SetChannelId(v string) *Result
- func (s *Result) SetEndTime(v float64) *Result
- func (s *Result) SetIsPartial(v bool) *Result
- func (s *Result) SetLanguageCode(v string) *Result
- func (s *Result) SetLanguageIdentification(v []*LanguageWithScore) *Result
- func (s *Result) SetResultId(v string) *Result
- func (s *Result) SetStartTime(v float64) *Result
- func (s Result) String() string
- type ServiceUnavailableException
- func (s *ServiceUnavailableException) Code() string
- func (s *ServiceUnavailableException) Error() string
- func (s ServiceUnavailableException) GoString() string
- func (s *ServiceUnavailableException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ServiceUnavailableException) Message() string
- func (s *ServiceUnavailableException) OrigErr() error
- func (s *ServiceUnavailableException) RequestID() string
- func (s *ServiceUnavailableException) StatusCode() int
- func (s ServiceUnavailableException) String() string
- func (s *ServiceUnavailableException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type StartCallAnalyticsStreamTranscriptionEventStream
- func (es *StartCallAnalyticsStreamTranscriptionEventStream) Close() (err error)
- func (es *StartCallAnalyticsStreamTranscriptionEventStream) Err() error
- func (es *StartCallAnalyticsStreamTranscriptionEventStream) Events() <-chan CallAnalyticsTranscriptResultStreamEvent
- func (es *StartCallAnalyticsStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
- type StartCallAnalyticsStreamTranscriptionInput
- func (s StartCallAnalyticsStreamTranscriptionInput) GoString() string
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetContentIdentificationType(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetContentRedactionType(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetEnablePartialResultsStabilization(v bool) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetLanguageCode(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetLanguageModelName(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetMediaEncoding(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetPartialResultsStability(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetPiiEntityTypes(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetSessionId(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterMethod(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterName(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyName(v string) *StartCallAnalyticsStreamTranscriptionInput
- func (s StartCallAnalyticsStreamTranscriptionInput) String() string
- func (s *StartCallAnalyticsStreamTranscriptionInput) Validate() error
- type StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) GetStream() *StartCallAnalyticsStreamTranscriptionEventStream
- func (s StartCallAnalyticsStreamTranscriptionOutput) GoString() string
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetContentRedactionType(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetEnablePartialResultsStabilization(v bool) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetLanguageCode(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetLanguageModelName(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetMediaEncoding(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetPartialResultsStability(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetPiiEntityTypes(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetRequestId(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetSessionId(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterMethod(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterName(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyName(v string) *StartCallAnalyticsStreamTranscriptionOutput
- func (s StartCallAnalyticsStreamTranscriptionOutput) String() string
- type StartMedicalStreamTranscriptionEventStream
- func (es *StartMedicalStreamTranscriptionEventStream) Close() (err error)
- func (es *StartMedicalStreamTranscriptionEventStream) Err() error
- func (es *StartMedicalStreamTranscriptionEventStream) Events() <-chan MedicalTranscriptResultStreamEvent
- func (es *StartMedicalStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
- type StartMedicalStreamTranscriptionInput
- func (s StartMedicalStreamTranscriptionInput) GoString() string
- func (s *StartMedicalStreamTranscriptionInput) SetContentIdentificationType(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetEnableChannelIdentification(v bool) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetLanguageCode(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetMediaEncoding(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetNumberOfChannels(v int64) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetSessionId(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetShowSpeakerLabel(v bool) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetSpecialty(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetType(v string) *StartMedicalStreamTranscriptionInput
- func (s *StartMedicalStreamTranscriptionInput) SetVocabularyName(v string) *StartMedicalStreamTranscriptionInput
- func (s StartMedicalStreamTranscriptionInput) String() string
- func (s *StartMedicalStreamTranscriptionInput) Validate() error
- type StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) GetStream() *StartMedicalStreamTranscriptionEventStream
- func (s StartMedicalStreamTranscriptionOutput) GoString() string
- func (s *StartMedicalStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetEnableChannelIdentification(v bool) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetLanguageCode(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetMediaEncoding(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetNumberOfChannels(v int64) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetRequestId(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetSessionId(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetShowSpeakerLabel(v bool) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetSpecialty(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetType(v string) *StartMedicalStreamTranscriptionOutput
- func (s *StartMedicalStreamTranscriptionOutput) SetVocabularyName(v string) *StartMedicalStreamTranscriptionOutput
- func (s StartMedicalStreamTranscriptionOutput) String() string
- type StartStreamTranscriptionEventStream
- func (es *StartStreamTranscriptionEventStream) Close() (err error)
- func (es *StartStreamTranscriptionEventStream) Err() error
- func (es *StartStreamTranscriptionEventStream) Events() <-chan TranscriptResultStreamEvent
- func (es *StartStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
- type StartStreamTranscriptionInput
- func (s StartStreamTranscriptionInput) GoString() string
- func (s *StartStreamTranscriptionInput) SetContentIdentificationType(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetContentRedactionType(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetEnableChannelIdentification(v bool) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetEnablePartialResultsStabilization(v bool) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetIdentifyLanguage(v bool) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetIdentifyMultipleLanguages(v bool) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetLanguageCode(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetLanguageModelName(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetLanguageOptions(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetMediaEncoding(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetNumberOfChannels(v int64) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetPartialResultsStability(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetPiiEntityTypes(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetPreferredLanguage(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetSessionId(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetShowSpeakerLabel(v bool) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetVocabularyFilterMethod(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetVocabularyFilterName(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetVocabularyFilterNames(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetVocabularyName(v string) *StartStreamTranscriptionInput
- func (s *StartStreamTranscriptionInput) SetVocabularyNames(v string) *StartStreamTranscriptionInput
- func (s StartStreamTranscriptionInput) String() string
- func (s *StartStreamTranscriptionInput) Validate() error
- type StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) GetStream() *StartStreamTranscriptionEventStream
- func (s StartStreamTranscriptionOutput) GoString() string
- func (s *StartStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetContentRedactionType(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetEnableChannelIdentification(v bool) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetEnablePartialResultsStabilization(v bool) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetIdentifyLanguage(v bool) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetIdentifyMultipleLanguages(v bool) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetLanguageCode(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetLanguageModelName(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetLanguageOptions(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetMediaEncoding(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetNumberOfChannels(v int64) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetPartialResultsStability(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetPiiEntityTypes(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetPreferredLanguage(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetRequestId(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetSessionId(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetShowSpeakerLabel(v bool) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetVocabularyFilterMethod(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetVocabularyFilterName(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetVocabularyFilterNames(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetVocabularyName(v string) *StartStreamTranscriptionOutput
- func (s *StartStreamTranscriptionOutput) SetVocabularyNames(v string) *StartStreamTranscriptionOutput
- func (s StartStreamTranscriptionOutput) String() string
- type TimestampRange
- type TranscribeStreamingService
- func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscription(input *StartCallAnalyticsStreamTranscriptionInput) (*StartCallAnalyticsStreamTranscriptionOutput, error)
- func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionRequest(input *StartCallAnalyticsStreamTranscriptionInput) (req *request.Request, output *StartCallAnalyticsStreamTranscriptionOutput)
- func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionWithContext(ctx aws.Context, input *StartCallAnalyticsStreamTranscriptionInput, ...) (*StartCallAnalyticsStreamTranscriptionOutput, error)
- func (c *TranscribeStreamingService) StartMedicalStreamTranscription(input *StartMedicalStreamTranscriptionInput) (*StartMedicalStreamTranscriptionOutput, error)
- func (c *TranscribeStreamingService) StartMedicalStreamTranscriptionRequest(input *StartMedicalStreamTranscriptionInput) (req *request.Request, output *StartMedicalStreamTranscriptionOutput)
- func (c *TranscribeStreamingService) StartMedicalStreamTranscriptionWithContext(ctx aws.Context, input *StartMedicalStreamTranscriptionInput, ...) (*StartMedicalStreamTranscriptionOutput, error)
- func (c *TranscribeStreamingService) StartStreamTranscription(input *StartStreamTranscriptionInput) (*StartStreamTranscriptionOutput, error)
- func (c *TranscribeStreamingService) StartStreamTranscriptionRequest(input *StartStreamTranscriptionInput) (req *request.Request, output *StartStreamTranscriptionOutput)
- func (c *TranscribeStreamingService) StartStreamTranscriptionWithContext(ctx aws.Context, input *StartStreamTranscriptionInput, opts ...request.Option) (*StartStreamTranscriptionOutput, error)
- type Transcript
- type TranscriptEvent
- func (s TranscriptEvent) GoString() string
- func (s *TranscriptEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *TranscriptEvent) SetTranscript(v *Transcript) *TranscriptEvent
- func (s TranscriptEvent) String() string
- func (s *TranscriptEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type TranscriptResultStreamEvent
- type TranscriptResultStreamReader
- type TranscriptResultStreamUnknownEvent
- type UtteranceEvent
- func (s UtteranceEvent) GoString() string
- func (s *UtteranceEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *UtteranceEvent) SetBeginOffsetMillis(v int64) *UtteranceEvent
- func (s *UtteranceEvent) SetEndOffsetMillis(v int64) *UtteranceEvent
- func (s *UtteranceEvent) SetEntities(v []*CallAnalyticsEntity) *UtteranceEvent
- func (s *UtteranceEvent) SetIsPartial(v bool) *UtteranceEvent
- func (s *UtteranceEvent) SetIssuesDetected(v []*IssueDetected) *UtteranceEvent
- func (s *UtteranceEvent) SetItems(v []*CallAnalyticsItem) *UtteranceEvent
- func (s *UtteranceEvent) SetParticipantRole(v string) *UtteranceEvent
- func (s *UtteranceEvent) SetSentiment(v string) *UtteranceEvent
- func (s *UtteranceEvent) SetTranscript(v string) *UtteranceEvent
- func (s *UtteranceEvent) SetUtteranceId(v string) *UtteranceEvent
- func (s UtteranceEvent) String() string
- func (s *UtteranceEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
Examples ¶
Constants ¶
const ( // CallAnalyticsLanguageCodeEnUs is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeEnUs = "en-US" // CallAnalyticsLanguageCodeEnGb is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeEnGb = "en-GB" // CallAnalyticsLanguageCodeEsUs is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeEsUs = "es-US" // CallAnalyticsLanguageCodeFrCa is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeFrCa = "fr-CA" // CallAnalyticsLanguageCodeFrFr is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeFrFr = "fr-FR" // CallAnalyticsLanguageCodeEnAu is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeEnAu = "en-AU" // CallAnalyticsLanguageCodeItIt is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeItIt = "it-IT" // CallAnalyticsLanguageCodeDeDe is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodeDeDe = "de-DE" // CallAnalyticsLanguageCodePtBr is a CallAnalyticsLanguageCode enum value CallAnalyticsLanguageCodePtBr = "pt-BR" )
const ( // ContentRedactionOutputRedacted is a ContentRedactionOutput_ enum value ContentRedactionOutputRedacted = "redacted" // ContentRedactionOutputRedactedAndUnredacted is a ContentRedactionOutput_ enum value ContentRedactionOutputRedactedAndUnredacted = "redacted_and_unredacted" )
const ( // ItemTypePronunciation is a ItemType enum value ItemTypePronunciation = "pronunciation" // ItemTypePunctuation is a ItemType enum value ItemTypePunctuation = "punctuation" )
const ( // LanguageCodeEnUs is a LanguageCode enum value LanguageCodeEnUs = "en-US" // LanguageCodeEnGb is a LanguageCode enum value LanguageCodeEnGb = "en-GB" // LanguageCodeEsUs is a LanguageCode enum value LanguageCodeEsUs = "es-US" // LanguageCodeFrCa is a LanguageCode enum value LanguageCodeFrCa = "fr-CA" // LanguageCodeFrFr is a LanguageCode enum value LanguageCodeFrFr = "fr-FR" // LanguageCodeEnAu is a LanguageCode enum value LanguageCodeEnAu = "en-AU" // LanguageCodeItIt is a LanguageCode enum value LanguageCodeItIt = "it-IT" // LanguageCodeDeDe is a LanguageCode enum value LanguageCodeDeDe = "de-DE" // LanguageCodePtBr is a LanguageCode enum value LanguageCodePtBr = "pt-BR" // LanguageCodeJaJp is a LanguageCode enum value LanguageCodeJaJp = "ja-JP" // LanguageCodeKoKr is a LanguageCode enum value LanguageCodeKoKr = "ko-KR" // LanguageCodeZhCn is a LanguageCode enum value LanguageCodeZhCn = "zh-CN" // LanguageCodeHiIn is a LanguageCode enum value LanguageCodeHiIn = "hi-IN" // LanguageCodeThTh is a LanguageCode enum value LanguageCodeThTh = "th-TH" )
const ( // MediaEncodingPcm is a MediaEncoding enum value MediaEncodingPcm = "pcm" // MediaEncodingOggOpus is a MediaEncoding enum value MediaEncodingOggOpus = "ogg-opus" // MediaEncodingFlac is a MediaEncoding enum value MediaEncodingFlac = "flac" )
const ( // PartialResultsStabilityHigh is a PartialResultsStability enum value PartialResultsStabilityHigh = "high" // PartialResultsStabilityMedium is a PartialResultsStability enum value PartialResultsStabilityMedium = "medium" // PartialResultsStabilityLow is a PartialResultsStability enum value PartialResultsStabilityLow = "low" )
const ( // ParticipantRoleAgent is a ParticipantRole enum value ParticipantRoleAgent = "AGENT" // ParticipantRoleCustomer is a ParticipantRole enum value ParticipantRoleCustomer = "CUSTOMER" )
const ( // SentimentPositive is a Sentiment enum value SentimentPositive = "POSITIVE" // SentimentNegative is a Sentiment enum value SentimentNegative = "NEGATIVE" // SentimentMixed is a Sentiment enum value SentimentMixed = "MIXED" // SentimentNeutral is a Sentiment enum value SentimentNeutral = "NEUTRAL" )
const ( // SpecialtyPrimarycare is a Specialty enum value SpecialtyPrimarycare = "PRIMARYCARE" // SpecialtyCardiology is a Specialty enum value SpecialtyCardiology = "CARDIOLOGY" // SpecialtyNeurology is a Specialty enum value SpecialtyNeurology = "NEUROLOGY" // SpecialtyOncology is a Specialty enum value SpecialtyOncology = "ONCOLOGY" // SpecialtyRadiology is a Specialty enum value SpecialtyRadiology = "RADIOLOGY" // SpecialtyUrology is a Specialty enum value SpecialtyUrology = "UROLOGY" )
const ( // TypeConversation is a Type enum value TypeConversation = "CONVERSATION" // TypeDictation is a Type enum value TypeDictation = "DICTATION" )
const ( // VocabularyFilterMethodRemove is a VocabularyFilterMethod enum value VocabularyFilterMethodRemove = "remove" // VocabularyFilterMethodMask is a VocabularyFilterMethod enum value VocabularyFilterMethodMask = "mask" // VocabularyFilterMethodTag is a VocabularyFilterMethod enum value VocabularyFilterMethodTag = "tag" )
const ( // ErrCodeBadRequestException for service response error code // "BadRequestException". // // One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, // or StartCallAnalyticsStreamTranscription operation was not valid. For example, // MediaEncoding or LanguageCode used not valid values. Check the specified // parameters and try your request again. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConflictException for service response error code // "ConflictException". // // A new stream started with the same session ID. The current stream has been // terminated. ErrCodeConflictException = "ConflictException" // ErrCodeInternalFailureException for service response error code // "InternalFailureException". // // A problem occurred while processing the audio. Amazon Transcribe terminated // processing. ErrCodeInternalFailureException = "InternalFailureException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // Your client has exceeded one of the Amazon Transcribe limits. This is typically // the audio length limit. Break your audio stream into smaller chunks and try // your request again. ErrCodeLimitExceededException = "LimitExceededException" // "ServiceUnavailableException". // // The service is currently unavailable. Try your request later. ErrCodeServiceUnavailableException = "ServiceUnavailableException" )
const ( ServiceName = "Transcribe Streaming" // Name of service. EndpointsID = "transcribestreaming" // ID to lookup a service endpoint with. ServiceID = "Transcribe Streaming" // ServiceID is a unique identifier of a specific service. )
Service information constants
const (
// ContentIdentificationTypePii is a ContentIdentificationType enum value
ContentIdentificationTypePii = "PII"
)
const (
// ContentRedactionTypePii is a ContentRedactionType enum value
ContentRedactionTypePii = "PII"
)
const (
// MedicalContentIdentificationTypePhi is a MedicalContentIdentificationType enum value
MedicalContentIdentificationTypePhi = "PHI"
)
Variables ¶
This section is empty.
Functions ¶
func CallAnalyticsLanguageCode_Values ¶ added in v1.44.146
func CallAnalyticsLanguageCode_Values() []string
CallAnalyticsLanguageCode_Values returns all elements of the CallAnalyticsLanguageCode enum
func ContentIdentificationType_Values ¶ added in v1.40.43
func ContentIdentificationType_Values() []string
ContentIdentificationType_Values returns all elements of the ContentIdentificationType enum
func ContentRedactionOutput__Values ¶ added in v1.44.146
func ContentRedactionOutput__Values() []string
ContentRedactionOutput__Values returns all elements of the ContentRedactionOutput_ enum
func ContentRedactionType_Values ¶ added in v1.40.43
func ContentRedactionType_Values() []string
ContentRedactionType_Values returns all elements of the ContentRedactionType enum
func ItemType_Values ¶ added in v1.34.3
func ItemType_Values() []string
ItemType_Values returns all elements of the ItemType enum
func LanguageCode_Values ¶ added in v1.34.3
func LanguageCode_Values() []string
LanguageCode_Values returns all elements of the LanguageCode enum
func MediaEncoding_Values ¶ added in v1.34.3
func MediaEncoding_Values() []string
MediaEncoding_Values returns all elements of the MediaEncoding enum
func MedicalContentIdentificationType_Values ¶ added in v1.37.1
func MedicalContentIdentificationType_Values() []string
MedicalContentIdentificationType_Values returns all elements of the MedicalContentIdentificationType enum
func PartialResultsStability_Values ¶ added in v1.38.38
func PartialResultsStability_Values() []string
PartialResultsStability_Values returns all elements of the PartialResultsStability enum
func ParticipantRole_Values ¶ added in v1.44.146
func ParticipantRole_Values() []string
ParticipantRole_Values returns all elements of the ParticipantRole enum
func Sentiment_Values ¶ added in v1.44.146
func Sentiment_Values() []string
Sentiment_Values returns all elements of the Sentiment enum
func Specialty_Values ¶ added in v1.35.35
func Specialty_Values() []string
Specialty_Values returns all elements of the Specialty enum
func StreamAudioFromReader ¶
func StreamAudioFromReader(ctx aws.Context, stream AudioStreamWriter, frameSize int, input io.Reader) (err error)
StreamAudioFromReader will stream bytes from the provided input io.Reader to the AudioStreamWriter in chunks of frameSize in length. Returns an error if streaming to AudioStreamWriter fails.
func Type_Values ¶ added in v1.35.35
func Type_Values() []string
Type_Values returns all elements of the Type enum
func VocabularyFilterMethod_Values ¶ added in v1.34.3
func VocabularyFilterMethod_Values() []string
VocabularyFilterMethod_Values returns all elements of the VocabularyFilterMethod enum
Types ¶
type Alternative ¶
type Alternative struct { // Contains entities identified as personally identifiable information (PII) // in your transcription output. Entities []*Entity `type:"list"` // Contains words, phrases, or punctuation marks in your transcription output. Items []*Item `type:"list"` // Contains transcribed text. Transcript *string `type:"string"` // contains filtered or unexported fields }
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.
func (Alternative) GoString ¶
func (s Alternative) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Alternative) SetEntities ¶ added in v1.40.43
func (s *Alternative) SetEntities(v []*Entity) *Alternative
SetEntities sets the Entities field's value.
func (*Alternative) SetItems ¶
func (s *Alternative) SetItems(v []*Item) *Alternative
SetItems sets the Items field's value.
func (*Alternative) SetTranscript ¶
func (s *Alternative) SetTranscript(v string) *Alternative
SetTranscript sets the Transcript field's value.
func (Alternative) String ¶
func (s Alternative) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AudioEvent ¶
type AudioEvent struct { // An audio blob that contains the next part of the audio that you want to transcribe. // The maximum audio chunk size is 32 KB. // AudioChunk is automatically base64 encoded/decoded by the SDK. AudioChunk []byte `type:"blob"` // contains filtered or unexported fields }
A wrapper for your audio chunks. Your audio stream consists of one or more audio events, which consist of one or more audio chunks.
For more information, see Event stream encoding (https://docs.aws.amazon.com/transcribe/latest/dg/event-stream.html).
func (AudioEvent) GoString ¶
func (s AudioEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*AudioEvent) MarshalEvent ¶
func (s *AudioEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*AudioEvent) SetAudioChunk ¶
func (s *AudioEvent) SetAudioChunk(v []byte) *AudioEvent
SetAudioChunk sets the AudioChunk field's value.
func (AudioEvent) String ¶
func (s AudioEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*AudioEvent) UnmarshalEvent ¶
func (s *AudioEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the AudioEvent value. This method is only used internally within the SDK's EventStream handling.
type AudioStreamEvent ¶
type AudioStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
AudioStreamEvent groups together all EventStream events writes for AudioStream.
These events are:
- AudioEvent
- ConfigurationEvent
type AudioStreamWriter ¶
type AudioStreamWriter interface { // Sends writes events to the stream blocking until the event has been // written. An error is returned if the write fails. Send(aws.Context, AudioStreamEvent) error // Close will stop the writer writing to the event stream. Close() error // Returns any error that has occurred while writing to the event stream. Err() error }
AudioStreamWriter provides the interface for writing events to the stream. The default implementation for this interface will be AudioStream.
The writer's Close method must allow multiple concurrent calls.
These events are:
- AudioEvent
- ConfigurationEvent
type BadRequestException ¶
type BadRequestException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again.
func (*BadRequestException) Code ¶
func (s *BadRequestException) Code() string
Code returns the exception type name.
func (*BadRequestException) Error ¶
func (s *BadRequestException) Error() string
func (BadRequestException) GoString ¶
func (s BadRequestException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*BadRequestException) MarshalEvent ¶
func (s *BadRequestException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*BadRequestException) Message ¶
func (s *BadRequestException) Message() string
Message returns the exception's message.
func (*BadRequestException) OrigErr ¶
func (s *BadRequestException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*BadRequestException) RequestID ¶ added in v1.28.0
func (s *BadRequestException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*BadRequestException) StatusCode ¶ added in v1.28.0
func (s *BadRequestException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (BadRequestException) String ¶
func (s BadRequestException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*BadRequestException) UnmarshalEvent ¶
func (s *BadRequestException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the BadRequestException value. This method is only used internally within the SDK's EventStream handling.
type CallAnalyticsEntity ¶ added in v1.44.146
type CallAnalyticsEntity struct { // The time, in milliseconds, from the beginning of the audio stream to the // start of the identified entity. BeginOffsetMillis *int64 `type:"long"` // The category of information identified. For example, PII. Category *string `type:"string"` // The confidence score associated with the identification of an entity in your // transcript. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified entity correctly matches the entity // spoken in your media. Confidence *float64 `type:"double"` // The word or words that represent the identified entity. Content *string `type:"string"` // The time, in milliseconds, from the beginning of the audio stream to the // end of the identified entity. EndOffsetMillis *int64 `type:"long"` // The type of PII identified. For example, NAME or CREDIT_DEBIT_NUMBER. Type *string `type:"string"` // contains filtered or unexported fields }
Contains entities identified as personally identifiable information (PII) in your transcription output, along with various associated attributes. Examples include category, confidence score, content, type, and start and end times.
func (CallAnalyticsEntity) GoString ¶ added in v1.44.146
func (s CallAnalyticsEntity) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CallAnalyticsEntity) SetBeginOffsetMillis ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetBeginOffsetMillis(v int64) *CallAnalyticsEntity
SetBeginOffsetMillis sets the BeginOffsetMillis field's value.
func (*CallAnalyticsEntity) SetCategory ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetCategory(v string) *CallAnalyticsEntity
SetCategory sets the Category field's value.
func (*CallAnalyticsEntity) SetConfidence ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetConfidence(v float64) *CallAnalyticsEntity
SetConfidence sets the Confidence field's value.
func (*CallAnalyticsEntity) SetContent ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetContent(v string) *CallAnalyticsEntity
SetContent sets the Content field's value.
func (*CallAnalyticsEntity) SetEndOffsetMillis ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetEndOffsetMillis(v int64) *CallAnalyticsEntity
SetEndOffsetMillis sets the EndOffsetMillis field's value.
func (*CallAnalyticsEntity) SetType ¶ added in v1.44.146
func (s *CallAnalyticsEntity) SetType(v string) *CallAnalyticsEntity
SetType sets the Type field's value.
func (CallAnalyticsEntity) String ¶ added in v1.44.146
func (s CallAnalyticsEntity) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CallAnalyticsItem ¶ added in v1.44.146
type CallAnalyticsItem struct { // The time, in milliseconds, from the beginning of the audio stream to the // start of the identified item. BeginOffsetMillis *int64 `type:"long"` // The confidence score associated with a word or phrase in your transcript. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified item correctly matches the item spoken // in your media. Confidence *float64 `type:"double"` // The word or punctuation that was transcribed. Content *string `type:"string"` // The time, in milliseconds, from the beginning of the audio stream to the // end of the identified item. EndOffsetMillis *int64 `type:"long"` // If partial result stabilization is enabled, Stable indicates whether the // specified item is stable (true) or if it may change when the segment is complete // (false). Stable *bool `type:"boolean"` // The type of item identified. Options are: PRONUNCIATION (spoken words) and // PUNCTUATION. Type *string `type:"string" enum:"ItemType"` // Indicates whether the specified item matches a word in the vocabulary filter // included in your Call Analytics request. If true, there is a vocabulary filter // match. VocabularyFilterMatch *bool `type:"boolean"` // contains filtered or unexported fields }
A word, phrase, or punctuation mark in your Call Analytics transcription output, along with various associated attributes, such as confidence score, type, and start and end times.
func (CallAnalyticsItem) GoString ¶ added in v1.44.146
func (s CallAnalyticsItem) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CallAnalyticsItem) SetBeginOffsetMillis ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetBeginOffsetMillis(v int64) *CallAnalyticsItem
SetBeginOffsetMillis sets the BeginOffsetMillis field's value.
func (*CallAnalyticsItem) SetConfidence ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetConfidence(v float64) *CallAnalyticsItem
SetConfidence sets the Confidence field's value.
func (*CallAnalyticsItem) SetContent ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetContent(v string) *CallAnalyticsItem
SetContent sets the Content field's value.
func (*CallAnalyticsItem) SetEndOffsetMillis ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetEndOffsetMillis(v int64) *CallAnalyticsItem
SetEndOffsetMillis sets the EndOffsetMillis field's value.
func (*CallAnalyticsItem) SetStable ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetStable(v bool) *CallAnalyticsItem
SetStable sets the Stable field's value.
func (*CallAnalyticsItem) SetType ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetType(v string) *CallAnalyticsItem
SetType sets the Type field's value.
func (*CallAnalyticsItem) SetVocabularyFilterMatch ¶ added in v1.44.146
func (s *CallAnalyticsItem) SetVocabularyFilterMatch(v bool) *CallAnalyticsItem
SetVocabularyFilterMatch sets the VocabularyFilterMatch field's value.
func (CallAnalyticsItem) String ¶ added in v1.44.146
func (s CallAnalyticsItem) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CallAnalyticsTranscriptResultStreamEvent ¶ added in v1.44.146
type CallAnalyticsTranscriptResultStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
CallAnalyticsTranscriptResultStreamEvent groups together all EventStream events writes for CallAnalyticsTranscriptResultStream.
These events are:
- CategoryEvent
- UtteranceEvent
type CallAnalyticsTranscriptResultStreamReader ¶ added in v1.44.146
type CallAnalyticsTranscriptResultStreamReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan CallAnalyticsTranscriptResultStreamEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
CallAnalyticsTranscriptResultStreamReader provides the interface for reading to the stream. The default implementation for this interface will be CallAnalyticsTranscriptResultStream.
The reader's Close method must allow multiple concurrent calls.
These events are:
- CategoryEvent
- UtteranceEvent
- CallAnalyticsTranscriptResultStreamUnknownEvent
type CallAnalyticsTranscriptResultStreamUnknownEvent ¶ added in v1.44.146
type CallAnalyticsTranscriptResultStreamUnknownEvent struct { Type string Message eventstream.Message }
CallAnalyticsTranscriptResultStreamUnknownEvent provides a failsafe event for the CallAnalyticsTranscriptResultStream group of events when an unknown event is received.
func (*CallAnalyticsTranscriptResultStreamUnknownEvent) MarshalEvent ¶ added in v1.44.146
func (e *CallAnalyticsTranscriptResultStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*CallAnalyticsTranscriptResultStreamUnknownEvent) UnmarshalEvent ¶ added in v1.44.146
func (e *CallAnalyticsTranscriptResultStreamUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the CallAnalyticsTranscriptResultStream value. This method is only used internally within the SDK's EventStream handling.
type CategoryEvent ¶ added in v1.44.146
type CategoryEvent struct { // Lists the categories that were matched in your audio segment. MatchedCategories []*string `type:"list"` // Contains information about the matched categories, including category names // and timestamps. MatchedDetails map[string]*PointsOfInterest `type:"map"` // contains filtered or unexported fields }
Provides information on any TranscriptFilterType categories that matched your transcription output. Matches are identified for each segment upon completion of that segment.
func (CategoryEvent) GoString ¶ added in v1.44.146
func (s CategoryEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CategoryEvent) MarshalEvent ¶ added in v1.44.146
func (s *CategoryEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*CategoryEvent) SetMatchedCategories ¶ added in v1.44.146
func (s *CategoryEvent) SetMatchedCategories(v []*string) *CategoryEvent
SetMatchedCategories sets the MatchedCategories field's value.
func (*CategoryEvent) SetMatchedDetails ¶ added in v1.44.146
func (s *CategoryEvent) SetMatchedDetails(v map[string]*PointsOfInterest) *CategoryEvent
SetMatchedDetails sets the MatchedDetails field's value.
func (CategoryEvent) String ¶ added in v1.44.146
func (s CategoryEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CategoryEvent) UnmarshalEvent ¶ added in v1.44.146
func (s *CategoryEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the CategoryEvent value. This method is only used internally within the SDK's EventStream handling.
type ChannelDefinition ¶ added in v1.44.146
type ChannelDefinition struct { // Specify the audio channel you want to define. // // ChannelId is a required field ChannelId *int64 `type:"integer" required:"true"` // Specify the speaker you want to define. Omitting this parameter is equivalent // to specifying both participants. // // ParticipantRole is a required field ParticipantRole *string `type:"string" required:"true" enum:"ParticipantRole"` // contains filtered or unexported fields }
Makes it possible to specify which speaker is on which audio channel. For example, if your agent is the first participant to speak, you would set ChannelId to 0 (to indicate the first channel) and ParticipantRole to AGENT (to indicate that it's the agent speaking).
func (ChannelDefinition) GoString ¶ added in v1.44.146
func (s ChannelDefinition) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ChannelDefinition) SetChannelId ¶ added in v1.44.146
func (s *ChannelDefinition) SetChannelId(v int64) *ChannelDefinition
SetChannelId sets the ChannelId field's value.
func (*ChannelDefinition) SetParticipantRole ¶ added in v1.44.146
func (s *ChannelDefinition) SetParticipantRole(v string) *ChannelDefinition
SetParticipantRole sets the ParticipantRole field's value.
func (ChannelDefinition) String ¶ added in v1.44.146
func (s ChannelDefinition) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CharacterOffsets ¶ added in v1.44.146
type CharacterOffsets struct { // Provides the character count of the first character where a match is identified. // For example, the first character associated with an issue or a category match // in a segment transcript. Begin *int64 `type:"integer"` // Provides the character count of the last character where a match is identified. // For example, the last character associated with an issue or a category match // in a segment transcript. End *int64 `type:"integer"` // contains filtered or unexported fields }
Provides the location, using character count, in your transcript where a match is identified. For example, the location of an issue or a category match within a segment.
func (CharacterOffsets) GoString ¶ added in v1.44.146
func (s CharacterOffsets) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CharacterOffsets) SetBegin ¶ added in v1.44.146
func (s *CharacterOffsets) SetBegin(v int64) *CharacterOffsets
SetBegin sets the Begin field's value.
func (*CharacterOffsets) SetEnd ¶ added in v1.44.146
func (s *CharacterOffsets) SetEnd(v int64) *CharacterOffsets
SetEnd sets the End field's value.
func (CharacterOffsets) String ¶ added in v1.44.146
func (s CharacterOffsets) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ConfigurationEvent ¶ added in v1.44.146
type ConfigurationEvent struct { // Indicates which speaker is on which audio channel. ChannelDefinitions []*ChannelDefinition `min:"2" type:"list"` // Provides additional optional settings for your Call Analytics post-call request, // including encryption and output locations for your redacted and unredacted // transcript. PostCallAnalyticsSettings *PostCallAnalyticsSettings `type:"structure"` // contains filtered or unexported fields }
Allows you to set audio channel definitions and post-call analytics settings.
func (ConfigurationEvent) GoString ¶ added in v1.44.146
func (s ConfigurationEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConfigurationEvent) MarshalEvent ¶ added in v1.44.146
func (s *ConfigurationEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ConfigurationEvent) SetChannelDefinitions ¶ added in v1.44.146
func (s *ConfigurationEvent) SetChannelDefinitions(v []*ChannelDefinition) *ConfigurationEvent
SetChannelDefinitions sets the ChannelDefinitions field's value.
func (*ConfigurationEvent) SetPostCallAnalyticsSettings ¶ added in v1.44.146
func (s *ConfigurationEvent) SetPostCallAnalyticsSettings(v *PostCallAnalyticsSettings) *ConfigurationEvent
SetPostCallAnalyticsSettings sets the PostCallAnalyticsSettings field's value.
func (ConfigurationEvent) String ¶ added in v1.44.146
func (s ConfigurationEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConfigurationEvent) UnmarshalEvent ¶ added in v1.44.146
func (s *ConfigurationEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ConfigurationEvent value. This method is only used internally within the SDK's EventStream handling.
type ConflictException ¶
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
A new stream started with the same session ID. The current stream has been terminated.
func (*ConflictException) Code ¶
func (s *ConflictException) Code() string
Code returns the exception type name.
func (*ConflictException) Error ¶
func (s *ConflictException) Error() string
func (ConflictException) GoString ¶
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConflictException) MarshalEvent ¶
func (s *ConflictException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ConflictException) Message ¶
func (s *ConflictException) Message() string
Message returns the exception's message.
func (*ConflictException) OrigErr ¶
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ConflictException) RequestID ¶ added in v1.28.0
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ConflictException) StatusCode ¶ added in v1.28.0
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ConflictException) String ¶
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConflictException) UnmarshalEvent ¶
func (s *ConflictException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ConflictException value. This method is only used internally within the SDK's EventStream handling.
type Entity ¶ added in v1.40.43
type Entity struct { // The category of information identified. The only category is PII. Category *string `type:"string"` // The confidence score associated with the identified PII entity in your audio. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified entity correctly matches the entity // spoken in your media. Confidence *float64 `type:"double"` // The word or words identified as PII. Content *string `type:"string"` // The end time, in milliseconds, of the utterance that was identified as PII. EndTime *float64 `type:"double"` // The start time, in milliseconds, of the utterance that was identified as // PII. StartTime *float64 `type:"double"` // The type of PII identified. For example, NAME or CREDIT_DEBIT_NUMBER. Type *string `type:"string"` // contains filtered or unexported fields }
Contains entities identified as personally identifiable information (PII) in your transcription output, along with various associated attributes. Examples include category, confidence score, type, stability score, and start and end times.
func (Entity) GoString ¶ added in v1.40.43
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Entity) SetCategory ¶ added in v1.40.43
SetCategory sets the Category field's value.
func (*Entity) SetConfidence ¶ added in v1.40.43
SetConfidence sets the Confidence field's value.
func (*Entity) SetContent ¶ added in v1.40.43
SetContent sets the Content field's value.
func (*Entity) SetEndTime ¶ added in v1.40.43
SetEndTime sets the EndTime field's value.
func (*Entity) SetStartTime ¶ added in v1.40.43
SetStartTime sets the StartTime field's value.
type InternalFailureException ¶
type InternalFailureException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
A problem occurred while processing the audio. Amazon Transcribe terminated processing.
func (*InternalFailureException) Code ¶
func (s *InternalFailureException) Code() string
Code returns the exception type name.
func (*InternalFailureException) Error ¶
func (s *InternalFailureException) Error() string
func (InternalFailureException) GoString ¶
func (s InternalFailureException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalFailureException) MarshalEvent ¶
func (s *InternalFailureException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*InternalFailureException) Message ¶
func (s *InternalFailureException) Message() string
Message returns the exception's message.
func (*InternalFailureException) OrigErr ¶
func (s *InternalFailureException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InternalFailureException) RequestID ¶ added in v1.28.0
func (s *InternalFailureException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InternalFailureException) StatusCode ¶ added in v1.28.0
func (s *InternalFailureException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InternalFailureException) String ¶
func (s InternalFailureException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalFailureException) UnmarshalEvent ¶
func (s *InternalFailureException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the InternalFailureException value. This method is only used internally within the SDK's EventStream handling.
type IssueDetected ¶ added in v1.44.146
type IssueDetected struct { // Provides the timestamps that identify when in an audio segment the specified // issue occurs. CharacterOffsets *CharacterOffsets `type:"structure"` // contains filtered or unexported fields }
Lists the issues that were identified in your audio segment.
func (IssueDetected) GoString ¶ added in v1.44.146
func (s IssueDetected) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*IssueDetected) SetCharacterOffsets ¶ added in v1.44.146
func (s *IssueDetected) SetCharacterOffsets(v *CharacterOffsets) *IssueDetected
SetCharacterOffsets sets the CharacterOffsets field's value.
func (IssueDetected) String ¶ added in v1.44.146
func (s IssueDetected) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Item ¶
type Item struct { // The confidence score associated with a word or phrase in your transcript. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified item correctly matches the item spoken // in your media. Confidence *float64 `type:"double"` // The word or punctuation that was transcribed. Content *string `type:"string"` // The end time, in milliseconds, of the transcribed item. EndTime *float64 `type:"double"` // If speaker partitioning is enabled, Speaker labels the speaker of the specified // item. Speaker *string `type:"string"` // If partial result stabilization is enabled, Stable indicates whether the // specified item is stable (true) or if it may change when the segment is complete // (false). Stable *bool `type:"boolean"` // The start time, in milliseconds, of the transcribed item. StartTime *float64 `type:"double"` // The type of item identified. Options are: PRONUNCIATION (spoken words) and // PUNCTUATION. Type *string `type:"string" enum:"ItemType"` // Indicates whether the specified item matches a word in the vocabulary filter // included in your request. If true, there is a vocabulary filter match. VocabularyFilterMatch *bool `type:"boolean"` // contains filtered or unexported fields }
A word, phrase, or punctuation mark in your transcription output, along with various associated attributes, such as confidence score, type, and start and end times.
func (Item) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Item) SetConfidence ¶ added in v1.37.31
SetConfidence sets the Confidence field's value.
func (*Item) SetContent ¶
SetContent sets the Content field's value.
func (*Item) SetEndTime ¶
SetEndTime sets the EndTime field's value.
func (*Item) SetSpeaker ¶ added in v1.34.8
SetSpeaker sets the Speaker field's value.
func (*Item) SetStartTime ¶
SetStartTime sets the StartTime field's value.
func (*Item) SetVocabularyFilterMatch ¶ added in v1.31.2
SetVocabularyFilterMatch sets the VocabularyFilterMatch field's value.
type LanguageWithScore ¶ added in v1.42.10
type LanguageWithScore struct { // The language code of the identified language. LanguageCode *string `type:"string" enum:"LanguageCode"` // The confidence score associated with the identified language code. Confidence // scores are values between zero and one; larger values indicate a higher confidence // in the identified language. Score *float64 `type:"double"` // contains filtered or unexported fields }
The language code that represents the language identified in your audio, including the associated confidence score. If you enabled channel identification in your request and each channel contained a different language, you will have more than one LanguageWithScore result.
func (LanguageWithScore) GoString ¶ added in v1.42.10
func (s LanguageWithScore) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*LanguageWithScore) SetLanguageCode ¶ added in v1.42.10
func (s *LanguageWithScore) SetLanguageCode(v string) *LanguageWithScore
SetLanguageCode sets the LanguageCode field's value.
func (*LanguageWithScore) SetScore ¶ added in v1.42.10
func (s *LanguageWithScore) SetScore(v float64) *LanguageWithScore
SetScore sets the Score field's value.
func (LanguageWithScore) String ¶ added in v1.42.10
func (s LanguageWithScore) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type LimitExceededException ¶
type LimitExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again.
func (*LimitExceededException) Code ¶
func (s *LimitExceededException) Code() string
Code returns the exception type name.
func (*LimitExceededException) Error ¶
func (s *LimitExceededException) Error() string
func (LimitExceededException) GoString ¶
func (s LimitExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*LimitExceededException) MarshalEvent ¶
func (s *LimitExceededException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*LimitExceededException) Message ¶
func (s *LimitExceededException) Message() string
Message returns the exception's message.
func (*LimitExceededException) OrigErr ¶
func (s *LimitExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*LimitExceededException) RequestID ¶ added in v1.28.0
func (s *LimitExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*LimitExceededException) StatusCode ¶ added in v1.28.0
func (s *LimitExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (LimitExceededException) String ¶
func (s LimitExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*LimitExceededException) UnmarshalEvent ¶
func (s *LimitExceededException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the LimitExceededException value. This method is only used internally within the SDK's EventStream handling.
type MedicalAlternative ¶ added in v1.35.35
type MedicalAlternative struct { // Contains entities identified as personal health information (PHI) in your // transcription output. Entities []*MedicalEntity `type:"list"` // Contains words, phrases, or punctuation marks in your transcription output. Items []*MedicalItem `type:"list"` // Contains transcribed text. Transcript *string `type:"string"` // contains filtered or unexported fields }
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.
func (MedicalAlternative) GoString ¶ added in v1.35.35
func (s MedicalAlternative) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalAlternative) SetEntities ¶ added in v1.37.1
func (s *MedicalAlternative) SetEntities(v []*MedicalEntity) *MedicalAlternative
SetEntities sets the Entities field's value.
func (*MedicalAlternative) SetItems ¶ added in v1.35.35
func (s *MedicalAlternative) SetItems(v []*MedicalItem) *MedicalAlternative
SetItems sets the Items field's value.
func (*MedicalAlternative) SetTranscript ¶ added in v1.35.35
func (s *MedicalAlternative) SetTranscript(v string) *MedicalAlternative
SetTranscript sets the Transcript field's value.
func (MedicalAlternative) String ¶ added in v1.35.35
func (s MedicalAlternative) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MedicalEntity ¶ added in v1.37.1
type MedicalEntity struct { // The category of information identified. The only category is PHI. Category *string `type:"string"` // The confidence score associated with the identified PHI entity in your audio. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified entity correctly matches the entity // spoken in your media. Confidence *float64 `type:"double"` // The word or words identified as PHI. Content *string `type:"string"` // The end time, in milliseconds, of the utterance that was identified as PHI. EndTime *float64 `type:"double"` // The start time, in milliseconds, of the utterance that was identified as // PHI. StartTime *float64 `type:"double"` // contains filtered or unexported fields }
Contains entities identified as personal health information (PHI) in your transcription output, along with various associated attributes. Examples include category, confidence score, type, stability score, and start and end times.
func (MedicalEntity) GoString ¶ added in v1.37.1
func (s MedicalEntity) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalEntity) SetCategory ¶ added in v1.37.1
func (s *MedicalEntity) SetCategory(v string) *MedicalEntity
SetCategory sets the Category field's value.
func (*MedicalEntity) SetConfidence ¶ added in v1.37.1
func (s *MedicalEntity) SetConfidence(v float64) *MedicalEntity
SetConfidence sets the Confidence field's value.
func (*MedicalEntity) SetContent ¶ added in v1.37.1
func (s *MedicalEntity) SetContent(v string) *MedicalEntity
SetContent sets the Content field's value.
func (*MedicalEntity) SetEndTime ¶ added in v1.37.1
func (s *MedicalEntity) SetEndTime(v float64) *MedicalEntity
SetEndTime sets the EndTime field's value.
func (*MedicalEntity) SetStartTime ¶ added in v1.37.1
func (s *MedicalEntity) SetStartTime(v float64) *MedicalEntity
SetStartTime sets the StartTime field's value.
func (MedicalEntity) String ¶ added in v1.37.1
func (s MedicalEntity) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MedicalItem ¶ added in v1.35.35
type MedicalItem struct { // The confidence score associated with a word or phrase in your transcript. // // Confidence scores are values between 0 and 1. A larger value indicates a // higher probability that the identified item correctly matches the item spoken // in your media. Confidence *float64 `type:"double"` // The word or punctuation that was transcribed. Content *string `type:"string"` // The end time, in milliseconds, of the transcribed item. EndTime *float64 `type:"double"` // If speaker partitioning is enabled, Speaker labels the speaker of the specified // item. Speaker *string `type:"string"` // The start time, in milliseconds, of the transcribed item. StartTime *float64 `type:"double"` // The type of item identified. Options are: PRONUNCIATION (spoken words) and // PUNCTUATION. Type *string `type:"string" enum:"ItemType"` // contains filtered or unexported fields }
A word, phrase, or punctuation mark in your transcription output, along with various associated attributes, such as confidence score, type, and start and end times.
func (MedicalItem) GoString ¶ added in v1.35.35
func (s MedicalItem) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalItem) SetConfidence ¶ added in v1.35.35
func (s *MedicalItem) SetConfidence(v float64) *MedicalItem
SetConfidence sets the Confidence field's value.
func (*MedicalItem) SetContent ¶ added in v1.35.35
func (s *MedicalItem) SetContent(v string) *MedicalItem
SetContent sets the Content field's value.
func (*MedicalItem) SetEndTime ¶ added in v1.35.35
func (s *MedicalItem) SetEndTime(v float64) *MedicalItem
SetEndTime sets the EndTime field's value.
func (*MedicalItem) SetSpeaker ¶ added in v1.35.35
func (s *MedicalItem) SetSpeaker(v string) *MedicalItem
SetSpeaker sets the Speaker field's value.
func (*MedicalItem) SetStartTime ¶ added in v1.35.35
func (s *MedicalItem) SetStartTime(v float64) *MedicalItem
SetStartTime sets the StartTime field's value.
func (*MedicalItem) SetType ¶ added in v1.35.35
func (s *MedicalItem) SetType(v string) *MedicalItem
SetType sets the Type field's value.
func (MedicalItem) String ¶ added in v1.35.35
func (s MedicalItem) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MedicalResult ¶ added in v1.35.35
type MedicalResult struct { // A list of possible alternative transcriptions for the input audio. Each alternative // may contain one or more of Items, Entities, or Transcript. Alternatives []*MedicalAlternative `type:"list"` // Indicates the channel identified for the Result. ChannelId *string `type:"string"` // The end time, in milliseconds, of the Result. EndTime *float64 `type:"double"` // Indicates if the segment is complete. // // If IsPartial is true, the segment is not complete. If IsPartial is false, // the segment is complete. IsPartial *bool `type:"boolean"` // Provides a unique identifier for the Result. ResultId *string `type:"string"` // The start time, in milliseconds, of the Result. StartTime *float64 `type:"double"` // contains filtered or unexported fields }
The Result associated with a .
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
func (MedicalResult) GoString ¶ added in v1.35.35
func (s MedicalResult) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalResult) SetAlternatives ¶ added in v1.35.35
func (s *MedicalResult) SetAlternatives(v []*MedicalAlternative) *MedicalResult
SetAlternatives sets the Alternatives field's value.
func (*MedicalResult) SetChannelId ¶ added in v1.35.35
func (s *MedicalResult) SetChannelId(v string) *MedicalResult
SetChannelId sets the ChannelId field's value.
func (*MedicalResult) SetEndTime ¶ added in v1.35.35
func (s *MedicalResult) SetEndTime(v float64) *MedicalResult
SetEndTime sets the EndTime field's value.
func (*MedicalResult) SetIsPartial ¶ added in v1.35.35
func (s *MedicalResult) SetIsPartial(v bool) *MedicalResult
SetIsPartial sets the IsPartial field's value.
func (*MedicalResult) SetResultId ¶ added in v1.35.35
func (s *MedicalResult) SetResultId(v string) *MedicalResult
SetResultId sets the ResultId field's value.
func (*MedicalResult) SetStartTime ¶ added in v1.35.35
func (s *MedicalResult) SetStartTime(v float64) *MedicalResult
SetStartTime sets the StartTime field's value.
func (MedicalResult) String ¶ added in v1.35.35
func (s MedicalResult) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MedicalTranscript ¶ added in v1.35.35
type MedicalTranscript struct { // Contains a set of transcription results from one or more audio segments, // along with additional information per your request parameters. This can include // information relating to alternative transcriptions, channel identification, // partial result stabilization, language identification, and other transcription-related // data. Results []*MedicalResult `type:"list"` // contains filtered or unexported fields }
The MedicalTranscript associated with a .
MedicalTranscript contains Results, which contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
func (MedicalTranscript) GoString ¶ added in v1.35.35
func (s MedicalTranscript) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalTranscript) SetResults ¶ added in v1.35.35
func (s *MedicalTranscript) SetResults(v []*MedicalResult) *MedicalTranscript
SetResults sets the Results field's value.
func (MedicalTranscript) String ¶ added in v1.35.35
func (s MedicalTranscript) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type MedicalTranscriptEvent ¶ added in v1.35.35
type MedicalTranscriptEvent struct { // Contains Results, which contains a set of transcription results from one // or more audio segments, along with additional information per your request // parameters. This can include information relating to alternative transcriptions, // channel identification, partial result stabilization, language identification, // and other transcription-related data. Transcript *MedicalTranscript `type:"structure"` // contains filtered or unexported fields }
The MedicalTranscriptEvent associated with a MedicalTranscriptResultStream.
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
func (MedicalTranscriptEvent) GoString ¶ added in v1.35.35
func (s MedicalTranscriptEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalTranscriptEvent) MarshalEvent ¶ added in v1.35.35
func (s *MedicalTranscriptEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*MedicalTranscriptEvent) SetTranscript ¶ added in v1.35.35
func (s *MedicalTranscriptEvent) SetTranscript(v *MedicalTranscript) *MedicalTranscriptEvent
SetTranscript sets the Transcript field's value.
func (MedicalTranscriptEvent) String ¶ added in v1.35.35
func (s MedicalTranscriptEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MedicalTranscriptEvent) UnmarshalEvent ¶ added in v1.35.35
func (s *MedicalTranscriptEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the MedicalTranscriptEvent value. This method is only used internally within the SDK's EventStream handling.
type MedicalTranscriptResultStreamEvent ¶ added in v1.35.35
type MedicalTranscriptResultStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
MedicalTranscriptResultStreamEvent groups together all EventStream events writes for MedicalTranscriptResultStream.
These events are:
- MedicalTranscriptEvent
type MedicalTranscriptResultStreamReader ¶ added in v1.35.35
type MedicalTranscriptResultStreamReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan MedicalTranscriptResultStreamEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
MedicalTranscriptResultStreamReader provides the interface for reading to the stream. The default implementation for this interface will be MedicalTranscriptResultStream.
The reader's Close method must allow multiple concurrent calls.
These events are:
- MedicalTranscriptEvent
- MedicalTranscriptResultStreamUnknownEvent
type MedicalTranscriptResultStreamUnknownEvent ¶ added in v1.35.35
type MedicalTranscriptResultStreamUnknownEvent struct { Type string Message eventstream.Message }
MedicalTranscriptResultStreamUnknownEvent provides a failsafe event for the MedicalTranscriptResultStream group of events when an unknown event is received.
func (*MedicalTranscriptResultStreamUnknownEvent) MarshalEvent ¶ added in v1.35.35
func (e *MedicalTranscriptResultStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*MedicalTranscriptResultStreamUnknownEvent) UnmarshalEvent ¶ added in v1.35.35
func (e *MedicalTranscriptResultStreamUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the MedicalTranscriptResultStream value. This method is only used internally within the SDK's EventStream handling.
type PointsOfInterest ¶ added in v1.44.146
type PointsOfInterest struct { // Contains the timestamp ranges (start time through end time) of matched categories // and rules. TimestampRanges []*TimestampRange `type:"list"` // contains filtered or unexported fields }
Contains the timestamps of matched categories.
func (PointsOfInterest) GoString ¶ added in v1.44.146
func (s PointsOfInterest) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PointsOfInterest) SetTimestampRanges ¶ added in v1.44.146
func (s *PointsOfInterest) SetTimestampRanges(v []*TimestampRange) *PointsOfInterest
SetTimestampRanges sets the TimestampRanges field's value.
func (PointsOfInterest) String ¶ added in v1.44.146
func (s PointsOfInterest) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PostCallAnalyticsSettings ¶ added in v1.44.146
type PostCallAnalyticsSettings struct { // Specify whether you want only a redacted transcript or both a redacted and // an unredacted transcript. If you choose redacted and unredacted, two JSON // files are generated and stored in the Amazon S3 output location you specify. // // Note that to include ContentRedactionOutput in your request, you must enable // content redaction (ContentRedactionType). ContentRedactionOutput *string `type:"string" enum:"ContentRedactionOutput_"` // The Amazon Resource Name (ARN) of an IAM role that has permissions to access // the Amazon S3 bucket that contains your input files. If the role that you // specify doesn’t have the appropriate permissions to access the specified // Amazon S3 location, your request fails. // // IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path. // For example: arn:aws:iam::111122223333:role/Admin. For more information, // see IAM ARNs (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). // // DataAccessRoleArn is a required field DataAccessRoleArn *string `type:"string" required:"true"` // The KMS key you want to use to encrypt your Call Analytics post-call output. // // If using a key located in the current Amazon Web Services account, you can // specify your KMS key in one of four ways: // // Use the KMS key ID itself. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. // // Use an alias for the KMS key ID. For example, alias/ExampleAlias. // // Use the Amazon Resource Name (ARN) for the KMS key ID. For example, arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. // // Use the ARN for the KMS key alias. For example, arn:aws:kms:region:account-ID:alias/ExampleAlias. // // If using a key located in a different Amazon Web Services account than the // current Amazon Web Services account, you can specify your KMS key in one // of two ways: // // Use the ARN for the KMS key ID. For example, arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. // // Use the ARN for the KMS key alias. For example, arn:aws:kms:region:account-ID:alias/ExampleAlias. // // Note that the user making the request must have permission to use the specified // KMS key. OutputEncryptionKMSKeyId *string `type:"string"` // The Amazon S3 location where you want your Call Analytics post-call transcription // output stored. You can use any of the following formats to specify the output // location: // // s3://DOC-EXAMPLE-BUCKET // // s3://DOC-EXAMPLE-BUCKET/my-output-folder/ // // s3://DOC-EXAMPLE-BUCKET/my-output-folder/my-call-analytics-job.json // // OutputLocation is a required field OutputLocation *string `type:"string" required:"true"` // contains filtered or unexported fields }
Allows you to specify additional settings for your streaming Call Analytics post-call request, including output locations for your redacted and unredacted transcript, which IAM role to use, and, optionally, which encryption key to use.
ContentRedactionOutput, DataAccessRoleArn, and OutputLocation are required fields.
func (PostCallAnalyticsSettings) GoString ¶ added in v1.44.146
func (s PostCallAnalyticsSettings) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PostCallAnalyticsSettings) SetContentRedactionOutput ¶ added in v1.44.146
func (s *PostCallAnalyticsSettings) SetContentRedactionOutput(v string) *PostCallAnalyticsSettings
SetContentRedactionOutput sets the ContentRedactionOutput field's value.
func (*PostCallAnalyticsSettings) SetDataAccessRoleArn ¶ added in v1.44.146
func (s *PostCallAnalyticsSettings) SetDataAccessRoleArn(v string) *PostCallAnalyticsSettings
SetDataAccessRoleArn sets the DataAccessRoleArn field's value.
func (*PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId ¶ added in v1.44.146
func (s *PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId(v string) *PostCallAnalyticsSettings
SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value.
func (*PostCallAnalyticsSettings) SetOutputLocation ¶ added in v1.44.146
func (s *PostCallAnalyticsSettings) SetOutputLocation(v string) *PostCallAnalyticsSettings
SetOutputLocation sets the OutputLocation field's value.
func (PostCallAnalyticsSettings) String ¶ added in v1.44.146
func (s PostCallAnalyticsSettings) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Result ¶
type Result struct { // A list of possible alternative transcriptions for the input audio. Each alternative // may contain one or more of Items, Entities, or Transcript. Alternatives []*Alternative `type:"list"` // Indicates which audio channel is associated with the Result. ChannelId *string `type:"string"` // The end time, in milliseconds, of the Result. EndTime *float64 `type:"double"` // Indicates if the segment is complete. // // If IsPartial is true, the segment is not complete. If IsPartial is false, // the segment is complete. IsPartial *bool `type:"boolean"` // The language code that represents the language spoken in your audio stream. LanguageCode *string `type:"string" enum:"LanguageCode"` // The language code of the dominant language identified in your stream. // // If you enabled channel identification and each channel of your audio contains // a different language, you may have more than one result. LanguageIdentification []*LanguageWithScore `type:"list"` // Provides a unique identifier for the Result. ResultId *string `type:"string"` // The start time, in milliseconds, of the Result. StartTime *float64 `type:"double"` // contains filtered or unexported fields }
The Result associated with a .
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
func (Result) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Result) SetAlternatives ¶
func (s *Result) SetAlternatives(v []*Alternative) *Result
SetAlternatives sets the Alternatives field's value.
func (*Result) SetChannelId ¶ added in v1.34.26
SetChannelId sets the ChannelId field's value.
func (*Result) SetEndTime ¶
SetEndTime sets the EndTime field's value.
func (*Result) SetIsPartial ¶
SetIsPartial sets the IsPartial field's value.
func (*Result) SetLanguageCode ¶ added in v1.42.10
SetLanguageCode sets the LanguageCode field's value.
func (*Result) SetLanguageIdentification ¶ added in v1.42.10
func (s *Result) SetLanguageIdentification(v []*LanguageWithScore) *Result
SetLanguageIdentification sets the LanguageIdentification field's value.
func (*Result) SetResultId ¶
SetResultId sets the ResultId field's value.
func (*Result) SetStartTime ¶
SetStartTime sets the StartTime field's value.
type ServiceUnavailableException ¶ added in v1.30.12
type ServiceUnavailableException struct { // contains filtered or unexported fields }
The service is currently unavailable. Try your request later.
func (*ServiceUnavailableException) Code ¶ added in v1.30.12
func (s *ServiceUnavailableException) Code() string
Code returns the exception type name.
func (*ServiceUnavailableException) Error ¶ added in v1.30.12
func (s *ServiceUnavailableException) Error() string
func (ServiceUnavailableException) GoString ¶ added in v1.30.12
func (s ServiceUnavailableException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ServiceUnavailableException) MarshalEvent ¶ added in v1.30.12
func (s *ServiceUnavailableException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ServiceUnavailableException) Message ¶ added in v1.30.12
func (s *ServiceUnavailableException) Message() string
Message returns the exception's message.
func (*ServiceUnavailableException) OrigErr ¶ added in v1.30.12
func (s *ServiceUnavailableException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ServiceUnavailableException) RequestID ¶ added in v1.30.12
func (s *ServiceUnavailableException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ServiceUnavailableException) StatusCode ¶ added in v1.30.12
func (s *ServiceUnavailableException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ServiceUnavailableException) String ¶ added in v1.30.12
func (s ServiceUnavailableException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ServiceUnavailableException) UnmarshalEvent ¶ added in v1.30.12
func (s *ServiceUnavailableException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ServiceUnavailableException value. This method is only used internally within the SDK's EventStream handling.
type StartCallAnalyticsStreamTranscriptionEventStream ¶ added in v1.44.146
type StartCallAnalyticsStreamTranscriptionEventStream struct { // Writer is the EventStream writer for the AudioStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Writer. // // Must not be nil. Writer AudioStreamWriter // Reader is the EventStream reader for the CallAnalyticsTranscriptResultStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader CallAnalyticsTranscriptResultStreamReader // contains filtered or unexported fields }
StartCallAnalyticsStreamTranscriptionEventStream provides the event stream handling for the StartCallAnalyticsStreamTranscription.
For testing and mocking the event stream this type should be initialized via the NewStartCallAnalyticsStreamTranscriptionEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewStartCallAnalyticsStreamTranscriptionEventStream ¶ added in v1.44.146
func NewStartCallAnalyticsStreamTranscriptionEventStream(opts ...func(*StartCallAnalyticsStreamTranscriptionEventStream)) *StartCallAnalyticsStreamTranscriptionEventStream
NewStartCallAnalyticsStreamTranscriptionEventStream initializes an StartCallAnalyticsStreamTranscriptionEventStream. This function should only be used for testing and mocking the StartCallAnalyticsStreamTranscriptionEventStream stream within your application.
The Writer member must be set before writing events to the stream.
The Reader member must be set before reading events from the stream.
es := NewStartCallAnalyticsStreamTranscriptionEventStream(func(o *StartCallAnalyticsStreamTranscriptionEventStream){ es.Writer = myMockStreamWriter es.Reader = myMockStreamReader })
func (*StartCallAnalyticsStreamTranscriptionEventStream) Close ¶ added in v1.44.146
func (es *StartCallAnalyticsStreamTranscriptionEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
Will close the underlying EventStream writer, and no more events can be sent.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (*StartCallAnalyticsStreamTranscriptionEventStream) Err ¶ added in v1.44.146
func (es *StartCallAnalyticsStreamTranscriptionEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (*StartCallAnalyticsStreamTranscriptionEventStream) Events ¶ added in v1.44.146
func (es *StartCallAnalyticsStreamTranscriptionEventStream) Events() <-chan CallAnalyticsTranscriptResultStreamEvent
Events returns a channel to read events from.
These events are:
- CategoryEvent
- UtteranceEvent
- CallAnalyticsTranscriptResultStreamUnknownEvent
func (*StartCallAnalyticsStreamTranscriptionEventStream) Send ¶ added in v1.44.146
func (es *StartCallAnalyticsStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
Send writes the event to the stream blocking until the event is written. Returns an error if the event was not written.
These events are:
- AudioEvent
- ConfigurationEvent
type StartCallAnalyticsStreamTranscriptionInput ¶ added in v1.44.146
type StartCallAnalyticsStreamTranscriptionInput struct { // Labels all personally identifiable information (PII) identified in your transcript. // // Content identification is performed at the segment level; PII specified in // PiiEntityTypes is flagged upon complete transcription of an audio segment. // // You can’t set ContentIdentificationType and ContentRedactionType in the // same request. If you set both, your request returns a BadRequestException. // // For more information, see Redacting or identifying personally identifiable // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). ContentIdentificationType *string `location:"header" locationName:"x-amzn-transcribe-content-identification-type" type:"string" enum:"ContentIdentificationType"` // Redacts all personally identifiable information (PII) identified in your // transcript. // // Content redaction is performed at the segment level; PII specified in PiiEntityTypes // is redacted upon complete transcription of an audio segment. // // You can’t set ContentRedactionType and ContentIdentificationType in the // same request. If you set both, your request returns a BadRequestException. // // For more information, see Redacting or identifying personally identifiable // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). ContentRedactionType *string `location:"header" locationName:"x-amzn-transcribe-content-redaction-type" type:"string" enum:"ContentRedactionType"` // Enables partial result stabilization for your transcription. Partial result // stabilization can reduce latency in your output, but may impact accuracy. // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). EnablePartialResultsStabilization *bool `location:"header" locationName:"x-amzn-transcribe-enable-partial-results-stabilization" type:"boolean"` // Specify the language code that represents the language spoken in your audio. // // If you're unsure of the language spoken in your audio, consider using IdentifyLanguage // to enable automatic language identification. // // For a list of languages supported with streaming Call Analytics, refer to // the Supported languages (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) // table. // // LanguageCode is a required field LanguageCode *string `` /* 127-byte string literal not displayed */ // Specify the name of the custom language model that you want to use when processing // your transcription. Note that language model names are case sensitive. // // The language of the specified language model must match the language code // you specify in your transcription request. If the languages don't match, // the custom language model isn't applied. There are no errors or warnings // associated with a language mismatch. // // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html). LanguageModelName *string `location:"header" locationName:"x-amzn-transcribe-language-model-name" min:"1" type:"string"` // Specify the encoding of your input audio. Supported formats are: // // * FLAC // // * OPUS-encoded audio in an Ogg container // // * PCM (only signed 16-bit little-endian audio formats, which does not // include WAV) // // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). // // MediaEncoding is a required field MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" required:"true" enum:"MediaEncoding"` // The sample rate of the input audio (in hertz). Low-quality audio, such as // telephone audio, is typically around 8,000 Hz. High-quality audio typically // ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify // must match that of your audio. // // MediaSampleRateHertz is a required field MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer" required:"true"` // Specify the level of stability to use when you enable partial results stabilization // (EnablePartialResultsStabilization). // // Low stability provides the highest accuracy. High stability transcribes faster, // but with slightly lower accuracy. // // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). PartialResultsStability *string `location:"header" locationName:"x-amzn-transcribe-partial-results-stability" type:"string" enum:"PartialResultsStability"` // Specify which types of personally identifiable information (PII) you want // to redact in your transcript. You can include as many types as you'd like, // or you can select ALL. // // To include PiiEntityTypes in your Call Analytics request, you must also include // either ContentIdentificationType or ContentRedactionType. // // Values must be comma-separated and can include: BANK_ACCOUNT_NUMBER, BANK_ROUTING, // CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, // NAME, PHONE, SSN, or ALL. PiiEntityTypes *string `location:"header" locationName:"x-amzn-transcribe-pii-entity-types" min:"1" type:"string"` // Specify a name for your Call Analytics transcription session. If you don't // include this parameter in your request, Amazon Transcribe generates an ID // and returns it in the response. // // You can use a session ID to retry a streaming session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Specify how you want your vocabulary filter applied to your transcript. // // To replace words with ***, choose mask. // // To delete words, choose remove. // // To flag words without changing them, choose tag. VocabularyFilterMethod *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-method" type:"string" enum:"VocabularyFilterMethod"` // Specify the name of the custom vocabulary filter that you want to use when // processing your transcription. Note that vocabulary filter names are case // sensitive. // // If the language of the specified custom vocabulary filter doesn't match the // language identified in your media, the vocabulary filter is not applied to // your transcription. // // For more information, see Using vocabulary filtering with unwanted words // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). VocabularyFilterName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-name" min:"1" type:"string"` // Specify the name of the custom vocabulary that you want to use when processing // your transcription. Note that vocabulary names are case sensitive. // // If the language of the specified custom vocabulary doesn't match the language // identified in your media, the custom vocabulary is not applied to your transcription. // // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // contains filtered or unexported fields }
func (StartCallAnalyticsStreamTranscriptionInput) GoString ¶ added in v1.44.146
func (s StartCallAnalyticsStreamTranscriptionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartCallAnalyticsStreamTranscriptionInput) SetContentIdentificationType ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetContentIdentificationType(v string) *StartCallAnalyticsStreamTranscriptionInput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetContentRedactionType ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetContentRedactionType(v string) *StartCallAnalyticsStreamTranscriptionInput
SetContentRedactionType sets the ContentRedactionType field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetEnablePartialResultsStabilization ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetEnablePartialResultsStabilization(v bool) *StartCallAnalyticsStreamTranscriptionInput
SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetLanguageCode ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetLanguageCode(v string) *StartCallAnalyticsStreamTranscriptionInput
SetLanguageCode sets the LanguageCode field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetLanguageModelName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetLanguageModelName(v string) *StartCallAnalyticsStreamTranscriptionInput
SetLanguageModelName sets the LanguageModelName field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetMediaEncoding ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetMediaEncoding(v string) *StartCallAnalyticsStreamTranscriptionInput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetMediaSampleRateHertz ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartCallAnalyticsStreamTranscriptionInput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetPartialResultsStability ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetPartialResultsStability(v string) *StartCallAnalyticsStreamTranscriptionInput
SetPartialResultsStability sets the PartialResultsStability field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetPiiEntityTypes ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetPiiEntityTypes(v string) *StartCallAnalyticsStreamTranscriptionInput
SetPiiEntityTypes sets the PiiEntityTypes field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetSessionId ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetSessionId(v string) *StartCallAnalyticsStreamTranscriptionInput
SetSessionId sets the SessionId field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterMethod ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterMethod(v string) *StartCallAnalyticsStreamTranscriptionInput
SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyFilterName(v string) *StartCallAnalyticsStreamTranscriptionInput
SetVocabularyFilterName sets the VocabularyFilterName field's value.
func (*StartCallAnalyticsStreamTranscriptionInput) SetVocabularyName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) SetVocabularyName(v string) *StartCallAnalyticsStreamTranscriptionInput
SetVocabularyName sets the VocabularyName field's value.
func (StartCallAnalyticsStreamTranscriptionInput) String ¶ added in v1.44.146
func (s StartCallAnalyticsStreamTranscriptionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartCallAnalyticsStreamTranscriptionInput) Validate ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartCallAnalyticsStreamTranscriptionOutput ¶ added in v1.44.146
type StartCallAnalyticsStreamTranscriptionOutput struct { // Shows whether content identification was enabled for your Call Analytics // transcription. ContentIdentificationType *string `location:"header" locationName:"x-amzn-transcribe-content-identification-type" type:"string" enum:"ContentIdentificationType"` // Shows whether content redaction was enabled for your Call Analytics transcription. ContentRedactionType *string `location:"header" locationName:"x-amzn-transcribe-content-redaction-type" type:"string" enum:"ContentRedactionType"` // Shows whether partial results stabilization was enabled for your Call Analytics // transcription. EnablePartialResultsStabilization *bool `location:"header" locationName:"x-amzn-transcribe-enable-partial-results-stabilization" type:"boolean"` // Provides the language code that you specified in your Call Analytics request. LanguageCode *string `location:"header" locationName:"x-amzn-transcribe-language-code" type:"string" enum:"CallAnalyticsLanguageCode"` // Provides the name of the custom language model that you specified in your // Call Analytics request. LanguageModelName *string `location:"header" locationName:"x-amzn-transcribe-language-model-name" min:"1" type:"string"` // Provides the media encoding you specified in your Call Analytics request. MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" enum:"MediaEncoding"` // Provides the sample rate that you specified in your Call Analytics request. MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer"` // Provides the stabilization level used for your transcription. PartialResultsStability *string `location:"header" locationName:"x-amzn-transcribe-partial-results-stability" type:"string" enum:"PartialResultsStability"` // Lists the PII entity types you specified in your Call Analytics request. PiiEntityTypes *string `location:"header" locationName:"x-amzn-transcribe-pii-entity-types" min:"1" type:"string"` // Provides the identifier for your Call Analytics streaming request. RequestId *string `location:"header" locationName:"x-amzn-request-id" type:"string"` // Provides the identifier for your Call Analytics transcription session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Provides the vocabulary filtering method used in your Call Analytics transcription. VocabularyFilterMethod *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-method" type:"string" enum:"VocabularyFilterMethod"` // Provides the name of the custom vocabulary filter that you specified in your // Call Analytics request. VocabularyFilterName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-name" min:"1" type:"string"` // Provides the name of the custom vocabulary that you specified in your Call // Analytics request. VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // contains filtered or unexported fields }
func (*StartCallAnalyticsStreamTranscriptionOutput) GetStream ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) GetStream() *StartCallAnalyticsStreamTranscriptionEventStream
GetStream returns the type to interact with the event stream.
func (StartCallAnalyticsStreamTranscriptionOutput) GoString ¶ added in v1.44.146
func (s StartCallAnalyticsStreamTranscriptionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartCallAnalyticsStreamTranscriptionOutput) SetContentIdentificationType ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetContentRedactionType ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetContentRedactionType(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetContentRedactionType sets the ContentRedactionType field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetEnablePartialResultsStabilization ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetEnablePartialResultsStabilization(v bool) *StartCallAnalyticsStreamTranscriptionOutput
SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetLanguageCode ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetLanguageCode(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetLanguageCode sets the LanguageCode field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetLanguageModelName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetLanguageModelName(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetLanguageModelName sets the LanguageModelName field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetMediaEncoding ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetMediaEncoding(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetMediaSampleRateHertz ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartCallAnalyticsStreamTranscriptionOutput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetPartialResultsStability ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetPartialResultsStability(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetPartialResultsStability sets the PartialResultsStability field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetPiiEntityTypes ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetPiiEntityTypes(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetPiiEntityTypes sets the PiiEntityTypes field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetRequestId ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetRequestId(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetRequestId sets the RequestId field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetSessionId ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetSessionId(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetSessionId sets the SessionId field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterMethod ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterMethod(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyFilterName(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetVocabularyFilterName sets the VocabularyFilterName field's value.
func (*StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyName ¶ added in v1.44.146
func (s *StartCallAnalyticsStreamTranscriptionOutput) SetVocabularyName(v string) *StartCallAnalyticsStreamTranscriptionOutput
SetVocabularyName sets the VocabularyName field's value.
func (StartCallAnalyticsStreamTranscriptionOutput) String ¶ added in v1.44.146
func (s StartCallAnalyticsStreamTranscriptionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StartMedicalStreamTranscriptionEventStream ¶ added in v1.35.35
type StartMedicalStreamTranscriptionEventStream struct { // Writer is the EventStream writer for the AudioStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Writer. // // Must not be nil. Writer AudioStreamWriter // Reader is the EventStream reader for the MedicalTranscriptResultStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader MedicalTranscriptResultStreamReader // contains filtered or unexported fields }
StartMedicalStreamTranscriptionEventStream provides the event stream handling for the StartMedicalStreamTranscription.
For testing and mocking the event stream this type should be initialized via the NewStartMedicalStreamTranscriptionEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewStartMedicalStreamTranscriptionEventStream ¶ added in v1.35.35
func NewStartMedicalStreamTranscriptionEventStream(opts ...func(*StartMedicalStreamTranscriptionEventStream)) *StartMedicalStreamTranscriptionEventStream
NewStartMedicalStreamTranscriptionEventStream initializes an StartMedicalStreamTranscriptionEventStream. This function should only be used for testing and mocking the StartMedicalStreamTranscriptionEventStream stream within your application.
The Writer member must be set before writing events to the stream.
The Reader member must be set before reading events from the stream.
es := NewStartMedicalStreamTranscriptionEventStream(func(o *StartMedicalStreamTranscriptionEventStream){ es.Writer = myMockStreamWriter es.Reader = myMockStreamReader })
func (*StartMedicalStreamTranscriptionEventStream) Close ¶ added in v1.35.35
func (es *StartMedicalStreamTranscriptionEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
Will close the underlying EventStream writer, and no more events can be sent.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (*StartMedicalStreamTranscriptionEventStream) Err ¶ added in v1.35.35
func (es *StartMedicalStreamTranscriptionEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (*StartMedicalStreamTranscriptionEventStream) Events ¶ added in v1.35.35
func (es *StartMedicalStreamTranscriptionEventStream) Events() <-chan MedicalTranscriptResultStreamEvent
Events returns a channel to read events from.
These events are:
- MedicalTranscriptEvent
- MedicalTranscriptResultStreamUnknownEvent
func (*StartMedicalStreamTranscriptionEventStream) Send ¶ added in v1.35.35
func (es *StartMedicalStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
Send writes the event to the stream blocking until the event is written. Returns an error if the event was not written.
These events are:
- AudioEvent
- ConfigurationEvent
type StartMedicalStreamTranscriptionInput ¶ added in v1.35.35
type StartMedicalStreamTranscriptionInput struct { // Labels all personal health information (PHI) identified in your transcript. // // Content identification is performed at the segment level; PHI is flagged // upon complete transcription of an audio segment. // // For more information, see Identifying personal health information (PHI) in // a transcription (https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html). ContentIdentificationType *string `` /* 132-byte string literal not displayed */ // Enables channel identification in multi-channel audio. // // Channel identification transcribes the audio on each channel independently, // then appends the output for each channel into one transcript. // // If you have multi-channel audio and do not enable channel identification, // your audio is transcribed in a continuous manner and your transcript is not // separated by channel. // // For more information, see Transcribing multi-channel audio (https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html). EnableChannelIdentification *bool `location:"header" locationName:"x-amzn-transcribe-enable-channel-identification" type:"boolean"` // Specify the language code that represents the language spoken in your audio. // // Amazon Transcribe Medical only supports US English (en-US). // // LanguageCode is a required field LanguageCode *string `location:"header" locationName:"x-amzn-transcribe-language-code" type:"string" required:"true" enum:"LanguageCode"` // Specify the encoding used for the input audio. Supported formats are: // // * FLAC // // * OPUS-encoded audio in an Ogg container // // * PCM (only signed 16-bit little-endian audio formats, which does not // include WAV) // // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). // // MediaEncoding is a required field MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" required:"true" enum:"MediaEncoding"` // The sample rate of the input audio (in hertz). Amazon Transcribe Medical // supports a range from 16,000 Hz to 48,000 Hz. Note that the sample rate you // specify must match that of your audio. // // MediaSampleRateHertz is a required field MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer" required:"true"` // Specify the number of channels in your audio stream. Up to two channels are // supported. NumberOfChannels *int64 `location:"header" locationName:"x-amzn-transcribe-number-of-channels" min:"2" type:"integer"` // Specify a name for your transcription session. If you don't include this // parameter in your request, Amazon Transcribe Medical generates an ID and // returns it in the response. // // You can use a session ID to retry a streaming session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Enables speaker partitioning (diarization) in your transcription output. // Speaker partitioning labels the speech from individual speakers in your media // file. // // For more information, see Partitioning speakers (diarization) (https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html). ShowSpeakerLabel *bool `location:"header" locationName:"x-amzn-transcribe-show-speaker-label" type:"boolean"` // Specify the medical specialty contained in your audio. // // Specialty is a required field Specialty *string `location:"header" locationName:"x-amzn-transcribe-specialty" type:"string" required:"true" enum:"Specialty"` // Specify the type of input audio. For example, choose DICTATION for a provider // dictating patient notes and CONVERSATION for a dialogue between a patient // and a medical professional. // // Type is a required field Type *string `location:"header" locationName:"x-amzn-transcribe-type" type:"string" required:"true" enum:"Type"` // Specify the name of the custom vocabulary that you want to use when processing // your transcription. Note that vocabulary names are case sensitive. VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // contains filtered or unexported fields }
func (StartMedicalStreamTranscriptionInput) GoString ¶ added in v1.35.35
func (s StartMedicalStreamTranscriptionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartMedicalStreamTranscriptionInput) SetContentIdentificationType ¶ added in v1.37.1
func (s *StartMedicalStreamTranscriptionInput) SetContentIdentificationType(v string) *StartMedicalStreamTranscriptionInput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartMedicalStreamTranscriptionInput) SetEnableChannelIdentification ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetEnableChannelIdentification(v bool) *StartMedicalStreamTranscriptionInput
SetEnableChannelIdentification sets the EnableChannelIdentification field's value.
func (*StartMedicalStreamTranscriptionInput) SetLanguageCode ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetLanguageCode(v string) *StartMedicalStreamTranscriptionInput
SetLanguageCode sets the LanguageCode field's value.
func (*StartMedicalStreamTranscriptionInput) SetMediaEncoding ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetMediaEncoding(v string) *StartMedicalStreamTranscriptionInput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartMedicalStreamTranscriptionInput) SetMediaSampleRateHertz ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartMedicalStreamTranscriptionInput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartMedicalStreamTranscriptionInput) SetNumberOfChannels ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetNumberOfChannels(v int64) *StartMedicalStreamTranscriptionInput
SetNumberOfChannels sets the NumberOfChannels field's value.
func (*StartMedicalStreamTranscriptionInput) SetSessionId ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetSessionId(v string) *StartMedicalStreamTranscriptionInput
SetSessionId sets the SessionId field's value.
func (*StartMedicalStreamTranscriptionInput) SetShowSpeakerLabel ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetShowSpeakerLabel(v bool) *StartMedicalStreamTranscriptionInput
SetShowSpeakerLabel sets the ShowSpeakerLabel field's value.
func (*StartMedicalStreamTranscriptionInput) SetSpecialty ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetSpecialty(v string) *StartMedicalStreamTranscriptionInput
SetSpecialty sets the Specialty field's value.
func (*StartMedicalStreamTranscriptionInput) SetType ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetType(v string) *StartMedicalStreamTranscriptionInput
SetType sets the Type field's value.
func (*StartMedicalStreamTranscriptionInput) SetVocabularyName ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) SetVocabularyName(v string) *StartMedicalStreamTranscriptionInput
SetVocabularyName sets the VocabularyName field's value.
func (StartMedicalStreamTranscriptionInput) String ¶ added in v1.35.35
func (s StartMedicalStreamTranscriptionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartMedicalStreamTranscriptionInput) Validate ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartMedicalStreamTranscriptionOutput ¶ added in v1.35.35
type StartMedicalStreamTranscriptionOutput struct { // Shows whether content identification was enabled for your transcription. ContentIdentificationType *string `` /* 132-byte string literal not displayed */ // Shows whether channel identification was enabled for your transcription. EnableChannelIdentification *bool `location:"header" locationName:"x-amzn-transcribe-enable-channel-identification" type:"boolean"` // Provides the language code that you specified in your request. This must // be en-US. LanguageCode *string `location:"header" locationName:"x-amzn-transcribe-language-code" type:"string" enum:"LanguageCode"` // Provides the media encoding you specified in your request. MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" enum:"MediaEncoding"` // Provides the sample rate that you specified in your request. MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer"` // Provides the number of channels that you specified in your request. NumberOfChannels *int64 `location:"header" locationName:"x-amzn-transcribe-number-of-channels" min:"2" type:"integer"` // Provides the identifier for your streaming request. RequestId *string `location:"header" locationName:"x-amzn-request-id" type:"string"` // Provides the identifier for your transcription session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Shows whether speaker partitioning was enabled for your transcription. ShowSpeakerLabel *bool `location:"header" locationName:"x-amzn-transcribe-show-speaker-label" type:"boolean"` // Provides the medical specialty that you specified in your request. Specialty *string `location:"header" locationName:"x-amzn-transcribe-specialty" type:"string" enum:"Specialty"` // Provides the type of audio you specified in your request. Type *string `location:"header" locationName:"x-amzn-transcribe-type" type:"string" enum:"Type"` // Provides the name of the custom vocabulary that you specified in your request. VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // contains filtered or unexported fields }
func (*StartMedicalStreamTranscriptionOutput) GetStream ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) GetStream() *StartMedicalStreamTranscriptionEventStream
GetStream returns the type to interact with the event stream.
func (StartMedicalStreamTranscriptionOutput) GoString ¶ added in v1.35.35
func (s StartMedicalStreamTranscriptionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartMedicalStreamTranscriptionOutput) SetContentIdentificationType ¶ added in v1.37.1
func (s *StartMedicalStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartMedicalStreamTranscriptionOutput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartMedicalStreamTranscriptionOutput) SetEnableChannelIdentification ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetEnableChannelIdentification(v bool) *StartMedicalStreamTranscriptionOutput
SetEnableChannelIdentification sets the EnableChannelIdentification field's value.
func (*StartMedicalStreamTranscriptionOutput) SetLanguageCode ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetLanguageCode(v string) *StartMedicalStreamTranscriptionOutput
SetLanguageCode sets the LanguageCode field's value.
func (*StartMedicalStreamTranscriptionOutput) SetMediaEncoding ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetMediaEncoding(v string) *StartMedicalStreamTranscriptionOutput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartMedicalStreamTranscriptionOutput) SetMediaSampleRateHertz ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartMedicalStreamTranscriptionOutput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartMedicalStreamTranscriptionOutput) SetNumberOfChannels ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetNumberOfChannels(v int64) *StartMedicalStreamTranscriptionOutput
SetNumberOfChannels sets the NumberOfChannels field's value.
func (*StartMedicalStreamTranscriptionOutput) SetRequestId ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetRequestId(v string) *StartMedicalStreamTranscriptionOutput
SetRequestId sets the RequestId field's value.
func (*StartMedicalStreamTranscriptionOutput) SetSessionId ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetSessionId(v string) *StartMedicalStreamTranscriptionOutput
SetSessionId sets the SessionId field's value.
func (*StartMedicalStreamTranscriptionOutput) SetShowSpeakerLabel ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetShowSpeakerLabel(v bool) *StartMedicalStreamTranscriptionOutput
SetShowSpeakerLabel sets the ShowSpeakerLabel field's value.
func (*StartMedicalStreamTranscriptionOutput) SetSpecialty ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetSpecialty(v string) *StartMedicalStreamTranscriptionOutput
SetSpecialty sets the Specialty field's value.
func (*StartMedicalStreamTranscriptionOutput) SetType ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetType(v string) *StartMedicalStreamTranscriptionOutput
SetType sets the Type field's value.
func (*StartMedicalStreamTranscriptionOutput) SetVocabularyName ¶ added in v1.35.35
func (s *StartMedicalStreamTranscriptionOutput) SetVocabularyName(v string) *StartMedicalStreamTranscriptionOutput
SetVocabularyName sets the VocabularyName field's value.
func (StartMedicalStreamTranscriptionOutput) String ¶ added in v1.35.35
func (s StartMedicalStreamTranscriptionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StartStreamTranscriptionEventStream ¶
type StartStreamTranscriptionEventStream struct { // Writer is the EventStream writer for the AudioStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Writer. // // Must not be nil. Writer AudioStreamWriter // Reader is the EventStream reader for the TranscriptResultStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader TranscriptResultStreamReader // contains filtered or unexported fields }
StartStreamTranscriptionEventStream provides the event stream handling for the StartStreamTranscription.
For testing and mocking the event stream this type should be initialized via the NewStartStreamTranscriptionEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewStartStreamTranscriptionEventStream ¶ added in v1.34.3
func NewStartStreamTranscriptionEventStream(opts ...func(*StartStreamTranscriptionEventStream)) *StartStreamTranscriptionEventStream
NewStartStreamTranscriptionEventStream initializes an StartStreamTranscriptionEventStream. This function should only be used for testing and mocking the StartStreamTranscriptionEventStream stream within your application.
The Writer member must be set before writing events to the stream.
The Reader member must be set before reading events from the stream.
es := NewStartStreamTranscriptionEventStream(func(o *StartStreamTranscriptionEventStream){ es.Writer = myMockStreamWriter es.Reader = myMockStreamReader })
func (*StartStreamTranscriptionEventStream) Close ¶
func (es *StartStreamTranscriptionEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
Will close the underlying EventStream writer, and no more events can be sent.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (*StartStreamTranscriptionEventStream) Err ¶
func (es *StartStreamTranscriptionEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (*StartStreamTranscriptionEventStream) Events ¶
func (es *StartStreamTranscriptionEventStream) Events() <-chan TranscriptResultStreamEvent
Events returns a channel to read events from.
These events are:
- TranscriptEvent
- TranscriptResultStreamUnknownEvent
func (*StartStreamTranscriptionEventStream) Send ¶
func (es *StartStreamTranscriptionEventStream) Send(ctx aws.Context, event AudioStreamEvent) error
Send writes the event to the stream blocking until the event is written. Returns an error if the event was not written.
These events are:
- AudioEvent
- ConfigurationEvent
type StartStreamTranscriptionInput ¶
type StartStreamTranscriptionInput struct { // Labels all personally identifiable information (PII) identified in your transcript. // // Content identification is performed at the segment level; PII specified in // PiiEntityTypes is flagged upon complete transcription of an audio segment. // // You can’t set ContentIdentificationType and ContentRedactionType in the // same request. If you set both, your request returns a BadRequestException. // // For more information, see Redacting or identifying personally identifiable // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). ContentIdentificationType *string `location:"header" locationName:"x-amzn-transcribe-content-identification-type" type:"string" enum:"ContentIdentificationType"` // Redacts all personally identifiable information (PII) identified in your // transcript. // // Content redaction is performed at the segment level; PII specified in PiiEntityTypes // is redacted upon complete transcription of an audio segment. // // You can’t set ContentRedactionType and ContentIdentificationType in the // same request. If you set both, your request returns a BadRequestException. // // For more information, see Redacting or identifying personally identifiable // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). ContentRedactionType *string `location:"header" locationName:"x-amzn-transcribe-content-redaction-type" type:"string" enum:"ContentRedactionType"` // Enables channel identification in multi-channel audio. // // Channel identification transcribes the audio on each channel independently, // then appends the output for each channel into one transcript. // // If you have multi-channel audio and do not enable channel identification, // your audio is transcribed in a continuous manner and your transcript is not // separated by channel. // // For more information, see Transcribing multi-channel audio (https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html). EnableChannelIdentification *bool `location:"header" locationName:"x-amzn-transcribe-enable-channel-identification" type:"boolean"` // Enables partial result stabilization for your transcription. Partial result // stabilization can reduce latency in your output, but may impact accuracy. // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). EnablePartialResultsStabilization *bool `location:"header" locationName:"x-amzn-transcribe-enable-partial-results-stabilization" type:"boolean"` // Enables automatic language identification for your transcription. // // If you include IdentifyLanguage, you can optionally include a list of language // codes, using LanguageOptions, that you think may be present in your audio // stream. Including language options can improve transcription accuracy. // // You can also include a preferred language using PreferredLanguage. Adding // a preferred language can help Amazon Transcribe identify the language faster // than if you omit this parameter. // // If you have multi-channel audio that contains different languages on each // channel, and you've enabled channel identification, automatic language identification // identifies the dominant language on each audio channel. // // Note that you must include either LanguageCode or IdentifyLanguage or IdentifyMultipleLanguages // in your request. If you include more than one of these parameters, your transcription // job fails. // // Streaming language identification can't be combined with custom language // models or redaction. IdentifyLanguage *bool `location:"header" locationName:"x-amzn-transcribe-identify-language" type:"boolean"` // Enables automatic multi-language identification in your transcription job // request. Use this parameter if your stream contains more than one language. // If your stream contains only one language, use IdentifyLanguage instead. // // If you include IdentifyMultipleLanguages, you can optionally include a list // of language codes, using LanguageOptions, that you think may be present in // your stream. Including LanguageOptions restricts IdentifyMultipleLanguages // to only the language options that you specify, which can improve transcription // accuracy. // // If you want to apply a custom vocabulary or a custom vocabulary filter to // your automatic multiple language identification request, include VocabularyNames // or VocabularyFilterNames. // // Note that you must include one of LanguageCode, IdentifyLanguage, or IdentifyMultipleLanguages // in your request. If you include more than one of these parameters, your transcription // job fails. IdentifyMultipleLanguages *bool `location:"header" locationName:"x-amzn-transcribe-identify-multiple-languages" type:"boolean"` // Specify the language code that represents the language spoken in your audio. // // If you're unsure of the language spoken in your audio, consider using IdentifyLanguage // to enable automatic language identification. // // For a list of languages supported with Amazon Transcribe streaming, refer // to the Supported languages (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) // table. LanguageCode *string `location:"header" locationName:"x-amzn-transcribe-language-code" type:"string" enum:"LanguageCode"` // Specify the name of the custom language model that you want to use when processing // your transcription. Note that language model names are case sensitive. // // The language of the specified language model must match the language code // you specify in your transcription request. If the languages don't match, // the custom language model isn't applied. There are no errors or warnings // associated with a language mismatch. // // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html). LanguageModelName *string `location:"header" locationName:"x-amzn-transcribe-language-model-name" min:"1" type:"string"` // Specify two or more language codes that represent the languages you think // may be present in your media; including more than five is not recommended. // If you're unsure what languages are present, do not include this parameter. // // Including language options can improve the accuracy of language identification. // // If you include LanguageOptions in your request, you must also include IdentifyLanguage. // // For a list of languages supported with Amazon Transcribe streaming, refer // to the Supported languages (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) // table. // // You can only include one language dialect per language per stream. For example, // you cannot include en-US and en-AU in the same request. LanguageOptions *string `location:"header" locationName:"x-amzn-transcribe-language-options" min:"1" type:"string"` // Specify the encoding of your input audio. Supported formats are: // // * FLAC // // * OPUS-encoded audio in an Ogg container // // * PCM (only signed 16-bit little-endian audio formats, which does not // include WAV) // // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). // // MediaEncoding is a required field MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" required:"true" enum:"MediaEncoding"` // The sample rate of the input audio (in hertz). Low-quality audio, such as // telephone audio, is typically around 8,000 Hz. High-quality audio typically // ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify // must match that of your audio. // // MediaSampleRateHertz is a required field MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer" required:"true"` // Specify the number of channels in your audio stream. Up to two channels are // supported. NumberOfChannels *int64 `location:"header" locationName:"x-amzn-transcribe-number-of-channels" min:"2" type:"integer"` // Specify the level of stability to use when you enable partial results stabilization // (EnablePartialResultsStabilization). // // Low stability provides the highest accuracy. High stability transcribes faster, // but with slightly lower accuracy. // // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). PartialResultsStability *string `location:"header" locationName:"x-amzn-transcribe-partial-results-stability" type:"string" enum:"PartialResultsStability"` // Specify which types of personally identifiable information (PII) you want // to redact in your transcript. You can include as many types as you'd like, // or you can select ALL. // // To include PiiEntityTypes in your request, you must also include either ContentIdentificationType // or ContentRedactionType. // // Values must be comma-separated and can include: BANK_ACCOUNT_NUMBER, BANK_ROUTING, // CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, // NAME, PHONE, SSN, or ALL. PiiEntityTypes *string `location:"header" locationName:"x-amzn-transcribe-pii-entity-types" min:"1" type:"string"` // Specify a preferred language from the subset of languages codes you specified // in LanguageOptions. // // You can only use this parameter if you've included IdentifyLanguage and LanguageOptions // in your request. PreferredLanguage *string `location:"header" locationName:"x-amzn-transcribe-preferred-language" type:"string" enum:"LanguageCode"` // Specify a name for your transcription session. If you don't include this // parameter in your request, Amazon Transcribe generates an ID and returns // it in the response. // // You can use a session ID to retry a streaming session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Enables speaker partitioning (diarization) in your transcription output. // Speaker partitioning labels the speech from individual speakers in your media // file. // // For more information, see Partitioning speakers (diarization) (https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html). ShowSpeakerLabel *bool `location:"header" locationName:"x-amzn-transcribe-show-speaker-label" type:"boolean"` // Specify how you want your vocabulary filter applied to your transcript. // // To replace words with ***, choose mask. // // To delete words, choose remove. // // To flag words without changing them, choose tag. VocabularyFilterMethod *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-method" type:"string" enum:"VocabularyFilterMethod"` // Specify the name of the custom vocabulary filter that you want to use when // processing your transcription. Note that vocabulary filter names are case // sensitive. // // If the language of the specified custom vocabulary filter doesn't match the // language identified in your media, the vocabulary filter is not applied to // your transcription. // // This parameter is not intended for use with the IdentifyLanguage parameter. // If you're including IdentifyLanguage in your request and want to use one // or more vocabulary filters with your transcription, use the VocabularyFilterNames // parameter instead. // // For more information, see Using vocabulary filtering with unwanted words // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). VocabularyFilterName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-name" min:"1" type:"string"` // Specify the names of the custom vocabulary filters that you want to use when // processing your transcription. Note that vocabulary filter names are case // sensitive. // // If none of the languages of the specified custom vocabulary filters match // the language identified in your media, your job fails. // // This parameter is only intended for use with the IdentifyLanguage parameter. // If you're not including IdentifyLanguage in your request and want to use // a custom vocabulary filter with your transcription, use the VocabularyFilterName // parameter instead. // // For more information, see Using vocabulary filtering with unwanted words // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). VocabularyFilterNames *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-names" min:"1" type:"string"` // Specify the name of the custom vocabulary that you want to use when processing // your transcription. Note that vocabulary names are case sensitive. // // If the language of the specified custom vocabulary doesn't match the language // identified in your media, the custom vocabulary is not applied to your transcription. // // This parameter is not intended for use with the IdentifyLanguage parameter. // If you're including IdentifyLanguage in your request and want to use one // or more custom vocabularies with your transcription, use the VocabularyNames // parameter instead. // // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // Specify the names of the custom vocabularies that you want to use when processing // your transcription. Note that vocabulary names are case sensitive. // // If none of the languages of the specified custom vocabularies match the language // identified in your media, your job fails. // // This parameter is only intended for use with the IdentifyLanguage parameter. // If you're not including IdentifyLanguage in your request and want to use // a custom vocabulary with your transcription, use the VocabularyName parameter // instead. // // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). VocabularyNames *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-names" min:"1" type:"string"` // contains filtered or unexported fields }
func (StartStreamTranscriptionInput) GoString ¶
func (s StartStreamTranscriptionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartStreamTranscriptionInput) SetContentIdentificationType ¶ added in v1.40.43
func (s *StartStreamTranscriptionInput) SetContentIdentificationType(v string) *StartStreamTranscriptionInput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartStreamTranscriptionInput) SetContentRedactionType ¶ added in v1.40.43
func (s *StartStreamTranscriptionInput) SetContentRedactionType(v string) *StartStreamTranscriptionInput
SetContentRedactionType sets the ContentRedactionType field's value.
func (*StartStreamTranscriptionInput) SetEnableChannelIdentification ¶ added in v1.34.26
func (s *StartStreamTranscriptionInput) SetEnableChannelIdentification(v bool) *StartStreamTranscriptionInput
SetEnableChannelIdentification sets the EnableChannelIdentification field's value.
func (*StartStreamTranscriptionInput) SetEnablePartialResultsStabilization ¶ added in v1.38.38
func (s *StartStreamTranscriptionInput) SetEnablePartialResultsStabilization(v bool) *StartStreamTranscriptionInput
SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value.
func (*StartStreamTranscriptionInput) SetIdentifyLanguage ¶ added in v1.42.10
func (s *StartStreamTranscriptionInput) SetIdentifyLanguage(v bool) *StartStreamTranscriptionInput
SetIdentifyLanguage sets the IdentifyLanguage field's value.
func (*StartStreamTranscriptionInput) SetIdentifyMultipleLanguages ¶ added in v1.47.10
func (s *StartStreamTranscriptionInput) SetIdentifyMultipleLanguages(v bool) *StartStreamTranscriptionInput
SetIdentifyMultipleLanguages sets the IdentifyMultipleLanguages field's value.
func (*StartStreamTranscriptionInput) SetLanguageCode ¶
func (s *StartStreamTranscriptionInput) SetLanguageCode(v string) *StartStreamTranscriptionInput
SetLanguageCode sets the LanguageCode field's value.
func (*StartStreamTranscriptionInput) SetLanguageModelName ¶ added in v1.41.7
func (s *StartStreamTranscriptionInput) SetLanguageModelName(v string) *StartStreamTranscriptionInput
SetLanguageModelName sets the LanguageModelName field's value.
func (*StartStreamTranscriptionInput) SetLanguageOptions ¶ added in v1.42.10
func (s *StartStreamTranscriptionInput) SetLanguageOptions(v string) *StartStreamTranscriptionInput
SetLanguageOptions sets the LanguageOptions field's value.
func (*StartStreamTranscriptionInput) SetMediaEncoding ¶
func (s *StartStreamTranscriptionInput) SetMediaEncoding(v string) *StartStreamTranscriptionInput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartStreamTranscriptionInput) SetMediaSampleRateHertz ¶
func (s *StartStreamTranscriptionInput) SetMediaSampleRateHertz(v int64) *StartStreamTranscriptionInput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartStreamTranscriptionInput) SetNumberOfChannels ¶ added in v1.34.26
func (s *StartStreamTranscriptionInput) SetNumberOfChannels(v int64) *StartStreamTranscriptionInput
SetNumberOfChannels sets the NumberOfChannels field's value.
func (*StartStreamTranscriptionInput) SetPartialResultsStability ¶ added in v1.38.38
func (s *StartStreamTranscriptionInput) SetPartialResultsStability(v string) *StartStreamTranscriptionInput
SetPartialResultsStability sets the PartialResultsStability field's value.
func (*StartStreamTranscriptionInput) SetPiiEntityTypes ¶ added in v1.40.43
func (s *StartStreamTranscriptionInput) SetPiiEntityTypes(v string) *StartStreamTranscriptionInput
SetPiiEntityTypes sets the PiiEntityTypes field's value.
func (*StartStreamTranscriptionInput) SetPreferredLanguage ¶ added in v1.42.10
func (s *StartStreamTranscriptionInput) SetPreferredLanguage(v string) *StartStreamTranscriptionInput
SetPreferredLanguage sets the PreferredLanguage field's value.
func (*StartStreamTranscriptionInput) SetSessionId ¶
func (s *StartStreamTranscriptionInput) SetSessionId(v string) *StartStreamTranscriptionInput
SetSessionId sets the SessionId field's value.
func (*StartStreamTranscriptionInput) SetShowSpeakerLabel ¶ added in v1.34.8
func (s *StartStreamTranscriptionInput) SetShowSpeakerLabel(v bool) *StartStreamTranscriptionInput
SetShowSpeakerLabel sets the ShowSpeakerLabel field's value.
func (*StartStreamTranscriptionInput) SetVocabularyFilterMethod ¶ added in v1.31.2
func (s *StartStreamTranscriptionInput) SetVocabularyFilterMethod(v string) *StartStreamTranscriptionInput
SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
func (*StartStreamTranscriptionInput) SetVocabularyFilterName ¶ added in v1.31.2
func (s *StartStreamTranscriptionInput) SetVocabularyFilterName(v string) *StartStreamTranscriptionInput
SetVocabularyFilterName sets the VocabularyFilterName field's value.
func (*StartStreamTranscriptionInput) SetVocabularyFilterNames ¶ added in v1.43.17
func (s *StartStreamTranscriptionInput) SetVocabularyFilterNames(v string) *StartStreamTranscriptionInput
SetVocabularyFilterNames sets the VocabularyFilterNames field's value.
func (*StartStreamTranscriptionInput) SetVocabularyName ¶
func (s *StartStreamTranscriptionInput) SetVocabularyName(v string) *StartStreamTranscriptionInput
SetVocabularyName sets the VocabularyName field's value.
func (*StartStreamTranscriptionInput) SetVocabularyNames ¶ added in v1.43.17
func (s *StartStreamTranscriptionInput) SetVocabularyNames(v string) *StartStreamTranscriptionInput
SetVocabularyNames sets the VocabularyNames field's value.
func (StartStreamTranscriptionInput) String ¶
func (s StartStreamTranscriptionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartStreamTranscriptionInput) Validate ¶
func (s *StartStreamTranscriptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartStreamTranscriptionOutput ¶
type StartStreamTranscriptionOutput struct { // Shows whether content identification was enabled for your transcription. ContentIdentificationType *string `location:"header" locationName:"x-amzn-transcribe-content-identification-type" type:"string" enum:"ContentIdentificationType"` // Shows whether content redaction was enabled for your transcription. ContentRedactionType *string `location:"header" locationName:"x-amzn-transcribe-content-redaction-type" type:"string" enum:"ContentRedactionType"` // Shows whether channel identification was enabled for your transcription. EnableChannelIdentification *bool `location:"header" locationName:"x-amzn-transcribe-enable-channel-identification" type:"boolean"` // Shows whether partial results stabilization was enabled for your transcription. EnablePartialResultsStabilization *bool `location:"header" locationName:"x-amzn-transcribe-enable-partial-results-stabilization" type:"boolean"` // Shows whether automatic language identification was enabled for your transcription. IdentifyLanguage *bool `location:"header" locationName:"x-amzn-transcribe-identify-language" type:"boolean"` // Shows whether automatic multi-language identification was enabled for your // transcription. IdentifyMultipleLanguages *bool `location:"header" locationName:"x-amzn-transcribe-identify-multiple-languages" type:"boolean"` // Provides the language code that you specified in your request. LanguageCode *string `location:"header" locationName:"x-amzn-transcribe-language-code" type:"string" enum:"LanguageCode"` // Provides the name of the custom language model that you specified in your // request. LanguageModelName *string `location:"header" locationName:"x-amzn-transcribe-language-model-name" min:"1" type:"string"` // Provides the language codes that you specified in your request. LanguageOptions *string `location:"header" locationName:"x-amzn-transcribe-language-options" min:"1" type:"string"` // Provides the media encoding you specified in your request. MediaEncoding *string `location:"header" locationName:"x-amzn-transcribe-media-encoding" type:"string" enum:"MediaEncoding"` // Provides the sample rate that you specified in your request. MediaSampleRateHertz *int64 `location:"header" locationName:"x-amzn-transcribe-sample-rate" min:"8000" type:"integer"` // Provides the number of channels that you specified in your request. NumberOfChannels *int64 `location:"header" locationName:"x-amzn-transcribe-number-of-channels" min:"2" type:"integer"` // Provides the stabilization level used for your transcription. PartialResultsStability *string `location:"header" locationName:"x-amzn-transcribe-partial-results-stability" type:"string" enum:"PartialResultsStability"` // Lists the PII entity types you specified in your request. PiiEntityTypes *string `location:"header" locationName:"x-amzn-transcribe-pii-entity-types" min:"1" type:"string"` // Provides the preferred language that you specified in your request. PreferredLanguage *string `location:"header" locationName:"x-amzn-transcribe-preferred-language" type:"string" enum:"LanguageCode"` // Provides the identifier for your streaming request. RequestId *string `location:"header" locationName:"x-amzn-request-id" type:"string"` // Provides the identifier for your transcription session. SessionId *string `location:"header" locationName:"x-amzn-transcribe-session-id" min:"36" type:"string"` // Shows whether speaker partitioning was enabled for your transcription. ShowSpeakerLabel *bool `location:"header" locationName:"x-amzn-transcribe-show-speaker-label" type:"boolean"` // Provides the vocabulary filtering method used in your transcription. VocabularyFilterMethod *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-method" type:"string" enum:"VocabularyFilterMethod"` // Provides the name of the custom vocabulary filter that you specified in your // request. VocabularyFilterName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-name" min:"1" type:"string"` // Provides the names of the custom vocabulary filters that you specified in // your request. VocabularyFilterNames *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-filter-names" min:"1" type:"string"` // Provides the name of the custom vocabulary that you specified in your request. VocabularyName *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-name" min:"1" type:"string"` // Provides the names of the custom vocabularies that you specified in your // request. VocabularyNames *string `location:"header" locationName:"x-amzn-transcribe-vocabulary-names" min:"1" type:"string"` // contains filtered or unexported fields }
func (*StartStreamTranscriptionOutput) GetStream ¶
func (s *StartStreamTranscriptionOutput) GetStream() *StartStreamTranscriptionEventStream
GetStream returns the type to interact with the event stream.
func (StartStreamTranscriptionOutput) GoString ¶
func (s StartStreamTranscriptionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*StartStreamTranscriptionOutput) SetContentIdentificationType ¶ added in v1.40.43
func (s *StartStreamTranscriptionOutput) SetContentIdentificationType(v string) *StartStreamTranscriptionOutput
SetContentIdentificationType sets the ContentIdentificationType field's value.
func (*StartStreamTranscriptionOutput) SetContentRedactionType ¶ added in v1.40.43
func (s *StartStreamTranscriptionOutput) SetContentRedactionType(v string) *StartStreamTranscriptionOutput
SetContentRedactionType sets the ContentRedactionType field's value.
func (*StartStreamTranscriptionOutput) SetEnableChannelIdentification ¶ added in v1.34.26
func (s *StartStreamTranscriptionOutput) SetEnableChannelIdentification(v bool) *StartStreamTranscriptionOutput
SetEnableChannelIdentification sets the EnableChannelIdentification field's value.
func (*StartStreamTranscriptionOutput) SetEnablePartialResultsStabilization ¶ added in v1.38.38
func (s *StartStreamTranscriptionOutput) SetEnablePartialResultsStabilization(v bool) *StartStreamTranscriptionOutput
SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value.
func (*StartStreamTranscriptionOutput) SetIdentifyLanguage ¶ added in v1.42.10
func (s *StartStreamTranscriptionOutput) SetIdentifyLanguage(v bool) *StartStreamTranscriptionOutput
SetIdentifyLanguage sets the IdentifyLanguage field's value.
func (*StartStreamTranscriptionOutput) SetIdentifyMultipleLanguages ¶ added in v1.47.10
func (s *StartStreamTranscriptionOutput) SetIdentifyMultipleLanguages(v bool) *StartStreamTranscriptionOutput
SetIdentifyMultipleLanguages sets the IdentifyMultipleLanguages field's value.
func (*StartStreamTranscriptionOutput) SetLanguageCode ¶
func (s *StartStreamTranscriptionOutput) SetLanguageCode(v string) *StartStreamTranscriptionOutput
SetLanguageCode sets the LanguageCode field's value.
func (*StartStreamTranscriptionOutput) SetLanguageModelName ¶ added in v1.41.7
func (s *StartStreamTranscriptionOutput) SetLanguageModelName(v string) *StartStreamTranscriptionOutput
SetLanguageModelName sets the LanguageModelName field's value.
func (*StartStreamTranscriptionOutput) SetLanguageOptions ¶ added in v1.42.10
func (s *StartStreamTranscriptionOutput) SetLanguageOptions(v string) *StartStreamTranscriptionOutput
SetLanguageOptions sets the LanguageOptions field's value.
func (*StartStreamTranscriptionOutput) SetMediaEncoding ¶
func (s *StartStreamTranscriptionOutput) SetMediaEncoding(v string) *StartStreamTranscriptionOutput
SetMediaEncoding sets the MediaEncoding field's value.
func (*StartStreamTranscriptionOutput) SetMediaSampleRateHertz ¶
func (s *StartStreamTranscriptionOutput) SetMediaSampleRateHertz(v int64) *StartStreamTranscriptionOutput
SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value.
func (*StartStreamTranscriptionOutput) SetNumberOfChannels ¶ added in v1.34.26
func (s *StartStreamTranscriptionOutput) SetNumberOfChannels(v int64) *StartStreamTranscriptionOutput
SetNumberOfChannels sets the NumberOfChannels field's value.
func (*StartStreamTranscriptionOutput) SetPartialResultsStability ¶ added in v1.38.38
func (s *StartStreamTranscriptionOutput) SetPartialResultsStability(v string) *StartStreamTranscriptionOutput
SetPartialResultsStability sets the PartialResultsStability field's value.
func (*StartStreamTranscriptionOutput) SetPiiEntityTypes ¶ added in v1.40.43
func (s *StartStreamTranscriptionOutput) SetPiiEntityTypes(v string) *StartStreamTranscriptionOutput
SetPiiEntityTypes sets the PiiEntityTypes field's value.
func (*StartStreamTranscriptionOutput) SetPreferredLanguage ¶ added in v1.42.10
func (s *StartStreamTranscriptionOutput) SetPreferredLanguage(v string) *StartStreamTranscriptionOutput
SetPreferredLanguage sets the PreferredLanguage field's value.
func (*StartStreamTranscriptionOutput) SetRequestId ¶
func (s *StartStreamTranscriptionOutput) SetRequestId(v string) *StartStreamTranscriptionOutput
SetRequestId sets the RequestId field's value.
func (*StartStreamTranscriptionOutput) SetSessionId ¶
func (s *StartStreamTranscriptionOutput) SetSessionId(v string) *StartStreamTranscriptionOutput
SetSessionId sets the SessionId field's value.
func (*StartStreamTranscriptionOutput) SetShowSpeakerLabel ¶ added in v1.34.8
func (s *StartStreamTranscriptionOutput) SetShowSpeakerLabel(v bool) *StartStreamTranscriptionOutput
SetShowSpeakerLabel sets the ShowSpeakerLabel field's value.
func (*StartStreamTranscriptionOutput) SetVocabularyFilterMethod ¶ added in v1.31.2
func (s *StartStreamTranscriptionOutput) SetVocabularyFilterMethod(v string) *StartStreamTranscriptionOutput
SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value.
func (*StartStreamTranscriptionOutput) SetVocabularyFilterName ¶ added in v1.31.2
func (s *StartStreamTranscriptionOutput) SetVocabularyFilterName(v string) *StartStreamTranscriptionOutput
SetVocabularyFilterName sets the VocabularyFilterName field's value.
func (*StartStreamTranscriptionOutput) SetVocabularyFilterNames ¶ added in v1.43.17
func (s *StartStreamTranscriptionOutput) SetVocabularyFilterNames(v string) *StartStreamTranscriptionOutput
SetVocabularyFilterNames sets the VocabularyFilterNames field's value.
func (*StartStreamTranscriptionOutput) SetVocabularyName ¶
func (s *StartStreamTranscriptionOutput) SetVocabularyName(v string) *StartStreamTranscriptionOutput
SetVocabularyName sets the VocabularyName field's value.
func (*StartStreamTranscriptionOutput) SetVocabularyNames ¶ added in v1.43.17
func (s *StartStreamTranscriptionOutput) SetVocabularyNames(v string) *StartStreamTranscriptionOutput
SetVocabularyNames sets the VocabularyNames field's value.
func (StartStreamTranscriptionOutput) String ¶
func (s StartStreamTranscriptionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TimestampRange ¶ added in v1.44.146
type TimestampRange struct { // The time, in milliseconds, from the beginning of the audio stream to the // start of the category match. BeginOffsetMillis *int64 `type:"long"` // The time, in milliseconds, from the beginning of the audio stream to the // end of the category match. EndOffsetMillis *int64 `type:"long"` // contains filtered or unexported fields }
Contains the timestamp range (start time through end time) of a matched category.
func (TimestampRange) GoString ¶ added in v1.44.146
func (s TimestampRange) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TimestampRange) SetBeginOffsetMillis ¶ added in v1.44.146
func (s *TimestampRange) SetBeginOffsetMillis(v int64) *TimestampRange
SetBeginOffsetMillis sets the BeginOffsetMillis field's value.
func (*TimestampRange) SetEndOffsetMillis ¶ added in v1.44.146
func (s *TimestampRange) SetEndOffsetMillis(v int64) *TimestampRange
SetEndOffsetMillis sets the EndOffsetMillis field's value.
func (TimestampRange) String ¶ added in v1.44.146
func (s TimestampRange) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TranscribeStreamingService ¶
TranscribeStreamingService provides the API operation methods for making requests to Amazon Transcribe Streaming Service. See this package's package overview docs for details on the service.
TranscribeStreamingService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *TranscribeStreamingService
New creates a new instance of the TranscribeStreamingService client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a TranscribeStreamingService client from just a session. svc := transcribestreamingservice.New(mySession) // Create a TranscribeStreamingService client with additional configuration svc := transcribestreamingservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*TranscribeStreamingService) StartCallAnalyticsStreamTranscription ¶ added in v1.44.146
func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscription(input *StartCallAnalyticsStreamTranscriptionInput) (*StartCallAnalyticsStreamTranscriptionOutput, error)
StartCallAnalyticsStreamTranscription API operation for Amazon Transcribe Streaming Service.
Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application. Use this operation for Call Analytics (https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics.html) transcriptions.
The following parameters are required:
language-code
media-encoding
sample-rate
For more information on streaming with Amazon Transcribe, see Transcribing streaming audio (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Transcribe Streaming Service's API operation StartCallAnalyticsStreamTranscription for usage and error information.
Returned Error Types:
BadRequestException One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again.
LimitExceededException Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again.
InternalFailureException A problem occurred while processing the audio. Amazon Transcribe terminated processing.
ConflictException A new stream started with the same session ID. The current stream has been terminated.
ServiceUnavailableException The service is currently unavailable. Try your request later.
func (*TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionRequest ¶ added in v1.44.146
func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionRequest(input *StartCallAnalyticsStreamTranscriptionInput) (req *request.Request, output *StartCallAnalyticsStreamTranscriptionOutput)
StartCallAnalyticsStreamTranscriptionRequest generates a "aws/request.Request" representing the client's request for the StartCallAnalyticsStreamTranscription operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartCallAnalyticsStreamTranscription for more information on using the StartCallAnalyticsStreamTranscription API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartCallAnalyticsStreamTranscriptionRequest method. req, resp := client.StartCallAnalyticsStreamTranscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionWithContext ¶ added in v1.44.146
func (c *TranscribeStreamingService) StartCallAnalyticsStreamTranscriptionWithContext(ctx aws.Context, input *StartCallAnalyticsStreamTranscriptionInput, opts ...request.Option) (*StartCallAnalyticsStreamTranscriptionOutput, error)
StartCallAnalyticsStreamTranscriptionWithContext is the same as StartCallAnalyticsStreamTranscription with the addition of the ability to pass a context and additional request options.
See StartCallAnalyticsStreamTranscription for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*TranscribeStreamingService) StartMedicalStreamTranscription ¶ added in v1.35.35
func (c *TranscribeStreamingService) StartMedicalStreamTranscription(input *StartMedicalStreamTranscriptionInput) (*StartMedicalStreamTranscriptionOutput, error)
StartMedicalStreamTranscription API operation for Amazon Transcribe Streaming Service.
Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to Amazon Transcribe Medical and the transcription results are streamed to your application.
The following parameters are required:
language-code
media-encoding
sample-rate
For more information on streaming with Amazon Transcribe Medical, see Transcribing streaming audio (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Transcribe Streaming Service's API operation StartMedicalStreamTranscription for usage and error information.
Returned Error Types:
BadRequestException One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again.
LimitExceededException Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again.
InternalFailureException A problem occurred while processing the audio. Amazon Transcribe terminated processing.
ConflictException A new stream started with the same session ID. The current stream has been terminated.
ServiceUnavailableException The service is currently unavailable. Try your request later.
func (*TranscribeStreamingService) StartMedicalStreamTranscriptionRequest ¶ added in v1.35.35
func (c *TranscribeStreamingService) StartMedicalStreamTranscriptionRequest(input *StartMedicalStreamTranscriptionInput) (req *request.Request, output *StartMedicalStreamTranscriptionOutput)
StartMedicalStreamTranscriptionRequest generates a "aws/request.Request" representing the client's request for the StartMedicalStreamTranscription operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartMedicalStreamTranscription for more information on using the StartMedicalStreamTranscription API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartMedicalStreamTranscriptionRequest method. req, resp := client.StartMedicalStreamTranscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*TranscribeStreamingService) StartMedicalStreamTranscriptionWithContext ¶ added in v1.35.35
func (c *TranscribeStreamingService) StartMedicalStreamTranscriptionWithContext(ctx aws.Context, input *StartMedicalStreamTranscriptionInput, opts ...request.Option) (*StartMedicalStreamTranscriptionOutput, error)
StartMedicalStreamTranscriptionWithContext is the same as StartMedicalStreamTranscription with the addition of the ability to pass a context and additional request options.
See StartMedicalStreamTranscription for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*TranscribeStreamingService) StartStreamTranscription ¶
func (c *TranscribeStreamingService) StartStreamTranscription(input *StartStreamTranscriptionInput) (*StartStreamTranscriptionOutput, error)
StartStreamTranscription API operation for Amazon Transcribe Streaming Service.
Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application.
The following parameters are required:
language-code or identify-language or identify-multiple-language
media-encoding
sample-rate
For more information on streaming with Amazon Transcribe, see Transcribing streaming audio (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Transcribe Streaming Service's API operation StartStreamTranscription for usage and error information.
Returned Error Types:
BadRequestException One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used not valid values. Check the specified parameters and try your request again.
LimitExceededException Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length limit. Break your audio stream into smaller chunks and try your request again.
InternalFailureException A problem occurred while processing the audio. Amazon Transcribe terminated processing.
ConflictException A new stream started with the same session ID. The current stream has been terminated.
ServiceUnavailableException The service is currently unavailable. Try your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription
Example (StreamAudio) ¶
sess, err := session.NewSession() if err != nil { log.Fatalf("failed to load SDK configuration, %v", err) } client := New(sess) resp, err := client.StartStreamTranscription(&StartStreamTranscriptionInput{ LanguageCode: aws.String(LanguageCodeEnUs), MediaEncoding: aws.String(MediaEncodingPcm), MediaSampleRateHertz: aws.Int64(16000), }) if err != nil { log.Fatalf("failed to start streaming, %v", err) } stream := resp.GetStream() defer stream.Close() var audio io.Reader // TODO Set audio to an io.Reader to stream audio bytes from. go StreamAudioFromReader(context.Background(), stream.Writer, 10*1024, audio) for event := range stream.Events() { switch e := event.(type) { case *TranscriptEvent: log.Printf("got event, %v results", len(e.Transcript.Results)) for _, res := range e.Transcript.Results { for _, alt := range res.Alternatives { log.Printf("* %s", aws.StringValue(alt.Transcript)) } } default: log.Fatalf("unexpected event, %T", event) } } if err := stream.Err(); err != nil { log.Fatalf("expect no error from stream, got %v", err) }
Output:
func (*TranscribeStreamingService) StartStreamTranscriptionRequest ¶
func (c *TranscribeStreamingService) StartStreamTranscriptionRequest(input *StartStreamTranscriptionInput) (req *request.Request, output *StartStreamTranscriptionOutput)
StartStreamTranscriptionRequest generates a "aws/request.Request" representing the client's request for the StartStreamTranscription operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartStreamTranscription for more information on using the StartStreamTranscription API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartStreamTranscriptionRequest method. req, resp := client.StartStreamTranscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription
func (*TranscribeStreamingService) StartStreamTranscriptionWithContext ¶
func (c *TranscribeStreamingService) StartStreamTranscriptionWithContext(ctx aws.Context, input *StartStreamTranscriptionInput, opts ...request.Option) (*StartStreamTranscriptionOutput, error)
StartStreamTranscriptionWithContext is the same as StartStreamTranscription with the addition of the ability to pass a context and additional request options.
See StartStreamTranscription for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type Transcript ¶
type Transcript struct { // Contains a set of transcription results from one or more audio segments, // along with additional information per your request parameters. This can include // information relating to alternative transcriptions, channel identification, // partial result stabilization, language identification, and other transcription-related // data. Results []*Result `type:"list"` // contains filtered or unexported fields }
The Transcript associated with a .
Transcript contains Results, which contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
func (Transcript) GoString ¶
func (s Transcript) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Transcript) SetResults ¶
func (s *Transcript) SetResults(v []*Result) *Transcript
SetResults sets the Results field's value.
func (Transcript) String ¶
func (s Transcript) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TranscriptEvent ¶
type TranscriptEvent struct { // Contains Results, which contains a set of transcription results from one // or more audio segments, along with additional information per your request // parameters. This can include information relating to alternative transcriptions, // channel identification, partial result stabilization, language identification, // and other transcription-related data. Transcript *Transcript `type:"structure"` // contains filtered or unexported fields }
The TranscriptEvent associated with a TranscriptResultStream.
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
func (TranscriptEvent) GoString ¶
func (s TranscriptEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TranscriptEvent) MarshalEvent ¶
func (s *TranscriptEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*TranscriptEvent) SetTranscript ¶
func (s *TranscriptEvent) SetTranscript(v *Transcript) *TranscriptEvent
SetTranscript sets the Transcript field's value.
func (TranscriptEvent) String ¶
func (s TranscriptEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TranscriptEvent) UnmarshalEvent ¶
func (s *TranscriptEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the TranscriptEvent value. This method is only used internally within the SDK's EventStream handling.
type TranscriptResultStreamEvent ¶
type TranscriptResultStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
TranscriptResultStreamEvent groups together all EventStream events writes for TranscriptResultStream.
These events are:
- TranscriptEvent
type TranscriptResultStreamReader ¶
type TranscriptResultStreamReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan TranscriptResultStreamEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
TranscriptResultStreamReader provides the interface for reading to the stream. The default implementation for this interface will be TranscriptResultStream.
The reader's Close method must allow multiple concurrent calls.
These events are:
- TranscriptEvent
- TranscriptResultStreamUnknownEvent
type TranscriptResultStreamUnknownEvent ¶ added in v1.33.7
type TranscriptResultStreamUnknownEvent struct { Type string Message eventstream.Message }
TranscriptResultStreamUnknownEvent provides a failsafe event for the TranscriptResultStream group of events when an unknown event is received.
func (*TranscriptResultStreamUnknownEvent) MarshalEvent ¶ added in v1.33.7
func (e *TranscriptResultStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*TranscriptResultStreamUnknownEvent) UnmarshalEvent ¶ added in v1.33.7
func (e *TranscriptResultStreamUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the TranscriptResultStream value. This method is only used internally within the SDK's EventStream handling.
type UtteranceEvent ¶ added in v1.44.146
type UtteranceEvent struct { // The time, in milliseconds, from the beginning of the audio stream to the // start of the UtteranceEvent. BeginOffsetMillis *int64 `type:"long"` // The time, in milliseconds, from the beginning of the audio stream to the // start of the UtteranceEvent. EndOffsetMillis *int64 `type:"long"` // Contains entities identified as personally identifiable information (PII) // in your transcription output. Entities []*CallAnalyticsEntity `type:"list"` // Indicates whether the segment in the UtteranceEvent is complete (FALSE) or // partial (TRUE). IsPartial *bool `type:"boolean"` // Provides the issue that was detected in the specified segment. IssuesDetected []*IssueDetected `type:"list"` // Contains words, phrases, or punctuation marks that are associated with the // specified UtteranceEvent. Items []*CallAnalyticsItem `type:"list"` // Provides the role of the speaker for each audio channel, either CUSTOMER // or AGENT. ParticipantRole *string `type:"string" enum:"ParticipantRole"` // Provides the sentiment that was detected in the specified segment. Sentiment *string `type:"string" enum:"Sentiment"` // Contains transcribed text. Transcript *string `type:"string"` // The unique identifier that is associated with the specified UtteranceEvent. UtteranceId *string `type:"string"` // contains filtered or unexported fields }
Contains set of transcription results from one or more audio segments, along with additional information about the parameters included in your request. For example, channel definitions, partial result stabilization, sentiment, and issue detection.
func (UtteranceEvent) GoString ¶ added in v1.44.146
func (s UtteranceEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*UtteranceEvent) MarshalEvent ¶ added in v1.44.146
func (s *UtteranceEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*UtteranceEvent) SetBeginOffsetMillis ¶ added in v1.44.146
func (s *UtteranceEvent) SetBeginOffsetMillis(v int64) *UtteranceEvent
SetBeginOffsetMillis sets the BeginOffsetMillis field's value.
func (*UtteranceEvent) SetEndOffsetMillis ¶ added in v1.44.146
func (s *UtteranceEvent) SetEndOffsetMillis(v int64) *UtteranceEvent
SetEndOffsetMillis sets the EndOffsetMillis field's value.
func (*UtteranceEvent) SetEntities ¶ added in v1.44.146
func (s *UtteranceEvent) SetEntities(v []*CallAnalyticsEntity) *UtteranceEvent
SetEntities sets the Entities field's value.
func (*UtteranceEvent) SetIsPartial ¶ added in v1.44.146
func (s *UtteranceEvent) SetIsPartial(v bool) *UtteranceEvent
SetIsPartial sets the IsPartial field's value.
func (*UtteranceEvent) SetIssuesDetected ¶ added in v1.44.146
func (s *UtteranceEvent) SetIssuesDetected(v []*IssueDetected) *UtteranceEvent
SetIssuesDetected sets the IssuesDetected field's value.
func (*UtteranceEvent) SetItems ¶ added in v1.44.146
func (s *UtteranceEvent) SetItems(v []*CallAnalyticsItem) *UtteranceEvent
SetItems sets the Items field's value.
func (*UtteranceEvent) SetParticipantRole ¶ added in v1.44.146
func (s *UtteranceEvent) SetParticipantRole(v string) *UtteranceEvent
SetParticipantRole sets the ParticipantRole field's value.
func (*UtteranceEvent) SetSentiment ¶ added in v1.44.146
func (s *UtteranceEvent) SetSentiment(v string) *UtteranceEvent
SetSentiment sets the Sentiment field's value.
func (*UtteranceEvent) SetTranscript ¶ added in v1.44.146
func (s *UtteranceEvent) SetTranscript(v string) *UtteranceEvent
SetTranscript sets the Transcript field's value.
func (*UtteranceEvent) SetUtteranceId ¶ added in v1.44.146
func (s *UtteranceEvent) SetUtteranceId(v string) *UtteranceEvent
SetUtteranceId sets the UtteranceId field's value.
func (UtteranceEvent) String ¶ added in v1.44.146
func (s UtteranceEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*UtteranceEvent) UnmarshalEvent ¶ added in v1.44.146
func (s *UtteranceEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the UtteranceEvent value. This method is only used internally within the SDK's EventStream handling.
Directories ¶
Path | Synopsis |
---|---|
Package transcribestreamingserviceiface provides an interface to enable mocking the Amazon Transcribe Streaming Service service client for testing your code.
|
Package transcribestreamingserviceiface provides an interface to enable mocking the Amazon Transcribe Streaming Service service client for testing your code. |