Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Edresson committed Dec 6, 2023
1 parent b4c4051 commit 2debefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def string2filename(string):
def get_audio_size(audiopath):
extension = audiopath.rpartition(".")[-1].lower()
if extension not in {"mp3", "wav", "flac"}:
raise RuntimeError(f"The audio format {extension} is not supported, please convert the audio files for mp3, flac or wav format!")
raise RuntimeError(f"The audio format {extension} is not supported, please convert the audio files to mp3, flac, or wav format!")

audio_info = mutagen.File(audiopath).info
return int(audio_info.length * audio_info.sample_rate)
Expand Down

0 comments on commit 2debefb

Please sign in to comment.