7+00:00"}
{"message": "AFC is enabled with max remote calls: 10.", "level": "INFO", "name": "google_genai.models", "pid": 34105, "job_id": "AJ_mN3QCk4waZUA", "timestamp": "2025-08-12T13
4016.842559+00:00"}
{"message": "failed to synthesize speech, retrying in 0.1s\nTraceback (most recent call last):\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/livekit/plugins/google/beta/gemini_tts.py\", line 192, in _run\n response = await self._tts._client.aio.models.generate_content(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<3 lines>...\n )\n ^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/models.py\", line 7810, in generate_content\n response = await self._generate_content(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n model=model, contents=contents, config=parsed_config\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/models.py\", line 6657, in _generate_content\n response = await self._api_client.async_request(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n 'post', path, request_dict, http_options\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/_api_client.py\", line 1296, in async_request\n result = await self._async_request(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n http_request=http_request, http_options=http_options, stream=False\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/_api_client.py\", line 1241, in _async_request\n return await self._async_retry( # type: ignore[no-any-return]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n self._async_request_once, http_request, stream\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/asyncio/__init__.py\", line 111, in __call__\n do = await self.iter(retry_state=retry_state)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/asyncio/__init__.py\", line 153, in iter\n result = await action(retry_state)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/_utils.py\", line 99, in inner\n return call(*args, **kwargs)\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/__init__.py\", line 420, in exc_check\n raise retry_exc.reraise()\n ~~~~~~~~~~~~~~~~~^^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/__init__.py\", line 187, in reraise\n raise self.last_attempt.result()\n ~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"/opt/homebrew/Cellar/python@3.13/3.13.3_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py\", line 449, in result\n return self.__get_result()\n ~~~~~~~~~~~~~~~~~^^\n File \"/opt/homebrew/Cellar/python@3.13/3.13.3_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py\", line 401, in __get_result\n raise self._exception\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/tenacity/asyncio/__init__.py\", line 114, in __call__\n result = await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/_api_client.py\", line 1182, in _async_request_once\n await errors.APIError.raise_for_async_response(response)\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/google/genai/errors.py\", line 156, in raise_for_async_response\n raise ClientError(status_code, response_json, response)\ngoogle.genai.errors.ClientError: 403 PERMISSION_DENIED. {'error': {'code': 403, 'message': \"Permission 'aiplatform.endpoints.predict' denied on resource '<//aiplatform.googleapis.com/projects/qfix-457011/locations/us-central1/publishers/google/models/gemini-2.5-flash-preview-tts>' (or it may not exist).\", 'status': 'PERMISSION_DENIED', 'details': [{'@type': '
type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'IAM_PERMISSION_DENIED', 'domain': '
aiplatform.googleapis.com', 'metadata': {'permission': 'aiplatform.endpoints.predict', 'resource': 'projects/qfix-457011/locations/us-central1/publishers/google/models/gemini-2.5-flash-preview-tts'}}]}}\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/livekit/agents/tts/tts.py\", line 231, in _main_task\n await self._run(output_emitter)\n File \"/Users/theatech/Desktop/mercedes-prompt/menv/lib/python3.13/site-packages/livekit/plugins/google/beta/gemini_tts.py\", line 223, in _run\n raise APIStatusError(\n ...<4 lines>...\n ) from e\nlivekit.agents._exceptions.APIStatusError: gemini tts: client error (status_code=403, request_id=None, body=Permission 'aiplatform.endpoints.predict' denied on resource '<//aiplatform.googleapis.com/projects/qfix-457011/locations/us-central1/publishers/google/models/gemini-2.5-flash-preview-tts>' (or it may not exist). PERMISSION_DENIED, retryable=False)", "level": "WARNING", "name": "livekit.agents", "tts": "livekit.plugins.google.beta.gemini_tts.TTS", "attempt": 1, "streamed": false, "pid": 34105, "job_id": "AJ_mN3QCk4waZUA", "timestamp": "2025-08-12T13
4018.176177+00:00"}