spkrec-ecapa-voxceleb阈值怎么调整 #2906
SMK1311
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
from speechbrain.inference.speaker import SpeakerRecognition
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb",
savedir="speechbrain/spkrec-ecapa-voxceleb", run_opts={"device": device},)
score, prediction = verification.verify_files("speechbrain/yinpin/原声_0014.wav",
"speechbrain/yinpin/line_1.mp3") # Different Speakers
print('相似度得分:',score)
print('是否同一人',prediction) 我更改了speaker.py中verify_batch的threshold 但是没有用 我删除speaker.py代码仍然能运行这是为什么
Beta Was this translation helpful? Give feedback.
All reactions