Documentation
¶
Index ¶
- Constants
- type SpitchSTT
- func (s *SpitchSTT) Capabilities() stt.STTCapabilities
- func (s *SpitchSTT) Label() string
- func (s *SpitchSTT) Model() string
- func (s *SpitchSTT) Provider() string
- func (s *SpitchSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *SpitchSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type SpitchTTS
- func (t *SpitchTTS) Capabilities() tts.TTSCapabilities
- func (t *SpitchTTS) Label() string
- func (t *SpitchTTS) Model() string
- func (t *SpitchTTS) NumChannels() int
- func (t *SpitchTTS) Provider() string
- func (t *SpitchTTS) SampleRate() int
- func (t *SpitchTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *SpitchTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type SpitchTTSOption
- func WithSpitchTTSBaseURL(baseURL string) SpitchTTSOption
- func WithSpitchTTSLanguage(language string) SpitchTTSOption
- func WithSpitchTTSOutputFormat(outputFormat string) SpitchTTSOption
- func WithSpitchTTSSampleRate(sampleRate int) SpitchTTSOption
- func WithSpitchTTSVoice(voice string) SpitchTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.spitch" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.spitch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpitchSTT ¶
type SpitchSTT struct {
// contains filtered or unexported fields
}
func NewSpitchSTT ¶
func (*SpitchSTT) Capabilities ¶
func (s *SpitchSTT) Capabilities() stt.STTCapabilities
type SpitchTTS ¶
type SpitchTTS struct {
// contains filtered or unexported fields
}
func NewSpitchTTS ¶
func NewSpitchTTS(apiKey string, voice string, opts ...SpitchTTSOption) *SpitchTTS
func (*SpitchTTS) Capabilities ¶
func (t *SpitchTTS) Capabilities() tts.TTSCapabilities
func (*SpitchTTS) NumChannels ¶
func (*SpitchTTS) SampleRate ¶
func (*SpitchTTS) Synthesize ¶
type SpitchTTSOption ¶ added in v0.0.15
type SpitchTTSOption func(*SpitchTTS)
func WithSpitchTTSBaseURL ¶ added in v0.0.15
func WithSpitchTTSBaseURL(baseURL string) SpitchTTSOption
func WithSpitchTTSLanguage ¶ added in v0.0.15
func WithSpitchTTSLanguage(language string) SpitchTTSOption
func WithSpitchTTSOutputFormat ¶ added in v0.0.15
func WithSpitchTTSOutputFormat(outputFormat string) SpitchTTSOption
func WithSpitchTTSSampleRate ¶ added in v0.0.15
func WithSpitchTTSSampleRate(sampleRate int) SpitchTTSOption
func WithSpitchTTSVoice ¶ added in v0.0.15
func WithSpitchTTSVoice(voice string) SpitchTTSOption
Click to show internal directories.
Click to hide internal directories.