Documentation
¶
Index ¶
- Constants
- type DeepgramKeyword
- type DeepgramSTTdeprecated
- type DeepgramSTTOptiondeprecated
- type DeepgramSTTv2
- func (s *DeepgramSTTv2) Capabilities() stt.STTCapabilities
- func (s *DeepgramSTTv2) Close() error
- func (s *DeepgramSTTv2) InputSampleRate() uint32
- func (s *DeepgramSTTv2) Label() string
- func (s *DeepgramSTTv2) Model() string
- func (s *DeepgramSTTv2) Provider() string
- func (s *DeepgramSTTv2) Recognize(context.Context, []*model.AudioFrame, string) (*stt.SpeechEvent, error)
- func (s *DeepgramSTTv2) Stream(ctx context.Context, _ string) (stt.RecognizeStream, error)
- func (s *DeepgramSTTv2) UpdateOptions(opts ...DeepgramSTTv2Option) error
- type DeepgramSTTv2Option
- func WithDeepgramSTTv2BaseURL(baseURL string) DeepgramSTTv2Option
- func WithDeepgramSTTv2EOTThreshold(threshold float64) DeepgramSTTv2Option
- func WithDeepgramSTTv2EOTTimeout(timeoutMS int) DeepgramSTTv2Option
- func WithDeepgramSTTv2EagerEOTThreshold(threshold float64) DeepgramSTTv2Option
- func WithDeepgramSTTv2Keyterms(keyterms []string) DeepgramSTTv2Option
- func WithDeepgramSTTv2LanguageHints(hints []string) DeepgramSTTv2Option
- func WithDeepgramSTTv2MipOptOut(mipOptOut bool) DeepgramSTTv2Option
- func WithDeepgramSTTv2Model(model string) DeepgramSTTv2Option
- func WithDeepgramSTTv2SampleRate(sampleRate int) DeepgramSTTv2Option
- func WithDeepgramSTTv2Tags(tags []string) DeepgramSTTv2Option
- type DeepgramTTSdeprecated
- type DeepgramTTSOptiondeprecated
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- func (s *STT) InputSampleRate() uint32
- func (s *STT) Label() string
- func (s *STT) Model() string
- func (s *STT) Provider() string
- func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
- func (s *STT) Stream(ctx context.Context, languageStr string) (stt.RecognizeStream, error)
- func (s *STT) UpdateOptions(opts ...STTOption) error
- type STTOption
- func WithDeepgramSTTBaseURL(baseURL string) STTOption
- func WithDeepgramSTTDetectLanguage(detectLanguage bool) STTOption
- func WithDeepgramSTTDiarization(enableDiarization bool) STTOption
- func WithDeepgramSTTEndpointing(endpointingMS int) STTOption
- func WithDeepgramSTTFillerWords(fillerWords bool) STTOption
- func WithDeepgramSTTInterimResults(interimResults bool) STTOption
- func WithDeepgramSTTKeyterms(keyterms []string) STTOption
- func WithDeepgramSTTKeywords(keywords []DeepgramKeyword) STTOption
- func WithDeepgramSTTLanguage(languageStr string) STTOption
- func WithDeepgramSTTMipOptOut(mipOptOut bool) STTOption
- func WithDeepgramSTTModel(model string) STTOption
- func WithDeepgramSTTNoDelay(noDelay bool) STTOption
- func WithDeepgramSTTNumChannels(numChannels int) STTOption
- func WithDeepgramSTTNumerals(numerals bool) STTOption
- func WithDeepgramSTTProfanityFilter(profanityFilter bool) STTOption
- func WithDeepgramSTTPunctuate(punctuate bool) STTOption
- func WithDeepgramSTTRedact(redact []string) STTOption
- func WithDeepgramSTTSampleRate(sampleRate int) STTOption
- func WithDeepgramSTTSmartFormat(smartFormat bool) STTOption
- func WithDeepgramSTTTags(tags []string) STTOption
- func WithDeepgramSTTVADEvents(vadEvents bool) STTOption
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Close() error
- func (t *TTS) Label() string
- func (t *TTS) Model() string
- func (t *TTS) NumChannels() int
- func (t *TTS) Prewarm()
- func (t *TTS) Provider() string
- func (t *TTS) SampleRate() int
- func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *TTS) UpdateOptions(model string)
- type TTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.deepgram" PluginVersion = "v0.4.2" PluginPackage = "rtp-agent.plugins.deepgram" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeepgramKeyword ¶ added in v0.0.15
type DeepgramSTT
deprecated
type DeepgramSTT = STT
Deprecated: use STT.
type DeepgramSTTOption
deprecated
added in
v0.0.15
type DeepgramSTTOption = STTOption
Deprecated: use STTOption.
type DeepgramSTTv2 ¶ added in v0.1.4
type DeepgramSTTv2 struct {
// contains filtered or unexported fields
}
func NewDeepgramSTTv2 ¶ added in v0.1.4
func NewDeepgramSTTv2(apiKey string, opts ...DeepgramSTTv2Option) *DeepgramSTTv2
func (*DeepgramSTTv2) Capabilities ¶ added in v0.1.4
func (s *DeepgramSTTv2) Capabilities() stt.STTCapabilities
func (*DeepgramSTTv2) Close ¶ added in v0.1.4
func (s *DeepgramSTTv2) Close() error
func (*DeepgramSTTv2) InputSampleRate ¶ added in v0.1.4
func (s *DeepgramSTTv2) InputSampleRate() uint32
func (*DeepgramSTTv2) Label ¶ added in v0.1.4
func (s *DeepgramSTTv2) Label() string
func (*DeepgramSTTv2) Model ¶ added in v0.1.4
func (s *DeepgramSTTv2) Model() string
func (*DeepgramSTTv2) Provider ¶ added in v0.1.4
func (s *DeepgramSTTv2) Provider() string
func (*DeepgramSTTv2) Recognize ¶ added in v0.1.4
func (s *DeepgramSTTv2) Recognize(context.Context, []*model.AudioFrame, string) (*stt.SpeechEvent, error)
func (*DeepgramSTTv2) Stream ¶ added in v0.1.4
func (s *DeepgramSTTv2) Stream(ctx context.Context, _ string) (stt.RecognizeStream, error)
func (*DeepgramSTTv2) UpdateOptions ¶ added in v0.1.4
func (s *DeepgramSTTv2) UpdateOptions(opts ...DeepgramSTTv2Option) error
type DeepgramSTTv2Option ¶ added in v0.1.4
type DeepgramSTTv2Option func(*DeepgramSTTv2)
func WithDeepgramSTTv2BaseURL ¶ added in v0.1.4
func WithDeepgramSTTv2BaseURL(baseURL string) DeepgramSTTv2Option
func WithDeepgramSTTv2EOTThreshold ¶ added in v0.1.4
func WithDeepgramSTTv2EOTThreshold(threshold float64) DeepgramSTTv2Option
func WithDeepgramSTTv2EOTTimeout ¶ added in v0.1.4
func WithDeepgramSTTv2EOTTimeout(timeoutMS int) DeepgramSTTv2Option
func WithDeepgramSTTv2EagerEOTThreshold ¶ added in v0.1.4
func WithDeepgramSTTv2EagerEOTThreshold(threshold float64) DeepgramSTTv2Option
func WithDeepgramSTTv2Keyterms ¶ added in v0.1.4
func WithDeepgramSTTv2Keyterms(keyterms []string) DeepgramSTTv2Option
func WithDeepgramSTTv2LanguageHints ¶ added in v0.1.4
func WithDeepgramSTTv2LanguageHints(hints []string) DeepgramSTTv2Option
func WithDeepgramSTTv2MipOptOut ¶ added in v0.1.4
func WithDeepgramSTTv2MipOptOut(mipOptOut bool) DeepgramSTTv2Option
func WithDeepgramSTTv2Model ¶ added in v0.1.4
func WithDeepgramSTTv2Model(model string) DeepgramSTTv2Option
func WithDeepgramSTTv2SampleRate ¶ added in v0.1.4
func WithDeepgramSTTv2SampleRate(sampleRate int) DeepgramSTTv2Option
func WithDeepgramSTTv2Tags ¶ added in v0.1.4
func WithDeepgramSTTv2Tags(tags []string) DeepgramSTTv2Option
type DeepgramTTS
deprecated
type DeepgramTTS = TTS
Deprecated: use TTS.
type DeepgramTTSOption
deprecated
added in
v0.0.15
type DeepgramTTSOption = TTSOption
Deprecated: use TTSOption.
type STT ¶ added in v0.4.2
type STT struct {
// contains filtered or unexported fields
}
func NewDeepgramSTT
deprecated
func (*STT) Capabilities ¶ added in v0.4.2
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) InputSampleRate ¶ added in v0.4.2
func (*STT) Recognize ¶ added in v0.4.2
func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
func (*STT) UpdateOptions ¶ added in v0.4.2
type STTOption ¶ added in v0.4.2
type STTOption func(*STT)
func WithDeepgramSTTBaseURL ¶ added in v0.0.15
func WithDeepgramSTTDetectLanguage ¶ added in v0.1.0
func WithDeepgramSTTDiarization ¶ added in v0.0.15
func WithDeepgramSTTEndpointing ¶ added in v0.0.15
func WithDeepgramSTTFillerWords ¶ added in v0.0.15
func WithDeepgramSTTInterimResults ¶ added in v0.0.15
func WithDeepgramSTTKeyterms ¶ added in v0.0.15
func WithDeepgramSTTKeywords ¶ added in v0.0.15
func WithDeepgramSTTKeywords(keywords []DeepgramKeyword) STTOption
func WithDeepgramSTTLanguage ¶ added in v0.1.0
func WithDeepgramSTTMipOptOut ¶ added in v0.0.15
func WithDeepgramSTTModel ¶ added in v0.1.4
func WithDeepgramSTTNoDelay ¶ added in v0.0.15
func WithDeepgramSTTNumChannels ¶ added in v0.0.15
func WithDeepgramSTTNumerals ¶ added in v0.0.15
func WithDeepgramSTTProfanityFilter ¶ added in v0.0.15
func WithDeepgramSTTPunctuate ¶ added in v0.0.15
func WithDeepgramSTTRedact ¶ added in v0.0.15
func WithDeepgramSTTSampleRate ¶ added in v0.0.15
func WithDeepgramSTTSmartFormat ¶ added in v0.0.15
func WithDeepgramSTTTags ¶ added in v0.0.15
func WithDeepgramSTTVADEvents ¶ added in v0.0.15
type TTS ¶ added in v0.4.2
type TTS struct {
// contains filtered or unexported fields
}
func NewDeepgramTTS
deprecated
func (*TTS) Capabilities ¶ added in v0.4.2
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶ added in v0.4.2
func (*TTS) SampleRate ¶ added in v0.4.2
func (*TTS) Synthesize ¶ added in v0.4.2
func (*TTS) UpdateOptions ¶ added in v0.4.2
type TTSOption ¶ added in v0.4.2
type TTSOption func(*TTS)
func WithDeepgramTTSAudioFormat ¶ added in v0.0.15
func WithDeepgramTTSBaseURL ¶ added in v0.0.15
func WithDeepgramTTSMipOptOut ¶ added in v0.0.15
func WithDeepgramTTSStreamResponseTimeout ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.