cavos

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.cavos"
	PluginVersion = "v0.4.0"
	PluginPackage = "rtp-agent.plugins.cavos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type STT

type STT struct {
	// contains filtered or unexported fields
}

func NewSTT

func NewSTT(opts ...STTOption) *STT

func (*STT) Capabilities

func (s *STT) Capabilities() stt.STTCapabilities

func (*STT) Label

func (s *STT) Label() string

func (*STT) Model

func (s *STT) Model() string

func (*STT) Provider

func (s *STT) Provider() string

func (*STT) Recognize

func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*STT) Stream

func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

type STTOption

type STTOption func(*STT)

func WithSTTBaseURL

func WithSTTBaseURL(baseURL string) STTOption

func WithSTTLanguage

func WithSTTLanguage(language string) STTOption

func WithSTTModel

func WithSTTModel(model string) STTOption

func WithSTTPrompt

func WithSTTPrompt(prompt string) STTOption

type SmartTurn added in v0.1.3

type SmartTurn struct {
	// contains filtered or unexported fields
}

SmartTurn is an audio end-of-turn detector backed by the grpc-llm SmartTurnServiceV1 service. The client extracts mel features locally and ships the mel spectrogram; the server runs ONNX inference only.

func NewSmartTurn added in v0.1.3

func NewSmartTurn(opts ...SmartTurnOption) (*SmartTurn, error)

func (*SmartTurn) Close added in v0.1.3

func (s *SmartTurn) Close() error

func (*SmartTurn) PredictEndOfTurnAudio added in v0.1.3

func (s *SmartTurn) PredictEndOfTurnAudio(ctx context.Context, frames []*model.AudioFrame) (float64, error)

type SmartTurnOption added in v0.1.3

type SmartTurnOption func(*SmartTurn)

func WithSmartTurnAddr added in v0.1.3

func WithSmartTurnAddr(addr string) SmartTurnOption

type TTS

type TTS struct {
	// contains filtered or unexported fields
}

func NewTTS

func NewTTS(opts ...TTSOption) *TTS

func (*TTS) Capabilities

func (t *TTS) Capabilities() tts.TTSCapabilities

func (*TTS) Label

func (t *TTS) Label() string

func (*TTS) Model

func (t *TTS) Model() string

func (*TTS) NumChannels

func (t *TTS) NumChannels() int

func (*TTS) Provider

func (t *TTS) Provider() string

func (*TTS) SampleRate

func (t *TTS) SampleRate() int

func (*TTS) Stream

func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*TTS) Synthesize

func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

type TTSOption

type TTSOption func(*TTS)

func WithTTSBaseURL

func WithTTSBaseURL(baseURL string) TTSOption

func WithTTSLanguage

func WithTTSLanguage(language string) TTSOption

func WithTTSModel

func WithTTSModel(model string) TTSOption

func WithTTSResponseFormat

func WithTTSResponseFormat(format string) TTSOption

func WithTTSSampleRate

func WithTTSSampleRate(sampleRate int) TTSOption

func WithTTSVoice

func WithTTSVoice(voice string) TTSOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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