I just cloned and ran agent-starter-python. Everyt...
# ask-ai
a
I just cloned and ran agent-starter-python. Everything works fine but im getting the following error for some reason:
Copy code
ERROR livekit.agents - Error predicting end of turn
Traceback (most recent call last):
  File "C:\Program Files\Python312\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "C:\programming\voice_ai_product\livekit-example\agent-starter-python\.venv\Lib\site-packages\livekit\agents\ipc\job_proc_lazy_main.py", line 101, in do_inference
    inf_resp = await fut
               ^^^^^^^^^
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "C:\programming\voice_ai_product\livekit-example\agent-starter-python\.venv\Lib\site-packages\livekit\agents\voice\audio_recognition.py", line 475, in _bounce_eou_task
    end_of_turn_probability = await turn_detector.predict_end_of_turn(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\programming\voice_ai_product\livekit-example\agent-starter-python\.venv\Lib\site-packages\livekit\plugins\turn_detector\multilingual.py", line 68, in predict_end_of_turn
    return await super().predict_end_of_turn(chat_ctx, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\programming\voice_ai_product\livekit-example\agent-starter-python\.venv\Lib\site-packages\livekit\plugins\turn_detector\base.py", line 237, in predict_end_of_turn
    result = await asyncio.wait_for(
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\asyncio\tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\asyncio\timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
t
Thanks for reaching out, maleek. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!