Files
sbv2-api/test.py
2024-09-10 09:40:49 +00:00

9 lines
194 B
Python

import requests
res = requests.post('http://localhost:3000/synthesize', json={
"text": "おはよう"
})
res.raise_for_status()
with open('output.wav', 'wb') as f:
f.write(res.content)