paddlespeech.cli.utils module

paddlespeech.cli.utils.cli_register(name: str, description: str = '') Any[source]
paddlespeech.cli.utils.download_and_decompress(archive: Dict[str, str], path: str) PathLike[source]

Download archieves and decompress to specific path.

paddlespeech.cli.utils.explicit_command_register(name: str, description: str = '', cls: str = '')[source]
paddlespeech.cli.utils.get_command(name: str) Any[source]
paddlespeech.cli.utils.load_state_dict_from_url(url: str, path: str, md5: Optional[str] = None) PathLike[source]

Download and load a state dict from url

paddlespeech.cli.utils.stats_wrapper(executor_func)[source]
paddlespeech.cli.utils.timer_register(command)[source]