You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gryannote-audio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gryannote-audio

audio component with speaker annotations

0.1.6
pipPyPI
Maintainers
1

GRYANNOTE-AUDIO: AUDIO LABELING GRADIO COMPONENT

Installation

pip install gryannote-audio

Component usage example

import gradio as gr
from gryannote_audio import AnnotatedAudio
from pyannote.audio import Pipeline

annotated_audio = AnnotatedAudio(type="filepath", interactive=True)


def apply_pipeline(audio):
    pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1")
    annotations = pipeline(audio)
    return (audio, annotations)

demo = gr.Interface(apply_pipeline, inputs=annotated_audio, outputs=annotated_audio)

demo.launch()

Keyboard shortcuts

The following table summarizes available keyboard shortcuts for the AnnotatedAudio component:

ShortcutAction
SPACEToggle play / pause
ENTERCreate annotation at current time
SHIFT + ENTERSplit annotation at current time
A, B, C, ..., ZSet active label. If there is a selected annotation, update its label
LEFT or RIGHTEdit start time of selected annotation (if any) or move time cursor
SHIFT + LEFT or SHIFT + RIGHTSame, but faster
ALT + LEFT or ALT + RIGHTEdit end time of selected annotation
SHIFT + ALT + LEFT or SHIFT + ALT + RIGHTSame, but faster
TABSelect next annotation
SHIFT + TABSelect previous annotation
BACKSAPCEDelete selected annotation and select the previous one
DELETE or SHIFT + BACKSPACEDelete selected region and select the next one
ESCUnselect selected annotation and / or label
UP or DOWNZoom in/out

Keywords

gradio-custom-component

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts