gradium

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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.gradium"
	PluginVersion = "v0.4.2"
	PluginPackage = "rtp-agent.plugins.gradium"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GradiumSTT deprecated

type GradiumSTT = STT

Deprecated: use STT.

type GradiumSTTOption deprecated added in v0.0.15

type GradiumSTTOption = STTOption

Deprecated: use STTOption.

type GradiumSTTUpdateOption added in v0.1.6

type GradiumSTTUpdateOption func(*gradiumSTTUpdateOptions)

func WithGradiumSTTUpdateBufferSizeSeconds added in v0.1.6

func WithGradiumSTTUpdateBufferSizeSeconds(seconds float64) GradiumSTTUpdateOption

type GradiumTTS deprecated

type GradiumTTS = TTS

Deprecated: use TTS.

type GradiumTTSOption deprecated added in v0.0.15

type GradiumTTSOption = TTSOption

Deprecated: use TTSOption.

type STT added in v0.4.2

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

func NewGradiumSTT deprecated

func NewGradiumSTT(apiKey string, opts ...STTOption) *STT

Deprecated: use NewSTT.

func NewSTT added in v0.4.2

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

func (*STT) Capabilities added in v0.4.2

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

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, language string) (*stt.SpeechEvent, error)

func (*STT) Stream added in v0.4.2

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

func (*STT) UpdateOptions added in v0.4.2

func (s *STT) UpdateOptions(opts ...GradiumSTTUpdateOption)

type STTOption added in v0.4.2

type STTOption func(*STT)

func WithGradiumSTTBufferSizeSeconds added in v0.0.15

func WithGradiumSTTBufferSizeSeconds(seconds float64) STTOption

func WithGradiumSTTLanguage added in v0.0.15

func WithGradiumSTTLanguage(language string) STTOption

func WithGradiumSTTModelEndpoint added in v0.0.15

func WithGradiumSTTModelEndpoint(endpoint string) STTOption

func WithGradiumSTTModelName added in v0.0.15

func WithGradiumSTTModelName(modelName string) STTOption

func WithGradiumSTTTemperature added in v0.0.15

func WithGradiumSTTTemperature(temperature float64) STTOption

func WithGradiumSTTVADBucket added in v0.0.15

func WithGradiumSTTVADBucket(bucket *int) STTOption

func WithGradiumSTTVADFlush added in v0.0.15

func WithGradiumSTTVADFlush(enabled bool) STTOption

type TTS added in v0.4.2

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

func NewGradiumTTS deprecated

func NewGradiumTTS(apiKey string, voice string, opts ...TTSOption) *TTS

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

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

func (*TTS) Capabilities added in v0.4.2

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

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) 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)

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithGradiumTTSJSONConfig added in v0.0.15

func WithGradiumTTSJSONConfig(jsonConfig map[string]any) TTSOption

func WithGradiumTTSModelEndpoint added in v0.0.15

func WithGradiumTTSModelEndpoint(endpoint string) TTSOption

func WithGradiumTTSModelName added in v0.0.15

func WithGradiumTTSModelName(modelName string) TTSOption

func WithGradiumTTSPronunciationID added in v0.0.15

func WithGradiumTTSPronunciationID(pronunciationID string) TTSOption

func WithGradiumTTSVoiceID added in v0.0.15

func WithGradiumTTSVoiceID(voiceID string) TTSOption

Jump to

Keyboard shortcuts

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