Mira1sen commited on
Commit
0a16fb5
1 Parent(s): 9cd3499

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tts_gradio.py +5 -5
tts_gradio.py CHANGED
@@ -222,11 +222,11 @@ def microsoft(text, name, style="Neural"):
222
  data=data,
223
  )
224
  # breakpoint()
225
- # timestamp = int(time.time()*10000)
226
- # path = f'/tmp/output_{timestamp}.wav' # TODO: disk might full.
227
- # with open(path, 'wb') as f:
228
- # f.write(response.content)
229
- return "Success", response
230
 
231
  if __name__ == '__main__':
232
  parser = argparse.ArgumentParser()
 
222
  data=data,
223
  )
224
  # breakpoint()
225
+ timestamp = int(time.time()*10000)
226
+ path = f'/tmp/output_{timestamp}.wav' # TODO: disk might full.
227
+ with open(path, 'wb') as f:
228
+ f.write(response.content)
229
+ return "Success", path
230
 
231
  if __name__ == '__main__':
232
  parser = argparse.ArgumentParser()