Gradio
pip install "signavis[gradio]"import gradio as grfrom signavis.gradio import SignaVisPlayer, player_value
with gr.Blocks() as demo: player = SignaVisPlayer() gr.Button("Show").click( lambda: player_value( "bird.wav", detections=[{"start": 3, "end": 6, "label": "Turdus merula", "confidence": 0.91}], select=(3, 6), # jump there and play ), outputs=player, )
demo.launch()
- Detections are shown in the table and on the spectrogram.
- Audio is streamed from disk, so multi-hour files are supported.
- No internet connection required; all assets ship with the package.