📝 [SDK] Efficient implementation of text chat wit...
# support
y
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!
v
Hi there, I can help you set up a fully text-only chat without using extra audio resources. Quick question—do you want to completely disable WebRTC or just stop the agent’s audio playback? I can then guide you on the best approach and explain how credits are counted for text versus voice sessions. @yoda.master
y
Hello! @Vercel I'm just looking to stop the agent's audio playback. Thank you very much!
v
Got it! I’ll help you disable the agent’s audio so the chat runs purely in text mode without using any extra audio resources. I’ll handle it by turning off the audio track in the WebRTC stream so you won’t hear any playback. @yoda.master
c
We apologize for the delay in responses lately. We are in process of making some changes to our workflow in how we handle support requests. The good news is that we are starting to get back on track of having a 48 hour response time and we would like to start cleaning up anything old. With that being said, just wanted to check in with you to see if you have made any progress or changes to your project since support has last reached out.