📄 amr_chk.csh
字号:
#!/bin/csh -fb## Unix shell script to check correct installation of AMR# speech encoder and decoder## $Id $if ("$1" == "-vad2") then set vad=2; shift;else if ("$1" == "-vad1") then set vad=1; shift;else set vad=1;endifif ("$1" == "unix") then set BASEin=spch_unx; if ($vad == 1) then set BASEout = $BASEin; else set BASEout = spch_un2; endifelse if ("$1" == "dos") then set BASEin = spch_dos; if ($vad == 1) then set BASEout = $BASEin; else set BASEout = spch_do2; endifelse echo "Use: $0 [-vad2] dos" echo " or $0 [-vad2] unix" exit -1;endif ./encoder -dtx -modefile=allmodes.txt $BASEin.inp tmp.codecho ""cmp tmp.cod $BASEout.codif ($status == 0) then echo "##################################################" echo "# AMR encoder executable installation successful #" echo "##################################################"else echo "#########################################################" echo "# \!\!\! ERROR in AMR encoder installation verification \!\!\!#" echo "#########################################################" exit -1endif./decoder $BASEout.cod tmp.outecho ""cmp tmp.out $BASEout.outif ($status == 0) then echo "##################################################" echo "# AMR decoder executable installation successful #" echo "##################################################"else echo "#########################################################" echo "# \!\!\! ERROR in AMR decoder installation verification \!\!\!#" echo "#########################################################" exit -1endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -