Replies: 1 comment
-
|
That's probably because the audio text is longer than 12 seconds. There's a bug with the automatic adjustment. Just shorten it to 11 seconds and it might work. By the way, the next error comes right after that. It says that 4 values are expected, but only 3 were provided. This means the text wasn’t extracted from the uploaded audio using “Whisper.” So you’ll also need to enter the “Reference Text.” |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I installed via conda F5 TTS. When I try to press the generate button I get this error.
Traceback (most recent call last):
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\gradio\blocks.py", line 2146, in process_api
result = await self.call_function(
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\gradio\blocks.py", line 1664, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\anyio_backends_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\gradio\utils.py", line 884, in wrapper
response = f(*args, **kwargs)
File "A:\F5-TTS\src\f5_tts\infer\infer_gradio.py", line 292, in basic_tts
audio_out, spectrogram_path, ref_text_out, used_seed = infer(
File "A:\F5-TTS\src\f5_tts\infer\infer_gradio.py", line 158, in infer
ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, ref_text, show_info=show_info)
File "A:\F5-TTS\src\f5_tts\infer\utils_infer.py", line 296, in preprocess_ref_audio_text
aseg = AudioSegment.from_file(ref_audio_orig)
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\site-packages\pydub\utils.py", line 279, in mediainfo_json
info = json.loads(output)
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\nikostap\anaconda3\envs\f5-tts\lib\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)
Beta Was this translation helpful? Give feedback.
All reactions