logratios

来自「speech signal process tools」· 代码 · 共 105 行

TXT
105
字号
#! /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.## @(#)logratios	1.3   10/10/97     ESI/ERL## Written by:# Checked by:# Revised by: David Burton## Brief description:  Illustrates tool building with ESPS## This script takes three arguments:# $1 is the input range in points# $2 is the input sampled data file name# $3 is the output file nameif test $1x = xthen	echo " "	echo "Three parameters must be specified:"	echo "range in points, input file, and output file"	exit 1fiif test $2x = xthen	echo " "	echo "Three parameters must be specified:"	echo "range in points, input file, and output file"	exit 1fiif test $3x = xthen	echo " "	echo "Three parameters must be specified:"	echo "range in points, input file, and output file"	exit 1fiUSE_ESPS_COMMON=offESPS_VERBOSE=0export USE_ESPS_COMMONexport ESPS_VERBOSEEBIN=$ESPS_BASE/binif test `mach_type` = CONVEX then  echo This script will fail if you do not have write permission on this directory. else  if test ! -w .     then	echo "You do not have write permission in this directory."	exit 1  fifiecho " "# A combination of command line and parameter file # parameter processing is exhibited in this demonstration# script. Frame (1-ESPS) reads a parameter file called frm.params.rm -f $3rm  -f /usr/tmp/r$$$EBIN/filter $1 -F600lp.filt $2 - | tee lp.sd | \	$EBIN/frame -Pfrm.params - - |          \	$EBIN/pwr -l -f sd -f logpwr1 - - |     \	$EBIN/mergefea -flogpwr1 - /usr/tmp/r$$$EBIN/filter $1 -F1750bp.filt $2 - |tee bp.sd| \	$EBIN/frame -Pfrm.params - - |         \	$EBIN/pwr -l -f sd -f logpwr2 - - |    \	$EBIN/mergefea -flogpwr2 -  /usr/tmp/r$$$EBIN/filter $1 -F3000hp.filt $2 - |tee hp.sd | \	$EBIN/frame -Pfrm.params - - |          \	$EBIN/pwr -l -f sd -f logpwr3 - - |     \	$EBIN/mergefea -flogpwr3 -  /usr/tmp/r$$$EBIN/select -e \(logpwr2/logpwr1\)  /usr/tmp/r$$ | \	$EBIN/addfea -flogratio2to1 -c              \	"added logpwr2/logwr1 ratio" -  /usr/tmp/r$$ $3$EBIN/select -e \(logpwr3/logpwr1\) /usr/tmp/r$$ | \	$EBIN/addfea -flogratio3to1 -c "added logpwr3/logpwr1 ratio" -  $3$EBIN/select -e \(logpwr3/logpwr2\) /usr/tmp/r$$ | \	$EBIN/addfea -flogratio3to2 -c "added logpwr3/logpwr2 ratio" -  $3

⌨️ 快捷键说明

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