mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-05-24 17:50:37 +00:00
refactor
This commit is contained in:
8
scripts/sbv2-test-api.py
Normal file
8
scripts/sbv2-test-api.py
Normal file
@@ -0,0 +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)
|
||||
Reference in New Issue
Block a user