Skip to content

Commit

Permalink
add script
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1007 committed Apr 3, 2023
1 parent 13442c4 commit f26b931
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
File renamed without changes.
6 changes: 6 additions & 0 deletions scripts/infore/i01.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
wget https://huggingface.co/datasets/ntt123/infore/resolve/main/infore_16k_denoised.zip -O ./raw_data/infore.zip
mkdir ./raw_data/
mkdir ./raw_data/infore
unzip ./raw_data/infore.zip -d ./raw_data/infore
rename 's/\.txt$/.lab/' ./raw_data/infore/*.txt
rm ./raw_data/infore.zip
2 changes: 1 addition & 1 deletion synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def preprocess_vietnamese(text, preprocess_config):
if w in lexicon:
phones += lexicon[w]
else:
phones += list(w)
phones.append('sp')

phones = "{" + " ".join(phones) + "}"
print("Raw Text Sequence: {}".format(text))
Expand Down

0 comments on commit f26b931

Please sign in to comment.