PCM Audio Debugger
A single-file HTML tool for debugging and testing PCM audio data. It combines an audio recorder (to generate Base64 PCM) and a packet player (to decode and play Base64 PCM).
Features
- Zero Dependencies: Just open the HTML file in any modern browser.
- PCM Generator: Record microphone input and convert it to Base64-encoded PCM.
- Supports various sample rates (8kHz - 48kHz).
- Supports Mono/Stereo.
- Supports 8-bit, 16-bit (signed), and 32-bit (float) formats.
- Packet Player: Decode and play back Base64 PCM strings.
- Paste multiple sequential packets to test streaming audio flows.
- Handles different PCM formats and sample rates.
Usage
- Open
pcm-audio-debugger.htmlin your web browser.
To Generate PCM Data
- Switch to the PCM Generator tab.
- Select your microphone.
- Configure the target Sample Rate, Channels, and Bit Depth.
- Press Record, speak, and then Stop.
- Copy the generated Base64 string.
To Play PCM Data
- Switch to the Packet Player tab.
- Paste your Base64 PCM string into the text area.
- (Optional) Click Add Packet to add more segments.
- Ensure the settings (Sample Rate, etc.) match your data.
- Click Decode & Play All Packets.