Skip to content

Commit

Permalink
[examples] Remove sil symbol from the end of the phonemes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShengqiangLi authored and ShengqiangLi committed Jan 26, 2024
1 parent 3de1f26 commit 95e46f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/aishell-3/local/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
else:
print("{} OOV {}".format(key, x))
sys.exit(-1)
fout.write("{}|{}|sil {} sil\n".format(wav_path, speaker, " ".join(phones)))
fout.write("{}|{}|sil {}\n".format(wav_path, speaker, " ".join(phones)))
2 changes: 1 addition & 1 deletion examples/baker/local/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
phones.append(prosody[k])
else:
phones.append("#0")
print("{}/{}.wav|baker|sil {} sil".format(sys.argv[3], key, " ".join(phones)))
print("{}/{}.wav|baker|sil {}\n".format(sys.argv[3], key, " ".join(phones)))
2 changes: 1 addition & 1 deletion examples/ljspeech/local/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main():
for row in csv.reader(fin, delimiter="|"):
wav_path = os.path.join(args.data_dir, f"wavs/{row[0]}.wav")
phones = english_cleaners(row[-1], args.use_prosody)
fout.write("{}|ljspeech|sil {} sil\n".format(wav_path, " ".join(phones)))
fout.write("{}|ljspeech|sil {}\n".format(wav_path, " ".join(phones)))


if __name__ == "__main__":
Expand Down

0 comments on commit 95e46f9

Please sign in to comment.