API key must start with 'sk_'.:
{'text': 'hello,my friend', 'role': 'Roger - Laid-Back Casual Resonant', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/1704/1785971405.7137778-elevenlabs.wav', 'tts_type': 22}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 221, in run
File "videotrans\tts\_base.py", line 130, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 48, in _run
File "elevenlabs\text_to_speech\client.py", line 157, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 204, in convert
File "elevenlabs\text_to_speech\raw_client.py", line 202, in _stream
elevenlabs.core.api_error.ApiError: headers: {'date': 'Wed, 05 Aug 2026 23:10:06 GMT', 'server': 'uvicorn', 'content-length': '210', 'content-type': 'application/json', 'vary': 'Accept-Language', 'access-control-allow-origin': '', 'access-control-allow-headers': '', 'access-control-allow-methods': 'POST, PATCH, OPTIONS, DELETE, GET, PUT', 'access-control-max-age': '600', 'strict-transport-security': 'max-age=1800;', 'x-trace-id': 'd28fd982eaf8dc2d85096f195c1bc622', 'x-region': 'asia-southeast1', 'via': '1.1 google', 'alt-svc': 'h3=":443"; ma=2592000'}, status_code: 400, body: {'detail': {'type': 'authentication_error', 'code': 'invalid_api_key', 'message': "API key must start with 'sk_'.", 'status': 'invalid_api_key_prefix', 'request_id': 'd28fd982eaf8dc2d85096f195c1bc622', 'param': 'api_key'}}
=
system:Windows-10-10.0.22631-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07