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

Uploaded Source

Built Distribution

gryannote-0.1.2-py3-none-any.whl (323.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gryannote-0.1.2.tar.gz
  • Upload date:
  • Size: 430.2 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.2.tar.gz
Algorithm Hash digest
SHA256 b8ae746ddc4175e169a1cfe4092710d9b75fbda2d3c021eedac6cb4c93470cad
MD5 0fff5f5eceee4a95624f358934d1deab
BLAKE2b-256 44196dad95f53c00389b6bda5d457d477f7a9e5bb49f5c83ca363c54a200c996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gryannote-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 323.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23c3c98529327885775270227e6d9d5cf4e0797da5a1705d3ab38d535b813c66
MD5 85900e4db2a1b977bb99202e199704c1
BLAKE2b-256 7c0e64330b64789cb4f735bd59500753dba0928526d8ecc2f52f4233cb5ba468

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