suno-ai / bark

πŸ”Š Text-Prompted Generative Audio Model
MIT License
35.24k stars 4.13k forks source link

execute Command line got thrown error. #401

Open yangboz opened 1 year ago

yangboz commented 1 year ago

Command line fromhttps://github.com/suno-ai/bark it thrown:

As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.
Setting `pad_token_id` to `eos_token_id`:10000 for open-end generation.

my env:MBP , 13.4.1 (22F82), Python 3.8.15

any idea?

tongbaojia commented 1 year ago

Hi @yangboz ,

I suspect that has to deal with your input text is probably too long or in some weird format. You can test if it works with shorter texts like:

python -m bark --text "Hi suno, this is a test.[laughs] I am very happy today." --history_prompt "bark/assets/prompts/en_speaker_9.npz"
python -m bark --text "γ“γ‚“γ«γ‘γ―γ€γ‚ΉγƒŽγ€γ“γ‚Œγ―γƒ†γ‚Ήγƒˆγ§γ™γ€‚[笑] 今ζ—₯はとても幸せです。" --history_prompt "bark/assets/prompts/ja_speaker_9.npz"

Both works for me.

yangboz commented 1 year ago

btw , any where to download those npz files?

from here: https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c ? or here: https://dagshub.com/serpdotai/bark-with-voice-clone/src/main/bark/assets/prompts/ja_speaker_9.npz ?

yangboz commented 1 year ago

and


Oops, an error occurred: Connection error, and we cannot find the requested files in the disk cache.
``
could you give another example how to run it offline ?  thanks .
tongbaojia commented 1 year ago

https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c

would be the place to download it. Seems like the file you point to doesn't exist -- you can just verify if they do on the command line before executing any commands,.

illtellyoulater commented 7 months ago

Still getting this... "Oops, an error occurred: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on."