Documentation
¶
Index ¶
- Constants
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Label() string
- func (s *STT) Model() string
- func (s *STT) Provider() string
- func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type STTOption
- type SmartTurn
- type SmartTurnOption
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Label() string
- func (t *TTS) Model() string
- func (t *TTS) NumChannels() int
- func (t *TTS) Provider() string
- func (t *TTS) SampleRate() int
- func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type TTSOption
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 (*STT) Capabilities ¶
func (s *STT) Capabilities() stt.STTCapabilities
type STTOption ¶
type STTOption func(*STT)
func WithSTTBaseURL ¶
func WithSTTLanguage ¶
func WithSTTModel ¶
func WithSTTPrompt ¶
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) PredictEndOfTurnAudio ¶ added in v0.1.3
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 (*TTS) Capabilities ¶
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶
func (*TTS) SampleRate ¶
func (*TTS) Synthesize ¶
type TTSOption ¶
type TTSOption func(*TTS)
func WithTTSBaseURL ¶
func WithTTSLanguage ¶
func WithTTSModel ¶
func WithTTSResponseFormat ¶
func WithTTSSampleRate ¶
func WithTTSVoice ¶
Click to show internal directories.
Click to hide internal directories.