This pull request enhances the speech processing capabilities of sherpa-onnx by integrating DPDFNet models for speech enhancement. It introduces both offline and streaming denoising functionalities, supporting various model profiles and sample rates. This expansion provides users with more advanced and flexible options for improving audio quality in diverse applications, from real-time communication to post-processing of recordings.
vad-with-non-streaming-asr.py It shows
how to use VAD with a non-streaming ASR model for speech recognition from
a microphone
offline-speech-enhancement-gtcrn.py
It shows how to use the offline speech denoiser API with GTCRN or DPDFNet
models. Use 16 kHz DPDFNet models such as baseline.onnx,
dpdfnet2.onnx, dpdfnet4.onnx, or dpdfnet8.onnx for downstream ASR and
dpdfnet2_48khz_hr.onnx for 48 kHz enhancement output.