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

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()

Try it !

A version of the gryannote app is available in this Hugging Face space

Citation

TODO

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

Uploaded Source

Built Distribution

gryannote-0.1.1-py3-none-any.whl (360.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gryannote-0.1.1.tar.gz
  • Upload date:
  • Size: 326.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for gryannote-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c3c887a2485009ef9e8247fffa6184aabd3d3a446a84c27d955adead56abacf
MD5 e2fccd7bf82c8b6144fab776c8b6e981
BLAKE2b-256 466637b3abea5c99ad60682421150528f15ea7155d41da8cd336ed7e059c1b9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gryannote-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 360.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for gryannote-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 703fec007f90305a273072f43280ee31bd01f29a81bdfbe78e4260c11647218b
MD5 9d906b72bedf341dc95b3bfde2946ce9
BLAKE2b-256 b90e8c5b35b78d759ece101dacab02e9017810724385b2423202ba1fab249bdb

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