環境変数で読み込むことにした

This commit is contained in:
tuna2134
2024-09-10 09:40:49 +00:00
parent 30a5be0878
commit 3bbaf19e36
6 changed files with 16 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import requests
res = requests.post('http://localhost:3000/synthesize', json={
"text": "眠たい"
"text": "おはよう"
})
res.raise_for_status()
with open('output.wav', 'wb') as f: