音色可配置

This commit is contained in:
2024-11-26 17:51:40 +08:00
parent 4df77f15d9
commit aa634c8860
5 changed files with 20 additions and 5 deletions

View File

@@ -71,6 +71,7 @@ func (tts *AliTTS) getToken() error {
func (tts *AliTTS) Get(text string) (io.Reader, error) {
param := nls.DefaultSpeechSynthesisParam()
param.Volume = 100
param.Voice = tts.Voice
err := tts.getToken()
if err != nil {