fix: Convert audio file to mp3 before sending it to WhatsApp (#9432)

Last week, the WhatsApp API has started returning an error message for the voice notes, Unsupported Audio mime type audio/opus. Please use one of audio/ogg; codecs=opus, audio/mpeg, audio/amr, audio/mp4, audio/aac. This error began appearing on May 1. Even though there was no change in the files and content type, FB API started rejecting the file.

In this PR, we are converting the audio recordings from Wav to Mp3 from frontend itself.
This commit is contained in:
Pranav
2024-05-07 23:10:54 -07:00
committed by GitHub
parent d649bd2dfd
commit 9977bcc093
5 changed files with 87 additions and 11 deletions

View File

@@ -62,6 +62,7 @@
"idb": "^7.1.1",
"ionicons": "~2.0.1",
"js-cookie": "^3.0.5",
"lamejs": "1.2.0",
"libphonenumber-js": "^1.10.24",
"markdown-it": "^13.0.2",
"markdown-it-link-attributes": "^4.0.1",