Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,9 +76,8 @@ def whisper_speech_demo(multilingual_text, speaker_audio):
|
|
76 |
# Debug statement print("Final concatenated audio shape:", concatenated_audio.shape)
|
77 |
concatenated_audio = concatenated_audio / np.max(np.abs(concatenated_audio))
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
return tmp_file.name
|
82 |
|
83 |
with gr.Blocks() as demo:
|
84 |
gr.Markdown(title)
|
|
|
76 |
# Debug statement print("Final concatenated audio shape:", concatenated_audio.shape)
|
77 |
concatenated_audio = concatenated_audio / np.max(np.abs(concatenated_audio))
|
78 |
|
79 |
+
return (24000, concatenated_audio.T)
|
80 |
+
|
|
|
81 |
|
82 |
with gr.Blocks() as demo:
|
83 |
gr.Markdown(title)
|