amir22010 commited on
Commit
a35d006
·
verified ·
1 Parent(s): 751b44a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def text_to_speech(text):
46
  with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
47
  with locker:
48
  audio_data = tts.synthesize(text, "92")
49
- temp_file.write(audio_data)
50
  return temp_file.name
51
 
52
  def combine_audio_files(audio_files):
 
46
  with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as temp_file:
47
  with locker:
48
  audio_data = tts.synthesize(text, "92")
49
+ temp_file.write(audio_data.ascontiguousarray())
50
  return temp_file.name
51
 
52
  def combine_audio_files(audio_files):