Documentation
¶
Index ¶
- Constants
- type GradiumLLM
- type GradiumSTT
- func (s *GradiumSTT) Capabilities() stt.STTCapabilities
- func (s *GradiumSTT) Label() string
- func (s *GradiumSTT) Model() string
- func (s *GradiumSTT) Provider() string
- func (s *GradiumSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *GradiumSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type GradiumSTTOption
- func WithGradiumSTTBufferSizeSeconds(seconds float64) GradiumSTTOption
- func WithGradiumSTTLanguage(language string) GradiumSTTOption
- func WithGradiumSTTModelEndpoint(endpoint string) GradiumSTTOption
- func WithGradiumSTTModelName(modelName string) GradiumSTTOption
- func WithGradiumSTTTemperature(temperature float64) GradiumSTTOption
- func WithGradiumSTTVADBucket(bucket *int) GradiumSTTOption
- func WithGradiumSTTVADFlush(enabled bool) GradiumSTTOption
- type GradiumTTS
- func (t *GradiumTTS) Capabilities() tts.TTSCapabilities
- func (t *GradiumTTS) Label() string
- func (t *GradiumTTS) Model() string
- func (t *GradiumTTS) NumChannels() int
- func (t *GradiumTTS) Provider() string
- func (t *GradiumTTS) SampleRate() int
- func (t *GradiumTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *GradiumTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type GradiumTTSOption
- func WithGradiumTTSJSONConfig(jsonConfig map[string]any) GradiumTTSOption
- func WithGradiumTTSModelEndpoint(endpoint string) GradiumTTSOption
- func WithGradiumTTSModelName(modelName string) GradiumTTSOption
- func WithGradiumTTSPronunciationID(pronunciationID string) GradiumTTSOption
- func WithGradiumTTSVoiceID(voiceID string) GradiumTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.gradium" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.gradium" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GradiumLLM ¶
type GradiumLLM struct {
// contains filtered or unexported fields
}
func NewGradiumLLM ¶
func NewGradiumLLM(apiKey string, model string) *GradiumLLM
func (*GradiumLLM) Chat ¶
func (l *GradiumLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type GradiumSTT ¶
type GradiumSTT struct {
// contains filtered or unexported fields
}
func NewGradiumSTT ¶
func NewGradiumSTT(apiKey string, opts ...GradiumSTTOption) *GradiumSTT
func (*GradiumSTT) Capabilities ¶
func (s *GradiumSTT) Capabilities() stt.STTCapabilities
func (*GradiumSTT) Label ¶
func (s *GradiumSTT) Label() string
func (*GradiumSTT) Model ¶ added in v0.0.18
func (s *GradiumSTT) Model() string
func (*GradiumSTT) Provider ¶ added in v0.0.18
func (s *GradiumSTT) Provider() string
func (*GradiumSTT) Recognize ¶
func (s *GradiumSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*GradiumSTT) Stream ¶
func (s *GradiumSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type GradiumSTTOption ¶ added in v0.0.15
type GradiumSTTOption func(*GradiumSTT)
func WithGradiumSTTBufferSizeSeconds ¶ added in v0.0.15
func WithGradiumSTTBufferSizeSeconds(seconds float64) GradiumSTTOption
func WithGradiumSTTLanguage ¶ added in v0.0.15
func WithGradiumSTTLanguage(language string) GradiumSTTOption
func WithGradiumSTTModelEndpoint ¶ added in v0.0.15
func WithGradiumSTTModelEndpoint(endpoint string) GradiumSTTOption
func WithGradiumSTTModelName ¶ added in v0.0.15
func WithGradiumSTTModelName(modelName string) GradiumSTTOption
func WithGradiumSTTTemperature ¶ added in v0.0.15
func WithGradiumSTTTemperature(temperature float64) GradiumSTTOption
func WithGradiumSTTVADBucket ¶ added in v0.0.15
func WithGradiumSTTVADBucket(bucket *int) GradiumSTTOption
func WithGradiumSTTVADFlush ¶ added in v0.0.15
func WithGradiumSTTVADFlush(enabled bool) GradiumSTTOption
type GradiumTTS ¶
type GradiumTTS struct {
// contains filtered or unexported fields
}
func NewGradiumTTS ¶
func NewGradiumTTS(apiKey string, voice string, opts ...GradiumTTSOption) *GradiumTTS
func (*GradiumTTS) Capabilities ¶
func (t *GradiumTTS) Capabilities() tts.TTSCapabilities
func (*GradiumTTS) Label ¶
func (t *GradiumTTS) Label() string
func (*GradiumTTS) Model ¶ added in v0.0.18
func (t *GradiumTTS) Model() string
func (*GradiumTTS) NumChannels ¶
func (t *GradiumTTS) NumChannels() int
func (*GradiumTTS) Provider ¶ added in v0.0.18
func (t *GradiumTTS) Provider() string
func (*GradiumTTS) SampleRate ¶
func (t *GradiumTTS) SampleRate() int
func (*GradiumTTS) Stream ¶
func (t *GradiumTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*GradiumTTS) Synthesize ¶
func (t *GradiumTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type GradiumTTSOption ¶ added in v0.0.15
type GradiumTTSOption func(*GradiumTTS)
func WithGradiumTTSJSONConfig ¶ added in v0.0.15
func WithGradiumTTSJSONConfig(jsonConfig map[string]any) GradiumTTSOption
func WithGradiumTTSModelEndpoint ¶ added in v0.0.15
func WithGradiumTTSModelEndpoint(endpoint string) GradiumTTSOption
func WithGradiumTTSModelName ¶ added in v0.0.15
func WithGradiumTTSModelName(modelName string) GradiumTTSOption
func WithGradiumTTSPronunciationID ¶ added in v0.0.15
func WithGradiumTTSPronunciationID(pronunciationID string) GradiumTTSOption
func WithGradiumTTSVoiceID ¶ added in v0.0.15
func WithGradiumTTSVoiceID(voiceID string) GradiumTTSOption
Click to show internal directories.
Click to hide internal directories.