send_audio_message
Send any audio file as a WhatsApp audio message to a recipient or group JID; converts to Opus .ogg when needed.
Instructions
Send any audio file as a WhatsApp audio message to the specified recipient. For group messages use the JID. If it errors due to ffmpeg not being installed, use send_file instead.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "123456789@s.whatsapp.net" or a group JID like "123456789@g.us")
media_path: The absolute path to the audio file to send (will be converted to Opus .ogg if it's not a .ogg file)
Returns:
A dictionary containing success status and a status message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipient | Yes | ||
| media_path | Yes |