Automated speech dataset creator
225
stars
41
commits
Python
primary language
Jun 12, 2025
updated
A tool for identifying, isolating, and transcribing clean solo segments of a target speaker from multi-speaker audio recordings. Processes audio to extract only non-overlapped speech of a specific person using modern AI techniques.
NVIDIA GPU with 16GB VRAM
Install all required dependencies:
Python 3.10
FFmpeg
pip install -r requirements.txt
You'll need a Hugging Face access token which you can create at: https://huggingface.co/settings/tokens
Request access to the following gated repos:
python run_extractor.py
--input-audio "path/to/input_audio.wav"
--reference-audio "path/to/target_sample.wav"
--target-name "TargetName"
--token "hf_YourHuggingFaceToken"
--output-base-dir "path/to/output" # Output directory (default: ./output_runs)
--output-sr 44100 # Output sample rate in Hz (default: 44100)
--bandit-repo-path "repos/bandit-v2" # Path to Bandit-v2 repository
--bandit-model-path "models/checkpoint.ckpt" # Path to Bandit checkpoint file
--wespeaker-rvector-model "english" # WeSpeaker model for speaker ID (english/chinese)
--wespeaker-gemini-model "english" # WeSpeaker model for verification
--osd-model "pyannote/overlapped-speech-detection" # Overlap detection model
--whisper-model "large-v3" # Transcription model (default: large-v3)
--language "en" # Language for transcription (default: en)
--min-duration 1.0 # Minimum segment duration in seconds
--merge-gap 0.25 # Maximum gap between segments to merge
--verification-threshold 0.7 # Speaker verification strictness (0-1)
--concat-silence 0.25 # Silence between segments in output
--preload-whisper # Pre-load Whisper model at startup
--dry-run # Process only first minute (testing)
--debug # Enable verbose logging
--skip-bandit # Skip vocal separation stage
--disable-speechbrain # Disable SpeechBrain verification
--skip-rejected-transcripts # Don't transcribe rejected segments
--keep-temp-files # Keep temporary processing files
If you encounter any problems or have suggestions for improvements:
41 commits
Python
100.0%
Automated speech dataset creator
225
stars
41
commits
Python
primary language
Jun 12, 2025
updated
A tool for identifying, isolating, and transcribing clean solo segments of a target speaker from multi-speaker audio recordings. Processes audio to extract only non-overlapped speech of a specific person using modern AI techniques.
NVIDIA GPU with 16GB VRAM
Install all required dependencies:
Python 3.10
FFmpeg
pip install -r requirements.txt
You'll need a Hugging Face access token which you can create at: https://huggingface.co/settings/tokens
Request access to the following gated repos:
python run_extractor.py
--input-audio "path/to/input_audio.wav"
--reference-audio "path/to/target_sample.wav"
--target-name "TargetName"
--token "hf_YourHuggingFaceToken"
--output-base-dir "path/to/output" # Output directory (default: ./output_runs)
--output-sr 44100 # Output sample rate in Hz (default: 44100)
--bandit-repo-path "repos/bandit-v2" # Path to Bandit-v2 repository
--bandit-model-path "models/checkpoint.ckpt" # Path to Bandit checkpoint file
--wespeaker-rvector-model "english" # WeSpeaker model for speaker ID (english/chinese)
--wespeaker-gemini-model "english" # WeSpeaker model for verification
--osd-model "pyannote/overlapped-speech-detection" # Overlap detection model
--whisper-model "large-v3" # Transcription model (default: large-v3)
--language "en" # Language for transcription (default: en)
--min-duration 1.0 # Minimum segment duration in seconds
--merge-gap 0.25 # Maximum gap between segments to merge
--verification-threshold 0.7 # Speaker verification strictness (0-1)
--concat-silence 0.25 # Silence between segments in output
--preload-whisper # Pre-load Whisper model at startup
--dry-run # Process only first minute (testing)
--debug # Enable verbose logging
--skip-bandit # Skip vocal separation stage
--disable-speechbrain # Disable SpeechBrain verification
--skip-rejected-transcripts # Don't transcribe rejected segments
--keep-temp-files # Keep temporary processing files
If you encounter any problems or have suggestions for improvements:
41 commits
Python
100.0%