From 0bb67d8b8e09985d2275af497d8053ba479b455e Mon Sep 17 00:00:00 2001 From: xiongxinlei Date: Thu, 24 Mar 2022 16:55:23 +0800 Subject: [PATCH] add vector cli unit test, test=doc --- paddlespeech/cli/vector/infer.py | 2 +- tests/unit/cli/test_cli.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/paddlespeech/cli/vector/infer.py b/paddlespeech/cli/vector/infer.py index f1a0e79c..91974761 100644 --- a/paddlespeech/cli/vector/infer.py +++ b/paddlespeech/cli/vector/infer.py @@ -39,7 +39,7 @@ pretrained_models = { # The tags for pretrained_models should be "{model_name}[-{dataset}][-{sr}][-...]". # e.g. "ecapatdnn_voxceleb12-16k". # Command line and python api use "{model_name}[-{dataset}]" as --model, usage: - # "paddlespeech vector --task spk --model ecapatdnn_voxceleb12-voxceleb12-16k --sr 16000 --input ./input.wav" + # "paddlespeech vector --task spk --model ecapatdnn_voxceleb12-16k --sr 16000 --input ./input.wav" "ecapatdnn_voxceleb12-16k": { 'url': 'https://paddlespeech.bj.bcebos.com/vector/voxceleb/sv0_ecapa_tdnn_voxceleb12_ckpt_0_1_0.tar.gz', diff --git a/tests/unit/cli/test_cli.sh b/tests/unit/cli/test_cli.sh index 748e5608..ec9f8d13 100755 --- a/tests/unit/cli/test_cli.sh +++ b/tests/unit/cli/test_cli.sh @@ -28,3 +28,7 @@ paddlespeech tts --am tacotron2_ljspeech --voc pwgan_ljspeech --lang en --input # Speech Translation (only support linux) paddlespeech st --input ./en.wav + +# Speaker Verification +wget -c https://paddlespeech.bj.bcebos.com/vector/audio/85236145389.wav +paddlespeech vector --task spk --input 85236145389.wav -- GitLab