How to generate a waveform for a voice message
What is a waveform
How to send an audio file via WhatsApp API
curl --request POST \
--url https://gate.whapi.cloud/messages/voice \
--header 'accept: application/json' \
--header 'authorization: Bearer {YOUR_TOKEN}' \
--header 'content-type: application/json' \
--data '
{
"waveform": "P0RKUFZbYGVpbXF0dnh6enp6eXd1cm9rZ2NeWVNNR0E8NjAqJB8aFhIOCwgGBAMDAwMFBwkMEBQYHSInLTM5Pg==",
"to": "919984351847",
"media": "https://file-examples.com/storage/fe3e7fc7fe68462a19ac6ae/2017/11/file_example_OOG_1MG.ogg"
}
'How to generate custom waveform
Symmetrical wavy pattern:

Wave (sine wave), a soft, smooth shape:

Peak in the center. Center maximum and uniform decrease towards the edges:

Here are more options that look interesting:
How to generate original waveform
Last updated