GithubHelp home page GithubHelp logo

opus.net's People

Contributors

devjohnc avatar ermau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opus.net's Issues

Multistream?

Any change of adding multistream?

Thanks

Andy.

Convert from OGG Data URL

Hello,

I am trying to use Opus.NET to convert from an OGG with Opus data into a WAV file.

My OGG data originates from the Firefox MediaReader API, which records audio from the computer's microphone. Here is a sample data URL. I transmit this data URL to my server, and I decode it into a byte array as follows.

// `recording` is the data URL string
var base64 = recording.Substring(1 + recording.IndexOf(","));
var bytes = Convert.FromBase64String(base64);
var decoder = OpusDecoder.Create(48000, 1);
int len = this.inputBytes.Length;
this.wavBytes = decoder.Decode(this.inputBytes, len, out len);

The base 64 decoding works fine. However, when the code gets to the decoder.Decode line, it throws the following exception:

Decoding failed - InvalidPacket

I have two questions:

  1. What is the best way to pass a data URL to the OpusDecoder such that the OpusDecoder will accept it?
  2. Once the OpusDecoder is formed, how do you save it as a WAV file?

Thanks in advance!

Demo throwing DLL exception

I am having trouble running the demo in the VS2015 debugger -- and forgive me as I am still new to C# and this is my first time back in the programmer's chair in 15 years, so I'm sure I must be missing something obvious -- but:

The demo is throwing a "DLL not found" exception in the wrapper even though I am (almost) certain the DLL is correctly placed as everything was unzipped "as-was."

I'm running Win10 on a 64-bit system, but don't think this could be the issue. Any help appreciated as without it I cannot utilize the encoder.

64 Bit

Looks good, but can't get it to work when compiled for x64.

Managed Opus

It seems that there isnt a .net opus port. Are there any plans for it ?

Demo not working in Stereo

I changed the demo code from this

        _encoder = OpusEncoder.Create(48000, 1, FragLabs.Audio.Codecs.Opus.Application.Voip);
        _encoder.Bitrate = 8192;
        _decoder = OpusDecoder.Create(48000, 1);

to this

        _encoder = OpusEncoder.Create(48000, 2, FragLabs.Audio.Codecs.Opus.Application.Audio);
        _encoder.Bitrate = 8192;
        _decoder = OpusDecoder.Create(48000, 2);

The result was choppy audio I have experimented with bitrates and other options with the same resut

My audio input is confirmed as stereo .. mono works perfectly

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.