Closed zhanweiw closed 5 months ago
请看python-api-examples 目录。例子一看一大把
看了,没找到microphone + offline的例子。看下边API的定义,需要encoder + decoder + joiner三个onnx模型,但上边的命令行只有一个onnx模型嘛。
def from_transducer(
cls,
encoder: str,
decoder: str,
joiner: str,
tokens: str,
num_threads: int = 1,
sample_rate: int = 16000,
feature_dim: int = 80,
decoding_method: str = "greedy_search",
max_active_paths: int = 4,
hotwords_file: str = "",
hotwords_score: float = 1.5,
blank_penalty: float = 0.0,
modeling_unit: str = "cjkchar",
bpe_vocab: str = "",
debug: bool = False,
provider: str = "cpu",
model_type: str = "transducer",
)
我应用调用"from_paraformer"这个函数对吧?
对的
都有的。
请看examples
请问如下命令,想通过Python来调用,具体如何实现?谢谢!