speech signal process tools

源代码在线查看: rundemo.sh

软件大小: 24038 K
上传用户: yuyx2003
关键词: process speech signal tools
下载地址: 免注册下载 普通下载 VIP

相关代码

				#! /bin/sh				# @(#)rundemo.sh	1.5 12/1/92 ERL				# top level script for filter demo								# check syntax								case $# in				1)				        # any output files go in directory specified by $1					EDEMO_TEMP=$1					;;				*)					EDEMO_TEMP=$HOME/Edemo$$					echo "no temporary directory specified, will use $EDEMO_TEMP"					;;				esac								# create temp directory if necessary, check that it is writable								if test ! -d $EDEMO_TEMP				then				  mkdir $EDEMO_TEMP 2> /dev/null				fi								touch $EDEMO_TEMP/foo.$$ 2> /dev/null								if test -f $EDEMO_TEMP/foo.$$				 then				   rm $EDEMO_TEMP/foo.$$				 else 				   echo "$0: can't create $EDEMO_TEMP or can't write in it; exiting. "				   exit 1				fi								# make sure we have full path for temp directory								cur_dir=`pwd`				cd $demo_temp				demo_temp=`pwd`				cd $cur_dir								# tell everyone where the temp directory is 								export EDEMO_TEMP								# set various paths for ESPS and xwaves+								EBASE=`get_esps_base`								ESPS_MENU_PATH="./menus:$EBASE/lib/waves/menus"				export ESPS_MENU_PATH								ESPS_INPUT_PATH="./files:$EDEMO_TEMP:$EBASE/lib/files"				export ESPS_INPUT_PATH								ESPS_PARAMS_PATH="$EDEMO_TEMP:./params:$EBASE/lib/params"				export ESPS_PARAMS_PATH								WAVES_INPUT_PATH="./files:$EDEMO_TEMP:$EBASE/lib/waves/files"				export WAVES_INPUT_PATH								WAVES_MENU_PATH="./menus:$EBASE/lib/waves/menus"				export WAVES_MENU_PATH								WAVES_COMMAND_PATH="./wcommands:$EBASE/lib/waves/commands"				export WAVES_COMMAND_PATH								WAVES_COLORMAP_PATH="./colormaps:$EBASE/lib/waves/colormaps"				export WAVES_COLORMAP_PATH								WAVES_PROFILE_PATH="$EDEMO_TEMP:$EBASE/lib/waves"				export WAVES_PROFILE_PATH								# note, we put $EDEMO_TEMP on the path since play links and other 				# executables might go there								PATH="$EDEMO_TEMP:./bin:$PATH"				export PATH								USE_ESPS_COMMON=off				export USE_ESPS_COMMON								ESPS_VERBOSE=0				export ESPS_VERBOSE								# define a unique socket number for use by the demo'; from here on 				# in, both xwaves and send_xwaves will use this number.  								WAVES_PORT=`randport -S $$`				export WAVES_PORT								# put the $EDEMO_TEMP file in the .wave_pro so that it will be used for				# output files								sed -e s%@DEMO_TEMP@%$EDEMO_TEMP%  files/wave_pro > $EDEMO_TEMP/wave_pro								# start waves; 				# initialization is done via demoinit.WC as specified 				# in wave_pro								xwaves -WP 0 690 -w wave_pro -s &								# copy initial xpz filter into temp								cp files/xpz.filt $EDEMO_TEMP/xpz.filt				chmod +w $EDEMO_TEMP/xpz.filt								# try to set up for the right audio output								guess_audio $EDEMO_TEMP								# put up a README								xtext -Wp 0 180 -F README -t "About the filters demo" &								# now we put up a demo control panel								mbuttons -q1 -X1 -Y1 -w"Filters Demo" -i "filters" -b 1 filters.BM								# after the user quits fbuttons, we kill xwaves+								send_xwaves @demoquit.WC								# remove demo temp files								rm -f $EDEMO_TEMP/xpz.filt $EDEMO_TEMP/*.sd.*								rm -f $EDEMO_TEMP/*fspec* $EDEMO_TEMP/*.out																											

相关资源