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

AssertionError while using Clone Voice grenerated file #21

Closed
HalfMAI opened this issue May 15, 2023 · 1 comment
Closed

AssertionError while using Clone Voice grenerated file #21

HalfMAI opened this issue May 15, 2023 · 1 comment

Comments

@HalfMAI
Copy link

HalfMAI commented May 15, 2023

  1. I input a .wav file and generated .npz with the corresponding text content
  2. I have the following problem when using my file

Version Info:
Launching Bark GUI - please edit windows_run.bat to customize commandline arguments
Check for Updates? [y/n]n
smallmodels=True
enablemps=False
offloadcpu=False
forcecpu=False
autolaunch=True

Preloading Models

Loading text_small model from ./models\text.pt to cuda
Loading coarse_small model from ./models\coarse.pt to cuda
Loading fine_small model from ./models\fine.pt to cuda
Launching Bark UI Enhanced v0.4.6 Server


AssertionError
Generating Text (1/1) -> custom\MeMyselfAndI (Seed 4124450773):WOMAN: I would like an oatmilk latte please. MAN: Wow, that's expensive!Traceback (most recent call last): File "E:\bark-gui\installer_files\env\lib\site-packages\gradio\routes.py", line 414, in run_predict output = await app.get_blocks().process_api( File "E:\bark-gui\installer_files\env\lib\site-packages\gradio\blocks.py", line 1320, in process_api result = await self.call_function( File "E:\bark-gui\installer_files\env\lib\site-packages\gradio\blocks.py", line 1048, in call_function prediction = await anyio.to_thread.run_sync( File "E:\bark-gui\installer_files\env\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "E:\bark-gui\installer_files\env\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "E:\bark-gui\installer_files\env\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "E:\bark-gui\installer_files\env\lib\site-packages\gradio\helpers.py", line 589, in tracked_fn response = fn(*args) File "E:\bark-gui\bark-gui\webui.py", line 91, in generate_text_to_speech audio_array = generate_with_settings(text_prompt=text, voice_name=selected_speaker, semantic_temp=text_temp, coarse_temp=waveform_temp, eos_p=eos_prob) File "E:\bark-gui\bark-gui\bark\api.py", line 19, in generate_with_settings x_coarse_gen = generate_coarse( File "E:\bark-gui\bark-gui\bark\generation.py", line 603, in generate_coarse round(x_coarse_history.shape[-1] / len(x_semantic_history), 1) AssertionError
image

@C0untFloyd
Copy link
Owner

This is a duplicate of issues #11 and #12
I'm guessing your cloned voice is much longer than the suggested 4 seconds of audio. You could either turn off generation history or just comment out the assert in line 590.

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