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.
Play an audio file (mp3, wav, ogg/opus, ...) in the call, through the virtual microphone. Resolves when the audio finishes or is stopped.
The page CSP may block downloading from other domains; pass the file content (ArrayBuffer, Blob or a base64 data URL) in that case.