SOTA Open Source TTS
Fix utf-8 encoding
Lengyue1854897e3c3b
diff --git a/preparing_data/whisper_asr.py b/preparing_data/whisper_asr.pyindex c5a0ce4..d71ff40 100644--- a/preparing_data/whisper_asr.py+++ b/preparing_data/whisper_asr.py@@ -142,7 +142,7 @@ def main(folder: str, rank: int, world_size: int, num_workers: int):# Write to filefor file, transcription in zip(batch, trascriptions):- Path(file).with_suffix(".whisper.txt").write_text(transcription)+ Path(file).with_suffix(".whisper.txt").write_text(transcription, encoding="utf-8")logger.info(f"{RANK_STR}Finished processing {len(files)} files, {total_time / 3600:.2f} hours of audio"