Documentation
¶
Overview ¶
*********** WARNING *********** This package defines interfaces for the live API
Deprecated: This package is deprecated. Use the listen package instead. This will be removed in a future release.
This package is frozen and no new functionality will be added. *********** WARNING ***********
Index ¶
- Constants
- type Alternative
- type Channel
- type CloseResponse
- type ErrorResponse
- type LiveMessageCallback
- type LiveOptions
- type LiveTranscriptionOptions
- type MessageResponse
- type MessageType
- type Metadata
- type MetadataResponse
- type ModelInfo
- type OpenResponse
- type SpeechStartedResponse
- type UtteranceEndResponse
- type Word
Constants ¶
const ( TypeOpenResponse = interfacesv1.TypeOpenResponse TypeMessageResponse = interfacesv1.TypeMessageResponse TypeMetadataResponse = interfacesv1.TypeMetadataResponse TypeUtteranceEndResponse = interfacesv1.TypeUtteranceEndResponse TypeSpeechStartedResponse = interfacesv1.TypeSpeechStartedResponse TypeFinalizeResponse = interfacesv1.TypeFinalizeResponse TypeCloseStreamResponse = interfacesv1.TypeCloseStreamResponse TypeCloseResponse = interfacesv1.TypeCloseResponse TypeErrorResponse = interfacesv1.TypeErrorResponse )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alternative ¶
type Alternative = interfacesv1.Alternative
Alternative is a single alternative in a transcript
type CloseResponse ¶ added in v1.1.6
type CloseResponse = interfacesv1.CloseResponse
type ErrorResponse ¶
type ErrorResponse = interfacesv1.ErrorResponse
type LiveOptions ¶ added in v1.4.0
type LiveOptions = interfacesv1.LiveTranscriptionOptions
********************************* Request/Input structs *********************************
type LiveTranscriptionOptions ¶ added in v1.2.0
type LiveTranscriptionOptions interfacesv1.LiveTranscriptionOptions
********************************* Request/Input structs *********************************
type MessageResponse ¶
type MessageResponse = interfacesv1.MessageResponse
type MessageType ¶ added in v1.3.5
type MessageType = interfacesv1.MessageType
********************************* MessageType is the header to bootstrap you way unmarshalling other messages *********************************
Example: { "type": "message", "message": { ... } }
type MetadataResponse ¶
type MetadataResponse = interfacesv1.MetadataResponse
type ModelInfo ¶
type ModelInfo = interfacesv1.ModelInfo
ModelInfo is the model information for a transcript
type OpenResponse ¶ added in v1.1.6
type OpenResponse = interfacesv1.OpenResponse
********************************* Results from Live Transcription *********************************
type SpeechStartedResponse ¶ added in v1.1.1
type SpeechStartedResponse = interfacesv1.SpeechStartedResponse
type UtteranceEndResponse ¶ added in v1.0.2
type UtteranceEndResponse = interfacesv1.UtteranceEndResponse
type Word ¶
type Word = interfacesv1.Word
********************************* shared/common structs ********************************* Word is a single word in a transcript