Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def synthesize(key, sentence, speaker):
|
|
16 |
response = requests.post('https://rjmopratfrdjgmfmaios.functions.supabase.co/rime-tts', headers=headers, json=json_data)
|
17 |
audioContent = response.json()['audioContent']
|
18 |
decode_string = base64.b64decode(audioContent)
|
19 |
-
with open('tmp.wav', '
|
20 |
fp.write(decode_string)
|
21 |
return 'tmp.wav'
|
22 |
|
|
|
16 |
response = requests.post('https://rjmopratfrdjgmfmaios.functions.supabase.co/rime-tts', headers=headers, json=json_data)
|
17 |
audioContent = response.json()['audioContent']
|
18 |
decode_string = base64.b64decode(audioContent)
|
19 |
+
with open('tmp.wav', 'wb') as fp:
|
20 |
fp.write(decode_string)
|
21 |
return 'tmp.wav'
|
22 |
|