The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.0. For operations available on a connected Node.js client, see Whatsapp. For functions running inside WhatsApp Web, see the WA-JS browser API.
Optionaloptions: boolean | AudioCaptureOptions
Emit the call audio as
call.audio_frameevents: 16 kHz mono frames of 60 ms.remoteframes are what you hear,localframes what you send.Enable it before the call starts: the audio graph of the call is created when the call starts and cannot be tapped afterwards.
Applies to one call and stops when it ends or is replaced. Re-enable for another call. Pass
falseto stop early.