Audio Recorder
Audio Recorder
An in-browser recorder that uses the MediaRecorder API to capture audio and the Web Audio API to display the audio waveform live during recording.
Learning Objective
Understand the digital audio capture chain: microphone → sampling → encoding → file.
Experiment
Audio is processed inside your browser and is not sent to the server. The microphone is opened only when you press it.
Experiment Details
Prerequisites
- A browser that supports MediaRecorder
- Microphone permission (requested only when you press "Start Recording")
Inputs
The device microphone.
Method
When recording starts, microphone permission is requested. The live waveform is computed from an AnalyserNode, then the recording is collected in memory only and converted to a local Blob.
Results
Recording duration, recorder state, and a file that can be played, downloaded, and deleted.
Charts
Live audio waveform and a level indicator.
Scientific Interpretation
The file stays in the browser's memory until you download or delete it; the format of the resulting file is determined by the browser (usually WebM/Opus or MP4/AAC).
Questions for Reflection
- Why does the actual sampling rate differ from one device to another?
- What is the difference between lossy compression and uncompressed WAV?
Audio processing in the experiments takes place inside your browser. Audio, texts, and conversations are not saved on the server. Privacy Policy
