Comments (7)
If the stream is an Ogg Opus byte stream it should work. I think the internal opusfile
lib requires the Ogg header page to be appended first. I haven't tried out-of-sequence Ogg Opus files. Have you seen the Opus example at fetch-stream-audio?
from opus-stream-decoder.
from opus-stream-decoder.
Yes, it does client-side decoding. Happy to help, feel free to email me directly and I can make some time.
from opus-stream-decoder.
Its too slow for streaming, I had to save the decoded frames into a list and play the audio with a delay.
from opus-stream-decoder.
@adminy Have you seen the fetch-stream-audio example? You may consider posting a question on StackOverflow if you're encountering difficulties with your code so the community can possibly assist you.
from opus-stream-decoder.
No thanks @anthumchris, I am sticking with libopus of course, but I don't need programming help.
I found out something new from fetch-stream-audio
, which is constructing audio buffers ahead of time.
The reason I am saying it's slow is because I'm going to be using it in a voice call application, so for me the goal is to reduce latency as much as possible (dropping frames is normal), I think I'm almost there. I'll also be refactoring the code for mono channel sound.
As for the network infrastructure, it will be web sockets since it's a stream not a static file. So again, it is very important that I improve that latency.
from opus-stream-decoder.
Nice one! Sounds like a fun project.
from opus-stream-decoder.
Related Issues (15)
- Add seeking functionality to the decoder HOT 12
- React init path seems to be broken HOT 3
- Decoding opus stream receiving from camera stream. HOT 1
- Allow Usage from CDN HOT 1
- Upgrade to opusfile 0.12
- play raw opus packet HOT 2
- NodeJS Test Outputs Wrong Message
- Mono HOT 5
- Streaming audio output/live HOT 1
- play it in <audio> HOT 2
- "no such file" error when loaded as NPM package HOT 2
- Read granule position as signed 64-bit Int HOT 1
- Allow reuse of decoder for subsequent files
- _ HOT 1
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 opus-stream-decoder.