if anyone from vapi team can help with this?
What I am trying to do:
- Listen in to calls to decide if admin takeover is needed (transfer to admin button is pressed by admin here)
How I am doing it:
- Using the /call api's listenUrl
- connect to the websocket url from frontend to receive real time audio chunks
- assume Vapi sends 16-bit signed PCM audio
- creates Web Audio API buffer at Vapi's 16kHz sample rate, lets browser handle resampling to device's native rate automatically
- play chunks immediately
What I am observing?
- slow voice
- the quality of voice is very bad (think slo mo voice + broken + distorted)