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.
Stream PCM audio to the call, for audio generated on the fly (TTS, voice bots, audio coming from Node.js). Chunks are queued and played back to back.
Accepts a Float32Array (-1 to 1), an Int16Array or a base64 string of little-endian Int16 PCM.
Returns the seconds of audio still queued.