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.4.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

gryannote-0.1.4-py3-none-any.whl (276.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gryannote-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f5855903db7b921c78664e6e7e1d6728efa198d93c01c84fec7b9487b57dbd38
MD5 4aa54dc0bb7db81b117bb591a0169948
BLAKE2b-256 0f2c9d3a7703a3033b7e644aef6edb31ea5622b1619f1bb286b8b5bc6b0e9505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gryannote-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 276.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f697917b8c1cb2d30940d10e77710759007904187aaed37c5524c0569541c6a3
MD5 9c613f6f28c3e7e077d34fc69446ebd1
BLAKE2b-256 be421b03b01754e938e93f42b444dd4feb48bda29276e503e5aed736c854c9fd

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