deepgram

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

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 DeepgramKeyword struct {
	Keyword string
	Boost   float64
}

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 (*DeepgramSTTv2) Stream added in v0.1.4

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 NewDeepgramSTT(apiKey string, model string, opts ...STTOption) *STT

Deprecated: use NewSTT.

func NewSTT added in v0.4.2

func NewSTT(apiKey string, model string, opts ...STTOption) *STT

func (*STT) Capabilities added in v0.4.2

func (s *STT) Capabilities() stt.STTCapabilities

func (*STT) Close added in v0.4.2

func (s *STT) Close() error

func (*STT) InputSampleRate added in v0.4.2

func (s *STT) InputSampleRate() uint32

func (*STT) Label added in v0.4.2

func (s *STT) Label() string

func (*STT) Model added in v0.4.2

func (s *STT) Model() string

func (*STT) Provider added in v0.4.2

func (s *STT) Provider() string

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) Stream added in v0.4.2

func (s *STT) Stream(ctx context.Context, languageStr string) (stt.RecognizeStream, error)

func (*STT) UpdateOptions added in v0.4.2

func (s *STT) UpdateOptions(opts ...STTOption) error

type STTOption added in v0.4.2

type STTOption func(*STT)

func WithDeepgramSTTBaseURL added in v0.0.15

func WithDeepgramSTTBaseURL(baseURL string) STTOption

func WithDeepgramSTTDetectLanguage added in v0.1.0

func WithDeepgramSTTDetectLanguage(detectLanguage bool) STTOption

func WithDeepgramSTTDiarization added in v0.0.15

func WithDeepgramSTTDiarization(enableDiarization bool) STTOption

func WithDeepgramSTTEndpointing added in v0.0.15

func WithDeepgramSTTEndpointing(endpointingMS int) STTOption

func WithDeepgramSTTFillerWords added in v0.0.15

func WithDeepgramSTTFillerWords(fillerWords bool) STTOption

func WithDeepgramSTTInterimResults added in v0.0.15

func WithDeepgramSTTInterimResults(interimResults bool) STTOption

func WithDeepgramSTTKeyterms added in v0.0.15

func WithDeepgramSTTKeyterms(keyterms []string) STTOption

func WithDeepgramSTTKeywords added in v0.0.15

func WithDeepgramSTTKeywords(keywords []DeepgramKeyword) STTOption

func WithDeepgramSTTLanguage added in v0.1.0

func WithDeepgramSTTLanguage(languageStr string) STTOption

func WithDeepgramSTTMipOptOut added in v0.0.15

func WithDeepgramSTTMipOptOut(mipOptOut bool) STTOption

func WithDeepgramSTTModel added in v0.1.4

func WithDeepgramSTTModel(model string) STTOption

func WithDeepgramSTTNoDelay added in v0.0.15

func WithDeepgramSTTNoDelay(noDelay bool) STTOption

func WithDeepgramSTTNumChannels added in v0.0.15

func WithDeepgramSTTNumChannels(numChannels int) STTOption

func WithDeepgramSTTNumerals added in v0.0.15

func WithDeepgramSTTNumerals(numerals bool) STTOption

func WithDeepgramSTTProfanityFilter added in v0.0.15

func WithDeepgramSTTProfanityFilter(profanityFilter bool) STTOption

func WithDeepgramSTTPunctuate added in v0.0.15

func WithDeepgramSTTPunctuate(punctuate bool) STTOption

func WithDeepgramSTTRedact added in v0.0.15

func WithDeepgramSTTRedact(redact []string) STTOption

func WithDeepgramSTTSampleRate added in v0.0.15

func WithDeepgramSTTSampleRate(sampleRate int) STTOption

func WithDeepgramSTTSmartFormat added in v0.0.15

func WithDeepgramSTTSmartFormat(smartFormat bool) STTOption

func WithDeepgramSTTTags added in v0.0.15

func WithDeepgramSTTTags(tags []string) STTOption

func WithDeepgramSTTVADEvents added in v0.0.15

func WithDeepgramSTTVADEvents(vadEvents bool) STTOption

type TTS added in v0.4.2

type TTS struct {
	// contains filtered or unexported fields
}

func NewDeepgramTTS deprecated

func NewDeepgramTTS(apiKey string, model string, opts ...TTSOption) *TTS

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(apiKey string, model string, opts ...TTSOption) *TTS

func (*TTS) Capabilities added in v0.4.2

func (t *TTS) Capabilities() tts.TTSCapabilities

func (*TTS) Close added in v0.4.2

func (t *TTS) Close() error

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Prewarm added in v0.4.2

func (t *TTS) Prewarm()

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*TTS) Synthesize added in v0.4.2

func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

func (*TTS) UpdateOptions added in v0.4.2

func (t *TTS) UpdateOptions(model string)

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithDeepgramTTSAudioFormat added in v0.0.15

func WithDeepgramTTSAudioFormat(encoding string, sampleRate int) TTSOption

func WithDeepgramTTSBaseURL added in v0.0.15

func WithDeepgramTTSBaseURL(baseURL string) TTSOption

func WithDeepgramTTSMipOptOut added in v0.0.15

func WithDeepgramTTSMipOptOut(mipOptOut bool) TTSOption

func WithDeepgramTTSStreamResponseTimeout added in v0.1.4

func WithDeepgramTTSStreamResponseTimeout(timeout time.Duration) TTSOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL