OptionalaudioOptionalautoIf autoScroll is enabled, keep the cursor in the center of the waveform during playback
OptionalautoplayPlay the audio on load
OptionalautoAutomatically scroll the container to keep the current position in viewport
OptionalbackendPlayback "backend" to use, defaults to MediaElement
OptionalbarVertical bar alignment
OptionalbarSpacing between bars in pixels
OptionalbarA vertical scaling factor for the waveform
OptionalbarMinimum height of bars in pixels
OptionalbarRounded borders for bars
OptionalbarIf set, the waveform will be rendered with bars like this: ▁ ▂ ▇ ▃ ▅ ▂
OptionalblobOverride the Blob MIME type
Required: an HTML element or selector where the waveform will be rendered
OptionalcspNonce for CSP if necessary
OptionalcursorThe color of the playback cursor
OptionalcursorThe cursor width
OptionaldragAllow to drag the cursor to seek to a new position. If an object with debounceTime is provided instead
then dragToSeek will also be true. If true the default is 200ms
OptionaldurationPre-computed audio duration in seconds
OptionalfetchOptions to pass to the fetch method
OptionalfillStretch the waveform to fill the container, true by default
OptionalheightThe height of the waveform in pixels, or "auto" to fill the container height
OptionalhideHide the scrollbar
OptionalinteractPass false to disable clicks on the waveform
OptionalmaxUse a fixed max peak value for normalization instead of calculating from the current data
OptionalmediaUse an existing media element instead of creating one
OptionalmediaWhether to show default audio element controls
OptionalminMinimum pixels per second of audio (i.e. the zoom level)
OptionalnormalizeStretch the waveform to the full height
OptionalpeaksPre-computed audio data, arrays of floats for each channel
OptionalpluginsThe list of plugins to initialize on start
OptionalprogressThe color of the progress mask
OptionalrenderCustom render function
OptionalsampleDecoding sample rate. Doesn't affect the playback. Defaults to 8000
OptionalsplitRender each audio channel as a separate waveform. By default, stereo audio is rendered as a single waveform with the left channel on top and the right channel on the bottom.
OptionalurlAudio URL
OptionalwaveThe color of the waveform
OptionalwidthThe width of the waveform in pixels or any CSS value; defaults to 100%
Audio rate, i.e. the playback speed