wa_send_audio
Send an audio file from a local path or URL to a WhatsApp contact, group, or channel as a voice note or regular audio message, with optional duration metadata.
Instructions
Send an audio file as a voice note (push-to-talk, with waveform) or as a regular audio message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>"
},
"name": "wa_send_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Phone number, group JID or channel JID | |
| ptt | No | true = send as a voice note (push-to-talk), default true | |
| url | No | Audio URL to fetch and send (alternative to file) | |
| file | No | Absolute path to an audio file (opus/ogg recommended for voice notes, mp3/m4a for audio) | |
| duration | No | Duration in seconds (shown in the bubble) |