paddlespeech.t2s.frontend.g2pw.onnx_api module

Credits

This code is modified from 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)[source]

Bases: object

Methods

__call__(sentences)

Call self as a function.

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