devjohnc / opus.net Goto Github PK
View Code? Open in Web Editor NEWOpus .NET Wrapper
License: MIT License
Opus .NET Wrapper
License: MIT License
Any change of adding multistream?
Thanks
Andy.
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:
Thanks in advance!
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.
Looks good, but can't get it to work when compiled for x64.
It seems that there isnt a .net opus port. Are there any plans for it ?
There is new version available: https://www.opus-codec.org/downloads/
Hello, trying to set 2 channels audio discontinuos
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.