Commit
·
0eec857
1
Parent(s):
68b41fa
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ def one_shot(image,input_text,gender):
|
|
30 |
tts.write_to_fp(f)
|
31 |
f.seek(0)
|
32 |
sound = AudioSegment.from_file(f.name, format="mp3")
|
33 |
-
|
34 |
-
return
|
35 |
exit()
|
36 |
one_shot_talking(image,'audio.wav')
|
37 |
|
|
|
30 |
tts.write_to_fp(f)
|
31 |
f.seek(0)
|
32 |
sound = AudioSegment.from_file(f.name, format="mp3")
|
33 |
+
sound.export("/content/audio.wav", format="wav")
|
34 |
+
return "/content/audio.wav"
|
35 |
exit()
|
36 |
one_shot_talking(image,'audio.wav')
|
37 |
|