============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
    14:55:18 DEBUG  asyncio          Using selector: EpollSelector  
             DEV    livekit.agents   Watching                                   
                                     /var/www/html/livekit_frontend/BackEnd/ag  
                                     ent-starter-python/src                     
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
    14:55:19 DEBUG  asyncio          Using selector: EpollSelector  
             INFO   livekit.agents   starting worker {"version": "1.3.3",       
                                                     "rtc-version": "1.0.19"}   
             INFO   livekit.agents   preloading plugins {"packages":            
                                                        ["livekit.plugins.carte…
                                                        "livekit.plugins.silero…
                                                        "livekit.plugins.eleven…
                                                        "livekit.plugins.turn_d…
                                                        "av"]}                  
             INFO   livekit.agents   starting inference executor  
    14:55:20 INFO   livekit.agents   initializing process {"pid": 2403056,      
                                                          "inference": true}    
    14:55:23 INFO   livekit.agents   process initialized {"pid": 2403056,       
                                                         "inference": true,     
                                                         "elapsed_time": 2.46}  
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_UdYSCgqiTUHu", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 16}          
    15:01:28 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_usPGjNGWV78T",    
                                                          "dispatch_id":        
                                                          "AD_P7qcrXArchP2",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_4pfdziyUejwU",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_usPGjNGWV78T",     
                                                         "dispatch_id":         
                                                         "AD_P7qcrXArchP2",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 2413362}
             INFO   agent            Prewarming agent           {"pid": 2413362}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 2413362,       
                                                         "elapsed_time": 0.25}  
             INFO   agent            Prewarm complete - VAD     {"pid": 2413362}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 2413362,     
                                     EpollSelector         "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            Job received:        {"pid": 2413362,      
                                     room=voice_assistant "job_id":             
                                     _room_5141,          "AJ_usPGjNGWV78T",    
                                     job_id=AJ_usPGjNGWV7 "room_id":            
                                     8T                   "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 537   "voice_assistant_room…
                                     ms (total since job: "pid": 2413362,       
                                     537 ms)              "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 2413362,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_usPGjNGWV78T",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_4pfdziyUejwU"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=CARTESIA (from    "pid": 2413362,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            TTS: Cartesia         {"room":             
                                     model=sonic-3         "voice_assistant_roo…
                                     voice=faf0731e-dfb9-4 "pid": 2413362,      
                                     cfc-8119-259a79b27e12 "job_id":            
                                      language=en          "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:29 INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 2413362,      
                                     + LLM +               "job_id":            
                                     AgentSession): 740 ms "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 2413362,      
                                     listening             "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 2413362,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 2413362,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 2413362,      
                                     (since connect): 373  "job_id":            
                                     ms (total since job:  "AJ_usPGjNGWV78T",   
                                     910 ms)               "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 2413362,      
                                     910 ms                "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:31 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             DEBUG  livekit.plugins… Established new       {"room":             
                                     Cartesia TTS          "voice_assistant_roo…
                                     WebSocket connection  "cartesia_request_id…
                                                           "5dc50212-5a26-4ce1-…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:32 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2413362,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1405 ms       "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2039494514465332,   
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006085395812988281,
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2413362,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:35 INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:01:37 INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2413362,      
                                     text="['Hello there!  "job_id":            
                                     How can I assist you  "AJ_usPGjNGWV78T",   
                                     today?']"...          "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2413362,       
                                     5200 ms              "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:39 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:41 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:01:42 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='Can you   "job_id":            
                                     tell me about         "AJ_usPGjNGWV78T",   
                                     details?'             "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2930 ms       "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Can you tell me about
                                                          details?", "language":
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.283339262008667,    
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 0 ms          "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 4426   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.002366781234741211,
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['Can you tell  "job_id":            
                                     me about              "AJ_usPGjNGWV78T",   
                                     details?']"...        "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:44 INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:01:51 INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2413362,      
                                     text='["Sure thing    "job_id":            
                                     But could you please  "AJ_usPGjNGWV78T",   
                                     tell me what kind of  "room_id":           
                                     details you\'re       "RM_4pfdziyUejwU"}   
                                     looking fo'...                             
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2413362,       
                                     9432 ms              "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:52 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:53 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:54 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2413362,       
                                     transcript='Yes.'    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 117 ms       "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Yes.", "language":   
                                                          "eng",                
                                                          "transcript_delay":   
                                                          0.06480765342712402,  
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 2552   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:01:55 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           1.2316374778747559,  
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2413362,       
                                     text="['Yes.']"...   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='The       "job_id":            
                                     product and event.'   "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "The product and      
                                                          event.", "language":  
                                                          "eng", "pid": 2413362,
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:56 INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=assistant   "pid": 2413362,       
                                     text="['Great        "job_id":             
                                     I’m']"...            "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] LLM         {"room":             
                                     (user_commit ->       "voice_assistant_roo…
                                     agent_response): 118  "pid": 2413362,      
                                     ms                    "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 123 ms        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 5 ms    "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['The product   "job_id":            
                                     and event.']"...      "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.plugins… Established new       {"room":             
                                     Cartesia TTS          "voice_assistant_roo…
                                     WebSocket connection  "cartesia_request_id…
                                                           "fc56ef3e-0242-4c6e-…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:01:57 INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:04 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:05 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:06 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='Can you   "job_id":            
                                     tell me about, uh...' "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 66 ms         "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Can you tell me      
                                                          about, uh...",        
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          0.016626596450805664, 
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2413362,      
                                     text="['Got it For a  "job_id":            
                                     product I can tell    "AJ_usPGjNGWV78T",   
                                     you about features    "room_id":           
                                     specifications uses   "RM_4pfdziyUejwU"}   
                                     and may"...                                
             INFO   agent            [LATENCY] LLM         {"room":             
                                     (user_commit ->       "voice_assistant_roo…
                                     agent_response): 4 ms "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:07 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 1334   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 1330   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['Can you tell  "job_id":            
                                     me about, uh...']"... "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:08 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='On        "job_id":            
                                     the...'               "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript": "On
                                                          the...", "language":  
                                                          "eng", "pid": 2413362,
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 106 ms        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 2012   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['On            "job_id":            
                                     the...']"...          "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.plugins… Established new       {"room":             
                                     Cartesia TTS          "voice_assistant_roo…
                                     WebSocket connection  "cartesia_request_id…
                                                           "2d218688-1aba-475f-…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:09 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:10 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> speaking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:12 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:13 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='I want to "job_id":            
                                     check what are the    "AJ_usPGjNGWV78T",   
                                     currently-'           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 418 ms       "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript": "I 
                                                          want to check what are
                                                          the currently-",      
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          0.07149147987365723,  
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:14 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 1528   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 8180   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['I want to     "job_id":            
                                     check what are the    "AJ_usPGjNGWV78T",   
                                     currently-']"...      "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:15 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2413362,      
                                     transcript='Uh, the   "job_id":            
                                     pricing of the        "AJ_usPGjNGWV78T",   
                                     phone.'               "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Uh, the pricing of   
                                                          the phone.",          
                                                          "language": "eng",    
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 111 ms        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 8968   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2413362,      
                                     text="['Uh, the       "job_id":            
                                     pricing of the        "AJ_usPGjNGWV78T",   
                                     phone.']"...          "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:16 DEBUG  livekit.plugins… Established new       {"room":             
                                     Cartesia TTS          "voice_assistant_roo…
                                     WebSocket connection  "cartesia_request_id…
                                                           "97893c86-280e-4d4c-…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:20 INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2413362,      
                                     text="['Sure Which    "job_id":            
                                     phone model are you   "AJ_usPGjNGWV78T",   
                                     interested in knowing "room_id":           
                                     the current pricing   "RM_4pfdziyUejwU"}   
                                     for?'"...                                  
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2413362,       
                                     4850 ms              "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:22 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:24 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:25 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2413362,       
                                     transcript='Uh, give "job_id":             
                                     me any-'             "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 3242 ms       "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Uh, give me any-",   
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.0978083610534668,   
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 5170   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.004978418350219726…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2413362,       
                                     text="['Uh, give me  "job_id":             
                                     any-']"...           "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:26 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> speaking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:27 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2413362,       
                                     transcript='Uh,      "job_id":             
                                     iPhone 16.'          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2319 ms       "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2413362,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Uh, iPhone 16.",     
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.1440272331237793,   
                                                          "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2413362,       
                                     y                    "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 20 ms  "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 7539   "pid": 2413362,       
                                     ms                   "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2413362,       
                                     text="['Uh, iPhone   "job_id":             
                                     16.']"...            "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:28 DEBUG  livekit.plugins… Established new       {"room":             
                                     Cartesia TTS          "voice_assistant_roo…
                                     WebSocket connection  "cartesia_request_id…
                                                           "3dc8a824-caa7-41cd-…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
    15:02:29 INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:02:38 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2413362,      
                                     text="['The iPhone 16 "job_id":            
                                     has not been released "AJ_usPGjNGWV78T",   
                                     yet so there is no    "room_id":           
                                     official pricing      "RM_4pfdziyUejwU"}   
                                     availa"...                                 
             INFO   agent            [LATENCY] LLM         {"room":             
                                     (user_commit ->       "voice_assistant_roo…
                                     agent_response):      "pid": 2413362,      
                                     10541 ms              "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_5141", 
                                                   "participant":               
                                                   "voice_assistant_user_4544", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   2413362, "job_id":           
                                                   "AJ_usPGjNGWV78T", "room_id":
                                                   "RM_4pfdziyUejwU"}           
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2413362,      
                                                           "job_id":            
                                                           "AJ_usPGjNGWV78T",   
                                                           "room_id":           
                                                           "RM_4pfdziyUejwU"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_5141",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    2413362, "job_id":          
                                                    "AJ_usPGjNGWV78T",          
                                                    "room_id":                  
                                                    "RM_4pfdziyUejwU"}          
    15:03:03 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     2413362, "job_id":         
                                                     "AJ_usPGjNGWV78T",         
                                                     "room_id":                 
                                                     "RM_4pfdziyUejwU"}         
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 2413362,
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_5141_1773999089280
Logged user message: Hello.... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ['Hello there! How can I assist you today?']... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Can you tell me about details?... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ["Sure thing But could you please tell me what kin... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Yes.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: The product and event.... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ['Great I’m']... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Can you tell me about, uh...... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ['Got it For a product I can tell you about featur... (total messages: 9)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: On the...... (total messages: 10)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: I want to check what are the currently-... (total messages: 11)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Uh, the pricing of the phone.... (total messages: 12)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ['Sure Which phone model are you interested in kno... (total messages: 13)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Uh, give me any-... (total messages: 14)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged user message: Uh, iPhone 16.... (total messages: 15)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Logged bot message: ['The iPhone 16 has not been released yet so there... (total messages: 16)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5141_1773999089280.json
  - Messages: 16
  - Duration: 93.81s
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 2413362,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_usPGjNGWV78T",   
                                     s/voice_assistant_roo "room_id":           
                                     m_5141_1773999089280. "RM_4pfdziyUejwU"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 2413362,       
                                                          "job_id":             
                                                          "AJ_usPGjNGWV78T",    
                                                          "room_id":            
                                                          "RM_4pfdziyUejwU"}    
    15:06:13 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "dispatch_id":        
                                                          "AD_wEKajbtBgSwq",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_TksdBK4Avwh9",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_X3VpWhin9Eqn",     
                                                         "dispatch_id":         
                                                         "AD_wEKajbtBgSwq",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 2419896}
             INFO   agent            Prewarming agent           {"pid": 2419896}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 2419896,       
                                                         "elapsed_time": 0.27}  
             INFO   agent            Prewarm complete - VAD     {"pid": 2419896}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 2419896,     
                                     EpollSelector         "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            Job received:        {"pid": 2419896,      
                                     room=voice_assistant "job_id":             
                                     _room_6751,          "AJ_X3VpWhin9Eqn",    
                                     job_id=AJ_X3VpWhin9E "room_id":            
                                     qn                   "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 253   "voice_assistant_room…
                                     ms (total since job: "pid": 2419896,       
                                     253 ms)              "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 2419896,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_X3VpWhin9Eqn",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_TksdBK4Avwh9"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 2419896,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 2419896,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 2419896,      
                                     + LLM +               "job_id":            
                                     AgentSession): 402 ms "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 2419896,      
                                     listening             "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 2419896,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 2419896,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 2419896,      
                                     (since connect): 157  "job_id":            
                                     ms (total since job:  "AJ_X3VpWhin9Eqn",   
                                     410 ms)               "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 2419896,      
                                     410 ms                "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:14 DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
    15:06:16 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:17 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2419896,      
                                     transcript='Mm-hmm.'  "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1337 ms       "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2419896,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Mm-hmm.", "language":
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2849135398864746,   
                                                          "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2419896,       
                                     y                    "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006585836410522461,
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2419896,      
                                     text="['Mm-hmm.']"... "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:19 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2419896,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_X3VpWhin9Eqn",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_TksdBK4Avwh9"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I                          
                                     help you with today?                       
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I                          
                                     help you with today?                       
                                     (body=None,                                
                                     retryable=True)                            
    15:06:20 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:21 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I                          
                                     help you with today?                       
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
    15:06:22 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2419896,       
                                     transcript='Hello?   "job_id":             
                                     Okay.'               "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1482 ms       "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2419896,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello? Okay.",       
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          0.08220458030700684,  
                                                          "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2419896,       
                                     y                    "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 20 ms  "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2419896,       
                                     text="['Hello?       "job_id":             
                                     Okay.']"...          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:23 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2419896,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_X3VpWhin9Eqn",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_TksdBK4Avwh9"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    15:06:25 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2419896,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_X3VpWhin9Eqn",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_TksdBK4Avwh9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    15:06:26 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:27 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2419896,      
                                     recent call last):    "job_id":            
                                       File                "AJ_X3VpWhin9Eqn",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_TksdBK4Avwh9"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2419896,      
                                     text="['Hello there   "job_id":            
                                     How can I help you    "AJ_X3VpWhin9Eqn",   
                                     today']"...           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2419896,       
                                     5127 ms              "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
    15:06:28 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2419896,      
                                     transcript='When the  "job_id":            
                                     number is one or 0?   "AJ_X3VpWhin9Eqn",   
                                     Or 0.'                "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2367 ms       "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2419896,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "When the number is   
                                                          one or 0? Or 0.",     
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.422776699066162,    
                                                          "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2419896,       
                                     y                    "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 1412   "pid": 2419896,       
                                     ms                   "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005095720291137695,
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2419896,      
                                     text="['When the      "job_id":            
                                     number is one or 0?   "AJ_X3VpWhin9Eqn",   
                                     Or 0.']"...           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:06:29 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_6751", 
                                                   "participant":               
                                                   "voice_assistant_user_5867", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   2419896, "job_id":           
                                                   "AJ_X3VpWhin9Eqn", "room_id":
                                                   "RM_TksdBK4Avwh9"}           
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_6751",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    2419896, "job_id":          
                                                    "AJ_X3VpWhin9Eqn",          
                                                    "room_id":                  
                                                    "RM_TksdBK4Avwh9"}          
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_6751_1773999373881
Logged user message: Mm-hmm.... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6751_1773999373881.json
Logged user message: Hello? Okay.... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6751_1773999373881.json
Logged bot message: ['Hello there How can I help you today']... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6751_1773999373881.json
Logged user message: When the number is one or 0? Or 0.... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6751_1773999373881.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6751_1773999373881.json
  - Messages: 4
  - Duration: 36.24s
    15:06:50 DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 2419896,
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     2419896, "job_id":         
                                                     "AJ_X3VpWhin9Eqn",         
                                                     "room_id":                 
                                                     "RM_TksdBK4Avwh9"}         
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 2419896,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_X3VpWhin9Eqn",   
                                     s/voice_assistant_roo "room_id":           
                                     m_6751_1773999373881. "RM_TksdBK4Avwh9"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 2419896,       
                                                          "job_id":             
                                                          "AJ_X3VpWhin9Eqn",    
                                                          "room_id":            
                                                          "RM_TksdBK4Avwh9"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 2419896,      
                                                           "job_id":            
                                                           "AJ_X3VpWhin9Eqn",   
                                                           "room_id":           
                                                           "RM_TksdBK4Avwh9"}   
    15:28:18 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "dispatch_id":        
                                                          "AD_V38StHdSCvDE",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_25kbsLQSpd8Z",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_XcwcPmjaHmEU",     
                                                         "dispatch_id":         
                                                         "AD_V38StHdSCvDE",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 2445512}
    15:28:19 INFO   agent            Prewarming agent           {"pid": 2445512}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 2445512,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Prewarm complete - VAD     {"pid": 2445512}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 2445512,     
                                     EpollSelector         "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            Job received:        {"pid": 2445512,      
                                     room=voice_assistant "job_id":             
                                     _room_4524,          "AJ_XcwcPmjaHmEU",    
                                     job_id=AJ_XcwcPmjaHm "room_id":            
                                     EU                   "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 400   "voice_assistant_room…
                                     ms (total since job: "pid": 2445512,       
                                     400 ms)              "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 2445512,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_XcwcPmjaHmEU",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_25kbsLQSpd8Z"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 2445512,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 2445512,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 2445512,      
                                     + LLM +               "job_id":            
                                     AgentSession): 527 ms "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 2445512,      
                                     listening             "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 2445512,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 2445512,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 2445512,      
                                     (since connect): 137  "job_id":            
                                     ms (total since job:  "AJ_XcwcPmjaHmEU",   
                                     537 ms)               "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 2445512,      
                                     537 ms                "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
    15:28:23 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:24 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:25 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2445512,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1430 ms       "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2445512,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.3287508487701416,   
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2445512,       
                                     y                    "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.003335237503051758,
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2445512,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:26 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2445512,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_XcwcPmjaHmEU",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_25kbsLQSpd8Z"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:28:28 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:28:30 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2445512,      
                                     recent call last):    "job_id":            
                                       File                "AJ_XcwcPmjaHmEU",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_25kbsLQSpd8Z"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2445512,      
                                     text="['Hello there   "job_id":            
                                     How can I assist you  "AJ_XcwcPmjaHmEU",   
                                     today']"...           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2445512,       
                                     5458 ms              "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:35 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:36 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
    15:28:37 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2445512,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1775 ms       "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2445512,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2274386882781982,   
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2445512,       
                                     y                    "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 6392   "pid": 2445512,       
                                     ms                   "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.004670858383178711,
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2445512,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:38 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2445512,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_XcwcPmjaHmEU",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_25kbsLQSpd8Z"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What can I do                        
                                     for you today                              
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What can I do                        
                                     for you today                              
                                     (body=None,                                
                                     retryable=True)                            
    15:28:40 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What can I do                        
                                     for you today                              
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:41 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
    15:28:42 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2445512,      
                                     transcript='And       "job_id":            
                                     people start-'        "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1298 ms       "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2445512,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "And people start-",  
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.093698501586914,    
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2445512,       
                                     y                    "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 12 ms  "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 11521   "pid": 2445512,      
                                     ms                    "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2445512,      
                                     text="['And people    "job_id":            
                                     start-']"...          "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:43 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2445512,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_XcwcPmjaHmEU",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_25kbsLQSpd8Z"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Looks like your                            
                                     message got cut off                        
                                     What were you going                        
                                     to say about people                        
                                     starting something                         
                                     I’m curious to hear                        
                                     more (body=None,                           
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Looks like your                            
                                     message got cut off                        
                                     What were you going                        
                                     to say about people                        
                                     starting something                         
                                     I’m curious to hear                        
                                     more (body=None,                           
                                     retryable=True)                            
    15:28:45 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Looks like your                            
                                     message got cut off                        
                                     What were you going                        
                                     to say about people                        
                                     starting something                         
                                     I’m curious to hear                        
                                     more (body=None,                           
                                     retryable=True)                            
    15:28:47 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2445512,      
                                     recent call last):    "job_id":            
                                       File                "AJ_XcwcPmjaHmEU",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_25kbsLQSpd8Z"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Looks like your                            
                                     message got cut off                        
                                     What were you going                        
                                     to say about people                        
                                     starting something                         
                                     I’m curious to hear                        
                                     more (body=None,                           
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2445512,      
                                     text="['Looks like    "job_id":            
                                     your message got cut  "AJ_XcwcPmjaHmEU",   
                                     off What were you     "room_id":           
                                     going to say about    "RM_25kbsLQSpd8Z"}   
                                     people st"...                              
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2445512,       
                                     5357 ms              "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:49 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2445512,       
                                     transcript='Hello?   "job_id":             
                                     Ya.'                 "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1967 ms       "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2445512,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello? Ya.",         
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.163562536239624,    
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2445512,       
                                     y                    "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 2213   "pid": 2445512,       
                                     ms                   "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.004549503326416016,
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2445512,       
                                     text="['Hello?       "job_id":             
                                     Ya.']"...            "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:50 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2445512,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_XcwcPmjaHmEU",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_25kbsLQSpd8Z"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today Let’s                      
                                     chat (body=None,                           
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today Let’s                      
                                     chat (body=None,                           
                                     retryable=True)                            
    15:28:51 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:52 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2445512,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1503 ms       "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2445512,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.3562068939208984,   
                                                          "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2445512,       
                                     y                    "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 6 ms          "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 5356   "pid": 2445512,       
                                     ms                   "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2445512,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:28:53 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2445512,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_XcwcPmjaHmEU",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_25kbsLQSpd8Z"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
    15:28:56 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2445512,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_XcwcPmjaHmEU",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_25kbsLQSpd8Z"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
    15:28:58 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2445512,      
                                     recent call last):    "job_id":            
                                       File                "AJ_XcwcPmjaHmEU",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_25kbsLQSpd8Z"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What’s on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2445512,      
                                     text="['Hello again   "job_id":            
                                     What’s on your mind   "AJ_XcwcPmjaHmEU",   
                                     today']"...           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2445512,       
                                     5224 ms              "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:29:13 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=away            "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    15:29:24 DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_4524", 
                                                   "participant":               
                                                   "voice_assistant_user_9801", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   2445512, "job_id":           
                                                   "AJ_XcwcPmjaHmEU", "room_id":
                                                   "RM_25kbsLQSpd8Z"}           
    15:29:44 DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_4524_1774000699613
