georg-suno
commited on
Commit
•
09b3ba3
1
Parent(s):
2adbf1a
mini bug
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def gen_tts(text, history_prompt, temp_semantic, temp_waveform):
|
|
114 |
audio_arr = np.zeros(SAMPLE_RATE)
|
115 |
else:
|
116 |
audio_arr = generate_audio(text, history_prompt=history_prompt, text_temp=temp_semantic, waveform_temp=temp_waveform)
|
117 |
-
|
118 |
return (SAMPLE_RATE, audio_arr)
|
119 |
|
120 |
iface = gr.Interface(
|
|
|
114 |
audio_arr = np.zeros(SAMPLE_RATE)
|
115 |
else:
|
116 |
audio_arr = generate_audio(text, history_prompt=history_prompt, text_temp=temp_semantic, waveform_temp=temp_waveform)
|
117 |
+
audio_arr = (audio_arr * 32767).astype(np.int16)
|
118 |
return (SAMPLE_RATE, audio_arr)
|
119 |
|
120 |
iface = gr.Interface(
|