This commit is contained in:
tuna2134
2024-09-10 14:10:37 +00:00
parent 646814147f
commit f10eef2211
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ pub fn synthesize(
"tones" => tones,
"language" => lang_ids,
"bert" => bert,
"style_vector" => style_vector,
"style_vec" => style_vector,
}?)?;
let audio_array = outputs

View File

@@ -2,7 +2,7 @@ import requests
res = requests.post('http://localhost:3000/synthesize', json={
"text": "初めて神戸に移り住んだ時に地元の人に教わった「阪急はオシャレして乗らなあかん。阪神はスリッパで乗っていい。JRは早い。」、好きすぎていまだに東京の人に説明するとき使ってる。"
"text": "おはようございます",
})
with open('output.wav', 'wb') as f:
f.write(res.content)