Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def whisper_speech_demo(text, lang, speaker_audio=None, mix_lang=None, mix_text=
|
|
35 |
|
36 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as tmp_file:
|
37 |
tmp_file_name = tmp_file.name
|
38 |
-
audio_np = audio_data.
|
39 |
sf.write(tmp_file_name, audio_np, 22050)
|
40 |
|
41 |
return tmp_file_name
|
|
|
35 |
|
36 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.wav') as tmp_file:
|
37 |
tmp_file_name = tmp_file.name
|
38 |
+
audio_np = audio_data.cpu().numpy()
|
39 |
sf.write(tmp_file_name, audio_np, 22050)
|
40 |
|
41 |
return tmp_file_name
|