⚠️ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
A view that shows the waveform of an archetypes.AssetAudio and plays it back.
Audio plays while time is playing on a temporal timeline, starting from the time the asset was logged.
Properties
playback
Playback settings, such as volume and muting.
API reference links
Example
Use a blueprint to show and play an audio asset.
"""Use a blueprint to show and play an audio asset."""
import sys
import rerun as rr
import rerun.blueprint as rrb
if len(sys.argv) < 2:
print(f"Usage: {sys.argv[0]} <path_to_audio.[aac|flac|m4a|mp3|ogg|wav]>")
sys.exit(1)
rr.init("rerun_example_audio_view", spawn=True)
rr.set_time("time", duration=0.0)
rr.log("audio", rr.AssetAudio(path=sys.argv[1]))
blueprint = rrb.Blueprint(
rrb.AudioView(
origin="audio",
name="Audio",
playback=rrb.AudioPlayback(volume=0.8),
),
collapse_panels=True,
)
rr.send_blueprint(blueprint)