Examples

Audio waveform examples

Explore playback, recording, plugins, and React integration. Each example includes a live demo and editable JavaScript.

Find your example

31 examples

Filter by topic
Basics

Waveform options

Explore the configuration options together and see how they change the player.

Open example
Customization

Bar waveforms

Build a bar-style audio player by changing bar width, spacing, and corner radius.

Open example
Basics

Your first waveform

Create an interactive audio waveform with just a container, an audio URL, and a few options.

Open example
Customization

Custom waveform rendering

Draw a waveform with a custom canvas rendering function.

Open example
Plugins

Volume envelope

Control volume over time by editing points on an audio envelope.

Open example
Basics

Playback events

Observe the events emitted while audio loads, plays, pauses, and seeks.

Open example
Experiments

FM synthesizer

Explore sound synthesis and waveform visualization with Web Audio.

Open example
Customization

Gradient waveforms

Apply Canvas gradients to waveform and progress colors.

Open example
Plugins

Hover time labels

Show the time under the pointer so users can preview a seek position before clicking.

Open example
Plugins

Waveform minimap

Keep an overview of the whole recording while working with a zoomed waveform.

Open example
Experiments

Multi-track audio

Explore several audio tracks arranged on a shared timeline.

Open example
Experiments

Pitch contour

Explore a pitch contour visualization alongside an audio waveform.

Open example
Advanced

Pre-decoded waveform peaks

Draw a waveform from supplied peaks and duration instead of decoding the whole recording to render it.

Open example
Frameworks

Shared React audio player

Share one player across a React interface instead of creating independent playback instances.

Open example
Frameworks

React waveform component

Create a waveform in React and connect playback state to component controls.

Open example
Plugins

Synchronized recording

Explore recording and waveform updates together in a synchronized interface.

Open example
Plugins

Microphone recording

Record audio from a microphone and display its waveform using the Record plugin.

Open example
Plugins

Audio regions and markers

Select, resize, and play segments of a recording using the Regions plugin.

Open example
Experiments

Detect silent passages

Explore silent sections of a recording using decoded audio and waveform regions.

Open example
Customization

SoundCloud-style player

Combine waveform styling and playback controls in a SoundCloud-inspired audio player.

Open example
Plugins

Audio spectrogram

Visualize the frequencies in a recording alongside the waveform.

Open example
Basics

Playback speed

Change the playback rate of an audio recording with a waveform as a visual reference.

Open example
Basics

Split audio channels

Render each audio channel as its own waveform for a stereo recording.

Open example
Customization

Style with CSS

Customize exposed waveform parts using CSS while keeping the player logic separate.

Open example
Plugins

Custom timeline labels

Customize the appearance and intervals of waveform timeline labels.

Open example
Plugins

Waveform timeline

Add time labels below a waveform so readers can orient themselves in a recording.

Open example
Basics

Video and waveform

Attach a waveform to a video element and keep seeking and playback synchronized.

Open example
Experiments

Vowel visualization

Explore a speech-analysis visualization using audio frequency information.

Open example
Advanced

Web Audio backend

Play audio with the Web Audio backend and explore its playback controls.

Open example
Plugins

Mouse-wheel zoom

Zoom into a waveform with the mouse wheel using the Zoom plugin.

Open example
Basics

Waveform zoom

Control waveform detail with a zoom slider and pixels per second.

Open example

Go from demo to project

Understand what makes it work.

Learn the lifecycle, audio loading, events, and plugins behind these examples.

Explore the documentation