netease-youdao / EmotiVoice

EmotiVoice 😊: a Multi-Voice and Prompt-Controlled TTS Engine
Apache License 2.0
6.63k stars 556 forks source link

forntend_cn.py的split_py函数处理英文报错 #57

Open abelzhao opened 7 months ago

abelzhao commented 7 months ago

比如有这样一句中文:

你好,我是E小通,请问有什么我可以帮助你的?

中间夹杂了一个英文"E"

用forntend_cn.py来处理时:

def split_py(py):
    tone = py[-1]
    py = py[:-1]
    sm = ""
    ym = ""

传入单个字符‘E’, py越界,报错

syq163 commented 7 months ago

You can attempt again with the most recent code or explore the latest Docker image.

abelzhao commented 7 months ago

the latest docker image can't run, because the forntend_en.py can't load, as nltk_data not exists

syq163 commented 7 months ago

OK, which platform are you using?

syq163 commented 7 months ago

I updated the Docker image 10 minutes ago. You can update it by running docker pull syq163/emoti-voice:latest , then rerun it using docker run -dp 127.0.0.1:8501:8501 syq163/emoti-voice:latest.