mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-11 13:31:07 +08:00
Add online speech denoiser for GTCRN and examples (#3324)
This PR adds online (streaming) speech denoising support for GTCRN alongside existing DPDFNet support, and updates multi-language bindings/examples to expose and validate the new capability.
This commit is contained in:
1 parent
6dd171df3c
commit
45fb4f5f0b
189 files changed
+5800
-860
No files matched your search
@@ -2,10 +2,11 @@
|
||||
|
||||
// This file shows how to use DPDFNet speech enhancement models in sherpa-onnx
|
||||
//
|
||||
// Download DPDFNet models from the official Hugging Face hub:
|
||||
// Download DPDFNet models from either:
|
||||
// https://github.com/k2-fsa/sherpa-onnx/releases/tag/speech-enhancement-models
|
||||
// https://huggingface.co/Ceva-IP/DPDFNet
|
||||
//
|
||||
// Use baseline.onnx, dpdfnet2.onnx, dpdfnet4.onnx, or dpdfnet8.onnx
|
||||
// Use dpdfnet_baseline.onnx, dpdfnet2.onnx, dpdfnet4.onnx, or dpdfnet8.onnx
|
||||
// for 16 kHz downstream ASR or speech recognition.
|
||||
// Use dpdfnet2_48khz_hr.onnx for 48 kHz enhancement output.
|
||||
|
||||
@@ -13,7 +14,7 @@ import com.k2fsa.sherpa.onnx.*;
|
||||
|
||||
public class NonStreamingSpeechEnhancementDpdfNet {
|
||||
public static void main(String[] args) {
|
||||
String model = "./dpdfnet2.onnx";
|
||||
String model = "./dpdfnet_baseline.onnx";
|
||||
OfflineSpeechDenoiserModelConfig.Builder builder =
|
||||
OfflineSpeechDenoiserModelConfig.builder()
|
||||
.setNumThreads(1)
|
||||
|
||||
Reference in new issue
Block a user