Documentation ¶
Index ¶
- Variables
- func RegisterSpeechToTextServer(s *grpc.Server, srv SpeechToTextServer)
- type AudioEncoding
- type InterimResultsConfig
- func (*InterimResultsConfig) Descriptor() ([]byte, []int)
- func (m *InterimResultsConfig) GetEnableInterimResults() bool
- func (m *InterimResultsConfig) GetInterval() float32
- func (*InterimResultsConfig) ProtoMessage()
- func (m *InterimResultsConfig) Reset()
- func (m *InterimResultsConfig) String() string
- func (m *InterimResultsConfig) XXX_DiscardUnknown()
- func (m *InterimResultsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InterimResultsConfig) XXX_Merge(src proto.Message)
- func (m *InterimResultsConfig) XXX_Size() int
- func (m *InterimResultsConfig) XXX_Unmarshal(b []byte) error
- type RecognitionAudio
- func (*RecognitionAudio) Descriptor() ([]byte, []int)
- func (m *RecognitionAudio) GetAudioSource() isRecognitionAudio_AudioSource
- func (m *RecognitionAudio) GetContent() []byte
- func (m *RecognitionAudio) GetUri() string
- func (*RecognitionAudio) ProtoMessage()
- func (m *RecognitionAudio) Reset()
- func (m *RecognitionAudio) String() string
- func (m *RecognitionAudio) XXX_DiscardUnknown()
- func (m *RecognitionAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecognitionAudio) XXX_Merge(src proto.Message)
- func (*RecognitionAudio) XXX_OneofWrappers() []interface{}
- func (m *RecognitionAudio) XXX_Size() int
- func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error
- type RecognitionAudio_Content
- type RecognitionAudio_Uri
- type RecognitionConfig
- func (*RecognitionConfig) Descriptor() ([]byte, []int)
- func (m *RecognitionConfig) GetDoNotPerformVad() bool
- func (m *RecognitionConfig) GetEnableAutomaticPunctuation() bool
- func (m *RecognitionConfig) GetEncoding() AudioEncoding
- func (m *RecognitionConfig) GetLanguageCode() string
- func (m *RecognitionConfig) GetMaxAlternatives() uint32
- func (m *RecognitionConfig) GetModel() string
- func (m *RecognitionConfig) GetNumChannels() uint32
- func (m *RecognitionConfig) GetProfanityFilter() bool
- func (m *RecognitionConfig) GetSampleRateHertz() uint32
- func (m *RecognitionConfig) GetSpeechContexts() []*SpeechContext
- func (m *RecognitionConfig) GetVad() isRecognitionConfig_Vad
- func (m *RecognitionConfig) GetVadConfig() *VoiceActivityDetectionConfig
- func (*RecognitionConfig) ProtoMessage()
- func (m *RecognitionConfig) Reset()
- func (m *RecognitionConfig) String() string
- func (m *RecognitionConfig) XXX_DiscardUnknown()
- func (m *RecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecognitionConfig) XXX_Merge(src proto.Message)
- func (*RecognitionConfig) XXX_OneofWrappers() []interface{}
- func (m *RecognitionConfig) XXX_Size() int
- func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error
- type RecognitionConfig_DoNotPerformVad
- type RecognitionConfig_VadConfig
- type RecognizeRequest
- func (*RecognizeRequest) Descriptor() ([]byte, []int)
- func (m *RecognizeRequest) GetAudio() *RecognitionAudio
- func (m *RecognizeRequest) GetConfig() *RecognitionConfig
- func (*RecognizeRequest) ProtoMessage()
- func (m *RecognizeRequest) Reset()
- func (m *RecognizeRequest) String() string
- func (m *RecognizeRequest) XXX_DiscardUnknown()
- func (m *RecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecognizeRequest) XXX_Merge(src proto.Message)
- func (m *RecognizeRequest) XXX_Size() int
- func (m *RecognizeRequest) XXX_Unmarshal(b []byte) error
- type RecognizeResponse
- func (*RecognizeResponse) Descriptor() ([]byte, []int)
- func (m *RecognizeResponse) GetResults() []*SpeechRecognitionResult
- func (*RecognizeResponse) ProtoMessage()
- func (m *RecognizeResponse) Reset()
- func (m *RecognizeResponse) String() string
- func (m *RecognizeResponse) XXX_DiscardUnknown()
- func (m *RecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecognizeResponse) XXX_Merge(src proto.Message)
- func (m *RecognizeResponse) XXX_Size() int
- func (m *RecognizeResponse) XXX_Unmarshal(b []byte) error
- type SpeechContext
- func (*SpeechContext) Descriptor() ([]byte, []int)
- func (m *SpeechContext) GetPhrases() []string
- func (m *SpeechContext) GetWords() []string
- func (*SpeechContext) ProtoMessage()
- func (m *SpeechContext) Reset()
- func (m *SpeechContext) String() string
- func (m *SpeechContext) XXX_DiscardUnknown()
- func (m *SpeechContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpeechContext) XXX_Merge(src proto.Message)
- func (m *SpeechContext) XXX_Size() int
- func (m *SpeechContext) XXX_Unmarshal(b []byte) error
- type SpeechRecognitionAlternative
- func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int)
- func (m *SpeechRecognitionAlternative) GetConfidence() float32
- func (m *SpeechRecognitionAlternative) GetTranscript() string
- func (m *SpeechRecognitionAlternative) GetWords() []*WordInfo
- func (*SpeechRecognitionAlternative) ProtoMessage()
- func (m *SpeechRecognitionAlternative) Reset()
- func (m *SpeechRecognitionAlternative) String() string
- func (m *SpeechRecognitionAlternative) XXX_DiscardUnknown()
- func (m *SpeechRecognitionAlternative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpeechRecognitionAlternative) XXX_Merge(src proto.Message)
- func (m *SpeechRecognitionAlternative) XXX_Size() int
- func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error
- type SpeechRecognitionResult
- func (*SpeechRecognitionResult) Descriptor() ([]byte, []int)
- func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative
- func (m *SpeechRecognitionResult) GetChannel() int32
- func (m *SpeechRecognitionResult) GetEndTime() *duration.Duration
- func (m *SpeechRecognitionResult) GetStartTime() *duration.Duration
- func (*SpeechRecognitionResult) ProtoMessage()
- func (m *SpeechRecognitionResult) Reset()
- func (m *SpeechRecognitionResult) String() string
- func (m *SpeechRecognitionResult) XXX_DiscardUnknown()
- func (m *SpeechRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpeechRecognitionResult) XXX_Merge(src proto.Message)
- func (m *SpeechRecognitionResult) XXX_Size() int
- func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error
- type SpeechToTextClient
- type SpeechToTextServer
- type SpeechToText_StreamingRecognizeClient
- type SpeechToText_StreamingRecognizeServer
- type StreamingRecognitionConfig
- func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int)
- func (m *StreamingRecognitionConfig) GetConfig() *RecognitionConfig
- func (m *StreamingRecognitionConfig) GetInterimResultsConfig() *InterimResultsConfig
- func (m *StreamingRecognitionConfig) GetSingleUtterance() bool
- func (*StreamingRecognitionConfig) ProtoMessage()
- func (m *StreamingRecognitionConfig) Reset()
- func (m *StreamingRecognitionConfig) String() string
- func (m *StreamingRecognitionConfig) XXX_DiscardUnknown()
- func (m *StreamingRecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingRecognitionConfig) XXX_Merge(src proto.Message)
- func (m *StreamingRecognitionConfig) XXX_Size() int
- func (m *StreamingRecognitionConfig) XXX_Unmarshal(b []byte) error
- type StreamingRecognitionResult
- func (*StreamingRecognitionResult) Descriptor() ([]byte, []int)
- func (m *StreamingRecognitionResult) GetIsFinal() bool
- func (m *StreamingRecognitionResult) GetRecognitionResult() *SpeechRecognitionResult
- func (m *StreamingRecognitionResult) GetStability() float32
- func (*StreamingRecognitionResult) ProtoMessage()
- func (m *StreamingRecognitionResult) Reset()
- func (m *StreamingRecognitionResult) String() string
- func (m *StreamingRecognitionResult) XXX_DiscardUnknown()
- func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingRecognitionResult) XXX_Merge(src proto.Message)
- func (m *StreamingRecognitionResult) XXX_Size() int
- func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error
- type StreamingRecognizeRequest
- func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int)
- func (m *StreamingRecognizeRequest) GetAudioContent() []byte
- func (m *StreamingRecognizeRequest) GetStreamingConfig() *StreamingRecognitionConfig
- func (m *StreamingRecognizeRequest) GetStreamingRequest() isStreamingRecognizeRequest_StreamingRequest
- func (*StreamingRecognizeRequest) ProtoMessage()
- func (m *StreamingRecognizeRequest) Reset()
- func (m *StreamingRecognizeRequest) String() string
- func (m *StreamingRecognizeRequest) XXX_DiscardUnknown()
- func (m *StreamingRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingRecognizeRequest) XXX_Merge(src proto.Message)
- func (*StreamingRecognizeRequest) XXX_OneofWrappers() []interface{}
- func (m *StreamingRecognizeRequest) XXX_Size() int
- func (m *StreamingRecognizeRequest) XXX_Unmarshal(b []byte) error
- type StreamingRecognizeRequest_AudioContent
- type StreamingRecognizeRequest_StreamingConfig
- type StreamingRecognizeResponse
- func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int)
- func (m *StreamingRecognizeResponse) GetResults() []*StreamingRecognitionResult
- func (*StreamingRecognizeResponse) ProtoMessage()
- func (m *StreamingRecognizeResponse) Reset()
- func (m *StreamingRecognizeResponse) String() string
- func (m *StreamingRecognizeResponse) XXX_DiscardUnknown()
- func (m *StreamingRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingRecognizeResponse) XXX_Merge(src proto.Message)
- func (m *StreamingRecognizeResponse) XXX_Size() int
- func (m *StreamingRecognizeResponse) XXX_Unmarshal(b []byte) error
- type VoiceActivityDetectionConfig
- func (*VoiceActivityDetectionConfig) Descriptor() ([]byte, []int)
- func (m *VoiceActivityDetectionConfig) GetAggressiveness() float32
- func (m *VoiceActivityDetectionConfig) GetMaxSpeechDuration() float32
- func (m *VoiceActivityDetectionConfig) GetMinSpeechDuration() float32
- func (m *VoiceActivityDetectionConfig) GetSilenceDurationThreshold() float32
- func (m *VoiceActivityDetectionConfig) GetSilenceProbThreshold() float32
- func (*VoiceActivityDetectionConfig) ProtoMessage()
- func (m *VoiceActivityDetectionConfig) Reset()
- func (m *VoiceActivityDetectionConfig) String() string
- func (m *VoiceActivityDetectionConfig) XXX_DiscardUnknown()
- func (m *VoiceActivityDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoiceActivityDetectionConfig) XXX_Merge(src proto.Message)
- func (m *VoiceActivityDetectionConfig) XXX_Size() int
- func (m *VoiceActivityDetectionConfig) XXX_Unmarshal(b []byte) error
- type WordInfo
- func (*WordInfo) Descriptor() ([]byte, []int)
- func (m *WordInfo) GetConfidence() float32
- func (m *WordInfo) GetEndTime() *duration.Duration
- func (m *WordInfo) GetStartTime() *duration.Duration
- func (m *WordInfo) GetWord() string
- func (*WordInfo) ProtoMessage()
- func (m *WordInfo) Reset()
- func (m *WordInfo) String() string
- func (m *WordInfo) XXX_DiscardUnknown()
- func (m *WordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WordInfo) XXX_Merge(src proto.Message)
- func (m *WordInfo) XXX_Size() int
- func (m *WordInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AudioEncoding_name = map[int32]string{
0: "ENCODING_UNSPECIFIED",
1: "LINEAR16",
3: "MULAW",
8: "ALAW",
11: "RAW_OPUS",
12: "MPEG_AUDIO",
}
View Source
var AudioEncoding_value = map[string]int32{
"ENCODING_UNSPECIFIED": 0,
"LINEAR16": 1,
"MULAW": 3,
"ALAW": 8,
"RAW_OPUS": 11,
"MPEG_AUDIO": 12,
}
Functions ¶
func RegisterSpeechToTextServer ¶
func RegisterSpeechToTextServer(s *grpc.Server, srv SpeechToTextServer)
Types ¶
type AudioEncoding ¶
type AudioEncoding int32
const ( AudioEncoding_ENCODING_UNSPECIFIED AudioEncoding = 0 AudioEncoding_LINEAR16 AudioEncoding = 1 AudioEncoding_MULAW AudioEncoding = 3 AudioEncoding_ALAW AudioEncoding = 8 AudioEncoding_RAW_OPUS AudioEncoding = 11 AudioEncoding_MPEG_AUDIO AudioEncoding = 12 )
func (AudioEncoding) EnumDescriptor ¶
func (AudioEncoding) EnumDescriptor() ([]byte, []int)
func (AudioEncoding) String ¶
func (x AudioEncoding) String() string
type InterimResultsConfig ¶
type InterimResultsConfig struct { EnableInterimResults bool `protobuf:"varint,1,opt,name=enable_interim_results,json=enableInterimResults,proto3" json:"enable_interim_results,omitempty"` Interval float32 `protobuf:"fixed32,2,opt,name=interval,proto3" json:"interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InterimResultsConfig) Descriptor ¶
func (*InterimResultsConfig) Descriptor() ([]byte, []int)
func (*InterimResultsConfig) GetEnableInterimResults ¶
func (m *InterimResultsConfig) GetEnableInterimResults() bool
func (*InterimResultsConfig) GetInterval ¶
func (m *InterimResultsConfig) GetInterval() float32
func (*InterimResultsConfig) ProtoMessage ¶
func (*InterimResultsConfig) ProtoMessage()
func (*InterimResultsConfig) Reset ¶
func (m *InterimResultsConfig) Reset()
func (*InterimResultsConfig) String ¶
func (m *InterimResultsConfig) String() string
func (*InterimResultsConfig) XXX_DiscardUnknown ¶
func (m *InterimResultsConfig) XXX_DiscardUnknown()
func (*InterimResultsConfig) XXX_Marshal ¶
func (m *InterimResultsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InterimResultsConfig) XXX_Merge ¶
func (m *InterimResultsConfig) XXX_Merge(src proto.Message)
func (*InterimResultsConfig) XXX_Size ¶
func (m *InterimResultsConfig) XXX_Size() int
func (*InterimResultsConfig) XXX_Unmarshal ¶
func (m *InterimResultsConfig) XXX_Unmarshal(b []byte) error
type RecognitionAudio ¶
type RecognitionAudio struct { // Types that are valid to be assigned to AudioSource: // *RecognitionAudio_Content // *RecognitionAudio_Uri AudioSource isRecognitionAudio_AudioSource `protobuf_oneof:"audio_source"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecognitionAudio) Descriptor ¶
func (*RecognitionAudio) Descriptor() ([]byte, []int)
func (*RecognitionAudio) GetAudioSource ¶
func (m *RecognitionAudio) GetAudioSource() isRecognitionAudio_AudioSource
func (*RecognitionAudio) GetContent ¶
func (m *RecognitionAudio) GetContent() []byte
func (*RecognitionAudio) GetUri ¶
func (m *RecognitionAudio) GetUri() string
func (*RecognitionAudio) ProtoMessage ¶
func (*RecognitionAudio) ProtoMessage()
func (*RecognitionAudio) Reset ¶
func (m *RecognitionAudio) Reset()
func (*RecognitionAudio) String ¶
func (m *RecognitionAudio) String() string
func (*RecognitionAudio) XXX_DiscardUnknown ¶
func (m *RecognitionAudio) XXX_DiscardUnknown()
func (*RecognitionAudio) XXX_Marshal ¶
func (m *RecognitionAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecognitionAudio) XXX_Merge ¶
func (m *RecognitionAudio) XXX_Merge(src proto.Message)
func (*RecognitionAudio) XXX_OneofWrappers ¶
func (*RecognitionAudio) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RecognitionAudio) XXX_Size ¶
func (m *RecognitionAudio) XXX_Size() int
func (*RecognitionAudio) XXX_Unmarshal ¶
func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error
type RecognitionAudio_Content ¶
type RecognitionAudio_Content struct {
Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}
type RecognitionAudio_Uri ¶
type RecognitionAudio_Uri struct {
Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"`
}
type RecognitionConfig ¶
type RecognitionConfig struct { Encoding AudioEncoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=tinkoff.cloud.stt.v1.AudioEncoding" json:"encoding,omitempty"` SampleRateHertz uint32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` MaxAlternatives uint32 `protobuf:"varint,4,opt,name=max_alternatives,json=maxAlternatives,proto3" json:"max_alternatives,omitempty"` ProfanityFilter bool `protobuf:"varint,5,opt,name=profanity_filter,json=profanityFilter,proto3" json:"profanity_filter,omitempty"` SpeechContexts []*SpeechContext `protobuf:"bytes,6,rep,name=speech_contexts,json=speechContexts,proto3" json:"speech_contexts,omitempty"` EnableAutomaticPunctuation bool `` /* 142-byte string literal not displayed */ Model string `protobuf:"bytes,10,opt,name=model,proto3" json:"model,omitempty"` NumChannels uint32 `protobuf:"varint,12,opt,name=num_channels,json=numChannels,proto3" json:"num_channels,omitempty"` // Types that are valid to be assigned to Vad: // *RecognitionConfig_DoNotPerformVad // *RecognitionConfig_VadConfig Vad isRecognitionConfig_Vad `protobuf_oneof:"vad"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecognitionConfig) Descriptor ¶
func (*RecognitionConfig) Descriptor() ([]byte, []int)
func (*RecognitionConfig) GetDoNotPerformVad ¶
func (m *RecognitionConfig) GetDoNotPerformVad() bool
func (*RecognitionConfig) GetEnableAutomaticPunctuation ¶
func (m *RecognitionConfig) GetEnableAutomaticPunctuation() bool
func (*RecognitionConfig) GetEncoding ¶
func (m *RecognitionConfig) GetEncoding() AudioEncoding
func (*RecognitionConfig) GetLanguageCode ¶
func (m *RecognitionConfig) GetLanguageCode() string
func (*RecognitionConfig) GetMaxAlternatives ¶
func (m *RecognitionConfig) GetMaxAlternatives() uint32
func (*RecognitionConfig) GetModel ¶
func (m *RecognitionConfig) GetModel() string
func (*RecognitionConfig) GetNumChannels ¶
func (m *RecognitionConfig) GetNumChannels() uint32
func (*RecognitionConfig) GetProfanityFilter ¶
func (m *RecognitionConfig) GetProfanityFilter() bool
func (*RecognitionConfig) GetSampleRateHertz ¶
func (m *RecognitionConfig) GetSampleRateHertz() uint32
func (*RecognitionConfig) GetSpeechContexts ¶
func (m *RecognitionConfig) GetSpeechContexts() []*SpeechContext
func (*RecognitionConfig) GetVad ¶
func (m *RecognitionConfig) GetVad() isRecognitionConfig_Vad
func (*RecognitionConfig) GetVadConfig ¶
func (m *RecognitionConfig) GetVadConfig() *VoiceActivityDetectionConfig
func (*RecognitionConfig) ProtoMessage ¶
func (*RecognitionConfig) ProtoMessage()
func (*RecognitionConfig) Reset ¶
func (m *RecognitionConfig) Reset()
func (*RecognitionConfig) String ¶
func (m *RecognitionConfig) String() string
func (*RecognitionConfig) XXX_DiscardUnknown ¶
func (m *RecognitionConfig) XXX_DiscardUnknown()
func (*RecognitionConfig) XXX_Marshal ¶
func (m *RecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecognitionConfig) XXX_Merge ¶
func (m *RecognitionConfig) XXX_Merge(src proto.Message)
func (*RecognitionConfig) XXX_OneofWrappers ¶
func (*RecognitionConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RecognitionConfig) XXX_Size ¶
func (m *RecognitionConfig) XXX_Size() int
func (*RecognitionConfig) XXX_Unmarshal ¶
func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error
type RecognitionConfig_DoNotPerformVad ¶
type RecognitionConfig_DoNotPerformVad struct {
DoNotPerformVad bool `protobuf:"varint,13,opt,name=do_not_perform_vad,json=doNotPerformVad,proto3,oneof"`
}
type RecognitionConfig_VadConfig ¶
type RecognitionConfig_VadConfig struct {
VadConfig *VoiceActivityDetectionConfig `protobuf:"bytes,14,opt,name=vad_config,json=vadConfig,proto3,oneof"`
}
type RecognizeRequest ¶
type RecognizeRequest struct { Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecognizeRequest) Descriptor ¶
func (*RecognizeRequest) Descriptor() ([]byte, []int)
func (*RecognizeRequest) GetAudio ¶
func (m *RecognizeRequest) GetAudio() *RecognitionAudio
func (*RecognizeRequest) GetConfig ¶
func (m *RecognizeRequest) GetConfig() *RecognitionConfig
func (*RecognizeRequest) ProtoMessage ¶
func (*RecognizeRequest) ProtoMessage()
func (*RecognizeRequest) Reset ¶
func (m *RecognizeRequest) Reset()
func (*RecognizeRequest) String ¶
func (m *RecognizeRequest) String() string
func (*RecognizeRequest) XXX_DiscardUnknown ¶
func (m *RecognizeRequest) XXX_DiscardUnknown()
func (*RecognizeRequest) XXX_Marshal ¶
func (m *RecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecognizeRequest) XXX_Merge ¶
func (m *RecognizeRequest) XXX_Merge(src proto.Message)
func (*RecognizeRequest) XXX_Size ¶
func (m *RecognizeRequest) XXX_Size() int
func (*RecognizeRequest) XXX_Unmarshal ¶
func (m *RecognizeRequest) XXX_Unmarshal(b []byte) error
type RecognizeResponse ¶
type RecognizeResponse struct { Results []*SpeechRecognitionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecognizeResponse) Descriptor ¶
func (*RecognizeResponse) Descriptor() ([]byte, []int)
func (*RecognizeResponse) GetResults ¶
func (m *RecognizeResponse) GetResults() []*SpeechRecognitionResult
func (*RecognizeResponse) ProtoMessage ¶
func (*RecognizeResponse) ProtoMessage()
func (*RecognizeResponse) Reset ¶
func (m *RecognizeResponse) Reset()
func (*RecognizeResponse) String ¶
func (m *RecognizeResponse) String() string
func (*RecognizeResponse) XXX_DiscardUnknown ¶
func (m *RecognizeResponse) XXX_DiscardUnknown()
func (*RecognizeResponse) XXX_Marshal ¶
func (m *RecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecognizeResponse) XXX_Merge ¶
func (m *RecognizeResponse) XXX_Merge(src proto.Message)
func (*RecognizeResponse) XXX_Size ¶
func (m *RecognizeResponse) XXX_Size() int
func (*RecognizeResponse) XXX_Unmarshal ¶
func (m *RecognizeResponse) XXX_Unmarshal(b []byte) error
type SpeechContext ¶
type SpeechContext struct { Phrases []string `protobuf:"bytes,1,rep,name=phrases,proto3" json:"phrases,omitempty"` Words []string `protobuf:"bytes,2,rep,name=words,proto3" json:"words,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpeechContext) Descriptor ¶
func (*SpeechContext) Descriptor() ([]byte, []int)
func (*SpeechContext) GetPhrases ¶
func (m *SpeechContext) GetPhrases() []string
func (*SpeechContext) GetWords ¶
func (m *SpeechContext) GetWords() []string
func (*SpeechContext) ProtoMessage ¶
func (*SpeechContext) ProtoMessage()
func (*SpeechContext) Reset ¶
func (m *SpeechContext) Reset()
func (*SpeechContext) String ¶
func (m *SpeechContext) String() string
func (*SpeechContext) XXX_DiscardUnknown ¶
func (m *SpeechContext) XXX_DiscardUnknown()
func (*SpeechContext) XXX_Marshal ¶
func (m *SpeechContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpeechContext) XXX_Merge ¶
func (m *SpeechContext) XXX_Merge(src proto.Message)
func (*SpeechContext) XXX_Size ¶
func (m *SpeechContext) XXX_Size() int
func (*SpeechContext) XXX_Unmarshal ¶
func (m *SpeechContext) XXX_Unmarshal(b []byte) error
type SpeechRecognitionAlternative ¶
type SpeechRecognitionAlternative struct { Transcript string `protobuf:"bytes,1,opt,name=transcript,proto3" json:"transcript,omitempty"` Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpeechRecognitionAlternative) Descriptor ¶
func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int)
func (*SpeechRecognitionAlternative) GetConfidence ¶
func (m *SpeechRecognitionAlternative) GetConfidence() float32
func (*SpeechRecognitionAlternative) GetTranscript ¶
func (m *SpeechRecognitionAlternative) GetTranscript() string
func (*SpeechRecognitionAlternative) GetWords ¶
func (m *SpeechRecognitionAlternative) GetWords() []*WordInfo
func (*SpeechRecognitionAlternative) ProtoMessage ¶
func (*SpeechRecognitionAlternative) ProtoMessage()
func (*SpeechRecognitionAlternative) Reset ¶
func (m *SpeechRecognitionAlternative) Reset()
func (*SpeechRecognitionAlternative) String ¶
func (m *SpeechRecognitionAlternative) String() string
func (*SpeechRecognitionAlternative) XXX_DiscardUnknown ¶
func (m *SpeechRecognitionAlternative) XXX_DiscardUnknown()
func (*SpeechRecognitionAlternative) XXX_Marshal ¶
func (m *SpeechRecognitionAlternative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpeechRecognitionAlternative) XXX_Merge ¶
func (m *SpeechRecognitionAlternative) XXX_Merge(src proto.Message)
func (*SpeechRecognitionAlternative) XXX_Size ¶
func (m *SpeechRecognitionAlternative) XXX_Size() int
func (*SpeechRecognitionAlternative) XXX_Unmarshal ¶
func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error
type SpeechRecognitionResult ¶
type SpeechRecognitionResult struct { Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"` Channel int32 `protobuf:"varint,2,opt,name=channel,proto3" json:"channel,omitempty"` StartTime *duration.Duration `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *duration.Duration `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpeechRecognitionResult) Descriptor ¶
func (*SpeechRecognitionResult) Descriptor() ([]byte, []int)
func (*SpeechRecognitionResult) GetAlternatives ¶
func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative
func (*SpeechRecognitionResult) GetChannel ¶
func (m *SpeechRecognitionResult) GetChannel() int32
func (*SpeechRecognitionResult) GetEndTime ¶
func (m *SpeechRecognitionResult) GetEndTime() *duration.Duration
func (*SpeechRecognitionResult) GetStartTime ¶
func (m *SpeechRecognitionResult) GetStartTime() *duration.Duration
func (*SpeechRecognitionResult) ProtoMessage ¶
func (*SpeechRecognitionResult) ProtoMessage()
func (*SpeechRecognitionResult) Reset ¶
func (m *SpeechRecognitionResult) Reset()
func (*SpeechRecognitionResult) String ¶
func (m *SpeechRecognitionResult) String() string
func (*SpeechRecognitionResult) XXX_DiscardUnknown ¶
func (m *SpeechRecognitionResult) XXX_DiscardUnknown()
func (*SpeechRecognitionResult) XXX_Marshal ¶
func (m *SpeechRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpeechRecognitionResult) XXX_Merge ¶
func (m *SpeechRecognitionResult) XXX_Merge(src proto.Message)
func (*SpeechRecognitionResult) XXX_Size ¶
func (m *SpeechRecognitionResult) XXX_Size() int
func (*SpeechRecognitionResult) XXX_Unmarshal ¶
func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error
type SpeechToTextClient ¶
type SpeechToTextClient interface { Recognize(ctx context.Context, in *RecognizeRequest, opts ...grpc.CallOption) (*RecognizeResponse, error) StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (SpeechToText_StreamingRecognizeClient, error) }
SpeechToTextClient is the client API for SpeechToText service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSpeechToTextClient ¶
func NewSpeechToTextClient(cc *grpc.ClientConn) SpeechToTextClient
type SpeechToTextServer ¶
type SpeechToTextServer interface { Recognize(context.Context, *RecognizeRequest) (*RecognizeResponse, error) StreamingRecognize(SpeechToText_StreamingRecognizeServer) error }
SpeechToTextServer is the server API for SpeechToText service.
type SpeechToText_StreamingRecognizeClient ¶
type SpeechToText_StreamingRecognizeClient interface { Send(*StreamingRecognizeRequest) error Recv() (*StreamingRecognizeResponse, error) grpc.ClientStream }
type SpeechToText_StreamingRecognizeServer ¶
type SpeechToText_StreamingRecognizeServer interface { Send(*StreamingRecognizeResponse) error Recv() (*StreamingRecognizeRequest, error) grpc.ServerStream }
type StreamingRecognitionConfig ¶
type StreamingRecognitionConfig struct { Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"` InterimResultsConfig *InterimResultsConfig `protobuf:"bytes,3,opt,name=interim_results_config,json=interimResultsConfig,proto3" json:"interim_results_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingRecognitionConfig) Descriptor ¶
func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int)
func (*StreamingRecognitionConfig) GetConfig ¶
func (m *StreamingRecognitionConfig) GetConfig() *RecognitionConfig
func (*StreamingRecognitionConfig) GetInterimResultsConfig ¶
func (m *StreamingRecognitionConfig) GetInterimResultsConfig() *InterimResultsConfig
func (*StreamingRecognitionConfig) GetSingleUtterance ¶
func (m *StreamingRecognitionConfig) GetSingleUtterance() bool
func (*StreamingRecognitionConfig) ProtoMessage ¶
func (*StreamingRecognitionConfig) ProtoMessage()
func (*StreamingRecognitionConfig) Reset ¶
func (m *StreamingRecognitionConfig) Reset()
func (*StreamingRecognitionConfig) String ¶
func (m *StreamingRecognitionConfig) String() string
func (*StreamingRecognitionConfig) XXX_DiscardUnknown ¶
func (m *StreamingRecognitionConfig) XXX_DiscardUnknown()
func (*StreamingRecognitionConfig) XXX_Marshal ¶
func (m *StreamingRecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingRecognitionConfig) XXX_Merge ¶
func (m *StreamingRecognitionConfig) XXX_Merge(src proto.Message)
func (*StreamingRecognitionConfig) XXX_Size ¶
func (m *StreamingRecognitionConfig) XXX_Size() int
func (*StreamingRecognitionConfig) XXX_Unmarshal ¶
func (m *StreamingRecognitionConfig) XXX_Unmarshal(b []byte) error
type StreamingRecognitionResult ¶
type StreamingRecognitionResult struct { RecognitionResult *SpeechRecognitionResult `protobuf:"bytes,1,opt,name=recognition_result,json=recognitionResult,proto3" json:"recognition_result,omitempty"` IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"` Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingRecognitionResult) Descriptor ¶
func (*StreamingRecognitionResult) Descriptor() ([]byte, []int)
func (*StreamingRecognitionResult) GetIsFinal ¶
func (m *StreamingRecognitionResult) GetIsFinal() bool
func (*StreamingRecognitionResult) GetRecognitionResult ¶
func (m *StreamingRecognitionResult) GetRecognitionResult() *SpeechRecognitionResult
func (*StreamingRecognitionResult) GetStability ¶
func (m *StreamingRecognitionResult) GetStability() float32
func (*StreamingRecognitionResult) ProtoMessage ¶
func (*StreamingRecognitionResult) ProtoMessage()
func (*StreamingRecognitionResult) Reset ¶
func (m *StreamingRecognitionResult) Reset()
func (*StreamingRecognitionResult) String ¶
func (m *StreamingRecognitionResult) String() string
func (*StreamingRecognitionResult) XXX_DiscardUnknown ¶
func (m *StreamingRecognitionResult) XXX_DiscardUnknown()
func (*StreamingRecognitionResult) XXX_Marshal ¶
func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingRecognitionResult) XXX_Merge ¶
func (m *StreamingRecognitionResult) XXX_Merge(src proto.Message)
func (*StreamingRecognitionResult) XXX_Size ¶
func (m *StreamingRecognitionResult) XXX_Size() int
func (*StreamingRecognitionResult) XXX_Unmarshal ¶
func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error
type StreamingRecognizeRequest ¶
type StreamingRecognizeRequest struct { // Types that are valid to be assigned to StreamingRequest: // *StreamingRecognizeRequest_StreamingConfig // *StreamingRecognizeRequest_AudioContent StreamingRequest isStreamingRecognizeRequest_StreamingRequest `protobuf_oneof:"streaming_request"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingRecognizeRequest) Descriptor ¶
func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int)
func (*StreamingRecognizeRequest) GetAudioContent ¶
func (m *StreamingRecognizeRequest) GetAudioContent() []byte
func (*StreamingRecognizeRequest) GetStreamingConfig ¶
func (m *StreamingRecognizeRequest) GetStreamingConfig() *StreamingRecognitionConfig
func (*StreamingRecognizeRequest) GetStreamingRequest ¶
func (m *StreamingRecognizeRequest) GetStreamingRequest() isStreamingRecognizeRequest_StreamingRequest
func (*StreamingRecognizeRequest) ProtoMessage ¶
func (*StreamingRecognizeRequest) ProtoMessage()
func (*StreamingRecognizeRequest) Reset ¶
func (m *StreamingRecognizeRequest) Reset()
func (*StreamingRecognizeRequest) String ¶
func (m *StreamingRecognizeRequest) String() string
func (*StreamingRecognizeRequest) XXX_DiscardUnknown ¶
func (m *StreamingRecognizeRequest) XXX_DiscardUnknown()
func (*StreamingRecognizeRequest) XXX_Marshal ¶
func (m *StreamingRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingRecognizeRequest) XXX_Merge ¶
func (m *StreamingRecognizeRequest) XXX_Merge(src proto.Message)
func (*StreamingRecognizeRequest) XXX_OneofWrappers ¶
func (*StreamingRecognizeRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*StreamingRecognizeRequest) XXX_Size ¶
func (m *StreamingRecognizeRequest) XXX_Size() int
func (*StreamingRecognizeRequest) XXX_Unmarshal ¶
func (m *StreamingRecognizeRequest) XXX_Unmarshal(b []byte) error
type StreamingRecognizeRequest_AudioContent ¶
type StreamingRecognizeRequest_AudioContent struct {
AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
}
type StreamingRecognizeRequest_StreamingConfig ¶
type StreamingRecognizeRequest_StreamingConfig struct {
StreamingConfig *StreamingRecognitionConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
}
type StreamingRecognizeResponse ¶
type StreamingRecognizeResponse struct { Results []*StreamingRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingRecognizeResponse) Descriptor ¶
func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int)
func (*StreamingRecognizeResponse) GetResults ¶
func (m *StreamingRecognizeResponse) GetResults() []*StreamingRecognitionResult
func (*StreamingRecognizeResponse) ProtoMessage ¶
func (*StreamingRecognizeResponse) ProtoMessage()
func (*StreamingRecognizeResponse) Reset ¶
func (m *StreamingRecognizeResponse) Reset()
func (*StreamingRecognizeResponse) String ¶
func (m *StreamingRecognizeResponse) String() string
func (*StreamingRecognizeResponse) XXX_DiscardUnknown ¶
func (m *StreamingRecognizeResponse) XXX_DiscardUnknown()
func (*StreamingRecognizeResponse) XXX_Marshal ¶
func (m *StreamingRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingRecognizeResponse) XXX_Merge ¶
func (m *StreamingRecognizeResponse) XXX_Merge(src proto.Message)
func (*StreamingRecognizeResponse) XXX_Size ¶
func (m *StreamingRecognizeResponse) XXX_Size() int
func (*StreamingRecognizeResponse) XXX_Unmarshal ¶
func (m *StreamingRecognizeResponse) XXX_Unmarshal(b []byte) error
type VoiceActivityDetectionConfig ¶
type VoiceActivityDetectionConfig struct { MinSpeechDuration float32 `protobuf:"fixed32,1,opt,name=min_speech_duration,json=minSpeechDuration,proto3" json:"min_speech_duration,omitempty"` MaxSpeechDuration float32 `protobuf:"fixed32,2,opt,name=max_speech_duration,json=maxSpeechDuration,proto3" json:"max_speech_duration,omitempty"` SilenceDurationThreshold float32 `` /* 137-byte string literal not displayed */ SilenceProbThreshold float32 `protobuf:"fixed32,4,opt,name=silence_prob_threshold,json=silenceProbThreshold,proto3" json:"silence_prob_threshold,omitempty"` Aggressiveness float32 `protobuf:"fixed32,5,opt,name=aggressiveness,proto3" json:"aggressiveness,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoiceActivityDetectionConfig) Descriptor ¶
func (*VoiceActivityDetectionConfig) Descriptor() ([]byte, []int)
func (*VoiceActivityDetectionConfig) GetAggressiveness ¶
func (m *VoiceActivityDetectionConfig) GetAggressiveness() float32
func (*VoiceActivityDetectionConfig) GetMaxSpeechDuration ¶
func (m *VoiceActivityDetectionConfig) GetMaxSpeechDuration() float32
func (*VoiceActivityDetectionConfig) GetMinSpeechDuration ¶
func (m *VoiceActivityDetectionConfig) GetMinSpeechDuration() float32
func (*VoiceActivityDetectionConfig) GetSilenceDurationThreshold ¶
func (m *VoiceActivityDetectionConfig) GetSilenceDurationThreshold() float32
func (*VoiceActivityDetectionConfig) GetSilenceProbThreshold ¶
func (m *VoiceActivityDetectionConfig) GetSilenceProbThreshold() float32
func (*VoiceActivityDetectionConfig) ProtoMessage ¶
func (*VoiceActivityDetectionConfig) ProtoMessage()
func (*VoiceActivityDetectionConfig) Reset ¶
func (m *VoiceActivityDetectionConfig) Reset()
func (*VoiceActivityDetectionConfig) String ¶
func (m *VoiceActivityDetectionConfig) String() string
func (*VoiceActivityDetectionConfig) XXX_DiscardUnknown ¶
func (m *VoiceActivityDetectionConfig) XXX_DiscardUnknown()
func (*VoiceActivityDetectionConfig) XXX_Marshal ¶
func (m *VoiceActivityDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VoiceActivityDetectionConfig) XXX_Merge ¶
func (m *VoiceActivityDetectionConfig) XXX_Merge(src proto.Message)
func (*VoiceActivityDetectionConfig) XXX_Size ¶
func (m *VoiceActivityDetectionConfig) XXX_Size() int
func (*VoiceActivityDetectionConfig) XXX_Unmarshal ¶
func (m *VoiceActivityDetectionConfig) XXX_Unmarshal(b []byte) error
type WordInfo ¶
type WordInfo struct { StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WordInfo) Descriptor ¶
func (*WordInfo) GetConfidence ¶
func (*WordInfo) GetEndTime ¶
func (*WordInfo) GetStartTime ¶
func (*WordInfo) ProtoMessage ¶
func (*WordInfo) ProtoMessage()
func (*WordInfo) XXX_DiscardUnknown ¶
func (m *WordInfo) XXX_DiscardUnknown()
func (*WordInfo) XXX_Marshal ¶
func (*WordInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.