⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 refcof.test

📁 speech signal process tools
💻 TEST
字号:
#! /bin/sh# @(#)refcof.test	3.7 1/6/93 ESI# test script for refcof echo ""echo "Creating SD file of alternating ones and zeros"echo "echo ""1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1"" | testsd -P/dev/null -a- alt.sd"echo "1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1" | testsd -P/dev/null -a- alt.sdecho "Compute reflection coefficients then back to autocorrelations"echo  "refcof -P /dev/null -o5 -p1:+9 -d alt.sd alt.rc"refcof -P/dev/null -o5 -p1:+9 -d alt.sd alt.rcecho "spectrans -m auto alt.rc alt.auto"spectrans -m auto alt.rc alt.autoecho ""echo "spec_params of alt.auto should be -.9, .8, -.7, .6, -.5"echo ""echo "psps -H -f spec_param alt.auto"psps -H -f spec_param alt.auto#now do with some other methods; can't use alt since it would #be unstableecho " "echo "Now generate sine wave (1500 Hz.), add some noise,"echo "and analyze by different methods"echo ""echo "testsd -P/dev/null -p1000 -f1500 -Tsine sine.sd"testsd -P/dev/null -p 1000 -f1500 -Tsine sine.sdecho "testsd -P/dev/null -p1000 -Tgauss - | addsd - sine.sd test.sd"testsd -P/dev/null -p1000 -Tgauss  - | addsd - sine.sd test.sdecho ""echo "The results of these analyses should be close to each other"echo ""set -xrm -f combo.rcrefcof -P/dev/null -r10:+799  -m autoc test.sd autoc.rccopysps autoc.rc combo.rcrefcof -P/dev/null -r10:+799 -m cov   test.sd cov.rccopysps cov.rc combo.rcrefcof -P/dev/null -r10:+799 -m burg  test.sd burg.rccopysps burg.rc combo.rcrefcof -P/dev/null -r10:+799 -m mburg test.sd mburg.rccopysps mburg.rc combo.rcrefcof -P/dev/null -r10:+799 -m fburg test.sd fburg.rccopysps fburg.rc combo.rcrefcof -P/dev/null -r10:+799 -m vburg test.sd vburg.rccopysps vburg.rc combo.rcrefcof -P/dev/null -r10:+799 -m strcov test.sd strcov.rccopysps strcov.rc combo.rcrefcof -P/dev/null -r10:+799 -m strcov1 test.sd strcov1.rccopysps strcov1.rc combo.rcset +xecho ""echo "The RC and power values should be close in psps output"echo "and the plots should be almost on top of each other."echo ""set -xxtext psps -H -f spec_param -f raw_power -f lpc_power combo.rc &me_spec -P/dev/null combo.rc combo.fspec plotspec combo.fspec &set +x sleep 5echo ""echo "Now we generate a sine wave with very low level of noise."echo "testsd -p 100 -l .5 -Tgauss - | addsd - sine.sd test2.sd"testsd -p100 -Tgauss -l .5 - | addsd - sine.sd test2.sdecho "The following analysis should show different results"echo "for FBURG (split lines) and STRCOV (right on)."echo "The warning about PREMATURE EXIT from struct_cov is OK."echo ""set -xrm -f combo2.rcrefcof -P/dev/null -r15:+25 -m fburg test2.sd fburg2.rccopysps fburg2.rc combo2.rcrefcof -P/dev/null -r15:+25 -m strcov test2.sd strcov2.rccopysps strcov2.rc combo2.rcpsps -H -f spec_param -f raw_power -f lpc_power combo2.rcme_spec -P/dev/null combo2.rc combo2.fspecplotspec combo2.fspec &set +xecho "Don't forget to clean up"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -