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

Do you need a strong correspondence between the input text and lang_id #201

Open
a779159990 opened this issue Oct 17, 2024 · 1 comment
Open

Comments

@a779159990
Copy link

Hello, I would like to ask about the use of text and language ID as input. If the text and ID do not match, there may be repeated audio conversations, such as
{
"language": "KO",
"text": "你好,你叫什么名字,很高兴认识你",
}
Can this situation be monitored or monitored through a parameter setting in the model, or does it require checking the correspondence between text and lang_id before inputting into the model?

@Flux9665
Copy link
Collaborator

There is no way to figure out the language of the text once you put it into the model, so you need to make sure that the text and the language match before putting it in.

Here are some more details: There are two language settings internally in the model. For simplicity, we always change both to be the same in the demos, but if you write the code to run the model yourself, you can modify them individually if you want.

The first one always has to be the same as the language of the text and it can be changed with the following method:

def set_phonemizer_language(self, lang_id):

The second one can be a different one than the text. If it matches, it sounds more like the speaker speaks without accent. If it is a different one, it will sound more like the speaker has an accent of that second language. You can change it with the following method:

def set_accent_language(self, lang_id):

A friend and I noticed that for many Asian languages, the choice of the speaker also has an impact on the accent, which is an accident and we are trying to improve it.

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

2 participants