Skip to content

Repository files navigation

Podiarize

Podiarize (podcast + diarize) is a Python script that for extracting and stitching together the main speaker's segments from audio files, particularly useful for podcasts.

Description

Podiarize uses speaker diarization (provided by pyannote) to identify different speakers in an audio file, then extracts and combines the segments of the primary speaker(s). This can be useful for:

  • Condensing podcasts to focus on the main content
  • Removing advertisements or less relevant sections

This is not a finished project, it may work for you as-is, but some podcasts may not work properly with default settings

Features

  • Speaker diarization using pyannote.audio
  • Dynamic threshold calculation for speaker inclusion
  • Support for various input audio formats

Installation

  1. Clone this repository
  2. Install the required dependencies:
pip install -r requirements.txt
  1. Agree to the terms for pyannote
  2. Put a valid huggingface token in hftoken.txt (or change modify_podcast.py to use your token)
  3. Make sure you have ffmpeg and ffprobe in your path.

Running

python modify_podcast.py some_audio_file.mp3

This will output to output_some_audio_file.mp3.

License

The license in the LICENSE.md file applies only to the code in this repository. Be sure to review the license for pyannote and relevant models

About

Podiarize uses speaker diarization (provided by pyannote) to identify different speakers in an audio file

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages