📄 ref_cof.1
字号:
.\" 1.1 ESI.TH REF_COF 1\-ESPS "5/21/87".ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech,Inc..SH NAMEref_cof - computes reflection coefficients for frames of sampled data..sp.SH SYNOPSIS.B ref_cof[.BI \-P " param_fil"][.BI \-x " debug_level"][.BI \-r " range"] [.BI \-n " nframes"] [.BI \-f " filtername"][.BI \-s " syncflag"] [.BI \-a " analysis_meth"].I in_file out_file.sp.SH DESCRIPTION.PP.I ref_coftakes an ESPS sampled data file,.I in_file,and produces an ESPS FEA_ANA analysis file.I out_filecontaining the reflection coefficients corresponding to one or more fixed-length sampled-data frames. The reflection coefficients, along with the computed values for.I raw_powerand.I lpc_power,are then stored in FEA_ANA records. No pitch pulse information iswritten to the file..PPBy default,the program uses the "standard" method for computing the autocorrelationfunction and the Levinson algorithm for computing the reflection coefficientsfrom the autocorrelation values, but other analysis methodsmay be specified by using the .B \-aoption or through use of the .I methodvariable in the parameter file. Note that the standardautocorrelation method may yield poor results when using a smallnumber (i.e. < 100) of data samples..PPIf the \fB\-f\fP option is used, the function will optionally filterthe data with the named pre-emphasis filter prior to performing the analysis.The filter coefficients are read from the parameter file and storedin the header of the output file..PPThe program can also optionally multiply the autocorrelation functionby a sinc function (\fB\-s\f\P option) prior to computing thereflection coefficients. This has the effect of reducing thespectral resolution if the spectrum of these coefficients is plotted..PPIf .I in_fileis "\-" then the input is read from the standard input and if.Iout_fileis "\-" then the output is directed to the standard output..sp.SH OPTIONSThe following options are supported:.TP.BI \-P " param_fil"uses the parameter file .I param_filrather than the default, which is.I params..br.sp.TP.BI \-x " debug_level"The program has two debugging levels: zero and non-zero..br.TP.BI \-r " first" : "last" "\fR [1:1000]".TP.BI \-r " first" :+ "incr"In the first form, a pair of unsigned integers specifies the range ofsampled data comprising the first frame. Either.I firstor.I lastmay be omitted; then the default value is used. If .IR last " = " first " + " incr,the second form (with the plus sign) specifies the same range as thefirst. If the specified range contains points not in the file, zerosare appended. Both forms of the option override the values of .I startand.I fsizein the parameter file. The \fB\-p\fP option overrides possible values in the parameter file. .TP.BI \-n " nframes [1]"Specifies the number of frames to process, and overrides the .I nframesvalue that may be in the parameter file. The default applies onlyif there is no value in the parameter file. .TP.BI \-a " method"Specifies the spectrum analysis method. Two methods are supported:"AUTOC" means the autocorrelation method [1] and STRCOV meansstructured covariance [2]. If neither is specified, and no value isin the parameter file, the autocorrelation method is used. Theoption value overrides any value in the parameter file. .TP.BI \-f " filtername"The program will perform pre-emphasis filtering with.I filternamethe name of the pre-emphasis zfunc in the parameter file.If this option is specified the program will read the numerator order anddenominator order from the parameters.I nsizand.I dsiz,respectively. The program then reads the numerator coefficients fromthe array.I filtername_numand the denominator coefficients from the array.I filtername_den..TP.BI \-s " n"The program will multiply the autocorrelation function by a sincfunction in order to reduce the spectral resolution of thecoefficients. The autocorrelation function is multiplied by thefunction.I sinc (x/n) before computing the reflection coefficients. In the frequencydomain this has the effect of convolving the spectrum with a boxcarfunction of width.I "f\ds\u/n,where.I f\ds\uis the sampling frequency. The value of.I nis recorded in a header comment..SH ESPS PARAMETERSThe following parameters are read from the parameter file:.IP.I "start - integer".IPThe first point in the input sampled data file that is processed.A value of 1 denotes the first sample in the file. This is only read if the \fB\-r\fP option is not used. .sp.I "fsize - integer".IPThe number of data points used to compute each set of reflection coefficients.This is only read if the \fB\-r\fP option is not used. .sp.I "nframes - integer".IPThe number of input data frames to process and of output sets of reflection coefficients to produce. If no value is given in the file, a value of one is assumed. Both the parameter file value and the default valuemay be overrided by means of the \fB\-n\fP option. .sp.I "order - integer".IPThe number of reflection coefficients computed for each frame of input data.If no value is given in the file, a default value of 15 is used. .sp.I "nsiz - integer".IPThe number of filter coefficients in the numerator of the pre-emphasis filtertransfer function..sp.I "method - string".IPThe spectrum analysis method to use. The autocorrelation (AUTOC)and structured covariance (STRCOV) are currently supported..sp.I "dsiz - integer".IPThe number of filter coefficients in the denominator of the pre-emphasisfilter transfer function. A value of zero means that an FIR filter will be implementedand the denominator coefficient array need not be entered..sp.I "filtername_num - float array".IPThe numerator coefficients. They are specified in order starting with a\d0\u.The .I filternameis specified by the \fB\-f\fP option. .sp.I "filtername_den - float array".IPThe denominator coefficients. They are specified in order startingwith b\d0\u.The .I filternameis specified by the \fB\-f\fP option. .SH ESPS HEADERA new file header is created for the FEA_ANA file.The sampled data header from the input header is addedas a source in the output file header, and the command line is added as a comment. .PPThe program writes the usual values into the common part of the output header.In addition,.I ref_cofwrites the following values into the specified generic header itemsin the output file:.sp\fIorder_vcd\fP = 0.sp\fIorder_unvcd\fP = order.sp\fImaxpulses\fP = 1.sp\fImaxraw\fP = 1.sp\fImaxlpc\fP = 1.sp\fIfilters\fP = NO.sp\fIspec_rep\fP = RC;.spThe following generic header items are also set appropriately:.I "src_sf, start, nan, frmlen."If a pre-emphasis filter was used the sizes, zeros (numerator), and poles (denominator) are recorded in generic header items.I "filtername_siz, filtername_zeros, filtername_poles,"where \fIfiltername\fP is taken from the \fB\-f\fP option. .PPA generic header item \fIsinc_flg\fP is added to indicate whether ornot the \fB\-s\fP option was used. The corresponding value of.I n is recorded in the header comments.An item \fImethod\fPis added with the appropriate spectrum analysis method,and an indication of whether the DC component was removedprior to spectral analysisis added in the item \fIDC_removed\fR..sp.SH SUBROUTINES CALLED..brgetatal (3\-ESPS).sp.SH SEE ALSO.PPanaspec (1\-ESPS), plotspec (1\-ESPS), FEA_ANA (5\-ESPS), FEA (5\-ESPS),SD (5\-ESPS)..sp.SH BUGS.PPNone known..SH FUTURE CHANGES.PPThe program will be expanded to include other methods for calculating theautocorrelation function and the reflection coefficients than thosecurrently employed. .SH REFERENCES[1] L. R. Rabiner and R. W> Schafer, .I Digital Processing of Speech SignalsPrentice Hall, NJ. 1978.PP[2] J. P. Burg, .I et al.,"Estimation of Structured Covariance Matrices,".I Proceedings of the IEEE,April, 1982.sp.SH AUTHOR.PPBrian Sublett; modified for FEA_ANA files by John Shore; modified for structured covariance by David Burton
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -