arham061 commited on
Commit
79304a3
1 Parent(s): 58bc934

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def text_to_speech(text):
104
 
105
  # Save audio as a .wav file
106
  output_path = "output.wav"
107
- wav.write(output_path, 16000, audio_output)
108
 
109
  return output_path
110
 
 
104
 
105
  # Save audio as a .wav file
106
  output_path = "output.wav"
107
+ sf.write(output_path, audio_output, 16000, 'PCM_16')
108
 
109
  return output_path
110