bark icon indicating copy to clipboard operation
bark copied to clipboard

How do you get the same voice?

Open TheCompAce opened this issue 2 years ago • 3 comments
trafficstars

How do you get the same voice?

I used "MALE:" but every time it is another voice. Do you have a "value" you can pass to the AI for "seed"? I understand this is just a start.

TheCompAce avatar Apr 23 '23 05:04 TheCompAce

Look at the ReadMe at: https://github.com/suno-ai/bark#-voice-presets-and-voiceaudio-cloning

You can specify the voice in the generate_audio function.

David-Krug avatar Apr 23 '23 10:04 David-Krug

yeah, try using history_prompt with a specific speaker. some might work better than others for voice consistency

gkucsko avatar Apr 23 '23 13:04 gkucsko

Hey @TheCompAce,

You can specify a constant voice for generation using the history_prompt parameter in the generate_audio function... The pattern is {lang_code}_speaker_{0-9}

Example: audio_array = generate_audio(text_prompt, history_prompt="en_speaker_1")

It has been mentionned in the documentation !

rhpo avatar Apr 23 '23 13:04 rhpo

OK thanks, maybe the project's head will take these questions and have ChatGPT make a readme file for them.

TheCompAce avatar Apr 23 '23 20:04 TheCompAce

hahaha, i'll give it a try lol

gkucsko avatar Apr 24 '23 16:04 gkucsko

Hey @TheCompAce,

You can specify a constant voice for generation using the history_prompt parameter in the generate_audio function... The pattern is {lang_code}_speaker_{0-9}

Example: audio_array = generate_audio(text_prompt, history_prompt="en_speaker_1")

It has been mentionned in the documentation !

Where can I see all the speakers we can use and pass to history_prompt?

hritikb27 avatar Apr 24 '23 17:04 hritikb27

0-9 for all languages exist. you can load them in numpy and use the fine array with codec_decode to listen what they sound like

gkucsko avatar Apr 24 '23 17:04 gkucsko

Hi all,

I noticed for East Indian languages, they have Hindi but not Tamil. Anyone know if there is a plan to include voices (male and female) for Bark?

Also, same question as above, it's tricky to get the same voice for every generation. Not sure if history_prompt really works.

droidworks avatar Jul 11 '24 02:07 droidworks