Comments (12)
Can you send PR to docs how to use lamejs?
from audio-recorder-polyfill.
Hm, interesting idea. I personally prefer Ogg Opus, but MP3 could be a easier way. Especially if we have JS pure codec.
from audio-recorder-polyfill.
That was my first thought, but by default Chrome will encode audio with opus codec, but for lamejs
to work we probably will have to feed wav
to it?
from audio-recorder-polyfill.
Yes, this would be wonderful to have. MP3 does seem to have much wider cross-browser compatibility.
WAV is also nice for cross-browser compatibility, but MP3 would be much nicer for storage space/compression.
Thanks for the link @coodoo, I'm going to try lamejs myself. I see it hasn't been maintained for a couple of years... 🤔
from audio-recorder-polyfill.
It is pretty easy to just pass the wave data from this polyfill into lamejs. Use wave-encoder.js with lamejs. I have been doing that and it works great.
from audio-recorder-polyfill.
@PetterS Yes, if you could that it would be great! 👏
from audio-recorder-polyfill.
I did it by parsning the WAV header which is far from the best solution.
I think a much better solution would be to follow wave-encoder.js
and create a mp3-encoder.js
as well.
from audio-recorder-polyfill.
Released 0.2 version. Thanks to @youkaclub for the work.
from audio-recorder-polyfill.
Hi guys, thanks for your polyfill and for mp3 encoder, I just wanted to ask is there any workaround to make lamejs options (kbps, bitrate and channel) to be customizable? They are now hardcoded to mono channel, 44100 rate and 128kbps. I think it's nice approach to be able edit them.
from audio-recorder-polyfill.
We can use this API:
MediaRecorder.encoder = require('audio-recorder-polyfill/mpeg-encoder')(opts)
from audio-recorder-polyfill.
@ai, cool! Will this work with es6 imports? And when you will can implement this? Thanks.
from audio-recorder-polyfill.
@dmitrybndar fixed at 0.3 with dual-publish
https://github.com/ai/audio-recorder-polyfill#mp3
from audio-recorder-polyfill.
Related Issues (20)
- Using in angular HOT 1
- Deprecated warning for the 'ScriptProcessorNode' HOT 8
- Microphone resource not released after stopping HOT 2
- MP3 Bitrate HOT 1
- MP3 encoder seems to record at ~90% normal speed? HOT 3
- this.requestData is not a function HOT 3
- No sound on iOS Safari. HOT 2
- Video support HOT 3
- No request for microphone in Chrome mobile browser. Uncaught (in promise) DOMException: Permission denied HOT 8
- No ES module in v0.3.7 npm package? HOT 1
- Content Security Policy Issue HOT 2
- How Convert base 64? HOT 1
- Integration into a Angular project HOT 1
- testing this on safari on guest mac on vmware HOT 1
- More complete OOG encode example HOT 7
- MimeType 'audio/wav' since no more supported by Safari Preview 117 HOT 2
- How to integrate with NEXT JS HOT 3
- Not working on iOS Safari HOT 3
- Stop event never dispatched HOT 3
- Using chunked recording only yields header with duration of the first blob. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-recorder-polyfill.