Jupyter & Colab
pip install "signavis[widget]"Display a recording
Section titled “Display a recording”from signavis import Player
Player("bird.wav", viewMode="spectrogram")The player is displayed when the object is the last expression in a cell, as with a matplotlib figure.
Two-way annotations
Section titled “Two-way annotations”from signavis import AudioWorkbenchWidget
w = AudioWorkbenchWidget("bird.wav")w.set_annotations([{"start": 1.0, "end": 2.0, "species": "Turdus merula"}])wAnnotations drawn in the player are available in w.annotations.
Custom spectrograms
Section titled “Custom spectrograms”Player("bird.wav", spectrogram_data=spec) # 2D float32, frames × melsAlternatively, pass a pre-rendered image as spectrogram_image (PNG bytes, matplotlib figure, PIL image).