Simple, fast, and efficient wrapper for libopusfile which allows you easily read .ogg
files from Python.
apt-get install libogg-dev libopus-dev libopusfile-dev
brew install opus opusfile libogg
When requirements have been installed:
git clone https://github.com/yutkin/jopus.git
cd jopus
pip install -r requirements.txt
pip install .
import jopus
# open file on file system
opus_file = jopus.open_file("/path_to_file.ogg")
# open file by URL
opus_file = jopus.open_url("https://hostname.com/opus_audio.ogg")
print(opus_file)