Convert audio into a WhatsApp voice note (Ogg/Opus)
POST/api/sessions/:sessionId/media/convert/voice
Convert audio into a WhatsApp voice note (Ogg/Opus)
Request
Responses
- 200
- 400
- 413
- 503
Converted bytes, ready to post to send-audio with ptt=true. WhatsApp only renders a playable mic bubble for Ogg/Opus; other formats arrive as an audio file that will not play.
Neither url nor base64 given, or ffmpeg refused the input.
The supplied media is above the media size cap.
Conversion is disabled, the ffmpeg binary is not runnable, or the conversion queue is saturated — retry shortly.