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 sceneA general 3D engine: draws the scene file it is given (models, lights, environment, cameras, effects, sounds, the 2D layer of text, gauges and controls), and moves it with the run's data, live or replayed.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.3D view (WebGPU)A high-quality real-time 3D view drawn on the viewer's own graphics card with WebGPU: physically based materials, image-based lighting, soft shadows, ambient occlusion, bloom and temporal anti-aliasing, chosen by what the graphics card can do; plays animated 3D files on a timeline.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.