Plachtaa / VALL-E-X

An open source implementation of Microsoft's VALL-E X zero-shot TTS model. Demo is available in https://plachtaa.github.io/vallex/
MIT License
7.7k stars 765 forks source link

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #145

Open dizhenx opened 1 year ago

dizhenx commented 1 year ago

Traceback (most recent call last): File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/gradio/blocks.py", line 1429, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/gradio/blocks.py", line 1239, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/gradio/components/audio.py", line 220, in preprocess sample_rate, data = processing_utils.audio_from_file( File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/gradio/processing_utils.py", line 145, in audio_from_file audio = AudioSegment.from_file(filename) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/pydub/audio_segment.py", line 728, in from_file info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/site-packages/pydub/utils.py", line 279, in mediainfo_json info = json.loads(output) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/mnt/data/creative/miniconda3/envs/VALL-E-X/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

How to solve an error that occurs when clicking on make prompt or generate?