mautrix / discord

A Matrix-Discord puppeting bridge
https://go.mau.fi/mautrix-discord
GNU Affero General Public License v3.0
253 stars 21 forks source link

Voice message support #109

Open VPaulV opened 1 year ago

VPaulV commented 1 year ago

Hi guys,

Is it possible to implement voice message support for the bridge? I would really appreciate if one could have a look. Currently when I get a voice message from Discord I get an Error processing voice message error.

Thank you!

Marcool04 commented 4 months ago

Hi all.

Just to add some info to this: when I created a voice message on Element for Android the other day in a Discord-bridged private chat, it generated an ogg file, and uploaded it. When the bridge sent this to discord, the person I was chatting with couldn't play it on their Discord app (Android also I think). However, when I opened Discord in the webapp in Firefox, the file had bridged properly, and I could play the ogg file perfectly. I then converted the file to mp3 with ffmpeg -i voice.ogg voice.mp3 and uploaded it again via Element and this time the recipient could play it fine. So I suspect the problem is one of the file format.

I don't know if the bridge can "ask" the matrix client to create mp3 files rather than ogg? Or if some transcoding needs to take place at some point? Or maybe we should push for ogg integration into the upstream Discord apps?

Best regards, Mark.