#4381 openai.NotFoundError: Error code: 404 - {'detail': 'Not Found'}

2405:4802* Posted at: 1 hour ago 👁16

None:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 397, in run
File "videotrans\tts\_base.py", line 181, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_openaitts.py", line 70, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_openaitts.py", line 53, in _run
File "openai\_response.py", line 629, in enter
File "openai\resources\audio\speech.py", line 108, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.NotFoundError: Error code: 404 - {'detail': 'Not Found'}


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:en
root_dir:C:/Users/zauberberglab/Downloads/win-pyvideotrans-v3.99-428

1 Replies

This is caused by an incorrect API endpoint or model name for the OpenAI TTS service. The 404 error indicates the requested resource was not found on the server.

  1. Verify that you have correctly filled in the OpenAI TTS settings (Menu → TTS Settings → OpenAI TTS):

    • API Base URL: The default is https://api.openai.com/v1. If you are using a proxy or compatible service, ensure the URL is correct (e.g., https://your-proxy.com/v1).
    • API Key: Must be a valid OpenAI API key (or a key for the compatible service).
    • Model: The default model is tts-1 or tts-1-hd. Make sure the model name is spelled exactly correct and is available on your account. Common valid names: tts-1, tts-1-hd.
  2. If you are using a compatible/third-party API (e.g., DeepSeek, local Ollama, 302.AI), confirm that the endpoint actually supports the /audio/speech OpenAI-compatible endpoint. Many third-party APIs only support chat completions and will return 404 for TTS requests.
  3. Network & Proxy: In mainland China, direct access to api.openai.com is blocked. Ensure you have filled in a valid proxy address in the main interface’s “Network Proxy Address” field (format: http://127.0.0.1:PORT).
  4. After correction, try the “Test Voice” button in the TTS settings panel to confirm connectivity.

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource