Documentation ¶
Overview ¶
Package ttscn https://www.text-to-speech.cn/
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Langs 语言 Langs = func() (m map[string]*LangSpeakers) { data, err := web.GetData(speakerlistapi) if err != nil { _ = json.Unmarshal(embededspeakers, &m) return } _ = json.Unmarshal(data, &m) return }() // KBRates 质量 KBRates = [...]string{ "audio-16khz-32kbitrate-mono-mp3", "audio-16khz-128kbitrate-mono-mp3", "audio-24khz-160kbitrate-mono-mp3", "audio-48khz-192kbitrate-mono-mp3", "riff-16khz-16bit-mono-pcm", "riff-24khz-16bit-mono-pcm", "riff-48khz-16bit-mono-pcm", } )
Functions ¶
This section is empty.
Types ¶
type LangSpeakers ¶
type LangSpeakers struct { ShortName []string // ShortName 用于 API LocalName []string // LocalName 用于显示 }
LangSpeakers ...
Click to show internal directories.
Click to hide internal directories.