The API key you used is missing the permission text_to_speech to execute this operation.:
Traceback (most recent call last):
File "videotrans\tts\_elevenlabs.py", line 73, in _run
File "elevenlabs\text_to_speech\client.py", line 163, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 210, in convert
File "elevenlabs\text_to_speech\raw_client.py", line 208, in _stream
elevenlabs.core.api_error.ApiError: headers: {'date': 'Mon, 12 Jan 2026 17:26:51 GMT', 'server': 'uvicorn', 'content-length': '144', 'content-type': 'application/json', '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=31536000; includeSubDomains', 'x-trace-id': '75b672c94417b1a0464d5abb9c23a131', 'x-region': 'us-central1', 'via': '1.1 google, 1.1 google', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'}, status_code: 401, body: {'detail': {'status': 'missing_permissions', 'message': 'The API key you used is missing the permission text_to_speech to execute this operation.'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 294, in run
File "videotrans\tts\_base.py", line 179, in run
File "videotrans\tts\_elevenlabs.py", line 84, 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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 79, in _run
videotrans.configure._except.StopRetry: The API key you used is missing the permission text_to_speech to execute this operation.
=
system:Windows-10-10.0.26100-SP0
version:v3.91
frozen:True
language:zh
root_dir:E:/fanyiruanjian