Coder Social home page Coder Social logo

Comments (7)

anthumchris avatar anthumchris commented on June 22, 2024

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.

sberniz avatar sberniz commented on June 22, 2024

from opus-stream-decoder.

anthumchris avatar anthumchris commented on June 22, 2024

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.

adminy avatar adminy commented on June 22, 2024

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.

anthumchris avatar anthumchris commented on June 22, 2024

@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.

adminy avatar adminy commented on June 22, 2024

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.

anthumchris avatar anthumchris commented on June 22, 2024

Nice one! Sounds like a fun project.

from opus-stream-decoder.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.