Skip to main content

Simplified diarization pipeline using some pretrained models - audio file to diarized segments in a few lines of code

Project description

simple_diarizer

Open In Colab

Simplified diarization pipeline using some pretrained models.

Made to be a simple as possible to go from an input audio file to diarized segments.

import soundfile as sf
import matplotlib.pyplot as plt

from simple_diarizer.diarizer import Diarizer
from simple_diarizer.utils import combined_waveplot

diar = Diarizer(
                  embed_model='xvec', # 'xvec' and 'ecapa' supported
                  cluster_method='sc' # 'ahc' and 'sc' supported
               )

segments = diar.diarize(WAV_FILE, num_speakers=NUM_SPEAKERS)

signal, fs = sf.read(WAV_FILE)
combined_waveplot(signal, fs, segments)
plt.show()

Install

Simplified diarization is available on PyPI:

pip install simple-diarizer

Source Video

"Some Quick Advice from Barack Obama!"

YouTube Thumbnail

Pre-trained Models

The following pretrained models are used:

Demo

Open In Colab

It can be checked out in the above link, where it will try and diarize any input YouTube URL.

Other References

Planned Features

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

simple_diarizer-0.0.13-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file simple_diarizer-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_diarizer-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 e331532a63ca9cd9ce98157c2a5c48e9ed2fbee683757298f678dd954e13278e
MD5 52c1895510a8e995103390bdac3ad828
BLAKE2b-256 ee333f214ea395176ccd2be3de075d6e242c3eb70c729b9ae832a5f0b6958533

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