We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d19bf commit 8c2a464Copy full SHA for 8c2a464
libDF/src/capi.rs
@@ -24,7 +24,14 @@ impl DFState {
24
} else {
25
None
26
};
27
- let r_params = RuntimeParams::default_with_ch(channels).with_atten_lim(atten_lim);
+ let mut r_params = RuntimeParams::default();
28
+ r_params = r_params.with_atten_lim(atten_lim).with_thresholds(
29
+ -15.0f32, //min_db_thresh
30
+ 35.0f32, //max_db_erb_thresh
31
+ 35.0f32, //max_db_df_thresh
32
+ );
33
+ r_params = r_params.with_post_filter(0.0f32); //post_filter_beta
34
+ r_params = r_params.with_mask_reduce(ReduceMask::MAX); //reduce_mask
35
let df_params =
36
DfParams::new(PathBuf::from(model_path)).expect("Could not load model from path");
37
let m =
0 commit comments