get_resid.1
来自「speech signal process tools」· 1 代码 · 共 216 行
1
216 行
.\" Copyright (c) 1996 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)get_resid.1 1.10 4/1/97 ERL.ds ]W (c) 1996 Entropic Research Laboratory, Inc..TH GET_RESID 1\-ESPS 1/25/96.SH NAME.nfget_resid \- LPC inverse filtering, usually for speech residual analysis.fi.SH SYNOPSIS.Bget_resid[.BI \-P " param_file"] [.BI \-{pr} "range"] [.BI \-s " range"] [.BI \-a " normal"] [.BI \-i " int_const"] [.BI \-b " band_width"] [.BI \-n " nformants"] [.BI \-y] [.BI \-x " debug_level"].I in_signal.I in_coef.I out_signal.PP.SH DESCRIPTIONThis program applies a time-varying linear FIR filter to a signal.The FIR filter typically has coefficients equal to autoregressiveparameters of the signal computed using standard LPC analysis..PP\fIIn_signal\fR is a 16-bit PCM \fIFEA_SD\fP(5-ESPS) file of \fISHORT\fR data type. \fIOut_signal\fR is the output FEA_SD filtered signal in \fISHORT\fR data type.\fIIn_coef\fR may be a \fIFEA_ANA\fP(5-ESPS) file containing spectral parameters in the formof reflection coefficients (if the generic header item \fIspec_rep\fR is\fIRC\fR) or linear prediction coefficients (if \fIspec_rep\fR is AFC), asproduced by \fIrefcof\fP(1-ESPS) or \fItranspec\fP(1-ESPS)\fR.Or \fIIn_coef\fR may be a \fIFEA\fP(5-ESPS) file containing the field \fIfm\fR forformant frequencies and the field \fIbw\fR for formant bandwidths, as producedby \fIformant(1-ESPS)\fR.\fIGet_resid\fR converts the spectral information in \fIin_coef\fR topredictor coefficients for inverse filtering..PPIf \fIin_signal\fR is an unpreemphasized speech signal, and\fIin_coef\fR is its spectral representation, the resulting\fIout_signal\fR is an approximation of the second derivative of theglottal flow. The derivative of the glottal volume velocity isobtained via the \fB-i\fR option with \fIint_const\fR close to 1.0..PPIf \fIin_signal\fP or \fIin_coef\fP is "-", standard input is read.But the input files cannot both be standard input..PPIf \fIout_signal\fR is "-", then standard output is written..PP.SH OPTIONS.PPThe following options are supported:.TP.BI \-P " param_file \fR[params]\fP"uses the parameter file \fIparam_file\fR rather than the default, which is \fIparams\fR. .TP.BI \-r " first:last".TP.BI \-r " first:+incr"Determines the range of points from input file, \fIin_signal\fR. Inthe first form, a pair of unsigned integers gives the first and lastpoints of the range. If \fIfirst\fR is omitted, 1 is used. If\fIlast\fR is omitted, the last point in the file is used. The secondform is equivalent to the first with \fIlast = first + incr\fR. If norange is specified, the entire file is processed..TP.BI \-p " "Same as the \fB-r\fR option..TP.BI \-s " first:last".TP.BI \-s " first:+incr"Same function as the \fB-r\fR option, but specifies the range of input data \fIin_signal\fR in seconds.TP.BI \-a " normal \fR[0]\fP"A value of 1 indicates the output signal should be normalized to keepDC gain equal to 1. This is a good choice when the residual is to beused for epoch detection. A value of 2 results in normalization bythe filter gain. This would be appropriate if the residual is toeventually excite a synthesizer (e.g. \fIlp_syn\fR). A value of 0causes no normalization, which might be appropriate for other types ofsynthesizers..TP.BI \-i " int_const \fR[0]\fP"This is an integration constant between 0 and 1.0 that specifies thecoefficient of a first-order integrator to be applied to the inversedsignal to get an approximation of glottal flow derivative. If thespeech was preemphasized during the LPC analysis used to obtain theLPC coefficients, the correct value of \fIint_const\fR would usuallybe 0.0..TP.BI \-n " nformants"If the input \fIin_coef\fR contains formant frequencies, thisparameter specifies that only the first \fInformants\fR formantsshould used to inverse filter the speech. The default is to use allformants in the file..TP.BI \-b " bandwidth"If the input \fIin_coef\fR contains formants and their bandwidths, thisparameter specifies the formant bandwiths that should be used, rather thanthe default bandwidths stored in the file. If BW is the argument to the -boption, then \fIB[i] = int(BW) + F[i] * (BW - int(BW))\fR where\fIF[i]\fR are the formant frequencies, \fIint(BW)\fR is the integerpart of the parameter \fIBW\fR, and \fIB[i]\fR are the synthetic bandwidths..TP.BI \-yIf \fI-y\fR is specified thecoefficients and gains will switch abruptly at frame boundaries.Otherwise, the LP coefficients and gain will be linearlyinterpolated between frame centers. .TP.BI \-x " debug_level \fR[0]\fP"If .I debug_levelis positive,.I get_residprints debugging messages and other information on the standard erroroutput. The messages proliferate as the .I debug_levelincreases. If \fIdebug_level\fP is 0 (the default), no messages areprinted. .SH ESPS PARAMETERSThe following parameters options are supported..TP.I "start - integer".IPThe first point in the input sampled data file that is processed. Avalue of 1 denotes the first sample in the file. This is only readif the \fB\-p\fP option is not used. If it is not in the parameterfile, the default value of 1 is used. .TP.I "nan - integer".IPThe total number of data points to process. If .I nanis 0, the whole file is processed. .I Nanis read only if the \fB\-p\fP option is not used. (See the discussion under \fB\-l\fP)..TP.I "int_const - float".IPSee \fBOPTIONS\fR..TP.I "normal - int".IPSee \fBOPTIONS\fR..TP.I "band_width - float".IPSee \fBOPTIONS\fR. A value 0 means default..TP.I "nformants - int".IPSee \fBOPTIONS\fR. A value 0 means default..TP.I "interp - int".IPSee the \fB-y\fR option in \fBOPTIONS\fR. A value 1 is to interpolate;0 for otherwise..PP.SH ESPS COMMONNo common parameter processing is supported.PP.SH ESPS HEADERSThe standard generic header items, \fIstart_time\fR for the starting time in seconds and \fIrecord_freq\fR for sampling frequency, and all non-default parameters used for processing are written to the header. .PP.SH FUTURE CHANGES.PP.SH EXAMPLES.PPSee the example on the manual page for \fIepochs (1-ESPS)\fR..PP.SH ERRORS AND DIAGNOSTICS.PP.SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".nf\fIrefcof\fP(1-ESPS), \fIget_f0\fP(1-ESPS), \fIepochs\fP(1-ESPS), \fIfilter2\fP(1-ESPS), \fIformant\fP(1-ESPS), \fIformsy\fP(1-ESPS).fi.PP.SH AUTHORSDavid Talkin, Derek Lin.PP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?