0
votes

I declared the pathname of my mp3 audio file in my code as var pathname: String = "/..../file.mp3" (It's saved correctly, I can listen to it). Can I convert that file to an Opus audio file? Thank you very much

1

1 Answers

0
votes

I don't know about that specific error, but the Supported Media Formats page says Opus is only supported in Android 5.0+, and then only in the matroska container.

Make sure you're testing on newer Android, and you may need to demux manually to feed raw packets to the decoder.

If you need Opus support everywhere you can include the C library in your app and call it directly over JNI.