Documentation
¶
Index ¶
- Constants
- type InworldLLM
- type InworldSTT
- func (s *InworldSTT) Capabilities() stt.STTCapabilities
- func (s *InworldSTT) Label() string
- func (s *InworldSTT) Model() string
- func (s *InworldSTT) Provider() string
- func (s *InworldSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *InworldSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type InworldSTTOption
- func WithInworldSTTBaseURL(baseURL string) InworldSTTOption
- func WithInworldSTTEndOfTurnConfidenceThreshold(threshold float64) InworldSTTOption
- func WithInworldSTTLanguage(language string) InworldSTTOption
- func WithInworldSTTMinEndOfTurnSilenceWhenConfident(ms int) InworldSTTOption
- func WithInworldSTTModel(model string) InworldSTTOption
- func WithInworldSTTNumChannels(numChannels int) InworldSTTOption
- func WithInworldSTTSampleRate(sampleRate int) InworldSTTOption
- func WithInworldSTTVADThreshold(threshold float64) InworldSTTOption
- func WithInworldSTTVoiceProfile(enabled bool) InworldSTTOption
- func WithInworldSTTVoiceProfileTopN(topN int) InworldSTTOption
- type InworldTTS
- func (t *InworldTTS) Capabilities() tts.TTSCapabilities
- func (t *InworldTTS) Label() string
- func (t *InworldTTS) Model() string
- func (t *InworldTTS) NumChannels() int
- func (t *InworldTTS) Provider() string
- func (t *InworldTTS) SampleRate() int
- func (t *InworldTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *InworldTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type InworldTTSOption
- func WithInworldTTSBaseURL(baseURL string) InworldTTSOption
- func WithInworldTTSBitRate(bitRate int) InworldTTSOption
- func WithInworldTTSBufferCharThreshold(threshold int) InworldTTSOption
- func WithInworldTTSDeliveryMode(deliveryMode string) InworldTTSOption
- func WithInworldTTSEncoding(encoding string) InworldTTSOption
- func WithInworldTTSLanguage(language string) InworldTTSOption
- func WithInworldTTSMaxBufferDelayMS(delayMS int) InworldTTSOption
- func WithInworldTTSModel(model string) InworldTTSOption
- func WithInworldTTSSampleRate(sampleRate int) InworldTTSOption
- func WithInworldTTSSpeakingRate(speakingRate float64) InworldTTSOption
- func WithInworldTTSTemperature(temperature float64) InworldTTSOption
- func WithInworldTTSTextNormalization(enabled bool) InworldTTSOption
- func WithInworldTTSTimestampTransportStrategy(strategy string) InworldTTSOption
- func WithInworldTTSTimestampType(timestampType string) InworldTTSOption
- func WithInworldTTSVoice(voice string) InworldTTSOption
- func WithInworldTTSWebsocketURL(wsURL string) InworldTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.inworld" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.inworld" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InworldLLM ¶
type InworldLLM struct {
// contains filtered or unexported fields
}
func NewInworldLLM ¶
func NewInworldLLM(apiKey string, model string) *InworldLLM
func (*InworldLLM) Chat ¶
func (l *InworldLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type InworldSTT ¶ added in v0.0.15
type InworldSTT struct {
// contains filtered or unexported fields
}
func NewInworldSTT ¶ added in v0.0.15
func NewInworldSTT(apiKey string, opts ...InworldSTTOption) *InworldSTT
func (*InworldSTT) Capabilities ¶ added in v0.0.15
func (s *InworldSTT) Capabilities() stt.STTCapabilities
func (*InworldSTT) Label ¶ added in v0.0.15
func (s *InworldSTT) Label() string
func (*InworldSTT) Model ¶ added in v0.0.18
func (s *InworldSTT) Model() string
func (*InworldSTT) Provider ¶ added in v0.0.18
func (s *InworldSTT) Provider() string
func (*InworldSTT) Recognize ¶ added in v0.0.15
func (s *InworldSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*InworldSTT) Stream ¶ added in v0.0.15
func (s *InworldSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type InworldSTTOption ¶ added in v0.0.15
type InworldSTTOption func(*InworldSTT)
func WithInworldSTTBaseURL ¶ added in v0.0.15
func WithInworldSTTBaseURL(baseURL string) InworldSTTOption
func WithInworldSTTEndOfTurnConfidenceThreshold ¶ added in v0.0.15
func WithInworldSTTEndOfTurnConfidenceThreshold(threshold float64) InworldSTTOption
func WithInworldSTTLanguage ¶ added in v0.0.15
func WithInworldSTTLanguage(language string) InworldSTTOption
func WithInworldSTTMinEndOfTurnSilenceWhenConfident ¶ added in v0.0.15
func WithInworldSTTMinEndOfTurnSilenceWhenConfident(ms int) InworldSTTOption
func WithInworldSTTModel ¶ added in v0.0.15
func WithInworldSTTModel(model string) InworldSTTOption
func WithInworldSTTNumChannels ¶ added in v0.0.15
func WithInworldSTTNumChannels(numChannels int) InworldSTTOption
func WithInworldSTTSampleRate ¶ added in v0.0.15
func WithInworldSTTSampleRate(sampleRate int) InworldSTTOption
func WithInworldSTTVADThreshold ¶ added in v0.0.15
func WithInworldSTTVADThreshold(threshold float64) InworldSTTOption
func WithInworldSTTVoiceProfile ¶ added in v0.0.15
func WithInworldSTTVoiceProfile(enabled bool) InworldSTTOption
func WithInworldSTTVoiceProfileTopN ¶ added in v0.0.15
func WithInworldSTTVoiceProfileTopN(topN int) InworldSTTOption
type InworldTTS ¶
type InworldTTS struct {
// contains filtered or unexported fields
}
func NewInworldTTS ¶
func NewInworldTTS(apiKey string, voice string, opts ...InworldTTSOption) *InworldTTS
func (*InworldTTS) Capabilities ¶
func (t *InworldTTS) Capabilities() tts.TTSCapabilities
func (*InworldTTS) Label ¶
func (t *InworldTTS) Label() string
func (*InworldTTS) Model ¶ added in v0.0.18
func (t *InworldTTS) Model() string
func (*InworldTTS) NumChannels ¶
func (t *InworldTTS) NumChannels() int
func (*InworldTTS) Provider ¶ added in v0.0.18
func (t *InworldTTS) Provider() string
func (*InworldTTS) SampleRate ¶
func (t *InworldTTS) SampleRate() int
func (*InworldTTS) Stream ¶
func (t *InworldTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*InworldTTS) Synthesize ¶
func (t *InworldTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type InworldTTSOption ¶ added in v0.0.15
type InworldTTSOption func(*InworldTTS)
func WithInworldTTSBaseURL ¶ added in v0.0.15
func WithInworldTTSBaseURL(baseURL string) InworldTTSOption
func WithInworldTTSBitRate ¶ added in v0.0.15
func WithInworldTTSBitRate(bitRate int) InworldTTSOption
func WithInworldTTSBufferCharThreshold ¶ added in v0.0.15
func WithInworldTTSBufferCharThreshold(threshold int) InworldTTSOption
func WithInworldTTSDeliveryMode ¶ added in v0.0.15
func WithInworldTTSDeliveryMode(deliveryMode string) InworldTTSOption
func WithInworldTTSEncoding ¶ added in v0.0.15
func WithInworldTTSEncoding(encoding string) InworldTTSOption
func WithInworldTTSLanguage ¶ added in v0.0.15
func WithInworldTTSLanguage(language string) InworldTTSOption
func WithInworldTTSMaxBufferDelayMS ¶ added in v0.0.15
func WithInworldTTSMaxBufferDelayMS(delayMS int) InworldTTSOption
func WithInworldTTSModel ¶ added in v0.0.15
func WithInworldTTSModel(model string) InworldTTSOption
func WithInworldTTSSampleRate ¶ added in v0.0.15
func WithInworldTTSSampleRate(sampleRate int) InworldTTSOption
func WithInworldTTSSpeakingRate ¶ added in v0.0.15
func WithInworldTTSSpeakingRate(speakingRate float64) InworldTTSOption
func WithInworldTTSTemperature ¶ added in v0.0.15
func WithInworldTTSTemperature(temperature float64) InworldTTSOption
func WithInworldTTSTextNormalization ¶ added in v0.0.15
func WithInworldTTSTextNormalization(enabled bool) InworldTTSOption
func WithInworldTTSTimestampTransportStrategy ¶ added in v0.0.15
func WithInworldTTSTimestampTransportStrategy(strategy string) InworldTTSOption
func WithInworldTTSTimestampType ¶ added in v0.0.15
func WithInworldTTSTimestampType(timestampType string) InworldTTSOption
func WithInworldTTSVoice ¶ added in v0.0.15
func WithInworldTTSVoice(voice string) InworldTTSOption
func WithInworldTTSWebsocketURL ¶ added in v0.0.15
func WithInworldTTSWebsocketURL(wsURL string) InworldTTSOption
Click to show internal directories.
Click to hide internal directories.