Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Mic Level Display using HTML5/Javascript [closed]

Here's the idea:

A level meter that displays sound output from a user's mic.

The tricky part:

Having it work on a website using only HTML5/Javascript.

Any ideas?

like image 650
Reg Avatar asked May 23 '26 07:05

Reg


1 Answers

Have a look into the nascent GetUserMedia API which you can use to capture a stream from the mic. There's an example here which should be enough to get you started. Browser support is currently very limited.

The Web Audio API will allow you to process and visualise the stream but, similarly, browser support is very patchy. The example here visualises the volume on a signal from a static source, but I imagine it could be adapted to work with a signal captured via the GetUserMedia API.

like image 116
net.uk.sweet Avatar answered May 26 '26 00:05

net.uk.sweet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!