Commit
·
54043c1
1
Parent(s):
fe43d63
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,11 @@ def video_to_descriptions(video, target_language="en"):
|
|
56 |
|
57 |
audio_file = audio("bonjour je m'appelle Florent et je fais un test")
|
58 |
print(audio_file)
|
|
|
|
|
|
|
59 |
|
60 |
-
return
|
61 |
#return translated_text
|
62 |
|
63 |
# Create a dropdown menu with language options
|
|
|
56 |
|
57 |
audio_file = audio("bonjour je m'appelle Florent et je fais un test")
|
58 |
print(audio_file)
|
59 |
+
|
60 |
+
output_path = "./bark_out.wav"
|
61 |
+
scipy.io.wavfile.write(output_path, rate=audio_file["sampling_rate"], data=audio_file["audio"].cpu().numpy().squeeze())
|
62 |
|
63 |
+
return output_path
|
64 |
#return translated_text
|
65 |
|
66 |
# Create a dropdown menu with language options
|