The API key you used is missing the permission text_to_speech to execute this operation.:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'role': 'Roger - Laid-Back Casual Resonant', 'filename': 'D:/pyVideoTrans/tmp/21584/1792179079.7324853-elevenlabs.wav', 'tts_type': 24}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 125, 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
with self._raw_client.convert(File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 212, in convert
yield _stream()File "elevenlabs\text_to_speech\raw_client.py", line 210, in _stream
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)elevenlabs.core.api_error.ApiError: headers: {'date': 'Fri, 16 Oct 2026 19:31:22 GMT', 'server': 'uvicorn', 'content-length': '244', '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': '2f6bef0e60396b6f3001bc939c325e45', 'x-region': 'europe-west4', 'via': '1.1 google', 'alt-svc': 'h3=":443"; ma=2592000'}, status_code: 401, body: {'detail': {'type': 'authentication_error', 'code': 'unauthorized', 'message': 'The API key you used is missing the permission text_to_speech to execute this operation.', 'status': 'missing_permissions', 'request_id': '2f6bef0e60396b6f3001bc939c325e45'}}
=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:ru
root_dir:D:/pyVideoTrans