Documentation
¶
Index ¶
- Constants
- type RimeTTS
- func (t *RimeTTS) Capabilities() tts.TTSCapabilities
- func (t *RimeTTS) Label() string
- func (t *RimeTTS) Model() string
- func (t *RimeTTS) NumChannels() int
- func (t *RimeTTS) Provider() string
- func (t *RimeTTS) SampleRate() int
- func (t *RimeTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *RimeTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type RimeTTSOption
- func WithRimeTTSBaseURL(baseURL string) RimeTTSOption
- func WithRimeTTSLang(lang string) RimeTTSOption
- func WithRimeTTSModel(model string) RimeTTSOption
- func WithRimeTTSSampleRate(sampleRate int) RimeTTSOption
- func WithRimeTTSSegment(segment string) RimeTTSOption
- func WithRimeTTSTimeScaleFactor(timeScaleFactor float64) RimeTTSOption
- func WithRimeTTSWebsocket(useWebsocket bool) RimeTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.rime" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.rime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RimeTTS ¶
type RimeTTS struct {
// contains filtered or unexported fields
}
func NewRimeTTS ¶
func NewRimeTTS(apiKey string, voice string, opts ...RimeTTSOption) *RimeTTS
func (*RimeTTS) Capabilities ¶
func (t *RimeTTS) Capabilities() tts.TTSCapabilities
func (*RimeTTS) NumChannels ¶
func (*RimeTTS) SampleRate ¶
func (*RimeTTS) Synthesize ¶
type RimeTTSOption ¶ added in v0.0.15
type RimeTTSOption func(*RimeTTS)
func WithRimeTTSBaseURL ¶ added in v0.0.15
func WithRimeTTSBaseURL(baseURL string) RimeTTSOption
func WithRimeTTSLang ¶ added in v0.0.15
func WithRimeTTSLang(lang string) RimeTTSOption
func WithRimeTTSModel ¶ added in v0.0.15
func WithRimeTTSModel(model string) RimeTTSOption
func WithRimeTTSSampleRate ¶ added in v0.0.15
func WithRimeTTSSampleRate(sampleRate int) RimeTTSOption
func WithRimeTTSSegment ¶ added in v0.0.15
func WithRimeTTSSegment(segment string) RimeTTSOption
func WithRimeTTSTimeScaleFactor ¶ added in v0.0.15
func WithRimeTTSTimeScaleFactor(timeScaleFactor float64) RimeTTSOption
func WithRimeTTSWebsocket ¶ added in v0.0.15
func WithRimeTTSWebsocket(useWebsocket bool) RimeTTSOption
Click to show internal directories.
Click to hide internal directories.