offline_speech_enhancement_dpdfnet

Run offline speech enhancement with any of the supported 8, 16, or 48 kHz DPDFNet models listed in DPDFNet.

The example sets the new offline attenuation limit to 12 dB:

dpdfnet: OfflineSpeechDenoiserDpdfNetModelConfig {
    model: Some(args.model),
    attenuation_limit_db: 12.0,
},

Set attenuation_limit_db to 0.0 to disable the limit. Finite values must be in [0, 100]; see Offline attenuation limit for details.

Source file

rust-api-examples/examples/offline_speech_enhancement_dpdfnet.rs

How to run

The recommended way is to use the helper script(s) provided in rust-api-examples because they download or point to the required models and test files automatically when needed.

Helper script(s)

run-offline-speech-enhancement-dpdfnet.sh

./run-offline-speech-enhancement-dpdfnet.sh

Run it directly with Cargo

cargo run --example offline_speech_enhancement_dpdfnet -- --help