serp-ai / bark-with-voice-clone

🔊 Text-prompted Generative Audio Model - With the ability to clone voices
https://serp.ai/tools/bark-text-to-speech-ai-voice-clone-app
Other
3.11k stars 416 forks source link

ValueError: history prompt not found #38

Open yinjie1949 opened 1 year ago

yinjie1949 commented 1 year ago

I encountered this problem ValueError: history prompt not found while I execute the file clone_voice.ipynb at this part

simple generation

audio_array = generate_audio(text_prompt, history_prompt=voice_name, text_temp=0.7, waveform_temp=0.7) Please help me resolve this problem

dagshub[bot] commented 1 year ago

Join the discussion on DagsHub!

michael-erasmus commented 1 year ago

Same issue!

kaka-1314 commented 1 year ago

same issue!

headkit commented 1 year ago

I have this issue when I run a voice model generated with serp inside bark original.

alfbrown commented 1 year ago

Solved. The current bark generate.py has a range of 10 voices (0-9). You need to update the range and ensure that your voices conform to the established naming convention {prefix}{lang}speaker{n} Generate py

headkit commented 1 year ago

Nice, thanks! Weird type of restriction. What good is that?

kaka-1314 commented 1 year ago

thanks very much! my problem solved.

Solved. The current bark generate.py has a range of 10 voices (0-9). You need to update the range and ensure that your voices conform to the established naming convention {prefix}{lang}speaker{n} Generate py

yinjie1949 commented 1 year ago

@alfbrown @kaka-1314 Is it possible you can elaborate a little bit

kaka-1314 commented 1 year ago

change the voice_name to such format like {lang}spreaker{n} ,such as en_speaker_0、ja_speaker_1 and so on. "en" represents English; "ja" represents Japanese.

@alfbrown @kaka-1314 Is it possible you can elaborate a little bit

yinjie1949 commented 1 year ago

but still the voice output is not the one I would like to clone

BguoziLi commented 10 months ago

Solved!Hope it can help you audio_array = generate_audio(text_prompt, history_prompt="/your/path/to/voice_name.npz", text_temp=0.7, waveform_temp=0.7)