From 26d5f1fa0125195f97452768439544e8ccc7f977 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 18 Feb 2025 11:09:16 +0800 Subject: [PATCH] Fix kokoro lexicon. (#1886) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 还钱 is mispronounced. --- scripts/kokoro/v1.0/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/kokoro/v1.0/run.sh b/scripts/kokoro/v1.0/run.sh index 47aefdbc..2c00305a 100755 --- a/scripts/kokoro/v1.0/run.sh +++ b/scripts/kokoro/v1.0/run.sh @@ -110,10 +110,15 @@ if [ ! -f ./tokens.txt ]; then ./generate_tokens.py fi -if [ ! -f ./lexicon.txt ]; then +if [ ! -f ./lexicon-zh.txt ]; then ./generate_lexicon.py fi +grep '还钱' ./lexicon-zh.txt +sed -i.bak 's/还钱 x a i/还钱 x w a/' ./lexicon-zh.txt +rm -v ./lexicon-zh.txt.bak +grep '还钱' ./lexicon-zh.txt + if [ ! -f ./voices.bin ]; then ./generate_voices_bin.py fi