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

Can you provide a zero-shot clone example? #12

Open
yangdongchao opened this issue Jul 21, 2024 · 3 comments
Open

Can you provide a zero-shot clone example? #12

yangdongchao opened this issue Jul 21, 2024 · 3 comments

Comments

@yangdongchao
Copy link

Hi, your project is very interesting. But I find it is hard to use new prompt as reference audio to clone the target voice. I am trying to prepare with MFA tools, but I am wrong:
'''
.cache/torch/hub/ex3ndr_supervoice-gpt_master/supervoice_gpt/tokenizer.py", line 57, in
return [self.phoneme_to_id[p] for p in phonemes]
~~~~~~~~~~~~~~~~~~^^^
KeyError: ''
'''

I cannot understand why it happens, I just use mfa align to prepare the voice prompt. So if you can provides a function that can directly use new prompt voice, it will be helpful!

@ex3ndr
Copy link
Owner

ex3ndr commented Jul 22, 2024

There is a simple script that created built-in voices: https://github.com/ex3ndr/supervoice/blob/master/generate_voices.py

You can try to use similar script to create a new voice

@yangdongchao
Copy link
Author

There is a simple script that created built-in voices: https://github.com/ex3ndr/supervoice/blob/master/generate_voices.py

You can try to use similar script to create a new voice

Yes, I use this. But I find that I fail. I donot know whether the MAF version is not right.

@yangdongchao
Copy link
Author

There is a simple script that created built-in voices: https://github.com/ex3ndr/supervoice/blob/master/generate_voices.py

You can try to use similar script to create a new voice

I make some voice based on your code.

wget https://huggingface.co/Dongchao/detect_dataset/resolve/main/new_voice.zip

But I fail to use them as prompt. Can you help to check?

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