7 ms·
Web Spectrogram using your Mic
- toomim 6y agoThis doesn't work in Safari :( But it's very fun in Chrome! :)
- BugsJustFindMe 6y agoFor me it only worked in Firefox, neither Chrome nor Safari.
- exikyut 6y agoFor me (on Linux) I found (after figuring out how to translate "unmute the mic" into alsamixer-speak) that it did require a bit of fiddling with in order for the mic to pick up. Sometimes reloading the page worked. This was in Chrome.
- shaicoleman 6y agoOn Linux, it works on Firefox. On Chrome, it only worked after retrying half a dozen times.
- arthurcolle 6y agoIs it easy to recreate audio from, say, an image file of the spectrogram results?
- gbh444g 6y agoNo. But with enough effort and reasonable assumptions, you can restore most of the sound. It would be enough for speech, but not enough for high quality music.
- Zenst 6y agoYes. Demonstration of this being done: http://arss.sourceforge.net/examples.shtml http://arss.sourceforge.net/examples.shtml
- piannucci 6y agoTo add to what others have said-- The spectrogram image contains amplitude, but not phase information. (There are partial exceptions in special cases involving oversampling.) Conveniently, the human auditory system is primarily sensitive to the same information present in the spectrogram.
- high_byte 6y agoI wonder what phase sensitivity would sound (hear?) like
- JKCalhoun 6y agoI have been told we cannot distinguish phase. I have been told audio -> FFT —> audio (the kind of standard audio compression/decompression algorithms we use) lose that phase information and we can't tell. I have been told the "phase information" is the imaginary part of the complex numbers that are involved in an FFT.
- deleted 6y ago[deleted]
- bsmith0 6y agoYes, I built a really bad version of it a while ago: https://braeden.dev/waterfall/ https://braeden.dev/waterfall/ Click waterfall, and then click play when you have the audio on your computer playing outloud. If you play the audio outloud, your mic should be able to pick up a barely recognizable version of the picture (try the heart first to calibrate the "row delay"). https://github.com/braeden/waterfall https://github.com/braeden/waterfall Take a look at the example pictures on github ^, poor, but functional fully web version.
- arthurcolle 6y agoAmazing work! Knocked it out of the part. Have you checked out the other guy's example in the same subtree from the comment you posted on? Curious your take on that work. Keep it up!
- findthewords 6y agoThe bog-standard spectrogram you see in most programs is very lossy and ”smeary”. Clearer, sharper algorithms exist.
- fortran77 6y agohttps://www.mathworks.com/help/matlab/ref/ifft.html https://www.mathworks.com/help/matlab/ref/ifft.html
- tasty_freeze 6y agoI'm in my mid 50s. This web page showed me I can hear 16 Khz if it is loud enough, but not 17 Khz.
- qd6pwu4 6y agoI'm 29, same with you.
- borismus 6y agoIt’s not necessarily your ears. Could also be the frequency response of your speakers
- exikyut 6y agoThis made me curious and I went and found https://www.szynalski.com/tone-generator/ https://www.szynalski.com/tone-generator/. (Can strongly recommend ignoring this site's volume control and using your own for the lower frequencies!) Playing around with briefly unmuting my audio output for short bursts, I found I couldn't go past 17kHz too. I did need to judiciously turn the volume up though.
- pantelisk 6y agoit might be your speakers. Speakers are't neutral, they are optimized for a specific frequency response. Which means that the loudness might be "dropping significantly" rather than you not being able to listen to a specific frequency. Use pro headphones to properly test your hearing :) (that's also why expensive studio monitors cost so much - the "this song sounds good on any type of speakers, from in ear-headphones, to cheap car radio speakers, to pro headphones to on cheap television", master once listen/play everywhere, used to be a big problem in the audio world. (it might still be, but I left that world -- consider the cheap car radio speakers as the Internet Explorer 6 of the audio world and you get the idea!)
- cozzyd 6y agohah, I did not know the AudioContext could do FFTs. That's cool, although I'd have to see if it can be coerced to do that for arbitrary (non-audio-like) inputs. I've always used an emscriptened KissFFT for stuff like this...
- ncrmro 6y agoAn interesting thing in most audio classification machine learning, you train good ol image recognition on spectrograms.
- tandav 6y agoAnd thats weird, but there exists several papers which uses 1D - convolutions on raw audio
- ncrmro 6y agoAh I did say most, I also started investigating LSTM which I think might also offer some advances. But I found that learning about the types of models and how to actually train them to be the hardest part of this area.
- ben_w 6y agoThis implies it would be possible for deaf people to learn to hear by sight with an app on a Google Glass.
- ncrmro 6y agoI was speaking to a profesional sound engineer who was recording my friends band and he says he can in fact tell what a lot of things are based on the spectrogram in the DAW
- _Microft 6y agoAmazing, this sounds like watching the Matrix in its code form ;) https://youtu.be/MvEXkd3O2ow?t=39 https://youtu.be/MvEXkd3O2ow?t=39
- exikyut 6y agoFeature request: distinguish clicks from taps, and move the frequency indicator say 50-100px upward so it's not directly under my finger :P
- joren- 6y agoTo see the relation between spectrograms and fundamental frequency, based on this: https://0110.be/phd/presentation/spectrogram/live.html https://0110.be/phd/presentation/spectrogram/live.html
- RivieraKid 6y agoI'm using this: https://calebj0seph.github.io/spectro/ https://calebj0seph.github.io/spectro/
- mfbx9da4 6y agothat was fun!
- high_byte 6y agoI LOVE IT! you just made my toilet sitting much more enjoyable. because it's based on microphone it's interesting to see the echoes produces on multiples of the frequency, depending on the volume of my phone. simple design, works fast on mobile too. very cool.
- rjmunro 6y agoI get the following in the console, unless I click very fast as the page is loading: (index):27 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu https://goo.gl/7K7WLu There are also warnings about mixing insecure content, specifically the non-https version of Google fonts.
- greggman3 6y agonot the same thing but https://www.vertexshaderart.com/art/vsfaoEsuvT3yZrCRB https://www.vertexshaderart.com/art/vsfaoEsuvT3yZrCRB
- 1MachineElf 6y agoHey, this is really cool! There is a high pitched whistle I can do with my front teeth, and I was finally able to measure it using this tool. Running it on two laptops, both are giving me a measurements of 4 - 8 kHz. I learned how to make that whistle 10 years ago, and have been wondering how high pitched it was ever since.