Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to play .opus audio file in android?

I'm developing an app for Recognize speech using google cloud speech APi and recording audio simultaneously. git link I tried to play recorded .opus audio file getting IOException W/System.err: java.io.IOException: setDataSource failed.

Any idea?? Thanks!!

like image 580
Swati Vishnoi Avatar asked Jun 08 '17 12:06

Swati Vishnoi


People also ask

Can I convert a .OPUS file to an MP3?

Convert your opus files to mp3 online & free Select the bitrate range for the Variable Bitrate (VBR) MP3 file. Note that some legacy audio players may display incorrect audio file duration if VBR mode is used, in this case use CBR mode instead. Set the constant bitrate for the audio track.

How do I open OPUS 2 files?

Download and install VLC from https://www.videolan.org/vlc/. You may need to right click the . opus file and select “Open With…” If VLC does not appear in the list, select “More Apps” on Windows 10 (More Options on Windows 8). Select VLC from the list and make sure the box “Always use this app to open .


1 Answers

A user on the android stack exchange mentioned being able to play opus files when they have a .ogg extension in newer versions of Android.

Rename your .opus files to .ogg.

like image 114
ThatGuyJames Avatar answered Sep 29 '22 17:09

ThatGuyJames