toep_solv.te
来自「speech signal process tools」· TE 代码 · 共 314 行
TE
314 行
#!/bin/sh## This material contains unpublished, proprietary software of # Entropic Research Laboratory, Inc. Any reproduction, distribution, # or publication of this work must be authorized in writing by Entropic # Research Laboratory, Inc., and must bear the notice: ## "Copyright (c) 1986-1990 Entropic Speech, Inc. # "Copyright (c) 1990-1991 Entropic Research Laboratory, Inc. # All rights reserved"## The copyright notice above does not evidence any actual or intended # publication of this source code. ## @(#)toep_solv.te 1.3 6/28/91 ESI/ERL# # Written by: # Checked by:# Revised by: # # Brief description: test file for toep_solv# echo "Testing toep_solv."echo "There should be no diff output."ESPS_VERBOSE=0export ESPS_VERBOSEecho "Testing toep_solv."echo "Making autocor file."atosps - test.fana <<aArDvArK{01 d02 6a1a03 Tue Jun 14 15:48:58 1988 04 1.5905 auto06 1.207 3/2/8853 johnson08 109 10b 80c 20d 110 test.sd12 auto -p1001:2000 -o4 test.sd test.ana
spstoa chk.tmp/test.ana asc.fana
13 test.sd521 2 0frame_len LONG 1 0 num_pulses LONG 1 0 frame_type CODED 1 0 NONE UNKNOWN VOICED UNVOICED SILENCE TRANSITIONvoiced_fraction FLOAT 1 0 raw_power FLOAT 1 1 lpc_power FLOAT 1 1 p_pulse_len FLOAT 1 1 spec_param FLOAT 4 1 @nan LONG 1 1000 @src_sf FLOAT 1 8000 @frmlen LONG 1 1000 @maxlpc LONG 1 1 @spec_rep CODED 1 [ NONE RC LAR LSF AUTO AFC CEP AF ] AUTO @order_vcd LONG 1 0 @maxraw LONG 1 1 @power CHAR 11 unwindowed @start LONG 1 1001 @filters CODED 1 [ NO YES ] NO @data_window CODED 1 [ WT_NONE WT_RECT WT_HAMMING WT_TRIANG ] WT_RECT @order_unvcd LONG 1 4 @step_size LONG 1 1000 @maxpulses LONG 1 1 {01 902 6a1a03 Tue Jun 14 15:08:15 1988 04 1.5905 testsd06 3.707 12/2/8753 johnson08 1f400b 112 testsd -Tgauss test.sd
42 043 2374.9644 800020 045 046 022 047 048 049 04a 14b 04c 04d 04e 056 seed 3 158 1234567 56 level 2 158 500 56 test_type 7 157 SINE57 GAUSS57 PULSES57 ASCII58 1 }}#Tag 1001#frame_len 1000 #num_pulses 0 #frame_type NONE #voiced_fraction 0 #raw_power 257909 #lpc_power 0 #p_pulse_len 0 #spec_param 0.000633705 0.0376719 -0.0212606 -0.00151718 aArDvArKecho "Making cross-correlation file."atosps - test.ccor << aArDvArK{01 d02 6a1a03 Tue Jun 14 16:26:28 1988 04 1.5905 cross_cor06 3/14/8807 1.253 johnson08 10b 50c 210 filt.sd10 test.sd12 cross_cor -p502:1501 -p1001:2000 -o-1:3 filt.sd test.sd test.ccor
spstoa chk.tmp/test.ccor asc.ccor
520 0 0tag1 LONG 1 0 tag2 LONG 1 0 cross_cor FLOAT 5 1 @start1 LONG 1 502 @start2 LONG 1 1001 @window_type CODED 1 [ WT_NONE WT_RECT WT_HAMMING WT_TRIANG ] WT_RECT @nan LONG 1 1000 @minlag LONG 1 -1 @maxlag LONG 1 3 @frame_len LONG 1 1000 @step LONG 1 1000 {01 902 6a1a03 Tue Jun 14 15:14:09 1988 04 1.5905 filter06 3.507 6/13/8853 johnson08 1d4c0b 110 test.sd10 test.filt12 filter -Ftest.filt -p501:8000 test.sd filt.sd
42 043 044 800020 800045 046 022 047 048 049 04a 14b 04c 04d 04e 040 5 0 1.2 2 1.6 1 0.2 {01 902 6a1a03 Tue Jun 14 15:08:15 1988 04 1.5905 testsd06 3.707 12/2/8753 johnson08 1f400b 112 testsd -Tgauss test.sd
42 043 2374.9644 800020 045 046 022 047 048 049 04a 14b 04c 04d 04e 056 seed 3 158 1234567 56 level 2 158 500 56 test_type 7 157 SINE57 GAUSS57 PULSES57 ASCII58 1 }{}}{01 902 6a1a03 Tue Jun 14 15:08:15 1988 04 1.5905 testsd06 3.707 12/2/8753 johnson08 1f400b 112 testsd -Tgauss test.sd
42 043 2374.9644 800020 045 046 022 047 048 049 04a 14b 04c 04d 04e 056 seed 3 158 1234567 56 level 2 158 500 56 test_type 7 157 SINE57 GAUSS57 PULSES57 ASCII58 1 }}#tag1 502 #tag2 1001 #cross_cor 320103 525894 425969 270520 55412.5 aArDvArKecho "Making file for comparison with output."cat <<aArDvArK >test.ascFile: <stdin>---Universal Part of Header---File type: FILT (Filter Coefficient File)Number of data records: unknown (input is pipe)Data is tagged.comment text: toep_solv test.fana test.ccor - Source files: test.fana test.ccorThere is no reference header.Record 1: tag = 0filt_func: nsiz = 5, dsiz = 0{ a0: 1.201 a1: 2.004 a2: 1.597 a3: 0.9978 a4: 0.1985} / { b0: 1.0}aArDvArKecho \"Running toep_solv. Diff output, if any, should show only small differences."toep_solv test.fana test.ccor - \ | fea2filt - - \ | psps - \ | egrep -v '^File header date:|^Produced by:|Hostname:path:|Machine type:' \ | diff test.asc -rm test.fana test.ccor test.ascecho "Done testing toep_solv."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?