paddlespeech.cli.kws.infer module
- class paddlespeech.cli.kws.infer.KWSExecutor[source]
Bases:
BaseExecutor
Methods
disable_task_loggers
()Disable all loggers in current task.
execute
(argv)Command line entry.
get_input_source
(input_)Get task input source from command line input.
infer
()Model inference and result stored in self.output.
postprocess
(threshold)Output postprocess and return human-readable results such as texts and audio files.
preprocess
(audio_file)Input preprocess and return paddle.Tensor stored in self.input.
process_task_results
(input_, results[, ...])Handling task results and redirect stdout if needed.
show_rtf
(info)Calculate rft of current task and show results.
__call__