Call recording for a websocket call is inaccurate ...
# support
m
For some reason the call recording found on Vapi dashboard for a call made via the Websocket transport is completely off. It doesn't even match up with what the call logs. Is this a known issue? It feels like this issue has been around for some time now.
v
To help debug inaccurate WebSocket call recordings, try capturing the real-time audio stream using the Call Listen feature. Here’s a Node.js snippet to save the raw PCM audio from the listenUrl:
Copy code
js
const WebSocket = require('ws');
const fs = require('fs');
let pcmBuffer = Buffer.alloc(0);
const ws = new WebSocket("wss://your-listen-url/transport");
ws.on('message', (data, isBinary) => {
  if (isBinary) pcmBuffer = Buffer.concat([pcmBuffer, data]);
});
ws.on('close', () => fs.writeFileSync('audio.pcm', pcmBuffer));
This lets you compare the actual streamed audio with the dashboard recording to pinpoint discrepancies. If the issue persists, consider sharing your findings with Vapi support for further investigation. Source: [Vapi Call Features Documentation](https://docs.vapi.ai/calls/call-features)
c
Hi Mathusan, Thanks for reporting this. Could you please share the call ID for one of the WebSocket calls where the recording was inaccurate? That will help us review the logs and investigate further. Also, if you have a recording or transcript from another source for comparison, please share that as well — it would be very helpful in diagnosing the issue. Best, Kyle ---
2 Views