FIELD NOTE / WHATSAPP / CALL RECORDING

WhatsApp calls · Transcription in Hebrew · Baileys · WebAssembly

No app can record a WhatsApp call on iPhone. So I added a contact to the call.

2026-11-15  ·  ~8 min read  ·  by Gal Tidhar

I record every Zoom and Meet call with Fathom. A lot of my client calls happen on WhatsApp, from my phone, and there was nothing recording those. Now my WhatsApp agent joins the call as a participant: it records, and when the call ends there's a transcript in Hebrew or English that any of my Claude sessions can pull and file under the right project. Everyone on the call sees it join. This is how it works, what broke on the way, and what you need to run it yourself.

Flow: your call from the phone, add the agent as a contact, WhatsApp's calling engine running as WebAssembly inside Node, recording, then a Hebrew transcript in half a second on a free tier.

Why nothing could record it

On an iPhone, no app gets the audio of a WhatsApp call. That's an iOS rule, not a missing feature. Meeting recorders like Fathom work by joining Zoom, Meet or Teams as a bot, and WhatsApp has no such door. On a Mac you can capture WhatsApp Desktop's audio from the system, which I already do, but that doesn't help with the calls I take on the phone.

My agent already lives on WhatsApp, on its own number, through Baileys, the open-source library that speaks the WhatsApp Web protocol. So the obvious ask was: let it join the call. The first answer I got was no. Baileys sees that a call is coming in, so it can reject it, but the audio itself never reaches it. Call audio is encrypted real-time media that no open-source library implements.

What cracked it open

WhatsApp Web got voice and video calls in 2026: one-on-one in beta in February, group calls in June, and a rollout to everyone announced in late July. To make calling work in a browser, WhatsApp ships its entire calling engine to the page as WebAssembly: the audio codec, the encryption and the connection to WhatsApp's call servers, all in one module.

Someone had already noticed. baileys-caller (MIT) uses Baileys for the login and the call signalling, and loads WhatsApp Web's own calling module inside Node, with no browser. It could place an outgoing one-on-one call and hand you the other side's audio as PCM. It could not answer an incoming call or join a group call, which were exactly the two things I needed.

No browser, no Android emulator, no screen. The engine WhatsApp ships to the web, run headless next to the bot.

The bugs, in the order they bit

  • Error 405 on connect. WhatsApp rejected the library's hardcoded client version as outdated, which also broke pairing. Fix: ask for the current WhatsApp Web version on every connect.
  • Silent recordings. Every audio frame pointed at the same reused memory buffer, so 313 real frames came out as pure silence. Fix: copy each frame.
  • A call that never ended. When a call timed out, the code waiting for the end hung forever.
  • Incoming calls silently ignored. Baileys drops the :0 device suffix when it re-encodes the caller's LID address, so the calling engine saw a different caller and threw the offer away. The caller's platform ("iphone") was also being turned into NaN.
  • Hanging up while it was still ringing. The engine sends an event right after every incoming offer that the library treated as "the other side hung up". Ending a call now follows the call state instead.
  • Group calls stuck on "accepting". In a group call the accept has to go to the call's own address, not to the phone of whoever started it. Until that was fixed, WhatsApp never sent back the media server details.
  • Audio dying mid-call. WhatsApp's engine restarts its audio capture in the middle of some calls, and the library tore down the outgoing audio and never rebuilt it.

The first three are a pull request to the original project (SheIITear/baileys-caller#5). The inbound, group and live-audio work is in my fork, on feat/inbound-calls.

Most of this was found the slow way: one fix, then I called the agent from my phone, nothing, another fix, another call. About ten calls that day before it picked up on its own.

From audio to a transcript in the right place

When the call ends, the recording is transcribed with Whisper on Groq, on the free tier (roughly 8 hours of audio a day). A five-second test call came back in half a second. The same call took three minutes with the large Whisper model running locally on my 4-core server, which was busy with other work at the time. The local model stays as the fallback, so a transcript is never lost if Groq is down or the quota runs out.

Most of my calls are in Hebrew, so language matters. Each call is checked for Hebrew or English; anything else (noisy audio sometimes gets detected as Arabic) is transcribed again as Hebrew, and every transcript starts with a language: he or en line so a wrong one is easy to spot.

The transcript lands as <date>-group.md with the participants at the top. A small Claude Code skill, /pull-transcript, finds the latest call (or one by person, date or topic), pulls out decisions and action items, and files it under the right project.

And it talks back

If I call the agent directly instead of adding it to a call, it answers and talks: Groq transcribes me, Claude Haiku answers through the Agent SDK on my existing Claude subscription, and a local Piper voice speaks it into the call. Tasks I give it ("remind me tomorrow at eight") are handed to the main agent, and the confirmation comes back on WhatsApp. Today it's English only, the voice is clearly synthetic, and a reply takes one to three seconds after a short "mm-hm".

What you need to run it

  • A second WhatsApp number for the agent (a prepaid SIM, registered once on any phone), linked as a device.
  • An always-on machine to run it. Mine is a small cloud server.
  • A Groq API key on the free tier for transcription.
  • Consent. Recording a private conversation needs the other side's consent in many countries, Croatia included. The agent is a visible participant, so everyone sees it join; I still say so out loud.

Limits, honestly

  • Group calls work, but so far they have been tested on one real call.
  • The calling engine is WhatsApp's own code, loaded from WhatsApp Web. An update on their side can break it until the module is fetched again.
  • Baileys is unofficial. WhatsApp doesn't sanction third-party clients, and a number that behaves like a spam bot can get restricted. A recorder that only joins calls it's invited to is a very different profile, but the risk isn't zero.