GithubHelp home page GithubHelp logo

addpipe / simple-vmsg-demo Goto Github PK

View Code? Open in Web Editor NEW
20.0 6.0 8.0 96 KB

A plain HTML/JS demo that uses vmsg (a modern WebAssembly version of LAME) to record and encode mp3 audio in the browser

Home Page: https://addpipe.com/blog/recording-mp3-audio-in-html5-using-vmsg-a-webassembly-library-based-on-lame/

JavaScript 79.34% HTML 5.27% CSS 15.39%
mp3 vmsg webassembly audio-recorder record-audio getusermedia

simple-vmsg-demo's Introduction

Plain HTML/JS audio recording demo using vmsg

A simple HTML5/JS demo that uses vmsg to record mp3 audio in the browser. Works on both mobile - including Safari 11 - and desktop.

As opposed to earlier JavaScript mp3 encoding solutions, vmsg uses a faster WebAssembly version of the latest LAME mp3 encoder (3.100 from october 2017).

All the vmsg demos are React based so I thought I'd do a plain HTML/JS one. I've taken great care to make the demo as easy to use on mobile and desktop.

Live demo: https://addpipe.com/simple-vmsg-demo/

Blog post: https://blog.addpipe.com/recording-mp3-audio-in-html5-using-vmsg-a-webassembly-library-based-on-lame/

simple-vmsg-demo's People

Contributors

octavn avatar remusnegrota avatar

Stargazers

 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

simple-vmsg-demo's Issues

TypeError: Unexpected response MIME type

I get the following error (on iOS devices):
TypeError: Unexpected response MIME type. Expected 'application/wasm'

I don't understand what is causing the error. Is there a workaround?

Galaxy S8 Support?

This is a great little plugin!

I am just wondering if there may be any recommendation for getting it to work with a Galaxy S8 phone (haven't tried it with more recent models). Works great on iPhone and desktop.

Error: getUserMedia is not implemented in this browser

Awesome plugin!

Works great on Desktop everywhere. However it appears that there's an issue with "getUserMedia" not being supported on mobile (iOS) Chrome and FireFox.
Chrome
FireFox

Any possibility you'd be willing to fix that?

Resample/Downsample audio

Is it possible to resample/downsample the audio and produce e.g. a 16bit/16000hz output mp3? I'm aware lame has a --resample option:
--resample <sfreq> sampling frequency of output file(kHz)- default=automatic

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.