acf.1
来自「speech signal process tools」· 1 代码 · 共 548 行 · 第 1/2 页
1
548 行
.\" Copyright (c) 1987, 1990 Entropic Speech, Inc.; All rights reserved.\" @(#)acf.1 1.6 4/4/97 ERL.TH ACF \1-ESPS 11/10/90.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME".nf acf \- Transforms a data sequence into a set of acoustic features..sp.SH "SYNOPSIS".PP.B acf [.BI \-P " param"] [.BI \-{r,s} " range"][.BI \-x " debug_level"].I sd_file.I fea_file.sp.SH "DESCRIPTION".PP\fIAcf\fP takes a single channel FEA_SD file, readsframes of data,and produces acoustic features based on eachframe. The following acoustic features are supported:power, zero crossings, Fast Fourier Transform (FFT), autocorrelation, reflection coefficients, linear prediction coefficients (LPCs), cepstral coefficients derived from LPCs and directly from the FFT, log area ratios, and line spectral frequencies.Mel-warped cepstral features can be generated using the bilinear Z-transform.Parameters are read by\fIacf\fP from the default parameter file, \fIparams\fP,or the file specified by the \fB\-P\fP option. .PPThe initial point of the first frame is determined by the \fB\-r\fP option or by \fIstart\fP in the parameter file. The number of data points in each frame is \fIframe_len\fP and the initial points of any subsequent frames follow at equal intervals.I step.Thus the 3 cases.IR step " < " frame_len,.IR step " = " frame_len,and.IR step " > " frame_len,correspond to overlapping frames, exactly abutted frames,and frames separated by gaps..PPThe number of frames extractedis the minimum sufficient to cover a specified range of\fInan\fP points, given \fIframe_len\fP and \fIstep\fP..PPThe sampled data in each frame optionally may be windowed using awindow function specified by \fIwindow_type\fP in the parameter file. It is possible to store the windowed data frame can be stored in one of the fields in the FEA file..PPThe acoustic features used to form the records in \fIfea_file\fP are selected by the \fIflag\fP parameters in the parameter file. If a flag is set, e.g. an entry \fB int pwr_flag = 1;\fPappears in the parameter file, then the corresponding feature, in this case thepower in each frame, is computed and stored in \fIfea_file\fP. Full descriptionof the flag parameters appears below. Features are stored in separate fields in the FEA file, which are defined only for the selected features..PPThe output file, \fIfea_file\fP, is a tagged FEA file. If the Fast Fourier Transform is to be computed, \fIfea_file\fP is of feature-file subtype FEA_SPEC. The tags ineach record give the starting point of the frame in \fisd_file\fP..PPIf \fIsd_file\fP is "\-" then the input is read from the standard input and if\fIoutput\fP is "\-" then the output is directed to the standard output..PPNote that the menu-based X Windows program \fIxacf\fP(1-ESPS) provides an easy to use interface to \fIacf\fP..sp.SH "OPTIONS".PP.TP .BI \-P " param"Uses the parameter file \fIparam\fP rather than the default, which is \fIparams\fP..TP.BI \-{r,s} " first":"last".TP.BI \-{r,s} " first\-last".TP.BI \-{r,s} " first" :+ "incr" The \fB\-r\fP and \fB\-s\fP options specify the range of data to process.Only one of the two may be used. If \fB\-r\fP is used, thearguments are in numbers of samples. If \fB\-s\fP is used, the arguments are in seconds.In the first two forms, a pair of positive numbers specifies the range ofsampled data to analyze. If .IR last " = " first " + " incr,the third form (with the plus sign) specifies the same range as thefirst two forms. If \fIfirst\fPis omitted, the default is to begin processing at the first point in thefile. If \fIlast\fPis omitted, then the entire file is processed; \fIlast\fP cannot beomitted if reading from standard input.If the specified range contains points not in the input file, zerosare appended. Both forms of the option override the values of \fIstart\fP and \fInan\fPin the parameter file or ESPS Common file. If these options are notused, the range is determined from the ESPS Parameter or Common file if theappropriate parameters are present. If the \fB\-s\fP option is used,the field \fIrecord_freq\fP in the input header is used to translate the unitsin seconds to numbers of samples. If \fB\-s\fP is used and \fIrecord_freq\fP is undefined, or is 0, \fIacf\fP warns and exits..TP.BI \-x " debug_level" " \fR [0]"A positive value specifiesthat debugging output be printed on the standard error output.Larger values result in more output.The default is 0, for no output..sp.SH "ESPS PARAMETERS".PP\fIAcf\fP requires that a parameter file be present. If \fIacf\fPis called without the \fB\-P\fP option, the file \fIparams\fP mustbe present. If the \fB\-P\fP option is used, the specified file mustbe present. If the appropriate parameter file exists, the parameters listed below are read from it . .PPNote that some integer parametersare flags, e.g. \fIsd_flag\fP, \fIpwr_flag\fP. These flags determine whichacoustic features are stored in \fIfea_file\fP. If the value assigned to aflag parameter is \fB1\fP, the associated acoustic field is computed andstored in a field in the output record. If any valueother than \fB1\fP is assigned to a flag parameter, the acousticfeature associated with the flag is not stored in \fIfea_file\fP. Bydefault, no flags are set, so if a flag is not set explicitly in theparameter file, the associated acoustic feature will not be stored in\fIfea_file\fp ..PPThere are default field names for all the acoustic featues. These canall be changed using the field name parameters, e.g. \fIsd_fname\fP,\fIpwr_fname\fP. Unless otherwise noted, acoustic features have data typeREAL and dimension 1. .PPThe following parameters are read from the appropriate parameter file: .TP.I "sd_field_name \- string".IPSpecifies the name of the field in the input file \fIsd_file\fP whichcontains the sampled data. The default field name is "sd"..TP.I "units \- string".IPSpecifies whether the units of the parameters \fIstart\fP, \fInan\fP,\fIframe_len\fP, and \fIstep\fP are in seconds or samples. Thereare two valid values for \fIunits\fP: "seconds" or "samples". If"seconds" is specified, the header item \fIrecord_freq\fP is usedto convert the specified values in seconds to an equivalent number ofsamples. If "seconds" is specified and the field \fIrecord_freq\fP is not defined in the input header, or is 0, \fIacf\fP warns and exits. The default value is "samples". This parameter is not read ifthe \fB\-r\fP or the \fB\-s\fP option is used..TP.I "start \- float".IPThe first point in the input sampled data file that is processed. Thefirst sample in the file is denoted by 1 if \fIunits="samples"\fP orby 0 if \fIunits="seconds"\fP.If it is not in the parameter(or Common) file, the default is to begin processing at the beginingof the file. This parameter is not read if the \fB\-r\fP or the \fB\-s\fP option is used..TP.I "nan - float".IPThe total amount of data to process. If .I nanis 0 and the input is not a pipe, the whole file is processed.If \fInan\fPis 0 and the input is a pipe, \fIacf\fP warns and exits. If \fInan\fP is not specified, the value 0 is used as itsdefault.\fINan\fPis not read if the \fB\-r\fP or \fB\-s\fP option is used. .TP.I "frame_len \- float".IPThe length of each frame. A value of 0 indicates that a single frame of length.I nanis processed; this is also the default value in case.I frame_lenis not specified in the parameter file. .TP.I "step \- float".IPInitial points of consecutive frames are separated by this amount.If the option is omitted and no value is found in the parameter file,a default equal to.I frame_lenis used (resulting in exactly abutted frames). .TP.I "preemphasis \- float".IPIf \fIpreemphasis\fP is not equal 0.0, the first order preemphasisfilter.br (1 - (\fIpreemphasis\fP) z^(-1)) is applied to the data. Thepreemphasis factor must be between 0 and 1; if not, \fIacf\fP warnsand exits..TP.I "window_type \- string".IPThe data window to apply to the data.If the option is omitted and if no value is found in the parameter file,the default used is "RECT", for a rectangular window with amplitude one.Other acceptable values include"HAMMING", for Hamming, and "TRIANG", for triangular;see the window(3-ESPS) manual page for the complete list..TP.I "sd_flag \- integer" .TP.I "sd_fname \- string".IPIf \fIsd_flag\fP is set to 1, the frame of windowed data is stored in the output records of \fIfea_file\fP; by default, this is not done.If \fIsd_fname\fP is defined in the parameter file,its value specifies the name of the field in which the windowed datais stored. The default field name is "sd"..TP.I "pwr_flag \- integer".TP.I "pwr_fname \- string".IPIf \fIpwr_flag\fP is set to 1, the power in each windowed frame of datais computed and stored in \fIfea_file\fP. Thepower is the sum of the squared values of the windowed data divided bythe number of points in the current frame. The power of each frame isstored in the field "power", unless \fIpwr_fname\fP is assigned adifferent name..TP.I "zc_flag \- integer".TP.I "zc_fname \- string".IP If \fIzc_flag\fP is set to 1, the zero-crossings in each windowedframe of data are computed and stored in \fIfea_file\fP. Thezero-crossings are computed as in the program \fIzcross\fP(1-ESPS).The number of zero-crossings in each frame is stored in the field"zero_crossing", unless \fIzc_fname\fP is assigned a different name..TP.I "ac_flag \- integer".TP .I "ac_fname \- string".TP.I "ac_order \- int".IPIf \fIac_flag\fP is set to 1, the sample autocorrelation of thewindowed data frame for lags 0,...,\fIac_order\fP is found using \fIget_auto\fP(3-ESPS). The data is stored in the field "auto_corr", unless\fIac_fname\fP is assigned a different name. The output field hasdata type REAL and dimension \fIac_order\fP+1. If \fIac_order\fP=0,a warning message is printed..TP.I "rc_flag \- integer".TP.I "rc_fname \- string".IPIf \fIrc_flag\fP is set to 1, reflection coefficients arefound from the sample autocorrelation of the windowed data frame using \fIget_atal\fP(3-ESPS). The parameter \fIac_order\fP determines the number of reflectioncoefficients which are computed. If \fIac_order\fP=0, a warning
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?