Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
update repo
嘉渊5bc41aad6719
diff --git a/tests/test_sv_inference_pipeline.py b/tests/test_sv_inference_pipeline.pyindex 54ab5640b..95ca3ab5d 100644--- a/tests/test_sv_inference_pipeline.py+++ b/tests/test_sv_inference_pipeline.py@@ -37,12 +37,13 @@ class TestXVectorInferencePipelines(unittest.TestCase):same_cos = np.sum(enroll * same) / (np.linalg.norm(enroll) * np.linalg.norm(same))same_cos = max(same_cos - sv_threshold, 0.0) / (1.0 - sv_threshold) * 100.0logger.info("Similarity: {}".format(same_cos))+ assert int(same_cos) == 85# 对不同的说话人计算余弦相似度diff_cos = np.sum(enroll * different) / (np.linalg.norm(enroll) * np.linalg.norm(different))diff_cos = max(diff_cos - sv_threshold, 0.0) / (1.0 - sv_threshold) * 100.0logger.info("Similarity: {}".format(diff_cos))-+ assert int(diff_cos) == 0.0if __name__ == '__main__':unittest.main()