fix: gsvits

This commit is contained in:
源文雨
2023-08-28 00:21:41 +08:00
parent 9dade7f3e8
commit 30f60bc7e9
4 changed files with 4 additions and 20 deletions

View File

@@ -57,7 +57,7 @@ func init() {
}
text := ctx.State["regex_matched"].([]string)[2]
name := ctx.State["regex_matched"].([]string)[1]
rec := fmt.Sprintf(genshin.CNAPI, name, url.QueryEscape(text), url.QueryEscape(.k))
rec := fmt.Sprintf(genshin.CNAPI, url.QueryEscape(name), url.QueryEscape(text), url.QueryEscape(.k))
b := md5.Sum(binary.StringToBytes(rec))
fn := hex.EncodeToString(b[:])
fp := "data/tts/" + fn