Comments (2)
Hi there @stolpa4
When you've opened the file, the buffer has already been decoded. The buffer you're left with is the pure audio data -- basically a waveform expressed as byte values, ranging from 0 to 255.
It's really up to you what you wish to do with that data.
You can play it back using a library like PyAudio (which doesn't have wheels for Python 3.6+ unfortunately) or my other library PyOpenAL to play back the sound .
You can also use PyWave to save the decompressed audio as .wav
if you so desire.
It's not super easy to get something like that to work, so don't be too hard on yourself (:
Cheers
--Zuzu_Typ--
from pyogg.
@Zuzu-Typ
Gorgeous! Thank you for your answer and time, I'll try it out then.
from pyogg.
Related Issues (20)
- Release latest master
- opus_file.bytes_per_sample missing
- PyOggError: File 'test.ogg' couldn't be opened or doesn't exist. Error code: -132 HOT 2
- issue loading libs when using 32bit python on 64bit windows
- Documentation: AudioFile base class
- FLAC: Word size not necessarily correct HOT 1
- AttributeError: module 'pyogg.opus' has no attribute 'opus_int32' HOT 6
- On Windows, non-ascii path breaks VorbisFile HOT 1
- Docs: include simple oneliner for apt-get install of common dependencies on Linux HOT 2
- as_array() method for OpusFile is not available HOT 6
- Playing a file with PyAudio HOT 8
- About how to generate .ogg/opus file when i have data(binary file) by opus_encode(...) function C language API
- How install the pyogg dependency in Ubuntu 18.04 HOT 1
- OpusFile and OpusFileStream: Open Opus files from memory. HOT 4
- Memory leaks in PyOgg?
- OggOpusWriter: Incorrect duration when sample rate is not 48kHz.
- How to install pyogg 0.7 in termux? HOT 1
- Why `bytes_per_sample` for opus file is restricted to 16 bits?
- ERROR: Could not find a version that satisfies the requirement pyogg>=0.6.14a1 HOT 2
- Problems of loading opus library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyogg.