Commit
·
5bd69a0
1
Parent(s):
1fc91dd
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def video_to_descriptions(video, target_language="en"):
|
|
62 |
audio_file = audio(translated_text)
|
63 |
|
64 |
output_path = "./bark_out.wav"
|
65 |
-
scipy.io.wavfile.write(output_path,
|
66 |
|
67 |
return output_path
|
68 |
|
|
|
62 |
audio_file = audio(translated_text)
|
63 |
|
64 |
output_path = "./bark_out.wav"
|
65 |
+
scipy.io.wavfile.write(output_path, data=audio_file["audio"][0], rate=audio_file["sampling_rate"])
|
66 |
|
67 |
return output_path
|
68 |
|