Saturday, November 08, 2025

8-bit PCM Audio Player

 

https://claude.ai/public/artifacts/04b251dd-f000-4113-9da7-2e6ec663e6a4

make a sound player where a the users uploads an raw pcm 8 bit digital audio file and they are played by the browser.

I'll create a sound player that can load and play raw 8-bit PCM audio files in the browser.

8-bit PCM Audio Player
Interactive artifact 

I've created an 8-bit PCM audio player with the following features:

Features:

  • File upload - Drag and drop or click to upload raw 8-bit PCM files
  • Configurable sample rate - Set the sample rate (default 44100 Hz)
  • Mono/Stereo support - Choose between 1 or 2 channels
  • Playback controls - Play, pause, and stop buttons
  • Seek bar - Click to jump to any position in the audio
  • Volume control - Slider and mute button
  • Time display - Current time and total duration
  • Visual feedback - Animated waveform visualization

How it works:

  1. Upload your raw 8-bit PCM file (unsigned, 0-255 values)
  2. Set the correct sample rate and channel count for your file
  3. The player converts the 8-bit data to float32 format for the Web Audio API
  4. Use the controls to play, pause, seek, and adjust volume

The player assumes 8-bit unsigned PCM data where each byte represents one sample (0-255 maps to -1.0 to 1.0 in the audio buffer).



Audio files are available from :

https://github.com/johnsokol/AudioByte/tree/master/sound


BLU-TERT.SND   8000 hzCOKEISIT.M11  11 KhzIMF.M11  11,000 hzWC1.SND    8000hz 

No comments: