Skip to main content

PLAY_AUDIO

Plays audio in a lightweight floating player. Audio source can be provided as a data URL, http(s) URL, or raw base64 via cfg.in or via the default text input. The step mounts a closed Shadow DOM audio player and resolves when the player is closed by the user.

At a glance

  • Category UI
  • Version: 1.1.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional input path or variable name containing the audio source (data URL, http(s) URL or raw base64). If omitted, the default text input is used.NonefalsetrueNoneNone
autoplayAttempt autoplay on load. Note: browsers may block autoplay; in that case the player will show a hint and wait for user interaction.truefalsefalseNoneNone
showProgressShow progress / seek bar in the player.truefalsefalseNoneNone
showVolumeShow volume controls in the player.truefalsefalseNoneNone
showTimeDisplayShow current time and duration labels.truefalsefalseNoneNone
themeTheme of the player: 'dark' | 'light' or any valid CSS color string.darkfalsefalseNoneNone
positionPlayer anchoring position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center' | 'center'.centerfalsefalseNoneNone
loopIf true, loop playback.falsefalsefalseNoneNone
titleOptional title shown in the player title bar.NonefalsefalseNoneNone
mimeTypeOptional MIME type hint used when the provided input is raw base64 without a data URL header (e.g. "audio/mpeg").NonefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
textAudio source as data URL, http(s) URL, or raw base64. If omitted, reads from in config or default text input.Nonefalsefalse

Examples

Play base64 audio provided via SET

- step: SET
text: "data:audio/mpeg;base64,..."

- step: PLAY_AUDIO
in: "{{flowContext.text}}"
autoplay: true

Play audio from an HTTP URL

- step: PLAY_AUDIO
in: "https://example.com/audio.mp3"
autoplay: false

See Also

General Resources: