Skip to content

WhatsApp: [[audio_as_voice]] / PTT voice-note delivery not working #66053

Description

@escotilha

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

  1. Generate an ogg opus audio file
  2. Reply with [[audio_as_voice]]\nMEDIA:/path/to/file.ogg
  3. Message arrives on WhatsApp as a file, not a voice note

Environment

  • OpenClaw on Contabo VPS
  • WhatsApp Web channel (Baileys)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions