什么是在线录音机?
在线录音机是一款基于浏览器的录音工具,无需安装任何软件,打开网页即可录制音频。所有录音数据都在浏览器本地处理,不会上传到任何服务器,保障您的隐私安全。
核心功能:
- 实时波形可视化:录音时实时显示音频波形,直观感受声音强度和节奏
- 暂停与继续:支持录音过程中暂停和继续,灵活控制录制节奏
- 回放试听:录制完成后可直接在网页内回放试听,确认效果满意再保存
- 多格式导出:支持 WebM(体积小,适合分享)、WAV(无损音质,适合后期处理)和 MP3(兼容性最好,适合通用场景)三种格式
- 持久保存:录音列表使用 IndexedDB 存储,刷新页面后录音仍可回放和下载,最多保存 20 条
技术原理:
- MediaRecorder API:浏览器原生录音接口,支持录制、暂停、继续、停止操作
- Web Audio API:AudioContext + AnalyserNode 实现实时音频数据采集和波形绘制
- WAV 编码:通过 AudioContext.decodeAudioData 解码后,手动写入 44 字节 RIFF 文件头 + PCM 16bit 数据
- MP3 编码:使用 lamejs 库将 PCM 数据编码为 MP3 格式,默认 128kbps 码率,兼顾音质和文件体积
- IndexedDB:浏览器内置数据库,原生支持 Blob 存储,容量远大于 localStorage
使用要求:需要 HTTPS 环境和麦克风权限授权。Chrome、Firefox、Edge、Safari 14+ 均支持。Safari 不支持录音暂停功能。
What is the Online Audio Recorder?
The Online Audio Recorder is a browser-based recording tool that requires no software installation — just open the webpage and start recording. All audio data is processed locally in your browser and never uploaded to any server, ensuring your privacy.
Core features:
- Real-time Waveform Visualization: See audio waveforms in real time while recording,直观感受声音强度和节奏
- Pause and Resume: Pause and resume recording at any time for flexible control
- Playback Preview: Listen to recordings directly in the browser before saving
- Multiple Export Formats: WebM (small size, ideal for sharing), WAV (lossless, ideal for post-production), and MP3 (best compatibility, ideal for general use)
- Persistent Storage: Recordings are stored in IndexedDB, surviving page refreshes. Up to 20 recordings are kept.
Technical details:
- MediaRecorder API: Native browser recording interface supporting start, pause, resume, and stop
- Web Audio API: AudioContext + AnalyserNode for real-time audio data capture and waveform rendering
- WAV Encoding: Decodes via AudioContext.decodeAudioData, then manually writes a 44-byte RIFF header + PCM 16bit data
- MP3 Encoding: Uses the lamejs library to encode PCM data to MP3 format at 128kbps default bitrate
- IndexedDB: Built-in browser database with native Blob storage support and much larger capacity than localStorage
Requirements: HTTPS environment and microphone permission. Supported in Chrome, Firefox, Edge, and Safari 14+. Safari does not support pause/resume.