Merge pull request #77 from lfchener/develop

fix an encoding problem in windows
This commit is contained in:
Feiyu Chan 2021-01-08 11:04:46 +08:00 committed by GitHub
commit 39007e5bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class LJSpeechMetaData(Dataset):
csv_path = self.root / "metadata.csv"
records = []
speaker_name = "ljspeech"
with open(str(csv_path), 'rt') as f:
with open(str(csv_path), 'rt', encoding='utf-8') as f:
for line in f:
filename, _, normalized_text = line.strip().split("|")
filename = str(wav_dir / (filename + ".wav"))