yxl / opencore-amr-js Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Using this lib in nw.js where it is node env but the process.argv[1]
is undefined, causing an Error:
Uncaught TypeError: Cannot read property 'replace' of undefined
// hack to fix bug and it works
// Module["thisProgram"] = process["argv"][1].replace(/\\/g, "/");
Module["thisProgram"] = process["argv"][1] && process["argv"][1].replace(/\\/g, "/");
Any idea? Thanks!
如果能就太牛逼了!因为微信jssdk支持录音,然后录完就可以不用转码直接播放了!
不过刚才试了一下你的demo好像不行。。。
你好,作者,很感谢作者编译出来的JS版本供我们使用,目前发现在项目中仅支持amr-nb格式的解密,想咨询一下作者关于amr-wb格式的如何编解码,有看到他人文章说官方版是包含amr-wb格式的解码,请问作者是否有继续维护此项目的计划?
如何停止播放
Dear @yxl
This project is awesome.
Could I suggest that you publish this onto npm as a node module so that we can require in as an external package?
Currently, there is no such lib found on the site. https://www.npmjs.com/search?q=amr+js
Failed to construct 'AudioContext': number of hardware contexts reached maximum (6)
see: http://stackoverflow.com/a/25046735/3855809
https://github.com/yxl/opencore-amr-js/blob/master/js%2Fdemo.html#L132
var ctx = new AudioContext();
should be moved to outer scope to keep
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.