WhatsApp PTT voice-note delivery not working
The [[audio_as_voice]] directive is parsed in the agent-runner (agent-runner.runtime-CUJd1OG7.js) and sets audioAsVoice: true on the payload, but this flag is never consumed by the WhatsApp channel send layer.
Expected behavior
When an agent reply includes [[audio_as_voice]] with a MEDIA attachment of an .ogg opus audio file, WhatsApp should deliver it as a PTT (push-to-talk) voice note.
Actual behavior
The audio is delivered as a regular file/document attachment, not as a voice note.
Steps to reproduce
- Generate an ogg opus audio file
- Reply with
[[audio_as_voice]]\nMEDIA:/path/to/file.ogg
- Message arrives on WhatsApp as a file, not a voice note
Environment
- OpenClaw on Contabo VPS
- WhatsApp Web channel (Baileys)
WhatsApp PTT voice-note delivery not working
The
[[audio_as_voice]]directive is parsed in the agent-runner (agent-runner.runtime-CUJd1OG7.js) and setsaudioAsVoice: trueon the payload, but this flag is never consumed by the WhatsApp channel send layer.Expected behavior
When an agent reply includes
[[audio_as_voice]]with a MEDIA attachment of an.oggopus audio file, WhatsApp should deliver it as a PTT (push-to-talk) voice note.Actual behavior
The audio is delivered as a regular file/document attachment, not as a voice note.
Steps to reproduce
[[audio_as_voice]]\nMEDIA:/path/to/file.oggEnvironment