Error: bad sample width #66
Replies: 4 comments 1 reply
-
I get the same error. Traceback (most recent call last): All generated .mp4 or .mp3 files are empty, where the .npz are being generated and contain data |
Beta Was this translation helpful? Give feedback.
-
I think I have a fix. Make sure you aren't using MP4 format for now. I'll be online tomorrow Sunday evening will patch. |
Beta Was this translation helpful? Give feedback.
-
This should be fixed. Let me know if works.
As far I can tell you only got the error if you tried to add silence between segments. Or if you used the CLI, where I accidentally left it defaulting to adding 0.25 seconds of silence. |
Beta Was this translation helpful? Give feedback.
-
File is still empty. What I do is typing a text message and select a build in speaker, than I click generate it, it produces the .npz and an .mp3 but the .mp3 is empty. |
Beta Was this translation helpful? Give feedback.
-
Hi
Today bark infinity stop to work
Any idea?
tqdm._instances.clear()
full_generation_segments, audio_arr_segments, final_filename_will_be = api.generate_audio_long(text_prompt=Texto, history_prompt=history_prompt)
Audio(np.concatenate(audio_arr_segments), rate=generation.SAMPLE_RATE)
Error Traceback (most recent call last)
in <cell line: 8>()
6
7 tqdm._instances.clear()
----> 8 full_generation_segments, audio_arr_segments, final_filename_will_be = api.generate_audio_long(text_prompt=Texto, history_prompt=history_prompt)
9
10 Audio(np.concatenate(audio_arr_segments), rate=generation.SAMPLE_RATE)
5 frames
/usr/lib/python3.10/wave.py in setsampwidth(self, sampwidth)
351 raise Error('cannot change parameters after starting to write')
352 if sampwidth < 1 or sampwidth > 4:
--> 353 raise Error('bad sample width')
354 self._sampwidth = sampwidth
355
Error: bad sample width
Beta Was this translation helpful? Give feedback.
All reactions