Documentation
¶
Index ¶
- Constants
- type DeepgramKeyword
- type DeepgramSTT
- func (s *DeepgramSTT) Capabilities() stt.STTCapabilities
- func (s *DeepgramSTT) Close() error
- func (s *DeepgramSTT) InputSampleRate() uint32
- 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)
- func (s *DeepgramSTT) UpdateOptions(opts ...DeepgramSTTOption) error
- type DeepgramSTTOption
- func WithDeepgramSTTBaseURL(baseURL string) DeepgramSTTOption
- func WithDeepgramSTTDetectLanguage(detectLanguage bool) 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 WithDeepgramSTTLanguage(languageStr string) DeepgramSTTOption
- func WithDeepgramSTTMipOptOut(mipOptOut bool) DeepgramSTTOption
- func WithDeepgramSTTModel(model string) 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 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 DeepgramTTS
- func (t *DeepgramTTS) Capabilities() tts.TTSCapabilities
- func (t *DeepgramTTS) Close() error
- func (t *DeepgramTTS) Label() string
- func (t *DeepgramTTS) Model() string
- func (t *DeepgramTTS) NumChannels() int
- func (t *DeepgramTTS) Prewarm()
- 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)
- func (t *DeepgramTTS) UpdateOptions(model string)
- type DeepgramTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.deepgram" PluginVersion = "v0.1.7" 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) Close ¶ added in v0.1.0
func (s *DeepgramSTT) Close() error
func (*DeepgramSTT) InputSampleRate ¶ added in v0.1.0
func (s *DeepgramSTT) InputSampleRate() uint32
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)
func (*DeepgramSTT) UpdateOptions ¶ added in v0.1.0
func (s *DeepgramSTT) UpdateOptions(opts ...DeepgramSTTOption) 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 WithDeepgramSTTDetectLanguage ¶ added in v0.1.0
func WithDeepgramSTTDetectLanguage(detectLanguage bool) 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 WithDeepgramSTTLanguage ¶ added in v0.1.0
func WithDeepgramSTTLanguage(languageStr string) DeepgramSTTOption
func WithDeepgramSTTMipOptOut ¶ added in v0.0.15
func WithDeepgramSTTMipOptOut(mipOptOut bool) DeepgramSTTOption
func WithDeepgramSTTModel ¶ added in v0.1.4
func WithDeepgramSTTModel(model string) 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 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 ¶
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) Close ¶ added in v0.1.0
func (t *DeepgramTTS) Close() error
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) Prewarm ¶ added in v0.1.4
func (t *DeepgramTTS) Prewarm()
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)
func (*DeepgramTTS) UpdateOptions ¶ added in v0.1.0
func (t *DeepgramTTS) UpdateOptions(model string)
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
func WithDeepgramTTSStreamResponseTimeout ¶ added in v0.1.4
func WithDeepgramTTSStreamResponseTimeout(timeout time.Duration) DeepgramTTSOption
Click to show internal directories.
Click to hide internal directories.