📄 foo
字号:
<HTML><BODY><PRE></PRE><H2>NAME</H2><PRE> me_spec - Generate maximum-entropy spectra from parameter vectors.</PRE><H2>SYNOPSIS</H2><PRE> <STRONG>me_spec</STRONG> [ <STRONG>-n</STRONG> <EM>num</EM>_<EM>freqs</EM> ] [ <STRONG>-o</STRONG> <EM>max</EM>_<EM>order</EM> ] [ <STRONG>-r</STRONG> <EM>range</EM> ] [ <STRONG>-</STRONG> <STRONG>x</STRONG> <EM>debug</EM>_<EM>level</EM> ] [ <STRONG>-G</STRONG> ] [ <STRONG>-P</STRONG> <EM>params</EM> ] <EM>input</EM> <EM>output</EM>.<EM>spec</EM></PRE><H2>DESCRIPTION</H2><PRE> <EM>Me</EM>_<EM>spec</EM> reads spectral parameters and other information from the input file and generates a corresponding spectral record file containing logarithmically scaled (in dB) maximum- entropy spectral power densities. The spectral parameters may be reflection coefficients, autoregressive-filter coefficients, or any of several other types of parameters; see <EM>spec</EM>_<EM>rep</EM> in the Parameters section and the documentation for <STRONG><A HREF="../man3.html/reps_rc.3.html">reps_rc(3-ESPS)</A></STRONG> for a list. Other required information includes the total power, the order of the spectrum, and the sampling frequency. These may be obtained from the input file, or defaults may be used; see the descriptions of the parameters <EM>max</EM>_<EM>order</EM>, <EM>samp</EM>_<EM>freq</EM>_<EM>name</EM>, <EM>samp</EM>_<EM>freq</EM>, <EM>power</EM>_<EM>field</EM>, and <EM>power</EM>. FEA_ANA(5 - ESPS) files are suitable as input and are specially pro- vided for, but any vector field of type <EM>float</EM> in any FEA file may be treated as a vector of spectral parameters; see <EM>spec</EM>_<EM>param</EM>_<EM>field</EM> and <EM>spec</EM>_<EM>rep</EM> in the Parameters section. The spectral values are computed for the specified number of frequencies, which must be at least 2. The frequencies are equispaced from 0 to half the sampling frequency. There is an option to compute the spectrum to a lower order than the number of coefficients present in the analysis records. One output record is written for each input record in the specified range. If ``-'' is given for the input file, the standard input is read. If ``-'' is given for the output file, the standard output is written to. The output file can be plotted using the <STRONG><A HREF="../man1.html/plotspec.1.html">plotspec(1-ESPS)</A></STRONG> command.</PRE><H2>OPTIONS</H2><PRE> The following options are supported. Values in brackets are defaults. <STRONG>-n</STRONG> <EM>num</EM>_<EM>freqs</EM> [513] Compute spectral values for this number of frequencies, equispaced from 0 to half the sampling frequency. Must be at least 2. <STRONG>-o</STRONG> <EM>max</EM>_<EM>order</EM> Maximum-entropy spectra of at most this order will be computed, even when more coefficients are available in the analysis records. The program converts the spec- tral parameters to reflection coefficients, carrying the computation out to the actual order of the parame- ter set contained in the record. In FEA_ANA files, when <STRONG>-G</STRONG> has not been specified, the actual order is given by the header item <EM>order</EM>_<EM>vcd</EM>, for records in which the <EM>frame</EM>_<EM>type</EM> field is VOICED or TRANSITION, and by <EM>order</EM>_<EM>unvcd</EM> in other records. In other files, or when <STRONG>-G</STRONG> has been specified, the actual order is assumed to be the length of the field (or subsequence of a field) named by the parameter <EM>spec</EM>_<EM>param</EM>_<EM>field</EM>. After converting the parameters, the program truncates the sequence of reflection coefficients to length <EM>max</EM>_<EM>order</EM> and computes a maximum_entropy spectrum from the trun- cated sequence. This procedure is <EM>not</EM> equivalent to simply truncating the original parameter set, for example by specifing a shorter field with <EM>spec</EM>_<EM>param</EM>_<EM>field</EM>. The latter pro- cedure may give incorrect results, depending on the spectral representation (see <EM>spec</EM>_<EM>rep</EM> in the Parameters section). For example, the <EM>m</EM> autoregressive filter coefficients of order <EM>m</EM> are not in general the same as the first <EM>m</EM> autoregressive filter coefficients of order <EM>n</EM> (where <EM>n</EM>><EM>m</EM>). <STRONG>-r</STRONG> <EM>first</EM><STRONG>:</STRONG><EM>last</EM> [(first in file):(last in file)] <STRONG>-r</STRONG> <EM>first</EM><STRONG>:+</STRONG><EM>incr</EM> In the first form, a pair of unsigned integers speci- fies the range of records to be processed. Either <EM>first</EM> or <EM>last</EM> may be omitted; then the default value is used. If <EM>last</EM> = <EM>first</EM> + <EM>incr</EM>, the second form (with the plus sign) specifies the same range as the first. If the specified range contains records not in the file, <EM>me</EM>_<EM>spec</EM> complains and quits. <STRONG>-x</STRONG> <EM>debug</EM>_<EM>level</EM> [0] If <EM>debug</EM>_<EM>level</EM> is non-zero, <EM>me</EM>_<EM>spec</EM> prints debugging messages and other information on the standard error output. <STRONG>-G</STRONG> Even if the input file is a FEA_ANA file, it is treated like any other FEA file. Special processing does not take place for determining filter order from voicing or computing average power from individual pulse powers and durations in multipulse FEA_ANA files. The parameter file must supply values for the parame- ters <EM>spec</EM>_<EM>param</EM>_<EM>field</EM>, <EM>spec</EM>_<EM>rep</EM>, <EM>power</EM>_<EM>field</EM> or <EM>power</EM>, and <EM>samp</EM>_<EM>freq</EM>_<EM>name</EM> or <EM>samp</EM>_<EM>freq</EM>. The filter order is taken to be the length of the field specified by <EM>spec</EM>_<EM>param</EM>_<EM>field</EM>; but see the discussion of the <STRONG>-o</STRONG> option. <STRONG>-P</STRONG> <EM>params</EM>[params] The name of the parameter file.</PRE><H2>ESPS COMMON</H2><PRE> The ESPS common file is not referred to.</PRE><H2>ESPS PARAMETERS</H2><PRE> The following parameters are read as required. <EM>num</EM>_<EM>freqs</EM> - <EM>integer</EM> The number of frequencies for which spectral values are computed. The value in the parameter file is not used if a value is specified with the command-line option <STRONG>-</STRONG> <STRONG>n.</STRONG> The default value and restrictions are as for the argument of the option. <EM>max</EM>_<EM>order</EM> - <EM>integer</EM> An upper bound on the order of the maximum-entropy spectra that will be computed. The value in the param- eter file is not used if a value is specified with the command-line option <STRONG>-o.</STRONG> See the discussion of <STRONG>-o</STRONG> in the Options section for the detailed interpretation of this parameter. <EM>start</EM> - <EM>integer</EM> The number of the first record to be processed, count- ing the first in the input file as number 1. The value in the parameter file is not used if a starting value is given with the <STRONG>-r</STRONG> option. The default value is 1. <EM>nan</EM> - <EM>integer</EM> The number of records to be processed. The value in the parameter file is not used if the <STRONG>-r</STRONG> option is specified. By convention, a value of 0 means that all records from the starting record through the end of the file are processed. This also the default behavior in case no value is specified either on the command line or in the parameter file. <EM>spec</EM>_<EM>param</EM>_<EM>field</EM> - <EM>string</EM> The field containing the spectral parameters. This must be explicitly specified in the parameter file unless the input file is a FEA_ANA file and the <STRONG>-</STRONG> <STRONG>G</STRONG> option is not specified. The default in that case is "spec_param". This parameter may be simply a field name, or it may be of the form <EM>field</EM>-<EM>name</EM><STRONG>[</STRONG><EM>grange</EM><STRONG>]</STRONG>, where <EM>grange</EM> is a general range specification accept- able to <STRONG><A HREF="../man3.html/grange_switch.3.html">grange_switch(3 -ESPSu)</A></STRONG>. The bracketed range
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -