mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
utf-8 encoding for certain preprocessors
This commit is contained in:
@@ -159,7 +159,7 @@ def ljspeech(root_path, meta_file):
|
|||||||
txt_file = os.path.join(root_path, meta_file)
|
txt_file = os.path.join(root_path, meta_file)
|
||||||
items = []
|
items = []
|
||||||
speaker_name = "ljspeech"
|
speaker_name = "ljspeech"
|
||||||
with open(txt_file, 'r') as ttf:
|
with open(txt_file, 'r', encoding="utf-8") as ttf:
|
||||||
for line in ttf:
|
for line in ttf:
|
||||||
cols = line.split('|')
|
cols = line.split('|')
|
||||||
wav_file = os.path.join(root_path, 'wavs', cols[0] + '.wav')
|
wav_file = os.path.join(root_path, 'wavs', cols[0] + '.wav')
|
||||||
@@ -174,7 +174,7 @@ def ruslan(root_path, meta_file):
|
|||||||
txt_file = os.path.join(root_path, meta_file)
|
txt_file = os.path.join(root_path, meta_file)
|
||||||
items = []
|
items = []
|
||||||
speaker_name = "ljspeech"
|
speaker_name = "ljspeech"
|
||||||
with open(txt_file, 'r') as ttf:
|
with open(txt_file, 'r', encoding="utf-8") as ttf:
|
||||||
for line in ttf:
|
for line in ttf:
|
||||||
cols = line.split('|')
|
cols = line.split('|')
|
||||||
wav_file = os.path.join(root_path, 'RUSLAN', cols[0] + '.wav')
|
wav_file = os.path.join(root_path, 'RUSLAN', cols[0] + '.wav')
|
||||||
|
|||||||
Reference in New Issue
Block a user