Documentation
¶
Index ¶
- Constants
- type MurfTTS
- func (t *MurfTTS) Capabilities() tts.TTSCapabilities
- func (t *MurfTTS) Close() error
- func (t *MurfTTS) Label() string
- func (t *MurfTTS) Model() string
- func (t *MurfTTS) NumChannels() int
- func (t *MurfTTS) Provider() string
- func (t *MurfTTS) SampleRate() int
- func (t *MurfTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *MurfTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *MurfTTS) UpdateOptions(opts ...MurfTTSOption)
- type MurfTTSOption
- func WithMurfTTSBaseURL(baseURL string) MurfTTSOption
- func WithMurfTTSEncoding(encoding string) MurfTTSOption
- func WithMurfTTSLocale(locale string) MurfTTSOption
- func WithMurfTTSModel(model string) MurfTTSOption
- func WithMurfTTSPitch(pitch int) MurfTTSOption
- func WithMurfTTSSampleRate(sampleRate int) MurfTTSOption
- func WithMurfTTSSpeed(speed int) MurfTTSOption
- func WithMurfTTSStyle(style string) MurfTTSOption
- func WithMurfTTSVoice(voice string) MurfTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.murf" PluginVersion = "v0.1.2" PluginPackage = "rtp-agent.plugins.murf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MurfTTS ¶
type MurfTTS struct {
// contains filtered or unexported fields
}
func NewMurfTTS ¶
func NewMurfTTS(apiKey string, voice string, opts ...MurfTTSOption) *MurfTTS
func (*MurfTTS) Capabilities ¶
func (t *MurfTTS) Capabilities() tts.TTSCapabilities
func (*MurfTTS) NumChannels ¶
func (*MurfTTS) SampleRate ¶
func (*MurfTTS) Synthesize ¶
func (*MurfTTS) UpdateOptions ¶ added in v0.1.0
func (t *MurfTTS) UpdateOptions(opts ...MurfTTSOption)
type MurfTTSOption ¶
type MurfTTSOption func(*MurfTTS)
func WithMurfTTSBaseURL ¶
func WithMurfTTSBaseURL(baseURL string) MurfTTSOption
func WithMurfTTSEncoding ¶ added in v0.1.0
func WithMurfTTSEncoding(encoding string) MurfTTSOption
func WithMurfTTSLocale ¶
func WithMurfTTSLocale(locale string) MurfTTSOption
func WithMurfTTSModel ¶
func WithMurfTTSModel(model string) MurfTTSOption
func WithMurfTTSPitch ¶
func WithMurfTTSPitch(pitch int) MurfTTSOption
func WithMurfTTSSampleRate ¶
func WithMurfTTSSampleRate(sampleRate int) MurfTTSOption
func WithMurfTTSSpeed ¶
func WithMurfTTSSpeed(speed int) MurfTTSOption
func WithMurfTTSStyle ¶
func WithMurfTTSStyle(style string) MurfTTSOption
func WithMurfTTSVoice ¶
func WithMurfTTSVoice(voice string) MurfTTSOption
Click to show internal directories.
Click to hide internal directories.