Documentation ¶
Index ¶
- func TTS(f TTSMode, input, writeMedia, voice, rate, volume, proxy string)
- func TTSFile(file, writeMedia string, opts ...tts.Option)
- func TTSPlayback(f TTSMode, input, writeMedia, voice, rate, volume, proxy string, ...)
- func TTSText(text, writeMedia string, opts ...tts.Option)
- type ISpeech
- type LocalSpeech
- type OssSpeech
- type OssSpeechFactory
- type Speech
- type TTSMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TTSPlayback ¶
Types ¶
type LocalSpeech ¶
type LocalSpeech struct {
*Speech
}
var MySpeech *LocalSpeech
func NewLocalSpeech ¶
func NewLocalSpeech(c *tts.Communicate, folder, filename string) (*LocalSpeech, error)
func (*LocalSpeech) GenTTS ¶
func (speech *LocalSpeech) GenTTS() error
type OssSpeech ¶
type OssSpeech struct { *Speech // contains filtered or unexported fields }
func NewOssSpeech ¶
func NewOssSpeech(c *tts.Communicate, endpoint, ak, sk, folder, bucket string) (*OssSpeech, error)
type OssSpeechFactory ¶
type OssSpeechFactory struct {
// contains filtered or unexported fields
}
func NewOssSpeechFactory ¶
func NewOssSpeechFactory(endpoint, ak, sk, bucket, folder string) *OssSpeechFactory
func (*OssSpeechFactory) OssSpeech ¶
func (factory *OssSpeechFactory) OssSpeech(c *tts.Communicate, folder string) (*OssSpeech, error)
Click to show internal directories.
Click to hide internal directories.