Opus file downloaded via API has invalid data

Hi there,

We’re using /report/chat/sessions/:sessionId to retrieve team chat messages and any files shared. When you have a chat with someone and then make a voice message, that comes up as a file in the response. The documentation for this endpoint is here: Team Chat APIs

For voice messages, it seems the file format is a .opus file which we download since the response contains a download_url. We tried playing this downloaded opus file on Firefox, Safari, VLC and we even tried converting it with ffmpeg and sox. None of them were able to understand the format of the file, let lone play it, let lone convert it.

Can you please provide instructions on how we’re supposed to play the .opus files you’re directing us to download?

I’m happy to share responses and the file in question in private.

Hi @dlzoomdev
Thanks for reaching out to us.
I will try and replicate this on my end and get back to you with an update. I will DM you if i need more details please ( ZSEE-165547 internal ticket number for reference)

1 Like

Hi @elisa.zoom

Have you been able to replicate this? We can talk about this in private if you need more information.

Cheers,

Damien

Hi @dlzoomdev
Thanks for your patience here. Yes , I was able to replicate this issue on my end and reached out to our Engineering team and I do have an update.

Here are some options on how to play opus files:

On Windows:

VLC Media Player — fully supports .opus files.
Windows Media Player — needs codecs; not recommended unless you install a codec pack.

On Mac:

VLC Media Player — again, great and free.
IINA — modern Mac media player that supports .opus.

On Android:

Most modern phones already support `.opus** natively in their music player apps.
Or you can use apps like VLC for Android

On iPhone:

Use VLC for iOS or Documents by Readdle (which can play many file types).

Online:

You can upload and play .opus files directly in some browsers (Chrome and Firefox natively support .opus).
Or use an online converter to turn .opus into .mp3 or .wav if needed.

Hi @elisa.zoom

I’m using a mac here and I can’t play a downloaded opus file through either VLC, Firefox, Chrome or IINA. None of the options you provided have been able to play the OPUS file. Can your engineering team please get in touch with me so we can dig deeper into this issue?

Damien

Hey @elisa.zoom , did you hear back from them?

Edit: I just reached out to them, waiting to hear back.

1 Like