paddlespeech.t2s.frontend.g2pw.onnx_api 模块

Credits

这段代码改编自 https://github.com/GitYCC/g2pW

class paddlespeech.t2s.frontend.g2pw.onnx_api.G2PWOnnxConverter(model_dir: PathLike = '/home/docs/.paddlespeech/models', style: str = 'bopomofo', model_source: Optional[str] = None, enable_non_tradional_chinese: bool = False)[来源]

基础: object

方法

__call__(sentences)

将自身作为函数调用。

paddlespeech.t2s.frontend.g2pw.onnx_api.predict(session, onnx_input: Dict[str, Any], labels: List[str]) Tuple[List[str], List[float]][来源]