bark icon indicating copy to clipboard operation
bark copied to clipboard

example codes can't run correctly.

Open WestSung opened this issue 2 years ago • 4 comments

error

How to fix it? Thanks.

WestSung avatar May 03 '23 07:05 WestSung

Hi, please change your history prompt to history_prompt="v2\\en_speaker_1". This is a windows issue that we are currently fixing

mcamac avatar May 03 '23 13:05 mcamac

with the newest version (if you update everything) it should also work to use "v2/en_speaker_1"

gkucsko avatar May 03 '23 20:05 gkucsko

first, I updated my local project by 'git pull'. then,I used "v2/en_speaker_1" and history_prompt="v2\en_speaker_1",but examples can't run correctly either.

settled. forgot step "pip install ."

update stillerror

WestSung avatar May 04 '23 11:05 WestSung

newq

now, I can generate long text voice,but there comes a new problem.
write_wav("C:\1.wav", SAMPLE_RATE, audio_array) only generate the last sentence ; write_wav("C:\2.wav", SAMPLE_RATE,np.concatenate(pieces)) generate a 66-second-long wave file but no sounds. How should I write code? Thanks.

WestSung avatar May 04 '23 15:05 WestSung

Yea am having the same problem

In the new examples, you can do this in a notebook.

Audio(np.concatenate(pieces), rate=SAMPLE_RATE)

But am having a hard time getting this to output a playable file.

write_wav(f"{path}/speech.wav", SAMPLE_RATE, np.concatenate(pieces))

Any thoughts on how i can solve?

roxyrypler avatar May 04 '23 20:05 roxyrypler

hmm, hard for me to test, i can't seem to reproduce..

gkucsko avatar May 04 '23 23:05 gkucsko

i installed jupyter notebook and got correct result.

WestSung avatar May 05 '23 13:05 WestSung

great! gonna close for now then

gkucsko avatar May 05 '23 13:05 gkucsko