Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides PyTorch speech toolkit for speech recognition, speaker verification, separation, diarization, enhancement, and text-to-speech.
59% 82%+23 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 13 of 22 without it.
When initializing SpeakerRecognition in SpeechBrain with from_hparams, what local savedir folder path is conventionally specified in the official snippet?
Uses pretrained_models/spkrec as the savedir parameter value.
3 of 3 safety checks passed
SpeechBrain is an open-source PyTorch speech processing toolkit covering ASR (speech-to-text), speaker recognition, speech separation, diarization, enhancement, language identification, emotion recognition, and text-to-speech. Provides pretrained models and recipe-based training.
uv pip install speechbrain
from speechbrain.inference.ASR import EncoderDecoderASR
asr_model = EncoderDecoderASR.from_hparams(
source="speechbrain/asr-crdnn-rnnlm-librispeech",
savedir="pretrained_models/asr")
transcript = asr_model.transcribe_file("audio.wav")
print(f"Transcript: {transcript}")
from speechbrain.inference.speaker import SpeakerRecognition
verification = SpeakerRecognition.from_hparams(
source="speechbrain/spkrec-ecapa-voxceleb",
savedir="pretrained_models/spkrec")
score, prediction = verification.verify_files("speaker1.wav", "speaker2.wav")
print(f"Same speaker: {prediction} (score: {score:.3f})")
Next to this one in the catalogue, plus more from the same author.