Documentation
¶
Index ¶
- Constants
- type LMNTTTS
- func (t *LMNTTTS) Capabilities() tts.TTSCapabilities
- func (t *LMNTTTS) Label() string
- func (t *LMNTTTS) Model() string
- func (t *LMNTTTS) NumChannels() int
- func (t *LMNTTTS) Provider() string
- func (t *LMNTTTS) SampleRate() int
- func (t *LMNTTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *LMNTTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type LMNTTTSOption
- func WithLMNTTTSFormat(format string) LMNTTTSOption
- func WithLMNTTTSLanguage(language string) LMNTTTSOption
- func WithLMNTTTSModel(model string) LMNTTTSOption
- func WithLMNTTTSSampleRate(sampleRate int) LMNTTTSOption
- func WithLMNTTTSTemperature(temperature float64) LMNTTTSOption
- func WithLMNTTTSTopP(topP float64) LMNTTTSOption
- func WithLMNTTTSVoice(voice string) LMNTTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.lmnt" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.lmnt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LMNTTTS ¶
type LMNTTTS struct {
// contains filtered or unexported fields
}
func NewLMNTTTS ¶
func NewLMNTTTS(apiKey string, voice string, opts ...LMNTTTSOption) *LMNTTTS
func (*LMNTTTS) Capabilities ¶
func (t *LMNTTTS) Capabilities() tts.TTSCapabilities
func (*LMNTTTS) NumChannels ¶
func (*LMNTTTS) SampleRate ¶
func (*LMNTTTS) Synthesize ¶
type LMNTTTSOption ¶ added in v0.0.15
type LMNTTTSOption func(*LMNTTTS)
func WithLMNTTTSFormat ¶ added in v0.0.15
func WithLMNTTTSFormat(format string) LMNTTTSOption
func WithLMNTTTSLanguage ¶ added in v0.0.15
func WithLMNTTTSLanguage(language string) LMNTTTSOption
func WithLMNTTTSModel ¶ added in v0.0.15
func WithLMNTTTSModel(model string) LMNTTTSOption
func WithLMNTTTSSampleRate ¶ added in v0.0.15
func WithLMNTTTSSampleRate(sampleRate int) LMNTTTSOption
func WithLMNTTTSTemperature ¶ added in v0.0.15
func WithLMNTTTSTemperature(temperature float64) LMNTTTSOption
func WithLMNTTTSTopP ¶ added in v0.0.15
func WithLMNTTTSTopP(topP float64) LMNTTTSOption
func WithLMNTTTSVoice ¶ added in v0.0.15
func WithLMNTTTSVoice(voice string) LMNTTTSOption
Click to show internal directories.
Click to hide internal directories.