Send a voice note
Pass an audio file directly tosendVoiceNote and the SDK uploads it,
then enqueues the send. Any format afconvert can read works — m4a,
mp3, wav, caf, aiff.
Parameters
| Field | Required | Description |
|---|---|---|
from | Yes | Sender line handle. |
to | Yes | Recipient phone number, Apple ID, or chat ID (cht_...). |
voiceNote | Yes | File ID (file_...) or raw audio bytes (Blob, Buffer, Uint8Array). |
mimeType | No | Mime type when passing raw bytes. Default: audio/mpeg. |
filename | No | Filename when passing raw bytes. |
replyTo | No | Message ID or GUID to reply to. |
Requirements
Voice notes require advanced features on the line’s machine — SIP and AMFI disabled, with the helper dylib injected into Messages.app. Without this, the API returns400 advanced_features_required.
To check whether a machine supports voice notes, run:
"voice_note_send": true.
iMessage only — SMS lines are rejected.
Supported formats
Any formatafconvert can decode:
m4a/aacmp3wavcafaiff