Hello guys, "SHIP" plan user here. I have deployed...
# agents
w
Hello guys, "SHIP" plan user here. I have deployed Livekit Agents with TWILIO Voice via livekit cloud SIP uri. I am facing : Bot Silence After User Interrupts & DeepGram STT Configuration Issues • Whenever the bot is speaking and the user interrupts, the bot goes completely silent and does not resume. The user has to speak again to get any response. This occurs frequently but not every call. I have enabled KRISP and below is my current config:
Copy code
session = AgentSession(
        stt=deepgram.STT(model="nova-3", language="en", interim_results=True, sample_rate=8000, endpointing_ms=1000),
        llm=openai.LLM.with_azure(
            azure_deployment="gpt-4o",  
        ),
        tts=elevenlabs.TTS(
            voice_id=eleven_voice_id, 
            api_key=elevenlabs_api_key,
        ),
        use_tts_aligned_transcript=True,
        vad=silero.VAD.load(),
        turn_detection=EnglishModel(),
    )

    await session.start(
        agent=agent,  
        room=ctx.room,
        room_input_options=RoomInputOptions(
            noise_cancellation=noise_cancellation.BVCTelephony(), 
        ),
    )
• Logs from STT_node pipeline only show : ◦ detected start of speech event ◦ detected end of speech event ◦ No interim transcript is generated and there is just silence after that. ◦ The user has to say something like "hello?" to get the response from bot. • I have also attached a few audio recordings for better understanding for the silence after interruption issue. • Apart from that sometimes there are STT issues related to name or phone number not being captured properly. Like confusion between A and eight, P and V, etc. Any help regarding any of the 2 issues is greatly appreciated. Overall, the product is very good, just need to iron out a few things like these.
j
the first issue seems like a stt false negative, it didn’t recognize the audio correctly, as a fallback maybe you listen to the
agent_false_interruption
event and make the agent speak again. The event is sent if there is no any user transcript or agent speaking after a interruption, here is an example https://github.com/livekit/agents/blob/livekit-agents%401.2.2/examples/voice_agents/resume_interrupted_agent.py#L35
w
thanks a ton for that, will surely check the fallback.... seems good