speechbrain_ecapa_voxceleb.py 427 Bytes
Newer Older
1
2
from sklearn.pipeline import make_pipeline

3
4
from bob.bio.base.algorithm import Distance
from bob.bio.base.pipelines import PipelineSimple
5
from bob.bio.spear.extractor.speechbrain_embeddings import SpeechbrainEmbeddings
6
from bob.pipelines import wrap
7

8
9
10
transformer_pipeline = make_pipeline(
    wrap(["sample"], SpeechbrainEmbeddings()),
)
11

12
13
14
pipeline = PipelineSimple(
    transformer_pipeline, Distance(average_on_enroll=True)
)