Skip to main content

Provide Gradio custom components to make the diarization-based audio annotation process easier

Project description

gryannote logo

gryannote: a speaker diarization labeling tool

gryannote is a collection of Gradio custom components focusing on the labeling of speaker diarization data. Integrated with the pyannote speaker diarization ecosystem, it allows to build web applications to load pretrained pyannote pipelines and customize their hyper-parameters, upload or record an audio file, process it with the pipeline, visualize and interact with its outputs, correct them if needed, and export the final annotation in RTTM format. Each of these components can be used independently from each other.

Available Gradio custom components

Here is the list of Gradio custom components integrated in gryannote

Installation

pip install gryannote

Usage

The following code snippet show how to use the gryannote_audio component with a pyannote pipeline in just a few lines of code. You can find a complete example that uses the three component in app.py script.

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

audio_labeling = AudioLabeling(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=audio_labeling, outputs=audio_labeling)

demo.launch()

Interface

Launching demo/app.py script will generate the following interface. This interface uses the three gryannote components. More details about these components and their interface can be found in their respective README.

RTTM annotations in RTTM component are dynamically updated according to the audio labeling made in the audio component.

Try it!

A gryannote app can be runned in this Hugging Face space

Citation

If you are using gryannote, please use the following citation:

@inproceedings{pages24_interspeech,
  title     = {Gryannote open-source speaker diarization labeling tool},
  author    = {Clément Pages and Hervé Bredin},
  year      = {2024},
  booktitle = {Interspeech 2024},
  pages     = {3650--3651},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gryannote-0.3.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

gryannote-0.3.0-py3-none-any.whl (296.1 kB view details)

Uploaded Python 3

File details

Details for the file gryannote-0.3.0.tar.gz.

File metadata

  • Download URL: gryannote-0.3.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for gryannote-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a59d91abfaea3bdc443d8d8267bd10bd2f0444e0e31d7f1bf096b39eb79f1afd
MD5 02fd23c2ce9ebb2d1420b9dda187efbe
BLAKE2b-256 e55ca4a67f7064791debe86acbdee2c3f102940515d14448d8d99f84c863043a

See more details on using hashes here.

File details

Details for the file gryannote-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gryannote-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 296.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for gryannote-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 954b137b452a4097e1c1b9717050d9df1d51287feabbc051eb7dd42828261b17
MD5 b5b182a794a2d39a358e9222a4f31762
BLAKE2b-256 ce544bbe3735769b2c07a08565020d96bf30f6c38d1a97dc85a768e1afde5028

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page