naughty-peachN
VAPI•3mo ago
naughty-peach

📝 [SDK] Efficient implementation of text chat without official widget

Hi Vapi team,
I am implementing text chat using directly the API (without the official widget). Currently:
  1. I start a session with vapi.start().
  2. I mute the user's microphone with vapi.setMuted(true)
  3. However, the agent keeps sending audio (we can't unmute it).
My doubts is:
  • Is there a more efficient method to start text-only sessions that does not consume voice resources (WebRTC, microphone, etc.)?
  • Is there a way to completely mute the agent audio for a purely text-only experience?
  • How are credits/resources accounted for when using the API in text vs. voice mode?
I am looking to implement an efficient chat experience without unnecessary audio resource consumption.

Thank you!
Was this page helpful?