testfile
来自「speech signal process tools」· 代码 · 共 37 行
TXT
37 行
#!/bin/sh#@(#)testfile 3.4 6/23/98 ESIUSE_ESPS_COMMON=offexport USE_ESPS_COMMONecho "create parameter file: test.param"cat > test.param << EODfloat samp_freq = 8000;int filt_length = 9;int nbands = 2;float band_edge1 = 0;float band_edge2 = 2000;float band_edge3 = 4000;float band1_des = 1;float band2_des = 0;float band1_wt = 1;float band2_wt = 1;EODecho design low pass filter with 2000 Hz cutoffecho "wmse_filt -P test.param test.filt"wmse_filt -P test.param test.filt 2>/dev/nullecho print result to file: filter.testpsps -H test.filt > filter.testecho "diff filter.ref filter.test; there should be no differences"cat > filter.ref << EODRecord 1: num_size: 9, denom_size: 0re_num_coeff: 0: 0 -0.1061 0 0.31831 0.5 5: 0.31831 0 -0.1061 0 EODdiff filter.test filter.refecho " "echo To clean up, remove test.param test.filt filter.test filter.ref
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?