Recording audio format for whatsapp (Twilio)


Hello there!
I’ve just integrated Rocket Chat with Whatsapp using Twilio.
I can record an audio messages and send from my whatsapp to RC.
When I try to record, an audio message using rocket chat’s web interface (or app), Twilio will refuse my message due to Invalid Content-Type.
RC web is trying to send audio/mp3
RC app (ios) is trying to send audio/aac

Is there any way to change the default format to audio/mp4 or any other format allowed by twilio?

Twilio’s accepted mime types:

Thank you

Server Setup Information

  • Version of Rocket.Chat Server: 3.2.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.16.1
  • MongoDB Version: 3.6.14
  • Proxy:
  • Firewalls involved:

I don’t believe there is an option to change. If you have something in the middle you might be able to transcode with something like ffmpeg.