Documentation
¶
Index ¶
- Constants
- type MistralAISTT
- func (s *MistralAISTT) Capabilities() stt.STTCapabilities
- func (s *MistralAISTT) Label() string
- func (s *MistralAISTT) Model() string
- func (s *MistralAISTT) Provider() string
- func (s *MistralAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *MistralAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type MistralAISTTOption
- type MistralAITTS
- func (t *MistralAITTS) Capabilities() tts.TTSCapabilities
- func (t *MistralAITTS) Label() string
- func (t *MistralAITTS) Model() string
- func (t *MistralAITTS) NumChannels() int
- func (t *MistralAITTS) Provider() string
- func (t *MistralAITTS) SampleRate() int
- func (t *MistralAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *MistralAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type MistralAITTSOption
- func WithMistralAITTSBaseURL(baseURL string) MistralAITTSOption
- func WithMistralAITTSModel(model string) MistralAITTSOption
- func WithMistralAITTSRefAudio(refAudio string) MistralAITTSOption
- func WithMistralAITTSResponseFormat(responseFormat string) MistralAITTSOption
- func WithMistralAITTSVoice(voice string) MistralAITTSOption
- type MistralLLM
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.mistralai" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.mistralai" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MistralAISTT ¶ added in v0.0.15
type MistralAISTT struct {
// contains filtered or unexported fields
}
func NewMistralAISTT ¶ added in v0.0.15
func NewMistralAISTT(apiKey string, opts ...MistralAISTTOption) *MistralAISTT
func (*MistralAISTT) Capabilities ¶ added in v0.0.15
func (s *MistralAISTT) Capabilities() stt.STTCapabilities
func (*MistralAISTT) Label ¶ added in v0.0.15
func (s *MistralAISTT) Label() string
func (*MistralAISTT) Model ¶ added in v0.0.18
func (s *MistralAISTT) Model() string
func (*MistralAISTT) Provider ¶ added in v0.0.18
func (s *MistralAISTT) Provider() string
func (*MistralAISTT) Recognize ¶ added in v0.0.15
func (s *MistralAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*MistralAISTT) Stream ¶ added in v0.0.15
func (s *MistralAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type MistralAISTTOption ¶ added in v0.0.15
type MistralAISTTOption func(*MistralAISTT)
func WithMistralAISTTBaseURL ¶ added in v0.0.15
func WithMistralAISTTBaseURL(baseURL string) MistralAISTTOption
func WithMistralAISTTContextBias ¶ added in v0.0.15
func WithMistralAISTTContextBias(contextBias []string) MistralAISTTOption
func WithMistralAISTTLanguage ¶ added in v0.0.15
func WithMistralAISTTLanguage(language string) MistralAISTTOption
func WithMistralAISTTModel ¶ added in v0.0.15
func WithMistralAISTTModel(model string) MistralAISTTOption
type MistralAITTS ¶ added in v0.0.15
type MistralAITTS struct {
// contains filtered or unexported fields
}
func NewMistralAITTS ¶ added in v0.0.15
func NewMistralAITTS(apiKey string, voice string, opts ...MistralAITTSOption) (*MistralAITTS, error)
func (*MistralAITTS) Capabilities ¶ added in v0.0.15
func (t *MistralAITTS) Capabilities() tts.TTSCapabilities
func (*MistralAITTS) Label ¶ added in v0.0.15
func (t *MistralAITTS) Label() string
func (*MistralAITTS) Model ¶ added in v0.0.18
func (t *MistralAITTS) Model() string
func (*MistralAITTS) NumChannels ¶ added in v0.0.15
func (t *MistralAITTS) NumChannels() int
func (*MistralAITTS) Provider ¶ added in v0.0.18
func (t *MistralAITTS) Provider() string
func (*MistralAITTS) SampleRate ¶ added in v0.0.15
func (t *MistralAITTS) SampleRate() int
func (*MistralAITTS) Stream ¶ added in v0.0.15
func (t *MistralAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*MistralAITTS) Synthesize ¶ added in v0.0.15
func (t *MistralAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type MistralAITTSOption ¶ added in v0.0.15
type MistralAITTSOption func(*MistralAITTS)
func WithMistralAITTSBaseURL ¶ added in v0.0.15
func WithMistralAITTSBaseURL(baseURL string) MistralAITTSOption
func WithMistralAITTSModel ¶ added in v0.0.15
func WithMistralAITTSModel(model string) MistralAITTSOption
func WithMistralAITTSRefAudio ¶ added in v0.0.15
func WithMistralAITTSRefAudio(refAudio string) MistralAITTSOption
func WithMistralAITTSResponseFormat ¶ added in v0.0.15
func WithMistralAITTSResponseFormat(responseFormat string) MistralAITTSOption
func WithMistralAITTSVoice ¶ added in v0.0.15
func WithMistralAITTSVoice(voice string) MistralAITTSOption
type MistralLLM ¶
type MistralLLM struct {
// contains filtered or unexported fields
}
func NewMistralLLM ¶
func NewMistralLLM(apiKey string, model string) *MistralLLM
func (*MistralLLM) Chat ¶
func (l *MistralLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
func (*MistralLLM) Model ¶ added in v0.0.15
func (l *MistralLLM) Model() string
Click to show internal directories.
Click to hide internal directories.