bozhyk / broadvoice32-js-codec Goto Github PK
View Code? Open in Web Editor NEWBroadvoice32 audio codec compiled to js with Emscripten
Broadvoice32 audio codec compiled to js with Emscripten
Hello,
I use BroadVoice32OpenSource.v1.2.zip to test encoding and decoding,On windows10 or ARM Nordic nRF52840,
using 16bit 16Khz Continuous audio,And has been converted bin2c array.(Normal sound can be played through I2S)
Simplified code:
Reset_BV32_Encoder((struct BV32_Encoder_State*)enc_state);
Reset_BV32_Decoder((struct BV32_Decoder_State*)dec_state);
//for(int i=0;i<10000;i++) or one times
BV32_Encode((struct BV32_Bit_Stream*)enc_bs, (struct BV32_Encoder_State*)enc_state, data);
BV32_BitPack(oPackedStream, (struct BV32_Bit_Stream*)enc_bs);
//for(int i=0;i<10000;i++) or one times
BV32_BitUnPack(oPackedStream, (struct BV32_Bit_Stream*)dec_bs);
BV32_Decode((struct BV32_Bit_Stream*)dec_bs, (struct BV32_Decoder_State*)dec_state, data);
I get the result as shown in the figure.(the same on J-Link RTT Viewer log)
see the png and MSVC project code.
My question,why BV32 Encoding takes ten times as long as decoding?
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.