ZiyuG commited on
Commit
ad8b014
1 Parent(s): 155fa4f

Update audio.py

Browse files
Files changed (1) hide show
  1. audio.py +1 -1
audio.py CHANGED
@@ -61,7 +61,7 @@ def gen_audio(subtitles, tmpdir):
61
  # tts.save(audio_path)
62
  ms_tts_gen(text, audio_path)
63
 
64
- audio_segment = AudioSegment.from_mp3(audio_path)
65
 
66
  new_audio_path = os.path.join(temp_audio_path, f'subtitle_{i}_adjusted.wav')
67
  audio_segment.export(new_audio_path, format="wav")
 
61
  # tts.save(audio_path)
62
  ms_tts_gen(text, audio_path)
63
 
64
+ audio_segment = AudioSegment.from_wav(audio_path)
65
 
66
  new_audio_path = os.path.join(temp_audio_path, f'subtitle_{i}_adjusted.wav')
67
  audio_segment.export(new_audio_path, format="wav")