rime commited on
Commit
c1eba70
·
1 Parent(s): 9d7db96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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', 'w') as fp:
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