A sample MDN app that uses getUserMedia and MediaRecorder API for recording audio snippets, and The Web Audio API for visualizations.
You can play with the live demo.
Documentation:
- Using the MediaRecorder API: Explains in detail how the Web Dictaphone works.
- MediaRecorder API landing page: includes API reference and more
Thanks to Sole for the oscilloscope code.