feat: convert onnx script

This commit is contained in:
Googlefan
2024-09-11 03:49:13 +00:00
parent 7d191ca37d
commit 22a3ab674c
5 changed files with 189 additions and 7 deletions

12
test.py
View File

@@ -1,8 +1,8 @@
import requests
res = requests.post('http://localhost:3000/synthesize', json={
"text": "おはようございます",
"ident": "tsukuyomi"
})
with open('output.wav', 'wb') as f:
f.write(res.content)
res = requests.post(
"http://localhost:3000/synthesize",
json={"text": "おはようございます", "ident": "tsukuyomi"},
)
with open("output.wav", "wb") as f:
f.write(res.content)