Skip to content

Unhandled Google TTS Abort Exception #2406

Description

@zaheerabbas-prodigal

I am seeing the below exception thrown from Google TTS - observed this when the user goes silent -

raise _create_rpc_error(
grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
        status = StatusCode.ABORTED
        details = "Stream aborted due to long duration elapsed without input sent. Input must be sent continuously, at least every 5s seconds."
        debug_error_string = "UNKNOWN:Error received from peer ipv4:142.251.222.170:443 {grpc_message:"Stream aborted due to long duration elapsed without input sent. Input must be sent continuously, at least every 5s seconds.", grpc_status:10, created_time:"2025-05-27T11:02:56.881525+05:30"}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/livekit/plugins/google/tts.py", line 352, in _run_stream
    async for resp in stream:
  File "/app/lib/python3.11/site-packages/google/api_core/grpc_helpers_async.py", line 109, in _wrapped_aiter
    raise exceptions.from_grpc_error(rpc_error) from rpc_error
google.api_core.exceptions.Aborted: 409 Stream aborted due to long duration elapsed without input sent. Input must be sent continuously, at least every 5s seconds.

Environment and Library version:

  1. Python - 3.11.11
  2. LiveKit Plugin version - livekit-plugins-google==1.0.22
  3. Google libs -
    google-api-core==2.24.2
    google-auth==2.40.2
    google-cloud-speech==2.32.0
    google-cloud-texttospeech==2.27.0
    google-genai==1.16.1
    googleapis-common-protos==1.70.0
    grpcio==1.71.0
    grpcio-status==1.71.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions