Merge pull request #6 from kirianguiller/dev-pr3

Dev pr3 : small changes for chinese implementation
pull/7/head
Eren Gölge 2021-03-02 17:11:08 +01:00 committed by GitHub
commit d706d4c436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -76,12 +76,12 @@
} }
} }
}, },
"zh":{ "zh-CN":{
"baker":{ "baker":{
"tacotron2-DDC-GST":{ "tacotron2-DDC-GST":{
"model_file": "1RR9rZdV_FMm8yvtCHALtUbJf1nxbUiAw", "model_file": "1SYpv7V__QYDjKXa_vJmNXo1CSkcoZovy",
"config_file": "1daY1JHGXEozJ-MGYLiWEUmzEwEvM5xpz", "config_file": "14BIvfJXnFHi3jcxYNX40__TR6RwJOZqi",
"stats_file": "1vl9c-D3dW_E7pdhNpDFQLX-giJc0jOtV", "stats_file": "1ECRlXybT6rAWp269CkhjUPwcZ10CkcqD",
"commit": "" "commit": ""
} }
} }

View File

@ -41,7 +41,7 @@ def text2phone(text, language):
''' '''
# TO REVIEW : How to have a good implementation for this? # TO REVIEW : How to have a good implementation for this?
if language == "chinese-mandarin": if language == "zh-CN":
ph = chinese_text_to_phonemes(text) ph = chinese_text_to_phonemes(text)
return ph return ph

View File

@ -64,9 +64,9 @@
], ],
"source": [ "source": [
"! mkdir data/\n", "! mkdir data/\n",
"! gdown --id 1RR9rZdV_FMm8yvtCHALtUbJf1nxbUiAw -O data/tts_model.pth.tar\n", "! gdown --id 1SYpv7V__QYDjKXa_vJmNXo1CSkcoZovy -O data/tts_model.pth.tar\n",
"! gdown --id 1daY1JHGXEozJ-MGYLiWEUmzEwEvM5xpz -O data/tts_config.json\n", "! gdown --id 14BIvfJXnFHi3jcxYNX40__TR6RwJOZqi -O data/tts_config.json\n",
"! gdown --id 1vl9c-D3dW_E7pdhNpDFQLX-giJc0jOtV -O data/tts_scale_stats.npy" "! gdown --id 1ECRlXybT6rAWp269CkhjUPwcZ10CkcqD -O data/tts_scale_stats.npy"
] ]
}, },
{ {
@ -526,4 +526,4 @@
}, },
"nbformat": 4, "nbformat": 4,
"nbformat_minor": 4 "nbformat_minor": 4
} }