Logged user message: Hello?... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged bot message: ['Hello there How can I assist you today']... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged user message: Hello.... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged user message: And people start-... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged bot message: ['Looks like your message got cut off What were yo... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged user message: Hello? Ya.... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged user message: Hello.... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Logged bot message: ['Hello again What’s on your mind today']... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4524_1774000699613.json
  - Messages: 8
  - Duration: 84.97s
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_4524",
                                                    "reason": "user_initiated", 
                                                    "error": null, "pid":       
                                                    2445512, "job_id":          
                                                    "AJ_XcwcPmjaHmEU",          
                                                    "room_id":                  
                                                    "RM_25kbsLQSpd8Z"}          
             INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     2445512, "job_id":         
                                                     "AJ_XcwcPmjaHmEU",         
                                                     "room_id":                 
                                                     "RM_25kbsLQSpd8Z"}         
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 2445512,
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 2445512,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_XcwcPmjaHmEU",   
                                     s/voice_assistant_roo "room_id":           
                                     m_4524_1774000699613. "RM_25kbsLQSpd8Z"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 2445512,       
                                                          "job_id":             
                                                          "AJ_XcwcPmjaHmEU",    
                                                          "room_id":            
                                                          "RM_25kbsLQSpd8Z"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 2445512,      
                                                           "job_id":            
                                                           "AJ_XcwcPmjaHmEU",   
                                                           "room_id":           
                                                           "RM_25kbsLQSpd8Z"}   
    22:35:29 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "dispatch_id":        
                                                          "AD_7nfs6GFAnMbh",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_HnEXxTihUJsG",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_fHbDVuk2RAPW",     
                                                         "dispatch_id":         
                                                         "AD_7nfs6GFAnMbh",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 2820960}
             INFO   agent            Prewarming agent           {"pid": 2820960}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 2820960,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Prewarm complete -    {"pid": 2820960,     
                                     VAD loaded            "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  asyncio          Using selector:       {"pid": 2820960,     
                                     EpollSelector         "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            Job received:        {"pid": 2820960,      
                                     room=voice_assistant "job_id":             
                                     _room_6021,          "AJ_fHbDVuk2RAPW",    
                                     job_id=AJ_fHbDVuk2RA "room_id":            
                                     PW                   "RM_HnEXxTihUJsG"}    
    22:35:30 INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 301   "voice_assistant_room…
                                     ms (total since job: "pid": 2820960,       
                                     301 ms)              "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 2820960,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_fHbDVuk2RAPW",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_HnEXxTihUJsG"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 2820960,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 2820960,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 2820960,      
                                     + LLM +               "job_id":            
                                     AgentSession): 412 ms "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 2820960,      
                                     listening             "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 2820960,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 2820960,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 2820960,      
                                     (since connect): 119  "job_id":            
                                     ms (total since job:  "AJ_fHbDVuk2RAPW",   
                                     420 ms)               "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 2820960,      
                                     420 ms                "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:35:31 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:32 DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:35:33 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1254 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.103442907333374,    
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006139278411865234,
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:34 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:35 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:35:36 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1490 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1906218528747559,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 6 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:37 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
    22:35:38 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:39 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:40 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2820960,      
                                     transcript='Hello, I  "job_id":            
                                     am audible to you.'   "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2127 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello, I am audible  
                                                          to you.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.225508451461792,    
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 9 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2820960,      
                                     text="['Hello, I am   "job_id":            
                                     audible to you.']"... "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:42 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there I can                          
                                     hear you loud and                          
                                     clear How can I                            
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there I can                          
                                     hear you loud and                          
                                     clear How can I                            
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    22:35:44 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there I can                          
                                     hear you loud and                          
                                     clear How can I                            
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    22:35:45 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:35:46 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2820960,      
                                     recent call last):    "job_id":            
                                       File                "AJ_fHbDVuk2RAPW",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_HnEXxTihUJsG"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there I can                          
                                     hear you loud and                          
                                     clear How can I                            
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2820960,      
                                     text="['Hello there I "job_id":            
                                     can hear you loud and "AJ_fHbDVuk2RAPW",   
                                     clear How can I       "room_id":           
                                     assist you            "RM_HnEXxTihUJsG"}   
                                     today']"...                                
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2820960,       
                                     5316 ms              "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1621 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.3215198516845703,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 478 ms  "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005530357360839844,
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:48 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
    22:35:50 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
    22:35:52 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2820960,      
                                     recent call last):    "job_id":            
                                       File                "AJ_fHbDVuk2RAPW",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_HnEXxTihUJsG"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2820960,      
                                     text="['Hello again   "job_id":            
                                     What can I do for you "AJ_fHbDVuk2RAPW",   
                                     today']"...           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2820960,       
                                     5715 ms              "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:53 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1468 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1207807064056396,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 1434   "pid": 2820960,       
                                     ms                   "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005821943283081055,
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:54 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:55 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Hello What's on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Hello What's on                      
                                     your mind today                            
                                     (body=None,                                
                                     retryable=True)                            
    22:35:56 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2820960,      
                                     transcript='Hello, I  "job_id":            
                                     am audible to you.'   "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2179 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello, I am audible  
                                                          to you.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2320210933685303,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 5 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 4296   "pid": 2820960,       
                                     ms                   "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2820960,      
                                     text="['Hello, I am   "job_id":            
                                     audible to you.']"... "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:35:58 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Loud                      
                                     and clear How can I                        
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Loud                      
                                     and clear How can I                        
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    22:36:00 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Loud                      
                                     and clear How can I                        
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    22:36:02 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2820960,      
                                     recent call last):    "job_id":            
                                       File                "AJ_fHbDVuk2RAPW",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_HnEXxTihUJsG"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Loud                      
                                     and clear How can I                        
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2820960,      
                                     text="['Loud and      "job_id":            
                                     clear How can I help  "AJ_fHbDVuk2RAPW",   
                                     you today']"...       "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2820960,       
                                     5713 ms              "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:05 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:06 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:07 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 390 ms       "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          0.04076385498046875,  
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 4750   "pid": 2820960,       
                                     ms                   "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:36:08 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.9565060138702393,  
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again Ready to                       
                                     assist whenever you                        
                                     are (body=None,                            
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again Ready to                       
                                     assist whenever you                        
                                     are (body=None,                            
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2820960,      
                                     transcript='Hello, I  "job_id":            
                                     am audible to you?'   "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello, I am audible  
                                                          to you?", "language": 
                                                          "eng", "pid": 2820960,
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:09 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 106 ms        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 6603   "pid": 2820960,       
                                     ms                   "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2820960,      
                                     text="['Hello, I am   "job_id":            
                                     audible to you?']"... "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:10 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Yes                       
                                     you are audible How                        
                                     can I assist you                           
                                     today (body=None,                          
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Yes                       
                                     you are audible How                        
                                     can I assist you                           
                                     today (body=None,                          
                                     retryable=True)                            
    22:36:11 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:12 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Yes                       
                                     you are audible How                        
                                     can I assist you                           
                                     today (body=None,                          
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:36:13 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1504 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1010091304779053,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 7 ms          "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 11017   "pid": 2820960,      
                                     ms                    "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:14 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2820960,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_fHbDVuk2RAPW",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_HnEXxTihUJsG"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
    22:36:15 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello I can hear you                       
                                     How can I assist you                       
                                     today (body=None,                          
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello I can hear you                       
                                     How can I assist you                       
                                     today (body=None,                          
                                     retryable=True)                            
    22:36:16 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
    22:36:17 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2820960,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_fHbDVuk2RAPW",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_HnEXxTihUJsG"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello I can hear you                       
                                     How can I assist you                       
                                     today (body=None,                          
                                     retryable=True)                            
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2820960,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1447 ms       "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2820960,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1473424434661865,   
                                                          "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2820960,       
                                     y                    "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 18 ms  "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 15072   "pid": 2820960,      
                                     ms                    "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2820960,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
    22:36:18 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_6021", 
                                                   "participant":               
                                                   "voice_assistant_user_8862", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   2820960, "job_id":           
                                                   "AJ_fHbDVuk2RAPW", "room_id":
                                                   "RM_HnEXxTihUJsG"}           
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_6021",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    2820960, "job_id":          
                                                    "AJ_fHbDVuk2RAPW",          
                                                    "room_id":                  
                                                    "RM_HnEXxTihUJsG"}          
    22:36:28 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "dispatch_id":        
                                                          "AD_Kvwyrz5ZaVnD",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_Y95J2B8TYWAk",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_KcDaGhxnpGBk",     
                                                         "dispatch_id":         
                                                         "AD_Kvwyrz5ZaVnD",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 2821745}
             INFO   agent            Prewarming agent           {"pid": 2821745}
                                     process...                                 
             INFO   agent            Prewarm complete - VAD     {"pid": 2821745}
                                     loaded                                     
             DEBUG  asyncio          Using selector:            {"pid": 2821745}
                                     EpollSelector                              
             INFO   livekit.agents   process initialized {"pid": 2821745,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Job received:        {"pid": 2821745,      
                                     room=voice_assistant "job_id":             
                                     _room_8070,          "AJ_KcDaGhxnpGBk",    
                                     job_id=AJ_KcDaGhxnpG "room_id":            
                                     Bk                   "RM_Y95J2B8TYWAk"}    
    22:36:29 INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 250   "voice_assistant_room…
                                     ms (total since job: "pid": 2821745,       
                                     250 ms)              "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 2821745,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_KcDaGhxnpGBk",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_Y95J2B8TYWAk"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 2821745,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 2821745,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 2821745,      
                                     + LLM +               "job_id":            
                                     AgentSession): 382 ms "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 2821745,      
                                     listening             "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 2821745,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 2821745,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 2821745,      
                                     (since connect): 140  "job_id":            
                                     ms (total since job:  "AJ_KcDaGhxnpGBk",   
                                     390 ms)               "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 2821745,      
                                     390 ms                "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:31 DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:36:35 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:36 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:37 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1500 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2009799480438232,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006140708923339844,
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:38 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
    22:36:39 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_6021_1774026330374
Logged user message: Hello.... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello.... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello, I am audible to you.... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged bot message: ['Hello there I can hear you loud and clear How ca... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged bot message: ['Hello again What can I do for you today']... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello.... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello, I am audible to you.... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged bot message: ['Loud and clear How can I help you today']... (total messages: 9)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello.... (total messages: 10)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello, I am audible to you?... (total messages: 11)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello?... (total messages: 12)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Logged user message: Hello.... (total messages: 13)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_6021_1774026330374.json
  - Messages: 13
  - Duration: 69.72s
    22:36:40 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     2820960, "job_id":         
                                                     "AJ_fHbDVuk2RAPW",         
                                                     "room_id":                 
                                                     "RM_HnEXxTihUJsG"}         
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 2820960,
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 2820960,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_fHbDVuk2RAPW",   
                                     s/voice_assistant_roo "room_id":           
                                     m_6021_1774026330374. "RM_HnEXxTihUJsG"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 2820960,       
                                                          "job_id":             
                                                          "AJ_fHbDVuk2RAPW",    
                                                          "room_id":            
                                                          "RM_HnEXxTihUJsG"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 2820960,      
                                                           "job_id":            
                                                           "AJ_fHbDVuk2RAPW",   
                                                           "room_id":           
                                                           "RM_HnEXxTihUJsG"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:36:41 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2821745,      
                                     transcript='Hello, I  "job_id":            
                                     am audible?'          "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2137 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello, I am          
                                                          audible?", "language":
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2914531230926514,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 7 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2821745,      
                                     text="['Hello, I am   "job_id":            
                                     audible?']"...        "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:42 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             ERROR  livekit.agents   Error in _main_task   {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 1001, in                              
                                     _main_task                                 
                                         audio_decoder.pus                      
                                     h(data)                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 151,                       
                                     in push                                    
                                         self._input_buf.w                      
                                     rite(chunk)                                
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 80,                        
                                     in write                                   
                                         self._buffer.seek                      
                                     (0, io.SEEK_END)                           
                                     ValueError: I/O                            
                                     operation on closed                        
                                     file.                                      
             ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2821745,      
                                     recent call last):    "job_id":            
                                       File                "AJ_KcDaGhxnpGBk",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_Y95J2B8TYWAk"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 403, in                               
                                     _main_task                                 
                                         await                                  
                                     output_emitter.join()                      
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 762, in join                          
                                         await                                  
                                     self._main_atask                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 1001, in                              
                                     _main_task                                 
                                         audio_decoder.pus                      
                                     h(data)                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 151,                       
                                     in push                                    
                                         self._input_buf.w                      
                                     rite(chunk)                                
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 80,                        
                                     in write                                   
                                         self._buffer.seek                      
                                     (0, io.SEEK_END)                           
                                     ValueError: I/O                            
                                     operation on closed                        
                                     file.                                      
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2821745,      
                                     text="['Hello! Yes, I "job_id":            
                                     can hear you loud and "AJ_KcDaGhxnpGBk",   
                                     clear. How can I      "room_id":           
                                     assist you            "RM_Y95J2B8TYWAk"}   
                                     today?']"...                               
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2821745,       
                                     1245 ms              "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:48 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:49 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:36:50 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1656 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.3047614097595215,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 7924   "pid": 2821745,       
                                     ms                   "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005991220474243164,
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:51 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
    22:36:53 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
    22:36:54 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:55 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1431 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.081920862197876,    
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 10 ms  "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 13307   "pid": 2821745,      
                                     ms                    "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:56 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! What can                      
                                     I do for you today?                        
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! What can                      
                                     I do for you today?                        
                                     (body=None,                                
                                     retryable=True)                            
    22:36:57 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:58 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2821745,      
                                     transcript='Hello?    "job_id":            
                                     Hello. Hello.'        "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2099 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello? Hello.        
                                                          Hello.", "language":  
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2541663646697998,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 6 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 16374   "pid": 2821745,      
                                     ms                    "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2821745,      
                                     text="['Hello? Hello. "job_id":            
                                     Hello.']"...          "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:36:59 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
    22:37:00 ERROR  livekit.agents   Error in _main_task   {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 1001, in                              
                                     _main_task                                 
                                         audio_decoder.pus                      
                                     h(data)                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 151,                       
                                     in push                                    
                                         self._input_buf.w                      
                                     rite(chunk)                                
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 80,                        
                                     in write                                   
                                         self._buffer.seek                      
                                     (0, io.SEEK_END)                           
                                     ValueError: I/O                            
                                     operation on closed                        
                                     file.                                      
             ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2821745,      
                                     recent call last):    "job_id":            
                                       File                "AJ_KcDaGhxnpGBk",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_Y95J2B8TYWAk"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 403, in                               
                                     _main_task                                 
                                         await                                  
                                     output_emitter.join()                      
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 762, in join                          
                                         await                                  
                                     self._main_atask                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 1001, in                              
                                     _main_task                                 
                                         audio_decoder.pus                      
                                     h(data)                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 151,                       
                                     in push                                    
                                         self._input_buf.w                      
                                     rite(chunk)                                
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 80,                        
                                     in write                                   
                                         self._buffer.seek                      
                                     (0, io.SEEK_END)                           
                                     ValueError: I/O                            
                                     operation on closed                        
                                     file.                                      
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2821745,      
                                     text="['Hello again!  "job_id":            
                                     Sounds like you are   "AJ_KcDaGhxnpGBk",   
                                     testing the mic. How  "room_id":           
                                     can I help you        "RM_Y95J2B8TYWAk"}   
                                     today?']"...                               
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2821745,       
                                     1204 ms              "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:01 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:37:02 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2821745,      
                                     transcript='Hey,      "job_id":            
                                     buddy. (mouse         "AJ_KcDaGhxnpGBk",   
                                     clicks)'              "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1796 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hey, buddy. (mouse   
                                                          clicks)", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.243891716003418,    
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 1994   "pid": 2821745,       
                                     ms                   "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.007745265960693359,
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2821745,      
                                     text="['Hey, buddy.   "job_id":            
                                     (mouse clicks)']"...  "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:03 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there, buddy! What’s                       
                                     on your mind today?                        
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there, buddy! What’s                       
                                     on your mind today?                        
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1485 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.0366425514221191,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 6 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 3686   "pid": 2821745,       
                                     ms                   "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:04 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! I hear you.                         
                                     What can I do for                          
                                     you? (body=None,                           
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! I hear you.                         
                                     What can I do for                          
                                     you? (body=None,                           
                                     retryable=True)                            
    22:37:06 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! I hear you.                         
                                     What can I do for                          
                                     you? (body=None,                           
                                     retryable=True)                            
    22:37:07 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:08 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:37:09 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 2821745,      
                                     recent call last):    "job_id":            
                                       File                "AJ_KcDaGhxnpGBk",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_Y95J2B8TYWAk"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! I hear you.                         
                                     What can I do for                          
                                     you? (body=None,                           
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 2821745,      
                                     text="['Hey there! I  "job_id":            
                                     hear you. What can I  "AJ_KcDaGhxnpGBk",   
                                     do for you?']"...     "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 2821745,       
                                     5316 ms              "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1586 ms       "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1374073028564453,   
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 538 ms  "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005239725112915039,
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:12 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 2821745,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_KcDaGhxnpGBk",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_Y95J2B8TYWAk"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! I’m here. What                      
                                     would you like to                          
                                     talk about?                                
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! I’m here. What                      
                                     would you like to                          
                                     talk about?                                
                                     (body=None,                                
                                     retryable=True)                            
    22:37:14 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 2821745,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_KcDaGhxnpGBk",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_Y95J2B8TYWAk"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! I’m here. What                      
                                     would you like to                          
                                     talk about?                                
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:15 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 2821745,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 428 ms       "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          0.03282570838928223,  
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
    22:37:16 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 823 ms        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 7701   "pid": 2821745,       
                                     ms                   "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 2821745,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    22:37:17 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 2821745,      
                                     transcript='Hello?    "job_id":            
                                     Hello?'               "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 2821745,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello? Hello?",      
                                                          "language": "eng",    
                                                          "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 2821745,       
                                     y                    "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 108 ms        "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 8435   "pid": 2821745,       
                                     ms                   "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 2821745,      
                                     text="['Hello?        "job_id":            
                                     Hello?']"...          "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_8070", 
                                                   "participant":               
                                                   "voice_assistant_user_1057", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   2821745, "job_id":           
                                                   "AJ_KcDaGhxnpGBk", "room_id":
                                                   "RM_Y95J2B8TYWAk"}           
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_8070",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    2821745, "job_id":          
                                                    "AJ_KcDaGhxnpGBk",          
                                                    "room_id":                  
                                                    "RM_Y95J2B8TYWAk"}          
    22:37:40 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     2821745, "job_id":         
                                                     "AJ_KcDaGhxnpGBk",         
                                                     "room_id":                 
                                                     "RM_Y95J2B8TYWAk"}         
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_8070_1774026389236
Logged user message: Hello.... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello, I am audible?... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged bot message: ['Hello! Yes, I can hear you loud and clear. How c... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello.... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello? Hello. Hello.... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged bot message: ['Hello again! Sounds like you are testing the mic... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hey, buddy. (mouse clicks)... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello?... (total messages: 9)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged bot message: ['Hey there! I hear you. What can I do for you?']... (total messages: 10)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello?... (total messages: 11)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello.... (total messages: 12)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Logged user message: Hello? Hello?... (total messages: 13)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_8070_1774026389236.json
  - Messages: 13
  - Duration: 70.86s
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 2821745,
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 2821745,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_KcDaGhxnpGBk",   
                                     s/voice_assistant_roo "room_id":           
                                     m_8070_1774026389236. "RM_Y95J2B8TYWAk"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 2821745,       
                                                          "job_id":             
                                                          "AJ_KcDaGhxnpGBk",    
                                                          "room_id":            
                                                          "RM_Y95J2B8TYWAk"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 2821745,      
                                                           "job_id":            
                                                           "AJ_KcDaGhxnpGBk",   
                                                           "room_id":           
                                                           "RM_Y95J2B8TYWAk"}   
    11:07:14 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "dispatch_id":        
                                                          "AD_m4rgtHQCSg3g",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_pRG55K23AG4n",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_sG3Ek7cq3hZ4",     
                                                         "dispatch_id":         
                                                         "AD_m4rgtHQCSg3g",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1398503}
             INFO   agent            Prewarming agent           {"pid": 1398503}
                                     process...                                 
    11:07:15 INFO   livekit.agents   process initialized {"pid": 1398503,       
                                                         "elapsed_time": 0.27}  
             INFO   agent            Prewarm complete -    {"pid": 1398503,     
                                     VAD loaded            "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  asyncio          Using selector:       {"pid": 1398503,     
                                     EpollSelector         "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            Job received:         {"pid": 1398503,     
                                     room=voice_assistant_ "job_id":            
                                     room_448,             "AJ_sG3Ek7cq3hZ4",   
                                     job_id=AJ_sG3Ek7cq3hZ "room_id":           
                                     4                     "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 237   "voice_assistant_room…
                                     ms (total since job: "pid": 1398503,       
                                     237 ms)              "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1398503,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_sG3Ek7cq3hZ4",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_pRG55K23AG4n"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=CARTESIA (from    "pid": 1398503,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            TTS: Cartesia         {"room":             
                                     model=sonic-3         "voice_assistant_roo…
                                     voice=f786b574-daa5-4 "pid": 1398503,      
                                     673-aa0c-cbe3e8534c02 "job_id":            
                                      language=en          "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1398503,      
                                     + LLM +               "job_id":            
                                     AgentSession): 375 ms "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 1398503,      
                                     listening             "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 1398503,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 1398503,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 1398503,      
                                     (since connect): 147  "job_id":            
                                     ms (total since job:  "AJ_sG3Ek7cq3hZ4",   
                                     384 ms)               "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 1398503,      
                                     384 ms                "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:17 ERROR  asyncio          Task exception was    {"room":             
                                     never retrieved       "voice_assistant_roo…
                                     future: <Task         "pid": 1398503,      
                                     finished              "job_id":            
                                     name='Task-18'        "AJ_sG3Ek7cq3hZ4",   
                                     coro=<ConnectionPool. "room_id":           
                                     prewarm.<locals>._pre "RM_pRG55K23AG4n"}   
                                     warm_impl() done,                          
                                     defined at                                 
                                     /var/www/html/livekit                      
                                     _frontend/BackEnd/age                      
                                     nt-starter-python/.ve                      
                                     nv/lib/python3.10/sit                      
                                     e-packages/livekit/ag                      
                                     ents/utils/connection                      
                                     _pool.py:165>                              
                                     exception=WSServerHan                      
                                     dshakeError(RequestIn                      
                                     fo(url=URL('wss://api                      
                                     .cartesia.ai/tts/webs                      
                                     ocket?api_key=sk_car_                      
                                     1HjSZTLBzape2ToTfTCC4                      
                                     a&cartesia_version=20                      
                                     25-04-16'),                                
                                     method='GET',                              
                                     headers=<CIMultiDictP                      
                                     roxy('Host':                               
                                     'api.cartesia.ai',                         
                                     'User-Agent':                              
                                     'LiveKit Agents                            
                                     Cartesia                                   
                                     Plugin/1.3.3',                             
                                     'Upgrade':                                 
                                     'websocket',                               
                                     'Connection':                              
                                     'Upgrade',                                 
                                     'Sec-WebSocket-Versio                      
                                     n': '13',                                  
                                     'Sec-WebSocket-Key':                       
                                     'pQIHs1i3uKrP2YQnudwl                      
                                     OA==', 'Accept':                           
                                     '*/*',                                     
                                     'Accept-Encoding':                         
                                     'gzip, deflate')>,                         
                                     real_url=URL('wss://a                      
                                     pi.cartesia.ai/tts/we                      
                                     bsocket?api_key=sk_ca                      
                                     r_1HjSZTLBzape2ToTfTC                      
                                     C4a&cartesia_version=                      
                                     2025-04-16')), (),                         
                                     status=402,                                
                                     message='Invalid                           
                                     response status',                          
                                     headers=<CIMultiDictP                      
                                     roxy('Content-Type':                       
                                     'text/plain;                               
                                     charset=utf-8',                            
                                     'Content-Length':                          
                                     '170', 'Connection':                       
                                     'close', 'Date':                           
                                     'Mon, 23 Mar 2026                          
                                     05:37:17 GMT',                             
                                     'Vary': 'Origin',                          
                                     'X-Content-Type-Optio                      
                                     ns': 'nosniff',                            
                                     'X-Request-Id':                            
                                     'ec337457-7e76-4851-8                      
                                     382-533fff3434d8',                         
                                     'X-Cache': 'Error                          
                                     from cloudfront',                          
                                     'Via': '1.1                                
                                     96a703f12eef4505875ae                      
                                     34d4176594c.cloudfron                      
                                     t.net (CloudFront)',                       
                                     'X-Amz-Cf-Pop':                            
                                     'MAA51-P3',                                
                                     'X-Amz-Cf-Id':                             
                                     'ub47cz9LDWbJJOKPYZwQ                      
                                     8HM_80UO-OQlb4Xuyhb-k                      
                                     OkkfDO1XxcP0w==')>)>                       
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/connectio                      
                                     n_pool.py", line 168,                      
                                     in _prewarm_impl                           
                                         conn = await                           
                                     self._connect(timeout                      
                                     =self._connect_timeou                      
                                     t)                                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/connectio                      
                                     n_pool.py", line 62,                       
                                     in _connect                                
                                         connection =                           
                                     await                                      
                                     self._connect_cb(time                      
                                     out)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 202, in                           
                                     _connect_ws                                
                                         ws = await                             
                                     asyncio.wait_for(                          
                                       File                                     
                                     "/usr/lib/python3.10/                      
                                     asyncio/tasks.py",                         
                                     line 445, in wait_for                      
                                         return                                 
                                     fut.result()                               
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/aiohttp/c                      
                                     lient.py", line 1494,                      
                                     in send                                    
                                         return                                 
                                     self._coro.send(arg)                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/aiohttp/c                      
                                     lient.py", line 1093,                      
                                     in _ws_connect                             
                                         raise                                  
                                     WSServerHandshakeErro                      
                                     r(                                         
                                     aiohttp.client_except                      
                                     ions.WSServerHandshak                      
                                     eError: 402,                               
                                     message='Invalid                           
                                     response status',                          
                                     url='wss://api.cartes                      
                                     ia.ai/tts/websocket?a                      
                                     pi_key=sk_car_1HjSZTL                      
                                     Bzape2ToTfTCC4a&carte                      
                                     sia_version=2025-04-1                      
                                     6'                                         
    11:07:18 DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    11:07:23 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:24 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    11:07:25 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1398503,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1400 ms       "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1573030948638916,   
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006438970565795898…
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1398503,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:26 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:28 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:30 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1398503,      
                                     recent call last):    "job_id":            
                                       File                "AJ_sG3Ek7cq3hZ4",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_pRG55K23AG4n"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1398503,      
                                     text="['Hey there     "job_id":            
                                     What can I do for you "AJ_sG3Ek7cq3hZ4",   
                                     today']"...           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1398503,       
                                     5584 ms              "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:36 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:37 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    11:07:38 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1398503,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1381 ms       "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.0802576541900635,   
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 7346   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006114006042480469,
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1398503,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:39 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:40 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1398503,      
                                     transcript="I'm       "job_id":            
                                     trying."              "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1334 ms       "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "I'm trying.",        
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.0816707611083984,   
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 8 ms          "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 9903   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1398503,       
                                     text='["I\'m         "job_id":             
                                     trying."]'...        "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:41 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:42 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1398503,      
                                     transcript='Definitel "job_id":            
                                     y.'                   "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 469 ms       "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Definitely.",        
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          0.020188570022583008, 
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    11:07:44 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 2485   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 13916   "pid": 1398503,      
                                     ms                    "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1398503,      
                                     text="['Definitely.'] "job_id":            
                                     "...                  "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:45 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1398503,      
                                     transcript="One       "job_id":            
                                     ninety fiv-- He's     "AJ_sG3Ek7cq3hZ4",   
                                     seventy-four months   "room_id":           
                                     to them."             "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 364 ms       "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "One ninety fiv-- He's
                                                          seventy-four months to
                                                          them.", "language":   
                                                          "eng",                
                                                          "transcript_delay":   
                                                          0.003211498260498047, 
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:07:46 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:47 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 1692   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 16319   "pid": 1398503,      
                                     ms                    "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1398503,      
                                     text='["One ninety    "job_id":            
                                     fiv-- He\'s           "AJ_sG3Ek7cq3hZ4",   
                                     seventy-four months   "room_id":           
                                     to them."]'...        "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1398503,      
                                     transcript='194 per   "job_id":            
                                     se, he told you       "AJ_sG3Ek7cq3hZ4",   
                                     that.'                "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] User turn  {"room":              
                                     (speaking + STT      "voice_assistant_room…
                                     final): 427 ms       "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "194 per se, he told  
                                                          you that.",           
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          0.022984743118286133, 
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:49 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     first audio): 1433   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 18370   "pid": 1398503,      
                                     ms                    "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1398503,      
                                     text="['194 per se,   "job_id":            
                                     he told you           "AJ_sG3Ek7cq3hZ4",   
                                     that.']"...           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:50 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1398503,      
                                     transcript='लोकल खोल कर "job_id":            
                                     देखो वन नाइन्टी फोर।'       "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "लोकल खोल कर देखो वन नाइन्टी 
                                                          फोर।", "language":     
                                                          "eng", "pid": 1398503,
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 109 ms        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 19211   "pid": 1398503,      
                                     ms                    "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1398503,      
                                     text="['लोकल खोल कर देखो  "job_id":            
                                     वन नाइन्टी फोर।']"...     "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:53 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:07:55 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1398503,      
                                     recent call last):    "job_id":            
                                       File                "AJ_sG3Ek7cq3hZ4",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_pRG55K23AG4n"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1398503,      
                                     text="['आप लोकल खोलकर   "job_id":            
                                     वन नाइनटी फोर यानी 194 देखो  "AJ_sG3Ek7cq3hZ4",   
                                     मतलब बता रहे हैं कि संख्या    "room_id":           
                                     194 सही ह"...          "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1398503,       
                                     5378 ms              "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:08:02 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:08:03 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    11:08:04 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1398503,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1689 ms       "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1398503,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.0906398296356201,   
                                                          "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1398503,       
                                     y                    "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 8871   "pid": 1398503,       
                                     ms                   "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005373239517211914,
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1398503,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:08:05 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:08:07 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.car…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1398503,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_sG3Ek7cq3hZ4",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_pRG55K23AG4n"}   
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
    11:08:09 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1398503,      
                                     recent call last):    "job_id":            
                                       File                "AJ_sG3Ek7cq3hZ4",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_pRG55K23AG4n"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 396, in                               
                                     _main_task                                 
                                         await                                  
                                     self._run(output_emit                      
                                     ter)                                       
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/p                      
                                     lugins/cartesia/tts.p                      
                                     y", line 499, in _run                      
                                         raise                                  
                                     APIStatusError(                            
                                     livekit.agents._excep                      
                                     tions.APIStatusError:                      
                                      Invalid response                          
                                     status                                     
                                     (status_code=402,                          
                                     request_id=None,                           
                                     body=None,                                 
                                     retryable=False)                           
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1398503,      
                                     text="['Hello again!  "job_id":            
                                     How can I help you    "AJ_sG3Ek7cq3hZ4",   
                                     now?']"...            "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1398503,       
                                     5552 ms              "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:08:24 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=away            "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
    11:08:44 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1398503,      
                                                           "job_id":            
                                                           "AJ_sG3Ek7cq3hZ4",   
                                                           "room_id":           
                                                           "RM_pRG55K23AG4n"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_448", 
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    1398503, "job_id":          
                                                    "AJ_sG3Ek7cq3hZ4",          
                                                    "room_id":                  
                                                    "RM_pRG55K23AG4n"}          
    11:09:08 DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1398503,
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_448_1774244235445
Logged user message: Hello?... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged bot message: ['Hey there What can I do for you today']... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: Hello?... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: I'm trying.... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: Definitely.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: One ninety fiv-- He's seventy-four months to them.... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: 194 per se, he told you that.... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: लोकल खोल कर देखो वन नाइन्टी फोर।... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged bot message: ['आप लोकल खोलकर वन नाइनटी फोर यानी 194 देखो मतलब ब... (total messages: 9)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged user message: Hello?... (total messages: 10)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Logged bot message: ['Hello again! How can I help you now?']... (total messages: 11)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_448_1774244235445.json
  - Messages: 11
  - Duration: 112.60s
             INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1398503, "job_id":         
                                                     "AJ_sG3Ek7cq3hZ4",         
                                                     "room_id":                 
                                                     "RM_pRG55K23AG4n"}         
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 1398503,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_sG3Ek7cq3hZ4",   
                                     s/voice_assistant_roo "room_id":           
                                     m_448_1774244235445.j "RM_pRG55K23AG4n"}   
                                     son                                        
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1398503,       
                                                          "job_id":             
                                                          "AJ_sG3Ek7cq3hZ4",    
                                                          "room_id":            
                                                          "RM_pRG55K23AG4n"}    
    14:35:47 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "dispatch_id":        
                                                          "AD_8PmvNLba7sba",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_p8LdYvQ2mQf9",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_rcNJbCHi5WtX",     
                                                         "dispatch_id":         
                                                         "AD_8PmvNLba7sba",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1683489}
             INFO   agent            Prewarming agent           {"pid": 1683489}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 1683489,       
                                                         "elapsed_time": 0.25}  
             INFO   agent            Prewarm complete - VAD     {"pid": 1683489}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 1683489,     
                                     EpollSelector         "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            Job received:        {"pid": 1683489,      
                                     room=voice_assistant "job_id":             
                                     _room_4119,          "AJ_rcNJbCHi5WtX",    
                                     job_id=AJ_rcNJbCHi5W "room_id":            
                                     tX                   "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 523   "voice_assistant_room…
                                     ms (total since job: "pid": 1683489,       
                                     523 ms)              "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1683489,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_rcNJbCHi5WtX",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_p8LdYvQ2mQf9"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 1683489,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 1683489,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
    14:35:48 INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1683489,      
                                     + LLM +               "job_id":            
                                     AgentSession): 633 ms "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 1683489,      
                                     listening             "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 1683489,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 1683489,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 1683489,      
                                     (since connect): 118  "job_id":            
                                     ms (total since job:  "AJ_rcNJbCHi5WtX",   
                                     641 ms)               "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 1683489,      
                                     641 ms                "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
    14:35:49 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:35:50 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1683489,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1399 ms       "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1683489,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2002127170562744,   
                                                          "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1683489,       
                                     y                    "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.008247613906860352,
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1683489,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:35:52 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1683489,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_rcNJbCHi5WtX",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_p8LdYvQ2mQf9"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
    14:35:54 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
    14:35:56 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1683489,      
                                     recent call last):    "job_id":            
                                       File                "AJ_rcNJbCHi5WtX",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_p8LdYvQ2mQf9"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there! What can I do                       
                                     for you today?                             
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1683489,      
                                     text="['Hey there!    "job_id":            
                                     What can I do for you "AJ_rcNJbCHi5WtX",   
                                     today?']"...          "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1683489,       
                                     5868 ms              "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:36:11 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=away            "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:36:24 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
    14:36:25 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1683489,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1292 ms       "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1683489,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.142296552658081,    
                                                          "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1683489,       
                                     y                    "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 29071   "pid": 1683489,      
                                     ms                    "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.00525665283203125, 
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1683489,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:36:26 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1683489,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_rcNJbCHi5WtX",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_p8LdYvQ2mQf9"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! Ready to                      
                                     chat or need help                          
                                     with something?                            
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! Ready to                      
                                     chat or need help                          
                                     with something?                            
                                     (body=None,                                
                                     retryable=True)                            
    14:36:28 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1683489,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_rcNJbCHi5WtX",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_p8LdYvQ2mQf9"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! Ready to                      
                                     chat or need help                          
                                     with something?                            
                                     (body=None,                                
                                     retryable=True)                            
    14:36:30 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1683489,      
                                     recent call last):    "job_id":            
                                       File                "AJ_rcNJbCHi5WtX",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_p8LdYvQ2mQf9"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello again! Ready to                      
                                     chat or need help                          
                                     with something?                            
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1683489,      
                                     text="['Hello again!  "job_id":            
                                     Ready to chat or need "AJ_rcNJbCHi5WtX",   
                                     help with             "room_id":           
                                     something?']"...      "RM_p8LdYvQ2mQf9"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1683489,       
                                     5204 ms              "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:36:45 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=away            "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    14:37:01 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_4119", 
                                                   "participant":               
                                                   "voice_assistant_user_4951", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   1683489, "job_id":           
                                                   "AJ_rcNJbCHi5WtX", "room_id":
                                                   "RM_p8LdYvQ2mQf9"}           
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_4119",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    1683489, "job_id":          
                                                    "AJ_rcNJbCHi5WtX",          
                                                    "room_id":                  
                                                    "RM_p8LdYvQ2mQf9"}          
    14:37:25 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1683489, "job_id":         
                                                     "AJ_rcNJbCHi5WtX",         
                                                     "room_id":                 
                                                     "RM_p8LdYvQ2mQf9"}         
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_4119_1774256748113
Logged user message: Hello?... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4119_1774256748113.json
Logged bot message: ['Hey there! What can I do for you today?']... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4119_1774256748113.json
Logged user message: Hello?... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4119_1774256748113.json
Logged bot message: ['Hello again! Ready to chat or need help with som... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4119_1774256748113.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4119_1774256748113.json
  - Messages: 4
  - Duration: 96.99s
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1683489,
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 1683489,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_rcNJbCHi5WtX",   
                                     s/voice_assistant_roo "room_id":           
                                     m_4119_1774256748113. "RM_p8LdYvQ2mQf9"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1683489,       
                                                          "job_id":             
                                                          "AJ_rcNJbCHi5WtX",    
                                                          "room_id":            
                                                          "RM_p8LdYvQ2mQf9"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 1683489,      
                                                           "job_id":            
                                                           "AJ_rcNJbCHi5WtX",   
                                                           "room_id":           
                                                           "RM_p8LdYvQ2mQf9"}   
    15:27:26 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "dispatch_id":        
                                                          "AD_wXUkdUeB9mB7",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_eSmcYEneewcW",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_vMvVAmFsE5qj",     
                                                         "dispatch_id":         
                                                         "AD_wXUkdUeB9mB7",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1774245}
             INFO   agent            Prewarming agent           {"pid": 1774245}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 1774245,       
                                                         "elapsed_time": 0.27}  
             INFO   agent            Prewarm complete - VAD     {"pid": 1774245}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 1774245,     
                                     EpollSelector         "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            Job received:        {"pid": 1774245,      
                                     room=voice_assistant "job_id":             
                                     _room_5552,          "AJ_vMvVAmFsE5qj",    
                                     job_id=AJ_vMvVAmFsE5 "room_id":            
                                     qj                   "RM_eSmcYEneewcW"}    
    15:27:27 INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 518   "voice_assistant_room…
                                     ms (total since job: "pid": 1774245,       
                                     518 ms)              "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1774245,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_vMvVAmFsE5qj",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_eSmcYEneewcW"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 1774245,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 1774245,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1774245,      
                                     + LLM +               "job_id":            
                                     AgentSession): 630 ms "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 1774245,      
                                     listening             "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using audio io:      {"room":              
                                     `RoomIO` ->          "voice_assistant_room…
                                     `AgentSession` ->    "pid": 1774245,       
                                     `RoomIO`             "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `RoomIO`              "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 1774245,      
                                     (since connect): 122  "job_id":            
                                     ms (total since job:  "AJ_vMvVAmFsE5qj",   
                                     640 ms)               "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 1774245,      
                                     640 ms                "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:28 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1774245,       
                                     transcript='De'      "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1021 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "De", "language":     
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.0114247798919678,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006303787231445312…
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1774245,       
                                     text="['De']"...     "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:30 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there It looks like                        
                                     your message got cut                       
                                     off Can you please                         
                                     tell me more about                         
                                     what you need help                         
                                     with (body=None,                           
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there It looks like                        
                                     your message got cut                       
                                     off Can you please                         
                                     tell me more about                         
                                     what you need help                         
                                     with (body=None,                           
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:31 INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
    15:27:32 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1774245,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1389 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.090827465057373,    
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 7 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1774245,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:33 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:27:35 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:27:36 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1774245,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1461 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2159011363983154,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 5 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1774245,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:38 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             INFO   agent            [EVENT]              {"room":              
                                     agent_state_changed  "voice_assistant_room…
                                     thinking -> speaking "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=assistant     "pid": 1774245,      
                                     text="['Hello there   "job_id":            
                                     How can I help you    "AJ_vMvVAmFsE5qj",   
                                     today ']"...          "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] LLM        {"room":              
                                     (user_commit ->      "voice_assistant_room…
                                     agent_response):     "pid": 1774245,       
                                     1463 ms              "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     speaking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:43 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:44 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
    15:27:45 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1774245,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1768 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.5685360431671143,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] TTS        {"room":              
                                     (agent_response ->   "voice_assistant_room…
                                     first audio): 7493   "pid": 1774245,       
                                     ms                   "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005391359329223633,
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1774245,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:46 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What would you                       
                                     like to talk about                         
                                     today (body=None,                          
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What would you                       
                                     like to talk about                         
                                     today (body=None,                          
                                     retryable=True)                            
    15:27:48 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What would you                       
                                     like to talk about                         
                                     today (body=None,                          
                                     retryable=True)                            
    15:27:50 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1774245,      
                                     recent call last):    "job_id":            
                                       File                "AJ_vMvVAmFsE5qj",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_eSmcYEneewcW"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     again What would you                       
                                     like to talk about                         
                                     today (body=None,                          
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1774245,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:52 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
    15:27:53 INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1774245,      
                                     transcript='Yeah.     "job_id":            
                                     What kind of help you "AJ_vMvVAmFsE5qj",   
                                     can help me?'         "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 3015 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Yeah. What kind of   
                                                          help you can help     
                                                          me?", "language":     
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.2178606986999512,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 14943   "pid": 1774245,      
                                     ms                    "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005728483200073242,
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1774245,      
                                     text="['Yeah. What    "job_id":            
                                     kind of help you can  "AJ_vMvVAmFsE5qj",   
                                     help me?']"...        "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:27:54 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: I                         
                                     can help with                              
                                     answering questions                        
                                     providing information                      
                                     giving advice telling                      
                                     jokes helping with                         
                                     writing and much more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: I                         
                                     can help with                              
                                     answering questions                        
                                     providing information                      
                                     giving advice telling                      
                                     jokes helping with                         
                                     writing and much more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:27:56 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: I                         
                                     can help with                              
                                     answering questions                        
                                     providing information                      
                                     giving advice telling                      
                                     jokes helping with                         
                                     writing and much more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:27:58 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1774245,      
                                     recent call last):    "job_id":            
                                       File                "AJ_vMvVAmFsE5qj",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_eSmcYEneewcW"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: I                         
                                     can help with                              
                                     answering questions                        
                                     providing information                      
                                     giving advice telling                      
                                     jokes helping with                         
                                     writing and much more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1774245,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:03 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:06 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1774245,      
                                     transcript='Can you   "job_id":            
                                     tell me how you can   "AJ_vMvVAmFsE5qj",   
                                     help me?'             "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2749 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Can you tell me how  
                                                          you can help me?",    
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.2491345405578613,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 28474   "pid": 1774245,      
                                     ms                    "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.004560947418212891,
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1774245,      
                                     text="['Can you tell  "job_id":            
                                     me how you can help   "AJ_vMvVAmFsE5qj",   
                                     me?']"...             "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:08 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Sure                      
                                     I can help you with                        
                                     answering questions                        
                                     giving information                         
                                     solving problems                           
                                     learning new things                        
                                     making plans and even                      
                                     telling jokes Just                         
                                     let me know what you                       
                                     need and I got you                         
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Sure                      
                                     I can help you with                        
                                     answering questions                        
                                     giving information                         
                                     solving problems                           
                                     learning new things                        
                                     making plans and even                      
                                     telling jokes Just                         
                                     let me know what you                       
                                     need and I got you                         
                                     (body=None,                                
                                     retryable=True)                            
    15:28:10 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Sure                      
                                     I can help you with                        
                                     answering questions                        
                                     giving information                         
                                     solving problems                           
                                     learning new things                        
                                     making plans and even                      
                                     telling jokes Just                         
                                     let me know what you                       
                                     need and I got you                         
                                     (body=None,                                
                                     retryable=True)                            
    15:28:12 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1774245,      
                                     recent call last):    "job_id":            
                                       File                "AJ_vMvVAmFsE5qj",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_eSmcYEneewcW"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Sure                      
                                     I can help you with                        
                                     answering questions                        
                                     giving information                         
                                     solving problems                           
                                     learning new things                        
                                     making plans and even                      
                                     telling jokes Just                         
                                     let me know what you                       
                                     need and I got you                         
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1774245,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:18 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:20 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]               {"room":             
                                     user_input_transcribe "voice_assistant_roo…
                                     d is_final=True       "pid": 1774245,      
                                     transcript="Hello,    "job_id":            
                                     I'm Audible."         "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 2213 ms       "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1774245,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello, I'm Audible.",
                                                          "language": "eng",    
                                                          "transcript_delay":   
                                                          1.1677072048187256,   
                                                          "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1774245,       
                                     y                    "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [LATENCY] TTS         {"room":             
                                     (agent_response ->    "voice_assistant_roo…
                                     first audio): 42438   "pid": 1774245,      
                                     ms                    "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005875110626220703,
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     conversation_item_add "voice_assistant_roo…
                                     ed role=user          "pid": 1774245,      
                                     text='["Hello, I\'m   "job_id":            
                                     Audible."]'...        "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:28:22 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1774245,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_vMvVAmFsE5qj",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_eSmcYEneewcW"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Audible nice to                      
                                     meet you I can help                        
                                     you with a wide range                      
                                     of things like                             
                                     answering questions                        
                                     providing information                      
                                     telling jokes helping                      
                                     with writing and more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Audible nice to                      
                                     meet you I can help                        
                                     you with a wide range                      
                                     of things like                             
                                     answering questions                        
                                     providing information                      
                                     telling jokes helping                      
                                     with writing and more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:28:24 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1774245,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_vMvVAmFsE5qj",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_eSmcYEneewcW"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Audible nice to                      
                                     meet you I can help                        
                                     you with a wide range                      
                                     of things like                             
                                     answering questions                        
                                     providing information                      
                                     telling jokes helping                      
                                     with writing and more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:28:26 ERROR  livekit.agents   AgentSession is       {"room":             
                                     closing due to        "voice_assistant_roo…
                                     unrecoverable error   "pid": 1774245,      
                                     Traceback (most       "job_id":            
                                     recent call last):    "AJ_vMvVAmFsE5qj",   
                                       File                "room_id":           
                                     "/var/www/html/liveki "RM_eSmcYEneewcW"}   
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello Audible nice to                      
                                     meet you I can help                        
                                     you with a wide range                      
                                     of things like                             
                                     answering questions                        
                                     providing information                      
                                     telling jokes helping                      
                                     with writing and more                      
                                     What do you need help                      
                                     with today                                 
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_MICROPHONE", 
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_5552", 
                                                   "participant":               
                                                   "voice_assistant_user_1565", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   1774245, "job_id":           
                                                   "AJ_vMvVAmFsE5qj", "room_id":
                                                   "RM_eSmcYEneewcW"}           
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_5552",
                                                    "reason": "error", "error": 
                                                    "type='tts_error'           
                                                    timestamp=1774259906.3393881
                                                    label='livekit.plugins.elev…
                                                    error=APIError('no audio    
                                                    frames were pushed for text:
                                                    Hello Audible nice to meet  
                                                    you I can help you with a   
                                                    wide range of things like   
                                                    answering questions         
                                                    providing information       
                                                    telling jokes helping with  
                                                    writing and more What do you
                                                    need help with today')      
                                                    recoverable=False", "pid":  
                                                    1774245, "job_id":          
                                                    "AJ_vMvVAmFsE5qj",          
                                                    "room_id":                  
                                                    "RM_eSmcYEneewcW"}          
    15:37:31 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:37:53 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1774245, "job_id":         
                                                     "AJ_vMvVAmFsE5qj",         
                                                     "room_id":                 
                                                     "RM_eSmcYEneewcW"}         
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_5552_1774259847216
Logged user message: De... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Hello.... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Hello.... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged bot message: ['Hello there How can I help you today ']... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Hello.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Yeah. What kind of help you can help me?... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Can you tell me how you can help me?... (total messages: 7)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Logged user message: Hello, I'm Audible.... (total messages: 8)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_5552_1774259847216.json
  - Messages: 8
  - Duration: 626.54s
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1774245,
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 1774245,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_vMvVAmFsE5qj",   
                                     s/voice_assistant_roo "room_id":           
                                     m_5552_1774259847216. "RM_eSmcYEneewcW"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1774245,       
                                                          "job_id":             
                                                          "AJ_vMvVAmFsE5qj",    
                                                          "room_id":            
                                                          "RM_eSmcYEneewcW"}    
             WARNI… livekit.plugins… websocket closed      {"room":             
                                     unexpectedly          "voice_assistant_roo…
                                                           "pid": 1774245,      
                                                           "job_id":            
                                                           "AJ_vMvVAmFsE5qj",   
                                                           "room_id":           
                                                           "RM_eSmcYEneewcW"}   
    15:59:10 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_CdnkedEEwA4n",    
                                                          "dispatch_id":        
                                                          "AD_yp3jg56Hb8G6",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_cpJo7d2y5VJm",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_CdnkedEEwA4n",     
                                                         "dispatch_id":         
                                                         "AD_yp3jg56Hb8G6",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1826372}
             INFO   agent            Prewarming agent           {"pid": 1826372}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 1826372,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Prewarm complete -    {"pid": 1826372,     
                                     VAD loaded            "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  asyncio          Using selector:       {"pid": 1826372,     
                                     EpollSelector         "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            Job received:        {"pid": 1826372,      
                                     room=voice_assistant "job_id":             
                                     _room_4049,          "AJ_CdnkedEEwA4n",    
                                     job_id=AJ_CdnkedEEwA "room_id":            
                                     4n                   "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 535   "voice_assistant_room…
                                     ms (total since job: "pid": 1826372,       
                                     535 ms)              "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1826372,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_CdnkedEEwA4n",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_cpJo7d2y5VJm"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 1826372,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 1826372,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
    15:59:11 INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1826372,      
                                     + LLM +               "job_id":            
                                     AgentSession): 655 ms "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   input stream attached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant": null, 
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   start reading stream {"room":              
                                                          "voice_assistant_room…
                                                          "participant":        
                                                          "voice_assistant_user…
                                                          "source":             
                                                          "SOURCE_MICROPHONE",  
                                                          "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     initializing ->       "pid": 1826372,      
                                     listening             "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   using audio io:       {"room":             
                                     `RoomIO` ->           "voice_assistant_roo…
                                     `AgentSession` ->     "pid": 1826372,      
                                     `TranscriptSynchroniz "job_id":            
                                     er` -> `RoomIO`       "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   using transcript io:  {"room":             
                                     `AgentSession` ->     "voice_assistant_roo…
                                     `TranscriptSynchroniz "pid": 1826372,      
                                     er` -> `RoomIO`       "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline build +      "voice_assistant_roo…
                                     session.start()       "pid": 1826372,      
                                     (since connect): 283  "job_id":            
                                     ms (total since job:  "AJ_CdnkedEEwA4n",   
                                     819 ms)               "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [LATENCY] Startup     {"room":             
                                     TOTAL (job received   "voice_assistant_roo…
                                     -> agent listening):  "pid": 1826372,      
                                     819 ms                "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            Agent is in the room  {"room":             
                                     and listening. User   "voice_assistant_roo…
                                     can say hello.        "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:14 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:15 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1826372,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1353 ms       "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1826372,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.149751901626587,    
                                                          "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1826372,       
                                     y                    "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006911039352416992,
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:16 WARNI… livekit.plugins… inference is slower   {"room":             
                                     than realtime         "voice_assistant_roo…
                                                           "delay":             
                                                           0.27371059510111806, 
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1826372,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:17 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1826372,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_CdnkedEEwA4n",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_cpJo7d2y5VJm"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
    15:59:19 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
    15:59:21 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1826372,      
                                     recent call last):    "job_id":            
                                       File                "AJ_CdnkedEEwA4n",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_cpJo7d2y5VJm"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there What can                       
                                     I do for you today                         
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1826372,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:25 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:26 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
    15:59:27 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1826372,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1385 ms       "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1826372,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1347270011901855,   
                                                          "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1826372,       
                                     y                    "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 0 ms          "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.001637697219848632…
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1826372,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:28 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1826372,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_CdnkedEEwA4n",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_cpJo7d2y5VJm"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:59:31 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
    15:59:33 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1826372,      
                                     recent call last):    "job_id":            
                                       File                "AJ_CdnkedEEwA4n",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_cpJo7d2y5VJm"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hi                        
                                     there! How can I help                      
                                     you today?                                 
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1826372,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:43 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:44 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1826372,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1331 ms       "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1826372,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.07712721824646,     
                                                          "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1826372,       
                                     y                    "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.004954814910888672,
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1826372,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    15:59:46 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1826372,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_CdnkedEEwA4n",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_cpJo7d2y5VJm"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
    15:59:48 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1826372,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_CdnkedEEwA4n",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_cpJo7d2y5VJm"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
    15:59:50 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1826372,      
                                     recent call last):    "job_id":            
                                       File                "AJ_CdnkedEEwA4n",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_cpJo7d2y5VJm"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text: Hey                       
                                     there How can I help                       
                                     you today (body=None,                      
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1826372,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    16:00:05 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=away            "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
    16:01:20 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_4049", 
                                                   "participant":               
                                                   "voice_assistant_user_6234", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   1826372, "job_id":           
                                                   "AJ_CdnkedEEwA4n", "room_id":
                                                   "RM_cpJo7d2y5VJm"}           
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_UNKNOWN",    
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1826372,      
                                                           "job_id":            
                                                           "AJ_CdnkedEEwA4n",   
                                                           "room_id":           
                                                           "RM_cpJo7d2y5VJm"}   
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_4049",
                                                    "reason":                   
                                                    "participant_disconnected", 
                                                    "error": null, "pid":       
                                                    1826372, "job_id":          
                                                    "AJ_CdnkedEEwA4n",          
                                                    "room_id":                  
                                                    "RM_cpJo7d2y5VJm"}          
    16:01:43 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1826372, "job_id":         
                                                     "AJ_CdnkedEEwA4n",         
                                                     "room_id":                 
                                                     "RM_cpJo7d2y5VJm"}         
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_4049_1774261751281
Logged user message: Hello?... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4049_1774261751281.json
Logged user message: Hello.... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4049_1774261751281.json
Logged user message: Hello?... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4049_1774261751281.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_4049_1774261751281.json
  - Messages: 3
  - Duration: 151.77s
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1826372,
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 1826372,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_CdnkedEEwA4n",   
                                     s/voice_assistant_roo "room_id":           
                                     m_4049_1774261751281. "RM_cpJo7d2y5VJm"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1826372,       
                                                          "job_id":             
                                                          "AJ_CdnkedEEwA4n",    
                                                          "room_id":            
                                                          "RM_cpJo7d2y5VJm"}    
    16:47:53 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_ASMqRMQxSHE6",    
                                                          "dispatch_id":        
                                                          "AD_LwMRZTUwmdR2",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_2AZQcVbGYiAo",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_2AZQcVbGYiAo",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_ASMqRMQxSHE6",     
                                                         "dispatch_id":         
                                                         "AD_LwMRZTUwmdR2",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1890773}
    16:47:54 INFO   agent            Prewarming agent           {"pid": 1890773}
                                     process...                                 
             INFO   agent            Prewarm complete - VAD     {"pid": 1890773}
                                     loaded                                     
             DEBUG  asyncio          Using selector:            {"pid": 1890773}
                                     EpollSelector                              
             INFO   livekit.agents   process initialized {"pid": 1890773,       
                                                         "elapsed_time": 0.27}  
             INFO   agent            Job received:        {"pid": 1890773,      
                                     room=voice_assistant "job_id":             
                                     _room_1055,          "AJ_ASMqRMQxSHE6",    
                                     job_id=AJ_ASMqRMQxSH "room_id":            
                                     E6                   "RM_2AZQcVbGYiAo"}    
             INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 364   "voice_assistant_room…
                                     ms (total since job: "pid": 1890773,       
                                     364 ms)              "job_id":             
                                                          "AJ_ASMqRMQxSHE6",    
                                                          "room_id":            
                                                          "RM_2AZQcVbGYiAo"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1890773,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_ASMqRMQxSHE6",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_2AZQcVbGYiAo"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=CARTESIA (from    "pid": 1890773,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_ASMqRMQxSHE6",   
                                                           "room_id":           
                                                           "RM_2AZQcVbGYiAo"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1890773,      
                                                           "job_id":            
                                                           "AJ_ASMqRMQxSHE6",   
                                                           "room_id":           
                                                           "RM_2AZQcVbGYiAo"}   
             INFO   agent            TTS: Cartesia         {"room":             
                                     model=sonic-3         "voice_assistant_roo…
                                     voice=faf0731e-dfb9-4 "pid": 1890773,      
                                     cfc-8119-259a79b27e12 "job_id":            
                                      language=en          "AJ_ASMqRMQxSHE6",   
                                                           "room_id":           
                                                           "RM_2AZQcVbGYiAo"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1890773,      
                                     + LLM +               "job_id":            
                                     AgentSession): 517 ms "AJ_ASMqRMQxSHE6",   
                                                           "room_id":           
                                                           "RM_2AZQcVbGYiAo"}   
             ERROR  agent            Failed to start voice {"room":             
                                     session (check API    "voice_assistant_roo…
                                     keys:                 "pid": 1890773,      
                                     ELEVENLABS/CARTESIA   "job_id":            
                                     per provider,         "AJ_ASMqRMQxSHE6",   
                                     OPENAI_API_KEY /      "room_id":           
                                     LiveKit Inference):   "RM_2AZQcVbGYiAo"}   
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
             ERROR  livekit.agents   unhandled exception   {"room":             
                                     while running the job "voice_assistant_roo…
                                     task                  "pid": 1890773,      
                                     Traceback (most       "job_id":            
                                     recent call last):    "AJ_ASMqRMQxSHE6",   
                                       File                "room_id":           
                                     "/var/www/html/liveki "RM_2AZQcVbGYiAo"}   
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/ipc/job_proc_la                      
                                     zy_main.py", line                          
                                     275, in                                    
                                     _traceable_entrypoint                      
                                         await                                  
                                     self._job_entrypoint_                      
                                     fnc(job_ctx)                               
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
    16:54:03 DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1890773,
                                                          "job_id":             
                                                          "AJ_ASMqRMQxSHE6",    
                                                          "room_id":            
                                                          "RM_2AZQcVbGYiAo"}    
             INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1890773, "job_id":         
                                                     "AJ_ASMqRMQxSHE6",         
                                                     "room_id":                 
                                                     "RM_2AZQcVbGYiAo"}         
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1890773,       
                                                          "job_id":             
                                                          "AJ_ASMqRMQxSHE6",    
                                                          "room_id":            
                                                          "RM_2AZQcVbGYiAo"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1890773,      
                                                           "job_id":            
                                                           "AJ_ASMqRMQxSHE6",   
                                                           "room_id":           
                                                           "RM_2AZQcVbGYiAo"}   
    14:56:44 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_ijEKoRQyQPN4",    
                                                          "dispatch_id":        
                                                          "AD_5kXq7FWSuDy9",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_pQDzpRgEo8pR",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_pQDzpRgEo8pR",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_ijEKoRQyQPN4",     
                                                         "dispatch_id":         
                                                         "AD_5kXq7FWSuDy9",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1145433}
             INFO   agent            Prewarming agent           {"pid": 1145433}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 1145433,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Prewarm complete - VAD     {"pid": 1145433}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 1145433,     
                                     EpollSelector         "job_id":            
                                                           "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
             INFO   agent            Job received:        {"pid": 1145433,      
                                     room=voice_assistant "job_id":             
                                     _room_8751,          "AJ_ijEKoRQyQPN4",    
                                     job_id=AJ_ijEKoRQyQP "room_id":            
                                     N4                   "RM_pQDzpRgEo8pR"}    
    14:56:45 INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 700   "voice_assistant_room…
                                     ms (total since job: "pid": 1145433,       
                                     700 ms)              "job_id":             
                                                          "AJ_ijEKoRQyQPN4",    
                                                          "room_id":            
                                                          "RM_pQDzpRgEo8pR"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1145433,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_ijEKoRQyQPN4",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_pQDzpRgEo8pR"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=CARTESIA (from    "pid": 1145433,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1145433,      
                                                           "job_id":            
                                                           "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
             INFO   agent            TTS: Cartesia         {"room":             
                                     model=sonic-3         "voice_assistant_roo…
                                     voice=faf0731e-dfb9-4 "pid": 1145433,      
                                     cfc-8119-259a79b27e12 "job_id":            
                                      language=en          "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1145433,      
                                     + LLM +               "job_id":            
                                     AgentSession): 817 ms "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
             ERROR  agent            Failed to start voice {"room":             
                                     session (check API    "voice_assistant_roo…
                                     keys:                 "pid": 1145433,      
                                     ELEVENLABS/CARTESIA   "job_id":            
                                     per provider,         "AJ_ijEKoRQyQPN4",   
                                     OPENAI_API_KEY /      "room_id":           
                                     LiveKit Inference):   "RM_pQDzpRgEo8pR"}   
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
             ERROR  livekit.agents   unhandled exception   {"room":             
                                     while running the job "voice_assistant_roo…
                                     task                  "pid": 1145433,      
                                     Traceback (most       "job_id":            
                                     recent call last):    "AJ_ijEKoRQyQPN4",   
                                       File                "room_id":           
                                     "/var/www/html/liveki "RM_pQDzpRgEo8pR"}   
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/ipc/job_proc_la                      
                                     zy_main.py", line                          
                                     275, in                                    
                                     _traceable_entrypoint                      
                                         await                                  
                                     self._job_entrypoint_                      
                                     fnc(job_ctx)                               
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
    14:57:38 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1145433, "job_id":         
                                                     "AJ_ijEKoRQyQPN4",         
                                                     "room_id":                 
                                                     "RM_pQDzpRgEo8pR"}         
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1145433,
                                                          "job_id":             
                                                          "AJ_ijEKoRQyQPN4",    
                                                          "room_id":            
                                                          "RM_pQDzpRgEo8pR"}    
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1145433,       
                                                          "job_id":             
                                                          "AJ_ijEKoRQyQPN4",    
                                                          "room_id":            
                                                          "RM_pQDzpRgEo8pR"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1145433,      
                                                           "job_id":            
                                                           "AJ_ijEKoRQyQPN4",   
                                                           "room_id":           
                                                           "RM_pQDzpRgEo8pR"}   
    21:24:37 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    21:24:38 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     2s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 935, in _connection_task              
                                         ws = await                             
                                     self._http_session.ws_connect(             
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/aiohttp/client.py", line     
                                     1093, in _ws_connect                       
                                         raise WSServerHandshakeError(          
                                     aiohttp.client_exceptions.WSServerHandsha  
                                     keError: 401, message='Invalid response    
                                     status',                                   
                                     url='wss://test-voice-bot-fd6qy6cu.liveki  
                                     t.cloud/agent'                             
    21:24:45 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     4s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 935, in _connection_task              
                                         ws = await                             
                                     self._http_session.ws_connect(             
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/aiohttp/client.py", line     
                                     1093, in _ws_connect                       
                                         raise WSServerHandshakeError(          
                                     aiohttp.client_exceptions.WSServerHandsha  
                                     keError: 401, message='Invalid response    
                                     status',                                   
                                     url='wss://test-voice-bot-fd6qy6cu.liveki  
                                     t.cloud/agent'                             
    21:24:49 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_wzTCbmRFXGf7", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    21:46:05 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_9qAZP6LHMEhj", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    22:12:52 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_WBcBniwM7KCq", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    13:14:48 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_STb8LRQd9zWw", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:36:51 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_KPg3feD3aUcd", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:43:12 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    00:43:13 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     2s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 935, in _connection_task              
                                         ws = await                             
                                     self._http_session.ws_connect(             
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/aiohttp/client.py", line     
                                     1093, in _ws_connect                       
                                         raise WSServerHandshakeError(          
                                     aiohttp.client_exceptions.WSServerHandsha  
                                     keError: 401, message='Invalid response    
                                     status',                                   
                                     url='wss://test-voice-bot-fd6qy6cu.liveki  
                                     t.cloud/agent'                             
    00:43:15 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_9QLBpXQUdMBE", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    22:36:45 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    22:36:47 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_viWmsa9UETXm", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    03:57:53 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_HckhjVEy49uK", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Singapore     
                                                       South East", "protocol": 
                                                       17}                      
    00:01:39 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_LSgJWLXkwNMn", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    05:32:03 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_gGimLRot7m3M", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    14:36:49 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_rkZbHAyRSbTi", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:58:42 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_ZZZHZZi9skNx", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    02:53:24 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_xJdoaCNenrFA", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    08:02:44 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_UF9Az4ux2iXM", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    11:25:10 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    11:25:11 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_pF64pMVD6YjU", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    21:47:34 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_ey448tPYLmNh", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:01:18 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    23:01:19 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_TA92ajGBvhqh", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:07:30 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    23:07:31 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_TT2KfqMhNfvj", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    17:02:23 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    17:02:24 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_M2RuYxD2EDox", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    22:08:30 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_qrFjaeYBR7Zz", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    11:28:30 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    11:28:31 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_eHDvQu5Ziv8h", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    01:07:24 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_kHr8HZ63YxMg", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:40:02 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_B5bb7ca9wyCY", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    04:21:04 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_VgFrAQ9ddWNo", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    16:10:11 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_WpyZDSZj8naF", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    17:50:56 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_TTXNgirmbQbb", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    20:31:13 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    20:31:14 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_SDeN7qoyu2oa", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Germany 2",   
                                                       "protocol": 17}          
    08:06:38 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    08:06:39 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_JFnb3gQ6wKU8", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Germany 2",   
                                                       "protocol": 17}          
    13:17:46 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_uPWep8zUW8Xs", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:30:20 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_Q65aC9kawkoB", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:04:51 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_d4HUUteGmE3A", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    04:18:06 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_k28GzKVKfiXm", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    16:10:41 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    16:10:43 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_mHbuWVBr9HyA", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    12:33:10 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    12:33:12 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_3UzsYBntj6BB", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    17:13:39 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_cufy3B8sUGJG", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    22:07:22 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_ZNZhrEQNQKiF", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    22:21:46 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_oo9BMqAidfGh", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    03:53:17 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_g4NaQJV8mMDp", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1726851,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_L5hBFVfbi5AE",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_rUeVaRcnVoG8"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    14:59:58 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
    15:00:00 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1726851,      
                                     recent call last):    "job_id":            
                                       File                "AJ_L5hBFVfbi5AE",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_rUeVaRcnVoG8"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     help you today                             
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1726851,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
    15:00:04 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
    15:00:05 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1726851,       
                                     transcript='Hello.'  "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1408 ms       "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1726851,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello.", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1081297397613525,   
                                                          "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1726851,       
                                     y                    "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.006101131439208984,
                                                           "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1726851,       
                                     text="['Hello.']"... "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
    15:00:06 ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1726851,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_L5hBFVfbi5AE",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_rUeVaRcnVoG8"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:07 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:09 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:11 ERROR  livekit.agents   Error in              {"room":             
                                     _tts_inference_task   "voice_assistant_roo…
                                     Traceback (most       "pid": 1726851,      
                                     recent call last):    "job_id":            
                                       File                "AJ_L5hBFVfbi5AE",   
                                     "/var/www/html/liveki "room_id":           
                                     t_frontend/BackEnd/ag "RM_rUeVaRcnVoG8"}   
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 569, in                               
                                     __anext__                                  
                                         val = await                            
                                     self._event_aiter.__a                      
                                     next__()                                   
                                     StopAsyncIteration                         
                                                                                
                                     During handling of                         
                                     the above exception,                       
                                     another exception                          
                                     occurred:                                  
                                                                                
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/log.py",                       
                                     line 16, in                                
                                     async_fn_logs                              
                                         return await                           
                                     fn(*args, **kwargs)                        
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 288, in                        
                                     _tts_inference_task                        
                                         pushed_duration                        
                                     += await                                   
                                     _tts_node_inference(i                      
                                     nput_segment,                              
                                     pushed_duration)                           
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/generatio                      
                                     n.py", line 246, in                        
                                     _tts_node_inference                        
                                         async for                              
                                     audio_frame in                             
                                     tts_node:                                  
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/voice/agent.py"                      
                                     , line 446, in                             
                                     tts_node                                   
                                         async for ev in                        
                                     stream:                                    
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 572, in                               
                                     __anext__                                  
                                         raise exc  #                           
                                     noqa: B904                                 
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 362, in                               
                                     _traceable_main_task                       
                                         await                                  
                                     self._main_task()                          
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             WARNI… livekit.agents   `use_tts_aligned_tran {"room":             
                                     script` is enabled    "voice_assistant_roo…
                                     but no agent          "pid": 1726851,      
                                     transcript was        "job_id":            
                                     returned from tts     "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
    15:00:21 INFO   agent            [EVENT]               {"room":             
                                     user_state_changed    "voice_assistant_roo…
                                     state=speaking        "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
    15:00:22 INFO   agent            [EVENT]              {"room":              
                                     user_state_changed   "voice_assistant_room…
                                     state=listening      "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
    15:00:23 INFO   agent            [EVENT]              {"room":              
                                     user_input_transcrib "voice_assistant_room…
                                     ed is_final=True     "pid": 1726851,       
                                     transcript='Hello?'  "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [LATENCY] User turn   {"room":             
                                     (speaking + STT       "voice_assistant_roo…
                                     final): 1365 ms       "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [LATENCY]             {"room":             
                                     user_speech_committed "voice_assistant_roo…
                                     at T+0 (reference for "pid": 1726851,      
                                     LLM/TTS timing)       "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   received user        {"room":              
                                     transcript           "voice_assistant_room…
                                                          "user_transcript":    
                                                          "Hello?", "language": 
                                                          "eng",                
                                                          "transcript_delay":   
                                                          1.1136603355407715,   
                                                          "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [EVENT]              {"room":              
                                     speech_created       "voice_assistant_room…
                                     source=generate_repl "pid": 1726851,       
                                     y                    "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [LATENCY] End-to-end  {"room":             
                                     (user_commit -> first "voice_assistant_roo…
                                     audio): 1 ms          "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   livekit.agents   Turn detector does    {"room":             
                                     not support language  "voice_assistant_roo…
                                     eng                   "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   using preemptive      {"room":             
                                     generation            "voice_assistant_roo…
                                                           "preemptive_lead_tim…
                                                           0.005753755569458008,
                                                           "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             INFO   agent            [EVENT]              {"room":              
                                     conversation_item_ad "voice_assistant_room…
                                     ded role=user        "pid": 1726851,       
                                     text="['Hello?']"... "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     listening -> thinking "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             ERROR  livekit.agents   error decoding audio  {"room":             
                                     Traceback (most       "voice_assistant_roo…
                                     recent call last):    "pid": 1726851,      
                                       File                "job_id":            
                                     "/var/www/html/liveki "AJ_L5hBFVfbi5AE",   
                                     t_frontend/BackEnd/ag "room_id":           
                                     ent-starter-python/.v "RM_rUeVaRcnVoG8"}   
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/utils/codecs/de                      
                                     coder.py", line 199,                       
                                     in _decode_loop                            
                                         for frame in                           
                                     container.decode(audi                      
                                     o_stream):                                 
                                       File                                     
                                     "av/container/input.p                      
                                     yx", line 216, in                          
                                     decode                                     
                                       File                                     
                                     "av/packet.py", line                       
                                     83, in                                     
                                     av.packet.Packet.deco                      
                                     de                                         
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 36, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/audio/stream.py",                      
                                     line 46, in                                
                                     av.audio.stream.Audio                      
                                     Stream.decode                              
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 447, in                            
                                     av.codec.context.Code                      
                                     cContext.decode                            
                                       File                                     
                                     "av/codec/context.pyx                      
                                     ", line 339, in                            
                                     av.codec.context.Code                      
                                     cContext._send_packet                      
                                     _and_recv                                  
                                       File                                     
                                     "av/error.pyx", line                       
                                     424, in                                    
                                     av.error.err_check                         
                                     av.error.InvalidDataE                      
                                     rror: [Errno                               
                                     1094995529] Invalid                        
                                     data found when                            
                                     processing input:                          
                                     'avcodec_send_packet(                      
                                     )'                                         
             WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     0.1s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 1,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:24 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 2,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:26 WARNI… livekit.agents   failed to synthesize  {"room":             
                                     speech, retrying in   "voice_assistant_roo…
                                     2.0s                  "tts":               
                                     Traceback (most       "livekit.plugins.ele…
                                     recent call last):    "attempt": 3,        
                                       File                "streamed": true,    
                                     "/var/www/html/liveki "pid": 1726851,      
                                     t_frontend/BackEnd/ag "job_id":            
                                     ent-starter-python/.v "AJ_L5hBFVfbi5AE",   
                                     env/lib/python3.10/si "room_id":           
                                     te-packages/livekit/a "RM_rUeVaRcnVoG8"}   
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
    15:00:28 ERROR  livekit.agents   AgentSession is       {"room":             
                                     closing due to        "voice_assistant_roo…
                                     unrecoverable error   "pid": 1726851,      
                                     Traceback (most       "job_id":            
                                     recent call last):    "AJ_L5hBFVfbi5AE",   
                                       File                "room_id":           
                                     "/var/www/html/liveki "RM_rUeVaRcnVoG8"}   
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/tts/tts.py",                         
                                     line 407, in                               
                                     _main_task                                 
                                         raise                                  
                                     APIError(f"no audio                        
                                     frames were pushed                         
                                     for text:                                  
                                     {self._pushed_text}")                      
                                     livekit.agents._excep                      
                                     tions.APIError: no                         
                                     audio frames were                          
                                     pushed for text:                           
                                     Hello there How can I                      
                                     assist you today                           
                                     (body=None,                                
                                     retryable=True)                            
             INFO   agent            [EVENT]               {"room":             
                                     agent_state_changed   "voice_assistant_roo…
                                     thinking -> listening "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   input stream detached {"room":             
                                                           "voice_assistant_roo…
                                                           "participant":       
                                                           "voice_assistant_use…
                                                           "source":            
                                                           "SOURCE_MICROPHONE", 
                                                           "accepted_sources":  
                                                           ["SOURCE_MICROPHONE"…
                                                           "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
             DEBUG  livekit.agents   stream closed {"room":                     
                                                   "voice_assistant_room_3677", 
                                                   "participant":               
                                                   "voice_assistant_user_7827", 
                                                   "source":                    
                                                   "SOURCE_MICROPHONE", "pid":  
                                                   1726851, "job_id":           
                                                   "AJ_L5hBFVfbi5AE", "room_id":
                                                   "RM_rUeVaRcnVoG8"}           
             DEBUG  livekit.agents   session closed {"room":                    
                                                    "voice_assistant_room_3677",
                                                    "reason": "error", "error": 
                                                    "type='tts_error'           
                                                    timestamp=1774258228.1991534
                                                    label='livekit.plugins.elev…
                                                    error=APIError('no audio    
                                                    frames were pushed for text:
                                                    Hello there How can I assist
                                                    you today')                 
                                                    recoverable=False", "pid":  
                                                    1726851, "job_id":          
                                                    "AJ_L5hBFVfbi5AE",          
                                                    "room_id":                  
                                                    "RM_rUeVaRcnVoG8"}          
    15:03:28 INFO   livekit.agents   closing agent session {"room":             
                                     due to participant    "voice_assistant_roo…
                                     disconnect (disable   "participant":       
                                     via                   "voice_assistant_use…
                                     `RoomInputOptions.clo "reason":            
                                     se_on_disconnect=Fals "CLIENT_INITIATED",  
                                     e`)                   "pid": 1726851,      
                                                           "job_id":            
                                                           "AJ_L5hBFVfbi5AE",   
                                                           "room_id":           
                                                           "RM_rUeVaRcnVoG8"}   
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
Started new conversation session: voice_assistant_room_3677_1774258175058
Logged user message: Hallo?... (total messages: 1)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Logged user message: Hello?... (total messages: 2)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Logged user message: I'm audible.... (total messages: 3)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Logged user message: Hello.... (total messages: 4)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Logged user message: Hello.... (total messages: 5)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Logged user message: Hello?... (total messages: 6)
Auto-saved to: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
Session ended - Final save: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs/voice_assistant_room_3677_1774258175058.json
  - Messages: 6
  - Duration: 255.92s
    15:03:50 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1726851, "job_id":         
                                                     "AJ_L5hBFVfbi5AE",         
                                                     "room_id":                 
                                                     "RM_rUeVaRcnVoG8"}         
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1726851,
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            Session ending,      {"room":              
                                     saving conversation  "voice_assistant_room…
                                     log...               "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
             INFO   agent            Conversation log      {"room":             
                                     saved to:             "voice_assistant_roo…
                                     /var/www/html/livekit "pid": 1726851,      
                                     _frontend/BackEnd/age "job_id":            
                                     nt-starter-python/log "AJ_L5hBFVfbi5AE",   
                                     s/voice_assistant_roo "room_id":           
                                     m_3677_1774258175058. "RM_rUeVaRcnVoG8"}   
                                     json                                       
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1726851,       
                                                          "job_id":             
                                                          "AJ_L5hBFVfbi5AE",    
                                                          "room_id":            
                                                          "RM_rUeVaRcnVoG8"}    
    16:32:07 INFO   livekit.agents   received job request {"job_id":            
                                                          "AJ_Jaz6b4fLepft",    
                                                          "dispatch_id":        
                                                          "AD_aD3gMKKUrq9w",    
                                                          "room":               
                                                          "voice_assistant_room…
                                                          "room_id":            
                                                          "RM_JEGutMLhYSnP",    
                                                          "agent_name":         
                                                          "default", "resuming":
                                                          false,                
                                                          "enable_recording":   
                                                          false}                
             DEBUG  livekit.agents   received assignment {"agent_name":         
                                                         "default", "room_id":  
                                                         "RM_JEGutMLhYSnP",     
                                                         "room":                
                                                         "voice_assistant_room_…
                                                         "job_id":              
                                                         "AJ_Jaz6b4fLepft",     
                                                         "dispatch_id":         
                                                         "AD_aD3gMKKUrq9w",     
                                                         "enable_recording":    
                                                         false}                 
             INFO   livekit.agents   initializing process {"pid": 1875699}
             INFO   agent            Prewarming agent           {"pid": 1875699}
                                     process...                                 
             INFO   livekit.agents   process initialized {"pid": 1875699,       
                                                         "elapsed_time": 0.26}  
             INFO   agent            Prewarm complete - VAD     {"pid": 1875699}
                                     loaded                                     
             DEBUG  asyncio          Using selector:       {"pid": 1875699,     
                                     EpollSelector         "job_id":            
                                                           "AJ_Jaz6b4fLepft",   
                                                           "room_id":           
                                                           "RM_JEGutMLhYSnP"}   
             INFO   agent            Job received:        {"pid": 1875699,      
                                     room=voice_assistant "job_id":             
                                     _room_1290,          "AJ_Jaz6b4fLepft",    
                                     job_id=AJ_Jaz6b4fLep "room_id":            
                                     ft                   "RM_JEGutMLhYSnP"}    
    16:32:08 INFO   agent            [LATENCY] Startup:   {"room":              
                                     ctx.connect(): 511   "voice_assistant_room…
                                     ms (total since job: "pid": 1875699,       
                                     511 ms)              "job_id":             
                                                          "AJ_Jaz6b4fLepft",    
                                                          "room_id":            
                                                          "RM_JEGutMLhYSnP"}    
             INFO   agent            Using room metadata   {"room":             
                                     (after connect):      "voice_assistant_roo…
                                     ['agent_instructions' "pid": 1875699,      
                                     , 'agent_voice',      "job_id":            
                                     'agent_language',     "AJ_Jaz6b4fLepft",   
                                     'agent_llm_model',    "room_id":           
                                     'agent_stt_model',    "RM_JEGutMLhYSnP"}   
                                     'agent_stt_language_c                      
                                     ode',                                      
                                     'agent_stt_provider',                      
                                     'agent_tts_model',                         
                                     'agent_tts_encoding',                      
                                     'agent_tts_provider']                      
             INFO   agent            Providers:            {"room":             
                                     STT=ELEVENLABS,       "voice_assistant_roo…
                                     TTS=ELEVENLABS (from  "pid": 1875699,      
                                     agent_stt_provider /  "job_id":            
                                     agent_tts_provider)   "AJ_Jaz6b4fLepft",   
                                                           "room_id":           
                                                           "RM_JEGutMLhYSnP"}   
             INFO   agent            STT: ElevenLabs       {"room":             
                                     language=en           "voice_assistant_roo…
                                                           "pid": 1875699,      
                                                           "job_id":            
                                                           "AJ_Jaz6b4fLepft",   
                                                           "room_id":           
                                                           "RM_JEGutMLhYSnP"}   
             INFO   agent            TTS: ElevenLabs      {"room":              
                                     model=eleven_turbo_v "voice_assistant_room…
                                     2_5                  "pid": 1875699,       
                                     voice=EXAVITQu4vr4xn "job_id":             
                                     SDxMaL               "AJ_Jaz6b4fLepft",    
                                                          "room_id":            
                                                          "RM_JEGutMLhYSnP"}    
             INFO   agent            [LATENCY] Startup:    {"room":             
                                     pipeline setup        "voice_assistant_roo…
                                     (metadata + STT + TTS "pid": 1875699,      
                                     + LLM +               "job_id":            
                                     AgentSession): 622 ms "AJ_Jaz6b4fLepft",   
                                                           "room_id":           
                                                           "RM_JEGutMLhYSnP"}   
             ERROR  agent            Failed to start voice {"room":             
                                     session (check API    "voice_assistant_roo…
                                     keys:                 "pid": 1875699,      
                                     ELEVENLABS/CARTESIA   "job_id":            
                                     per provider,         "AJ_Jaz6b4fLepft",   
                                     OPENAI_API_KEY /      "room_id":           
                                     LiveKit Inference):   "RM_JEGutMLhYSnP"}   
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
                                     Traceback (most                            
                                     recent call last):                         
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
             ERROR  livekit.agents   unhandled exception   {"room":             
                                     while running the job "voice_assistant_roo…
                                     task                  "pid": 1875699,      
                                     Traceback (most       "job_id":            
                                     recent call last):    "AJ_Jaz6b4fLepft",   
                                       File                "room_id":           
                                     "/var/www/html/liveki "RM_JEGutMLhYSnP"}   
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/opentelem                      
                                     etry/util/_decorator.                      
                                     py", line 71, in                           
                                     async_wrapper                              
                                         return await                           
                                     func(*args, **kwargs)                      
                                     # type: ignore                             
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/.v                      
                                     env/lib/python3.10/si                      
                                     te-packages/livekit/a                      
                                     gents/ipc/job_proc_la                      
                                     zy_main.py", line                          
                                     275, in                                    
                                     _traceable_entrypoint                      
                                         await                                  
                                     self._job_entrypoint_                      
                                     fnc(job_ctx)                               
                                       File                                     
                                     "/var/www/html/liveki                      
                                     t_frontend/BackEnd/ag                      
                                     ent-starter-python/sr                      
                                     c/agent.py", line                          
                                     403, in my_agent                           
                                         room_options=room                      
                                     _io.RoomOptions(                           
                                     TypeError:                                 
                                     RoomOptions.__init__(                      
                                     ) got an unexpected                        
                                     keyword argument                           
                                     'room_output'                              
    16:36:03 INFO   livekit.agents   process exiting {"reason": "", "pid":      
                                                     1875699, "job_id":         
                                                     "AJ_Jaz6b4fLepft",         
                                                     "room_id":                 
                                                     "RM_JEGutMLhYSnP"}         
============================================================
Initializing ConversationLogger...
ConversationLogger initialized. Logs directory: /var/www/html/livekit_frontend/BackEnd/agent-starter-python/logs
Directory exists: True
Directory writable: True
ConversationLogger ready
============================================================
             DEBUG  livekit.agents   shutting down job    {"room":              
                                     task                 "voice_assistant_room…
                                                          "reason": "",         
                                                          "user_initiated":     
                                                          false, "pid": 1875699,
                                                          "job_id":             
                                                          "AJ_Jaz6b4fLepft",    
                                                          "room_id":            
                                                          "RM_JEGutMLhYSnP"}    
             DEBUG  livekit.agents   http_session():      {"room":              
                                     closing the          "voice_assistant_room…
                                     httpclient ctx       "pid": 1875699,       
                                                          "job_id":             
                                                          "AJ_Jaz6b4fLepft",    
                                                          "room_id":            
                                                          "RM_JEGutMLhYSnP"}    
             DEBUG  livekit.agents   http_session():       {"room":             
                                     creating a new        "voice_assistant_roo…
                                     httpclient ctx        "pid": 1875699,      
                                                           "job_id":            
                                                           "AJ_Jaz6b4fLepft",   
                                                           "room_id":           
                                                           "RM_JEGutMLhYSnP"}   
    21:24:33 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    21:24:38 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     2s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 935, in _connection_task              
                                         ws = await                             
                                     self._http_session.ws_connect(             
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/aiohttp/client.py", line     
                                     1093, in _ws_connect                       
                                         raise WSServerHandshakeError(          
                                     aiohttp.client_exceptions.WSServerHandsha  
                                     keError: 401, message='Invalid response    
                                     status',                                   
                                     url='wss://test-voice-bot-fd6qy6cu.liveki  
                                     t.cloud/agent'                             
    21:24:45 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     4s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 935, in _connection_task              
                                         ws = await                             
                                     self._http_session.ws_connect(             
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/aiohttp/client.py", line     
                                     1093, in _ws_connect                       
                                         raise WSServerHandshakeError(          
                                     aiohttp.client_exceptions.WSServerHandsha  
                                     keError: 401, message='Invalid response    
                                     status',                                   
                                     url='wss://test-voice-bot-fd6qy6cu.liveki  
                                     t.cloud/agent'                             
    21:24:49 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_UNf45g6JewmT", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    21:46:09 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_fUbw2XieRVme", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    22:12:52 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    22:12:53 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_MUBSpwYspsYi", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    20:36:15 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_aT9XMYT6yLRJ", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    14:33:07 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_ZGYvtJJVVByX", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:43:20 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_A9dscA7mymod", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    14:35:17 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    14:35:19 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_EVPkuEex6pfS", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Singapore     
                                                       South East", "protocol": 
                                                       17}                      
    22:37:13 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_BX7QAuCLTMZc", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    03:57:53 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    03:57:54 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_dohXTy4Kqo8P", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Singapore     
                                                       South East", "protocol": 
                                                       17}                      
    22:06:20 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_AnwH6aR9rYnE", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:57:55 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_dVtapNAuVbLY", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    14:36:49 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_zgkMNwoUxkq6", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:58:42 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_UadfzAw7As6Q", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    02:53:16 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_4ThXjB2ibz5o", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    08:02:54 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_rFNQBzpffk5w", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    16:16:53 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_fscNfpe8zeby", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    03:55:52 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_uLkwCEBTDydX", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    11:25:04 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_jboJyMWc9a5s", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    21:47:48 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_P5JLXtjaUUoj", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    14:37:23 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_S4FRu9q5ppPf", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:01:18 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    23:01:19 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_eH6ZyJohwr4i", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:07:38 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_FpaQENSypmz3", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    03:52:09 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_NjJUapaffs8e", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    22:08:34 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_KabV9hreqGHj", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    05:25:04 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    05:25:05 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_v568B9e5Getf", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    13:44:23 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    13:44:28 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_bVzWf8PpRyTZ", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:40:02 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_YeVvZKZRMF6z", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    03:30:59 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_hxHDSwDWg4QM", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    20:31:16 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    20:31:17 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_NVnCwM6LycYd", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "Germany 2",   
                                                       "protocol": 17}          
    13:17:53 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_JdAkhrmypV2S", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    19:44:33 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    19:44:34 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_6Qce6kkToUgT", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    00:09:30 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_KF4CnUG8G7vL", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    05:29:34 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
    05:29:35 INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_XpFkZfKQoxM4", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    23:04:51 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_wz2bA94yS3r3", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India South", 
                                                       "protocol": 17}          
    16:10:58 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_xQ64sFfhmgsy", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    17:35:47 WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_mVtn8tKomxy9", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
    12:33:14 WARNI… livekit.agents   unexpected message type: WSMsgType.ERROR  
             WARNI… livekit.agents   failed to connect to livekit, retrying in  
                                     0s                                         
                                     Traceback (most recent call last):         
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 975, in _connection_task              
                                         await self._run_ws(ws)                 
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1056, in _run_ws                      
                                         await asyncio.gather(*tasks)           
                                       File                                     
                                     "/var/www/html/livekit_frontend/BackEnd/a  
                                     gent-starter-python/.venv/lib/python3.10/  
                                     site-packages/livekit/agents/worker.py",   
                                     line 1028, in _recv_task                   
                                         raise Exception("worker connection     
                                     closed unexpectedly")                      
                                     Exception: worker connection closed        
                                     unexpectedly                               
             INFO   livekit.agents   registered worker {"agent_name": "default",
                                                       "id": "AW_KU3GPo3Pwfqy", 
                                                       "url":                   
                                                       "wss://test-voice-bot-fd…
                                                       "region": "India West",  
                                                       "protocol": 17}          
