Wavesurfer.js is an interactive waveform rendering and audio playback library, perfect for web applications.
A simple example