Documentation
¶
Index ¶
- Constants
- type DeepgramKeyword
- type DeepgramSTT
- func (s *DeepgramSTT) Capabilities() stt.STTCapabilities
- func (s *DeepgramSTT) Label() string
- func (s *DeepgramSTT) Model() string
- func (s *DeepgramSTT) Provider() string
- func (s *DeepgramSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
- func (s *DeepgramSTT) Stream(ctx context.Context, languageStr string) (stt.RecognizeStream, error)
- type DeepgramSTTOption
- func WithDeepgramSTTBaseURL(baseURL string) DeepgramSTTOption
- func WithDeepgramSTTDiarization(enableDiarization bool) DeepgramSTTOption
- func WithDeepgramSTTEndpointing(endpointingMS int) DeepgramSTTOption
- func WithDeepgramSTTFillerWords(fillerWords bool) DeepgramSTTOption
- func WithDeepgramSTTInterimResults(interimResults bool) DeepgramSTTOption
- func WithDeepgramSTTKeyterms(keyterms []string) DeepgramSTTOption
- func WithDeepgramSTTKeywords(keywords []DeepgramKeyword) DeepgramSTTOption
- func WithDeepgramSTTMipOptOut(mipOptOut bool) DeepgramSTTOption
- func WithDeepgramSTTNoDelay(noDelay bool) DeepgramSTTOption
- func WithDeepgramSTTNumChannels(numChannels int) DeepgramSTTOption
- func WithDeepgramSTTNumerals(numerals bool) DeepgramSTTOption
- func WithDeepgramSTTProfanityFilter(profanityFilter bool) DeepgramSTTOption
- func WithDeepgramSTTPunctuate(punctuate bool) DeepgramSTTOption
- func WithDeepgramSTTRedact(redact []string) DeepgramSTTOption
- func WithDeepgramSTTSampleRate(sampleRate int) DeepgramSTTOption
- func WithDeepgramSTTSmartFormat(smartFormat bool) DeepgramSTTOption
- func WithDeepgramSTTTags(tags []string) DeepgramSTTOption
- func WithDeepgramSTTVADEvents(vadEvents bool) DeepgramSTTOption
- type DeepgramTTS
- func (t *DeepgramTTS) Capabilities() tts.TTSCapabilities
- func (t *DeepgramTTS) Label() string
- func (t *DeepgramTTS) Model() string
- func (t *DeepgramTTS) NumChannels() int
- func (t *DeepgramTTS) Provider() string
- func (t *DeepgramTTS) SampleRate() int
- func (t *DeepgramTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *DeepgramTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type DeepgramTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.deepgram" PluginVersion = "1.5.15" 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 ¶
type DeepgramSTT struct {
// contains filtered or unexported fields
}
func NewDeepgramSTT ¶
func NewDeepgramSTT(apiKey string, model string, opts ...DeepgramSTTOption) *DeepgramSTT
func (*DeepgramSTT) Capabilities ¶
func (s *DeepgramSTT) Capabilities() stt.STTCapabilities
func (*DeepgramSTT) Label ¶
func (s *DeepgramSTT) Label() string
func (*DeepgramSTT) Model ¶ added in v0.0.18
func (s *DeepgramSTT) Model() string
func (*DeepgramSTT) Provider ¶ added in v0.0.18
func (s *DeepgramSTT) Provider() string
func (*DeepgramSTT) Recognize ¶
func (s *DeepgramSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
func (*DeepgramSTT) Stream ¶
func (s *DeepgramSTT) Stream(ctx context.Context, languageStr string) (stt.RecognizeStream, error)
type DeepgramSTTOption ¶ added in v0.0.15
type DeepgramSTTOption func(*DeepgramSTT)
func WithDeepgramSTTBaseURL ¶ added in v0.0.15
func WithDeepgramSTTBaseURL(baseURL string) DeepgramSTTOption
func WithDeepgramSTTDiarization ¶ added in v0.0.15
func WithDeepgramSTTDiarization(enableDiarization bool) DeepgramSTTOption
func WithDeepgramSTTEndpointing ¶ added in v0.0.15
func WithDeepgramSTTEndpointing(endpointingMS int) DeepgramSTTOption
func WithDeepgramSTTFillerWords ¶ added in v0.0.15
func WithDeepgramSTTFillerWords(fillerWords bool) DeepgramSTTOption
func WithDeepgramSTTInterimResults ¶ added in v0.0.15
func WithDeepgramSTTInterimResults(interimResults bool) DeepgramSTTOption
func WithDeepgramSTTKeyterms ¶ added in v0.0.15
func WithDeepgramSTTKeyterms(keyterms []string) DeepgramSTTOption
func WithDeepgramSTTKeywords ¶ added in v0.0.15
func WithDeepgramSTTKeywords(keywords []DeepgramKeyword) DeepgramSTTOption
func WithDeepgramSTTMipOptOut ¶ added in v0.0.15
func WithDeepgramSTTMipOptOut(mipOptOut bool) DeepgramSTTOption
func WithDeepgramSTTNoDelay ¶ added in v0.0.15
func WithDeepgramSTTNoDelay(noDelay bool) DeepgramSTTOption
func WithDeepgramSTTNumChannels ¶ added in v0.0.15
func WithDeepgramSTTNumChannels(numChannels int) DeepgramSTTOption
func WithDeepgramSTTNumerals ¶ added in v0.0.15
func WithDeepgramSTTNumerals(numerals bool) DeepgramSTTOption
func WithDeepgramSTTProfanityFilter ¶ added in v0.0.15
func WithDeepgramSTTProfanityFilter(profanityFilter bool) DeepgramSTTOption
func WithDeepgramSTTPunctuate ¶ added in v0.0.15
func WithDeepgramSTTPunctuate(punctuate bool) DeepgramSTTOption
func WithDeepgramSTTRedact ¶ added in v0.0.15
func WithDeepgramSTTRedact(redact []string) DeepgramSTTOption
func WithDeepgramSTTSampleRate ¶ added in v0.0.15
func WithDeepgramSTTSampleRate(sampleRate int) DeepgramSTTOption
func WithDeepgramSTTSmartFormat ¶ added in v0.0.15
func WithDeepgramSTTSmartFormat(smartFormat bool) DeepgramSTTOption
func WithDeepgramSTTTags ¶ added in v0.0.15
func WithDeepgramSTTTags(tags []string) DeepgramSTTOption
func WithDeepgramSTTVADEvents ¶ added in v0.0.15
func WithDeepgramSTTVADEvents(vadEvents bool) DeepgramSTTOption
type DeepgramTTS ¶
type DeepgramTTS struct {
// contains filtered or unexported fields
}
func NewDeepgramTTS ¶
func NewDeepgramTTS(apiKey string, model string, opts ...DeepgramTTSOption) *DeepgramTTS
func (*DeepgramTTS) Capabilities ¶
func (t *DeepgramTTS) Capabilities() tts.TTSCapabilities
func (*DeepgramTTS) Label ¶
func (t *DeepgramTTS) Label() string
func (*DeepgramTTS) Model ¶ added in v0.0.18
func (t *DeepgramTTS) Model() string
func (*DeepgramTTS) NumChannels ¶
func (t *DeepgramTTS) NumChannels() int
func (*DeepgramTTS) Provider ¶ added in v0.0.18
func (t *DeepgramTTS) Provider() string
func (*DeepgramTTS) SampleRate ¶
func (t *DeepgramTTS) SampleRate() int
func (*DeepgramTTS) Stream ¶
func (t *DeepgramTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*DeepgramTTS) Synthesize ¶
func (t *DeepgramTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type DeepgramTTSOption ¶ added in v0.0.15
type DeepgramTTSOption func(*DeepgramTTS)
func WithDeepgramTTSAudioFormat ¶ added in v0.0.15
func WithDeepgramTTSAudioFormat(encoding string, sampleRate int) DeepgramTTSOption
func WithDeepgramTTSBaseURL ¶ added in v0.0.15
func WithDeepgramTTSBaseURL(baseURL string) DeepgramTTSOption
func WithDeepgramTTSMipOptOut ¶ added in v0.0.15
func WithDeepgramTTSMipOptOut(mipOptOut bool) DeepgramTTSOption
Click to show internal directories.
Click to hide internal directories.