deepgram

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

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 (*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

Jump to

Keyboard shortcuts

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