bark icon indicating copy to clipboard operation
bark copied to clipboard

Adding v2/ to history prompt will cause error

Open tin2tin opened this issue 2 years ago • 2 comments

As suggested here: https://github.com/suno-ai/bark/issues/193#issuecomment-1533670623

Adding this to the prompt: "v2/en_speaker_6" will cause this error:

Traceback (most recent call last):
  File "C:\Users\XXXX\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\text_to_video-main\__init__.py", line 728, in execute
    audio = generate_audio(prompt, history_prompt=lan_speak)
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\api.py", line 107, in generate_audio
    semantic_tokens = text_to_semantic(
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\api.py", line 25, in text_to_semantic
    x_semantic = generate_text_semantic(
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\generation.py", line 385, in generate_text_semantic
    silent=False,
AssertionError
Error: Python: Traceback (most recent call last):
  File "C:\Users\XXXX\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\text_to_video-main\__init__.py", line 728, in execute
    audio = generate_audio(prompt, history_prompt=lan_speak)
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\api.py", line 107, in generate_audio
    semantic_tokens = text_to_semantic(
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\api.py", line 25, in text_to_semantic
    x_semantic = generate_text_semantic(
  File "C:\Users\XXXX\AppData\Roaming\Python\Python310\site-packages\bark\generation.py", line 385, in generate_text_semantic
    silent=False,
AssertionError

tin2tin avatar May 05 '23 05:05 tin2tin

are you on the newest version of bark? does v2/en_speaker_5 work? does en_speaker_5 work?

gkucsko avatar May 05 '23 14:05 gkucsko

V2/ gave me an error both before and after the update.

It works without V2/.

tin2tin avatar May 05 '23 15:05 tin2tin

without v2 are the old prompts so that makes sense, but you should also be able to use the new ones. would love to figure out why but hard for me to reproduce

gkucsko avatar May 06 '23 13:05 gkucsko

Apparently the python module wasn't properly updated. I needed first to manually remove the side package, to get it to install.

tin2tin avatar May 07 '23 10:05 tin2tin

what side package?

headkit avatar Jul 05 '23 09:07 headkit