Skip to content

Commit 26d5f1f

Browse files
authored
Fix kokoro lexicon. (#1886)
还钱 is mispronounced.
1 parent 9711ab2 commit 26d5f1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/kokoro/v1.0/run.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,15 @@ if [ ! -f ./tokens.txt ]; then
110110
./generate_tokens.py
111111
fi
112112

113-
if [ ! -f ./lexicon.txt ]; then
113+
if [ ! -f ./lexicon-zh.txt ]; then
114114
./generate_lexicon.py
115115
fi
116116

117+
grep '还钱' ./lexicon-zh.txt
118+
sed -i.bak 's/还钱 x a i/还钱 x w a/' ./lexicon-zh.txt
119+
rm -v ./lexicon-zh.txt.bak
120+
grep '还钱' ./lexicon-zh.txt
121+
117122
if [ ! -f ./voices.bin ]; then
118123
./generate_voices_bin.py
119124
fi

0 commit comments

Comments
 (0)