mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-05-31 13:00:39 +00:00
feat: convert onnx script
This commit is contained in:
12
test.py
12
test.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user