a
hello
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! How can I help you today? I'm here to make sure you get the support you need.
a
WARNING livekit.agents - AgentFalseInterruptionEvent.extra_instructions is deprecated, automatic resume is now supported {"room": "fake_room"} in the provided code, where i am getting this warning and how to resolve it ?
t
Thank you for reaching out! The warning
livekit.agents - AgentFalseInterruptionEvent.extra_instructions is deprecated, automatic resume is now supported
is letting you know that the
extra_instructions
field in the
AgentFalseInterruptionEvent
class is no longer needed because we’ve introduced a helpful automatic resume feature for false interruptions. To help you smoothly handle this warning, here are some friendly steps you can follow: 1. Stop Using Deprecated Fields: It’s best to avoid using the
extra_instructions
field in your code. Instead, you can check the
resumed
field on the
AgentFalseInterruptionEvent
to see if the false interruption was automatically resumed. 2. Enable Automatic Resume: Make sure that when you create your
AgentSession
, the
resume_false_interruption
option is set to
True
. This will turn on the automatic resume feature for you. Here’s a simple example to guide you:
Copy code
session = AgentSession(
    vad=silero.VAD.load(),
    llm=openai.LLM(model="gpt-4o-mini"),
    stt=deepgram.STT(),
    tts=cartesia.TTS(),
    false_interruption_timeout=1.0,
    resume_false_interruption=True,  # Enable automatic resume
)
By following these steps, you’ll be able to clear the warning and enjoy the benefits of the improved automatic resume functionality. If you have any questions or need further assistance, please don’t hesitate to ask — I’m here to help! Sources: examples/avatar_agents/tavus/agent_worker.py
a
WARNING livekit.agents - Running <Task pending name='job_user_entrypoint' coro=<_JobProc._run_job_task.<locals>._traceable_entrypoint() running at C\Users\adity\Desktop\AI Livekit Projects\livekit env\Lib\site packages\opentelemetry\util\ decorator.py71> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()]> cb=[_JobProc._run_job_task.<locals>.<lambda>() at C\Users\adity\Desktop\AI Livekit Projects\livekit env\Lib\site packages\livekit\agents\ipc\job proc lazy main.py258, _JobProc._run_job_task.<locals>.log_exception() at C\Users\adity\Desktop\AI Livekit Projects\livekit env\Lib\site packages\livekit\agents\ipc\job proc lazy main.py260]> took too long
t
It looks like the warning is telling us that a task called
job_user_entrypoint
is taking longer than expected to finish. To help you better, could you share a bit more about what’s happening when this warning pops up? For instance: • What exactly is the task or process you’re running? • Do you have any special configurations or custom settings in your setup? • Is this warning showing up all the time or only in certain situations? Knowing these details will really help us get to the bottom of this and find the best solution for you.
a
stt=google.STT(model="latest_long", _spoken_punctuation_=False, languages="mr-IN", _detect_language_=True, _interim_results_=True, punctuate=False, _use_streaming_=True ), i am not sure i am using the google cloud stt v1 api or v2 ? how to che ks i want to use v2 api
t
Hi there! Just to share some helpful info: LiveKit uses Google Cloud STT v2 by default, and currently, there isn’t an option to switch back to v1. The integration is thoughtfully designed for v2, taking advantage of features like asynchronous clients and recognizer resources that aren’t available in v1. To gently double-check that you’re using v2, here are a few easy steps: 1. Take a peek at the source code of the LiveKit Google plugin. If you see the import statement
from google.cloud.speech_v2 import SpeechAsyncClient
, that’s a great sign you’re on v2. 2. Look at your configuration to see if it accepts v2-specific parameters, like
model="chirp"
. This is something only v2 supports. 3. Feel free to explore the [LiveKit Google STT documentation](https://docs.livekit.io/agents/integrations/stt/google/) for more details and examples tailored to v2. If you have any questions or need a hand setting things up, just let me know—I’m here to help! Sources: livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py | Google Cloud STT integration guide | LiveKit Docs | Google Cloud STT integration guide | LiveKit Docs