Skip to main content

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

Project description

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 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 version of the gryannote app is available in this Hugging Face space

Citation

TO BE UPDATED

@inproceedings{Pages24,
  author={Clément Pagés and Hervé Bredin},
  title={{gryannote open-source speaker diarization labeling tool}},
  year=2024,
  booktitle={Proc. INTERSPEECH 2024},
}

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.1.3.tar.gz (806.7 kB view details)

Uploaded Source

Built Distribution

gryannote-0.1.3-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gryannote-0.1.3.tar.gz
  • Upload date:
  • Size: 806.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for gryannote-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4b2623c3d67f0295b61cc591de90f30a5e20ec770944149bcd04da17a3c53f90
MD5 8916a8fed5bc8d550e01840c842e5fa0
BLAKE2b-256 cc43998b00ea11828f22326b41bd13694e0584d518fa94c80be0a1fb8d05c176

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gryannote-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 14b339ac1c063c60f16dfee5e2539adf867d9adf43a00da754e51a0e887b1c78
MD5 54faa72be721a949a06c6583f5b183dc
BLAKE2b-256 079b988f088476c1765de4dafd46ea2c9a072d1adde6923d72d5cd477f23605d

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