πŸ“„
Part 1 article
The WhatsApp Media API β€” Upload, Send, Deliver, Fail

The two-step upload β†’ send flow, MIME type requirements (audio/ogg; codecs=opus), delivery status callbacks, and the silent success trap: API returns 200 but de…

β†’
πŸ“„
Part 2 article
FFmpeg for Developers β€” Audio Conversion Essentials

WAV β†’ OGG/OPUS: the full annotated command. Bitrate choices for voice (48k VBR Opus). Detecting actual format with the file command vs trusting the extension. C…

β†’
πŸ“„
Part 3 article
Audio Pipeline Debugging β€” A Systematic Approach

Test each step independently: TTS, conversion, upload, send. Meta delivery status as ground truth. Decoding common error codes (131053 and others). Reading curl…

β†’
πŸ“„
Part 4 article
Temp File Lifecycle Management

Create in /tmp with random names, always unlink in finally blocks, PHP register_shutdown_function for emergency cleanup, and monitoring /tmp growth for leaks.

β†’
πŸ“„
Part 5 article
Building a Text-to-Speech Preparation Pipeline

Stripping WhatsApp markdown (/u flag required), expanding legal abbreviations for natural pronunciation, converting bullet lists to spoken connectives, characte…

β†’
← All Series