From 30aa982bf29ceefaf52c0013c12c19adc57dea0e Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期四, 27 四月 2023 21:11:04 +0800 Subject: [PATCH] docs --- egs_modelscope/speaker_verification/TEMPLATE/README.md | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/egs_modelscope/speaker_verification/TEMPLATE/README.md b/egs_modelscope/speaker_verification/TEMPLATE/README.md index 957da90..f7b64ce 100644 --- a/egs_modelscope/speaker_verification/TEMPLATE/README.md +++ b/egs_modelscope/speaker_verification/TEMPLATE/README.md @@ -47,8 +47,8 @@ ``` Full code of demo, please ref to [infer.py](https://github.com/alibaba-damo-academy/FunASR/blob/main/egs_modelscope/speaker_verification/speech_xvector_sv-zh-cn-cnceleb-16k-spk3465-pytorch/infer.py). -#### API-reference -##### Define pipeline +### API-reference +#### Define pipeline - `task`: `Tasks.speaker_verification` - `model`: model name in [model zoo](https://alibaba-damo-academy.github.io/FunASR/en/modelscope_models.html#pretrained-models-on-modelscope), or model path in local disk - `ngpu`: `1` (Default), decoding on GPU. If ngpu=0, decoding on CPU @@ -57,7 +57,7 @@ - `sv_threshold`: `0.9465` (Default), the similarity threshold to determine whether utterances belong to the same speaker (it should be in (0, 1)) -##### Infer pipeline for speaker embedding extraction +#### Infer pipeline for speaker embedding extraction - `audio_in`: the input to process, which could be: - url (str): `e.g.`: https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/sv_example_enroll.wav - local_path: `e.g.`: path/to/a.wav @@ -71,7 +71,7 @@ - fbank1.scp,speech,kaldi_ark: `e.g.`: extracted 80-dimensional fbank features with kaldi toolkits. -##### Infer pipeline for speaker verification +#### Infer pipeline for speaker verification - `audio_in`: the input to process, which could be: - Tuple(url1, url2): `e.g.`: (https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/sv_example_enroll.wav, https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/sv_example_different.wav) - Tuple(local_path1, local_path2): `e.g.`: (path/to/a.wav, path/to/b.wav) -- Gitblit v1.9.1