Esacode

Docs / Blocks / Visualizers

Sound

Plays audio files, and live sound or beeps sent by a running block.

A view in the browser (JavaScript) Visualizers Version 1.0 Code you can open and adapt

How it works

Connect audio files (WAV, MP3, OGG, FLAC, M4A, WebM) to play them, or a block's live telemetry to hear it while it runs: chunks of samples (ctx.telemetry("audio", {"samples": [...], "rate": 16000}), values between -1 and 1), a short sound (ctx.telemetry("audio", {"audio": "data:audio/wav;base64,..."})) or a beep (ctx.telemetry("beep", {"tone": 880, "ms": 150})).

Browsers play sound only after a click: press Turn on sound once.

Inputs

InputTakesWhat it is
Audio
data
Files or Stream
wav, mp3, ogg, flac, m4a, webm
Audio files, or live samples, sounds and beeps Takes several connections.

Settings

SettingDefaultWhat it does
Stream channel
channel
empty Empty = every channel that carries sound
Play new files by themselves
autoplay
off
Volume (%)
volume
80
From 0 to 100

Where it runs

In the browser, on the flow's View page and in the run's results, in a sandbox without network access. It needs no worker.

More in Visualizers