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

error when training with long audios. #4

Closed
loboere opened this issue Apr 22, 2023 · 2 comments
Closed

error when training with long audios. #4

loboere opened this issue Apr 22, 2023 · 2 comments

Comments

@loboere
Copy link

loboere commented Apr 22, 2023

error when training with long audios.

when training with audio 5s-7s it works but at
training with an audio of 15s-20s gives me the following error
100%|██████████| 100/100 [00:03<00:00, 27.04it/s]

AssertionError Traceback (most recent call last)
in <cell line: 7>()
5 """
6 voice_name = "/content/bark-with-voice-clone/bark/assets/prompts/output5.npz" # use your custom voice name here if you have one
----> 7 audio_array = generate_audio(text_prompt, history_prompt=voice_name)

2 frames
/usr/local/lib/python3.9/dist-packages/bark/generation.py in generate_coarse(x_semantic, history_prompt, temp, top_k, top_p, use_gpu, silent, max_coarse_history, sliding_window_len, model)
522 else:
523
--> 524 x_history = np.load(
525 os.path.join(CUR_PATH, "assets", "prompts", f"{history_prompt}.npz")
526 )

AssertionError:

@sould3mon
Copy link

tried it to with longer but indeed the same error.

i do wonder how much training there actualy is i think there are allot of randomized settings inside the generate_audio since even running it twice one same text with "cloned" voice produces very diffrent results.
so far none of ai voice generators i have tried actualy came close to resembling the input.
and even switching voice from female to male mid sentence.

not sure if there is a method to train 1 voice on multiple short pieces of audio.

@francislabountyjr
Copy link
Member

Use samples less than 7 seconds. The shorter the sample, the better the results in my limited testing so far

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

3 participants