inworld

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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