Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

已自己解决 tts is not defined #12

Open
EsawaAzusa opened this issue Mar 12, 2023 · 0 comments
Open

已自己解决 tts is not defined #12

EsawaAzusa opened this issue Mar 12, 2023 · 0 comments

Comments

@EsawaAzusa
Copy link

EsawaAzusa commented Mar 12, 2023

使用音频文件作为感情输入

txt = "疲れた?甘ったれたこと言ってんじゃないわよ!"
txtr=get_roma(txt, hps)
tts(txtr, torch.LongTensor([0]), emotion="./short angry.wav", roma=True, length_scale = 1)

NameError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_18240\902133935.py in
2 txt = "疲れた?甘ったれたこと言ってんじゃないわよ!"
3 txtr=get_roma(txt, hps)
----> 4 tts(txtr, torch.LongTensor([0]), emotion="./short angry.wav", roma=True, length_scale = 1)

NameError: name 'tts' is not defined

刚全都装好的时候能用,重新打开之后就报错说tts没有被定义了,不知道是应该怎么办

——————

tts在第三段还是第四段什么的被定义,如果不用emotion.dict可以先注释掉,然后运行,把tts定义了

@EsawaAzusa EsawaAzusa changed the title 打开ipynb文件执行情感音频输入参考合成的时候就报错 已自己解决 Mar 12, 2023
@EsawaAzusa EsawaAzusa changed the title 已自己解决 已自己解决 tts is not defined Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant