OpenAI TTS: Error code: 404 - {'statusCode': 404, 'message': 'Cannot POST /api/v1/audio/speech%E2%80%8B/audio/speech', 'error': 'Not Found', 'traceId': '6251df2d454f48eb0f6d9d146606b9ff'}
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'Kim Chi', 'filename': 'F:/创业/win-pyvideotrans-v4.19/tmp/1904/1795530154.1329935-openai.wav', 'tts_type': 24}
Traceback (most recent call last):
File "videotrans\tts\_openaitts.py", line 29, in _run
File "openai\_response.py", line 629, in enter
File "openai\resources\audio\speech.py", line 107, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.NotFoundError: Error code: 404 - {'statusCode': 404, 'message': 'Cannot POST /api/v1/audio/speech%E2%80%8B/audio/speech', 'error': 'Not Found', 'traceId': '6251df2d454f48eb0f6d9d146606b9ff'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 23, in run
File "videotrans\tts\__init__.py", line 154, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_base.py", line 201, in _exec
File "videotrans\tts\_base.py", line 161, in _local_mul_thread
File "videotrans\tts\_base.py", line 216, 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 44, in _run
videotrans.configure.excepts.StopTask: Error code: 404 - {'statusCode': 404, 'message': 'Cannot POST /api/v1/audio/speech%E2%80%8B/audio/speech', 'error': 'Not Found', 'traceId': '6251df2d454f48eb0f6d9d146606b9ff'}
=
system:Windows-10-10.0.19044-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:F:/创业/win-pyvideotrans-v4.19