Spaces:
Running
on
Zero
Running
on
Zero
Fix sample rate
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def gradio_generate(prompt):
|
|
75 |
|
76 |
# Save the output_wave as a temporary WAV file
|
77 |
output_filename = "temp_output.wav"
|
78 |
-
wavio.write(output_filename, output_wave, rate=
|
79 |
|
80 |
return output_filename
|
81 |
|
|
|
75 |
|
76 |
# Save the output_wave as a temporary WAV file
|
77 |
output_filename = "temp_output.wav"
|
78 |
+
wavio.write(output_filename, output_wave, rate=16000, sampwidth=2)
|
79 |
|
80 |
return output_filename
|
81 |
|