ZiyuG commited on
Commit
c77c3d0
1 Parent(s): 175bf7f

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +1 -1
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}.mp3')
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