Spaces:
Running
on
A10G
Running
on
A10G
Update audio.py
Browse files
audio.py
CHANGED
@@ -57,7 +57,7 @@ def gen_audio(subtitles, tmpdir):
|
|
57 |
duration = end_time - start_time
|
58 |
|
59 |
# tts = gTTS(text=text, lang='yue')
|
60 |
-
audio_path = os.path.join(temp_audio_path, f'subtitle_{i}.
|
61 |
# tts.save(audio_path)
|
62 |
ms_tts_gen(text, audio_path)
|
63 |
|
|
|
57 |
duration = end_time - start_time
|
58 |
|
59 |
# tts = gTTS(text=text, lang='yue')
|
60 |
+
audio_path = os.path.join(temp_audio_path, f'subtitle_{i}.wav')
|
61 |
# tts.save(audio_path)
|
62 |
ms_tts_gen(text, audio_path)
|
63 |
|