Documentation
¶
Index ¶
- Constants
- type RespeecherTTS
- func (t *RespeecherTTS) Capabilities() tts.TTSCapabilities
- func (t *RespeecherTTS) Label() string
- func (t *RespeecherTTS) Model() string
- func (t *RespeecherTTS) NumChannels() int
- func (t *RespeecherTTS) Provider() string
- func (t *RespeecherTTS) SampleRate() int
- func (t *RespeecherTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *RespeecherTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type RespeecherTTSOption
- func WithRespeecherTTSBaseURL(baseURL string) RespeecherTTSOption
- func WithRespeecherTTSModel(model string) RespeecherTTSOption
- func WithRespeecherTTSSampleRate(sampleRate int) RespeecherTTSOption
- func WithRespeecherTTSSamplingParams(params map[string]any) RespeecherTTSOption
- func WithRespeecherTTSVoice(voiceID string) RespeecherTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.respeecher" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.respeecher" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RespeecherTTS ¶
type RespeecherTTS struct {
// contains filtered or unexported fields
}
func NewRespeecherTTS ¶
func NewRespeecherTTS(apiKey string, voiceID string, opts ...RespeecherTTSOption) *RespeecherTTS
func (*RespeecherTTS) Capabilities ¶
func (t *RespeecherTTS) Capabilities() tts.TTSCapabilities
func (*RespeecherTTS) Label ¶
func (t *RespeecherTTS) Label() string
func (*RespeecherTTS) Model ¶ added in v0.0.18
func (t *RespeecherTTS) Model() string
func (*RespeecherTTS) NumChannels ¶
func (t *RespeecherTTS) NumChannels() int
func (*RespeecherTTS) Provider ¶ added in v0.0.18
func (t *RespeecherTTS) Provider() string
func (*RespeecherTTS) SampleRate ¶
func (t *RespeecherTTS) SampleRate() int
func (*RespeecherTTS) Stream ¶
func (t *RespeecherTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*RespeecherTTS) Synthesize ¶
func (t *RespeecherTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type RespeecherTTSOption ¶
type RespeecherTTSOption func(*RespeecherTTS)
func WithRespeecherTTSBaseURL ¶
func WithRespeecherTTSBaseURL(baseURL string) RespeecherTTSOption
func WithRespeecherTTSModel ¶
func WithRespeecherTTSModel(model string) RespeecherTTSOption
func WithRespeecherTTSSampleRate ¶
func WithRespeecherTTSSampleRate(sampleRate int) RespeecherTTSOption
func WithRespeecherTTSSamplingParams ¶
func WithRespeecherTTSSamplingParams(params map[string]any) RespeecherTTSOption
func WithRespeecherTTSVoice ¶
func WithRespeecherTTSVoice(voiceID string) RespeecherTTSOption
Click to show internal directories.
Click to hide internal directories.