Sound
Plays audio files, and live sound or beeps sent by a running block.
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
| Input | Takes | What it is |
|---|---|---|
Audiodata | Files or Stream wav, mp3, ogg, flac, m4a, webm | Audio files, or live samples, sounds and beeps Takes several connections. |
Settings
| Setting | Default | What it does |
|---|---|---|
Stream channelchannel |
empty | Empty = every channel that carries sound |
Play new files by themselvesautoplay |
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
3D viewThe project's 3D view: draws whatever the project gives it (scenes, 3D files, live positions, robots with any number of joints, several at once, fleets, rockets, vehicles), with the models, textures and sounds of the project's assets; live while a run goes on, then replays; numbers, events and controls on top.CameraThe camera of the computer you are using: watch it, take pictures, record videos, and send frames to running blocks.ChartLines, areas, steps, points, bars or a histogram, from a table or a live stream.ControlsButtons, sliders, switches, text boxes and boards of cells that send commands to the blocks of a running run.GaugesDials or large numbers with the latest values of a live stream, a table or metrics.HeatmapA grid of values as colours: a matrix from a file or the latest one of a live stream.