File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 55### Fixes
66
77- fix: fix support for ` numpy==2.x ` ([ @ibevers ] ( https://github.com/ibevers/ ) )
8+ - fix: fix support for ` speechbrain==1.x ` ([ @Adel-Moumen ] ( https://github.com/Adel-Moumen/ ) )
89
910### Breaking changes
1011
Original file line number Diff line number Diff line change 4040from pyannote .audio .pipelines .utils import PipelineModel , get_model
4141
4242try :
43- from speechbrain .pretrained import (
43+ from speechbrain .inference import (
4444 EncoderClassifier as SpeechBrain_EncoderClassifier ,
4545 )
4646
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pytorch_metric_learning >= 2.1.0
1111rich >= 12.0.0
1212semver >= 3.0.0
1313soundfile >= 0.12.1
14- speechbrain >= 0.5.14
14+ speechbrain >= 1.0.0
1515tensorboardX >= 2.6
1616torch >= 2.0.0
1717torch_audiomentations >= 0.11.0
Original file line number Diff line number Diff line change 1+ import tempfile
2+ import pytest
3+ from speechbrain .inference import EncoderClassifier
4+
5+
6+ @pytest .fixture ()
7+ def cache ():
8+ return tempfile .mkdtemp ()
9+
10+ def test_import_speechbrain_encoder_classifier (cache ):
11+ """This is a simple test that check if speechbrain
12+ EncoderClassifier can be imported. It does not check
13+ if the model is working properly.
14+ """
15+
16+ model = EncoderClassifier .from_hparams (
17+ source = "speechbrain/spkrec-ecapa-voxceleb" ,
18+ savedir = cache ,
19+ )
20+ assert isinstance (model , EncoderClassifier )
You can’t perform that action at this time.
0 commit comments