amir22010 commited on
Commit
1bbebff
·
verified ·
1 Parent(s): 1e6c19e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def text_to_speech(text):
34
  # truncate the text
35
  text_str = text[:1024]
36
  else:
37
- text_str = a_list[0]
38
  audio_data = tts.synthesize(text_str, "92")
39
  temp_file.write(np.ascontiguousarray(audio_data))
40
  return temp_file.name
 
34
  # truncate the text
35
  text_str = text[:1024]
36
  else:
37
+ text_str = text
38
  audio_data = tts.synthesize(text_str, "92")
39
  temp_file.write(np.ascontiguousarray(audio_data))
40
  return temp_file.name