Automatic Speech Recognition
pyannote.audio
pyannote
pyannote-audio-pipeline
audio
voice
speech
speaker
speaker-diarization
speaker-change-detection
voice-activity-detection
overlapped-speech-detection
Instructions to use aTrain-core/speaker-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use aTrain-core/speaker-detection with pyannote.audio:
from pyannote.audio import Pipeline pipeline = Pipeline.from_pretrained("aTrain-core/speaker-detection") # inference on the whole file pipeline("file.wav") # inference on an excerpt from pyannote.core import Segment excerpt = Segment(start=2.0, end=5.0) from pyannote.audio import Audio waveform, sample_rate = Audio().crop("file.wav", excerpt) pipeline({"waveform": waveform, "sample_rate": sample_rate}) - Notebooks
- Google Colab
- Kaggle
| dependencies: | |
| pyannote.audio: 4.0.0 | |
| pipeline: | |
| name: pyannote.audio.pipelines.SpeakerDiarization | |
| params: | |
| clustering: VBxClustering | |
| segmentation: $model/segmentation | |
| segmentation_batch_size: 32 | |
| embedding: $model/embedding | |
| embedding_batch_size: 32 | |
| embedding_exclude_overlap: true | |
| plda: $model/plda | |
| params: | |
| clustering: | |
| threshold: 0.6 | |
| Fa: 0.07 | |
| Fb: 0.8 | |
| segmentation: | |
| min_duration_off: 0.0 | |