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

Voice cloning is not working (Error processing custom voice file: history prompt not found) #6

Open
agrogov opened this issue Oct 9, 2024 · 4 comments

Comments

@agrogov
Copy link

agrogov commented Oct 9, 2024

I tried to reuse the sample custom voice from bark_voice_samples/female.wav and just got Error processing custom voice file: history prompt not found...
Is there any solution for this issue?

@jgravelle
Copy link
Owner

jgravelle commented Oct 9, 2024 via email

@agrogov
Copy link
Author

agrogov commented Oct 10, 2024

I was able to successfully clone the example female voice with HuBERT, here is my modified notebook.
Just put generated female.npz in bark_voice_samples and that's it.

Changes in your code:

CUSTOM_MALE_VOICE_PATH = None
CUSTOM_FEMALE_VOICE_PATH = "bark_voice_samples/female.npz"

class GroqCasters:
    def __init__(self):
        try:
            self.groq = GroqProvider()
            self._setup_gpu()
            preload_models()
            self.custom_male_voice = CUSTOM_MALE_VOICE_PATH
            self.custom_female_voice = CUSTOM_FEMALE_VOICE_PATH

And remove _create_voice_prompt function, cos it's no longer needed.

@jgravelle
Copy link
Owner

Dude! This is huge!

Спасибо, товарищ...!

-jjg

@agrogov
Copy link
Author

agrogov commented Oct 10, 2024

No problem!

And one more thing - you need to resample example voice to be 24KHz before, cos your initial file is 44KHz.

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