OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Media → Convert to Voice Note

AI-generated

Summary

Converts media into Ogg/Opus audio suitable for WhatsApp voice notes. Choose the media source, provide the corresponding input, and use the returned base64 and mimetype with Message > Send Audio (Base64 source, Send as Voice Note enabled) or Status > Send Voice.

Inputs

  • Session Name or ID (required) — Select the OpenWA session that will perform the conversion.
  • Media Source — Choose Binary (default), URL, or Base64 as the source of the media.
  • Input Binary Field (required) — For Binary source, name the input binary field containing the media; defaults to data.
  • Media URL (required) — For URL source, provide a public URL the server can fetch.
  • Base64 Data (required) — For Base64 source, provide the encoded media.

Output shape

A single JSON item containing base64 and mimetype for the converted audio.

Only the input matching the selected media source is used. Conversion is optional on the server and requires ffmpeg; check availability first. A 503 indicates conversion is disabled or busy.

Links

Discussion