Documentation
¶
Index ¶
- type OpenAILLM
- type OpenAISTT
- func (s *OpenAISTT) Capabilities() stt.STTCapabilities
- func (s *OpenAISTT) Label() string
- func (s *OpenAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *OpenAISTT) SetLanguage(lang string)
- func (s *OpenAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type OpenAITTS
- func (t *OpenAITTS) Capabilities() tts.TTSCapabilities
- func (t *OpenAITTS) Label() string
- func (t *OpenAITTS) NumChannels() int
- func (t *OpenAITTS) SampleRate() int
- func (t *OpenAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *OpenAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type OpenAITTSOptions
- type RealtimeModel
- type SpeechModel
- type SpeechVoice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAILLM ¶
type OpenAILLM struct {
// contains filtered or unexported fields
}
func NewOpenAILLM ¶
func NewOpenAILLMWithBaseURL ¶
func NewOpenAILLMWithConfig ¶
func NewOpenAILLMWithConfig(config openai.ClientConfig) *OpenAILLM
type OpenAISTT ¶
type OpenAISTT struct {
// contains filtered or unexported fields
}
func NewOpenAISTT ¶
func NewOpenAISTTWithBaseURL ¶ added in v0.0.6
func NewOpenAISTTWithPrompt ¶ added in v0.0.6
func (*OpenAISTT) Capabilities ¶
func (s *OpenAISTT) Capabilities() stt.STTCapabilities
func (*OpenAISTT) Recognize ¶
func (s *OpenAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*OpenAISTT) SetLanguage ¶ added in v0.0.9
type OpenAITTS ¶
type OpenAITTS struct {
// contains filtered or unexported fields
}
func NewOpenAITTS ¶
func NewOpenAITTS(apiKey string, model openai.SpeechModel, voice openai.SpeechVoice, opts ...OpenAITTSOptions) *OpenAITTS
func (*OpenAITTS) Capabilities ¶
func (t *OpenAITTS) Capabilities() tts.TTSCapabilities
func (*OpenAITTS) NumChannels ¶
func (*OpenAITTS) SampleRate ¶
func (*OpenAITTS) Synthesize ¶
type OpenAITTSOptions ¶ added in v0.0.5
type OpenAITTSOptions struct {
SampleRate int
}
type RealtimeModel ¶
type RealtimeModel struct {
// contains filtered or unexported fields
}
func NewRealtimeModel ¶
func NewRealtimeModel(apiKey, model string) *RealtimeModel
func (*RealtimeModel) Session ¶
func (m *RealtimeModel) Session() (llm.RealtimeSession, error)
type SpeechModel ¶ added in v0.0.9
type SpeechModel = openai.SpeechModel
type SpeechVoice ¶ added in v0.0.9
type SpeechVoice = openai.SpeechVoice
Click to show internal directories.
Click to hide internal directories.