After deploying the F5-TTS project using source code, you may encounter some errors when calling the API. Common errors are listed below:
- Error:
Could not fetch config for http://127.0.0.1:7860/
Answer: Possible causes:
- F5-TTS is not started.
- Incorrect port.
- The port is occupied by another program. Generally, AI project interfaces are often implemented using Gradio, and the default port is 7860.
share
needs to be disabled. Use the startup commandf5-tts_infer-gradio --api
, and remove--share
.- Upgrade the
gradio_client
on the calling side to the latest version by executingpip install --upgrade gradio_client
.
- Error:
{detail:not found}
Answer: Possible causes:
- The
gradio_client
version on the calling side is too old. Please update it:pip install --upgrade gradio_client
. - Incorrect port or the port belongs to another project.
- Frequent occurrence of errors like this:
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /SWivid/F5-TTS/resolve/main/F5TTS_v1_Base/vocab.txt (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002174796DF60>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 0458b571-90ab-4edd-ae59-b93bd603cdd0)')
Network issue. Please use a stable and fast VPN to access Hugging Face.