⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 man.diff

📁 speech signal process tools
💻 DIFF
字号:
.\" Copyright (c) 1988, 1989, 1990 Entropic Speech, Inc.; All rights reserved.\" @(#)frame.1	1.6 4/1/97 ESI.TH FRAME 1\-ESPS 4/1/97.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech,Inc..SH NAMEframe - create FEA records containing windowed sampled data frames.sp.SH SYNOPSIS.B frame[.BI \-P " param"] [.BI \-f " sd_field_name"] [.BI \-{pr} " range"] [.BI \-l " frame_len"] [.BI \-S " step"] [.BI \-w " window_type"] [ .BI \-x " debug_level"].I input output.sp.SH DESCRIPTION.PP.I Frametakes a single channel ESPS FEA_SD (sampled data) file, which containsone sample per record, and produces an ESPS FEA file.I outputwith each record containing one frame of .I frame_lensamples (see.B \-loption).The initial point of the first frame is determined by the \fB\-p\fP option or by \fIstart\fP in the parameter file.  Initial points of any subsequent frames follow at equal intervals.I step(see.B \-Soption).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 framesis the minimum sufficient to cover a specified range of.I nanpoints (see.B \-poption), given \fIframe_len\fP and \fIstep\fP.  The last frame in each filemay overrun the range, in which case a warning is printed.  If a frameoverruns the end of a file, it is filled out with zeros..PPThe sampled data in each frame optionally may be windowed using awindow function specified by the \fB\-w\fP option or by \fIwindown_type\fP in the parameter file.  To defer window processing, use \fIwindow\fP (1\-\s-1ESPS\s+1).  .PPThe output file is not of any special feature-file subtype.It is tagged FEA file containing a .I floatvector field of sampled data of length .I frame_len.By default, the field name is "sd", but this can be changed with the \fB\-f\fP option.  The tags in each record give thestarting point of the frame in \fIinput\fP.  .PPIf .I inputis "\-" then the input is read from the standard input and if.Ioutputis "\-" then the output is directed to the standard output..sp.SH OPTIONSThe following options are supported:.TP.BI \-P " param"uses the parameter file .I paramrather than the default, which is.I params..TP.BI \-f " sd_field_name\fR [sd]\fP" Specifies the name of the sampled data field in \fIoutput\fP..TP.BI \-{pr} " first" : "last".TP.BI \-{pr} " first\-last".TP.BI \-{pr} " first" :+ "incr"In the first two forms, a pair of unsigned integers 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 .I firstis omitted, the default value of 1 is used.  If .I lastis omitted, then the entire file is processed.If the specified range contains points not in the file, zerosare appended. Both forms of the option override the values of .I startand.I nanin the parameter file or ESPS Common file.  If the \fB\-p\fP option or\fB-r\fP options are not used, the range is determined from the ESPSParameter or Common file if the appropriate parameters are present.Note that \fB-r\fP is a synonym for \fB-p\fP.  .TP.BI \-l " frame_len" "\fR [0]"Specifies the length of each frame.If the option is omitted, the parameter file is consulted.A value of 0 (from either the option or the parameter file)indicates that a single frame of length.I nan(see.BR \-p )is processed;this is also the default value in case.I frame_lenis not specified either with the.B \-loption or in the parameter file..TP.BI \-S " step" "\fR [" frame_len "\fR]"Initial points of consecutive frames differ by this number of samples.If the option is omitted, the parameter file is consulted,and if no value is found there, a default equal to.I frame_lenis used (resulting in exactly abutted frames).  (The same defaultapplies if \fIstep\fP is given a value of 0).  .TP.BI \-w " window_type" "\fR[RECT]"The name of the data window to apply to the data in each frame beforecomputing reflection coefficients.  If the option is omitted, theparameter file is consulted, and if no value is found there, thedefault used is a rectangular window with amplitude one.  Possiblewindow types include rectangular ("RECT"), Hamming ("HAMMING"),Hanning ("HANNING"), cosine ("COS4"), and triangular ("TRIANG"); seethe window(3-ESPSsp) manual page for the complete list..TP.BI \-x " debug_level" "\fR [0]"A positive value specifies that debugging output be printed on thestandard error output.  Larger values result in more output.  Thedefault is 0, for no output..br.SH ESPS PARAMETERS.PPThe parameter file is not required to be present, as there are default parameter values that apply.  If the parameter file does exist, the following parameters are read:.TP.I "sd_field_name \- string".IPThis is the name of the sampled data field created in \fIoutput\fP.The default is "sd".  A parameter file value (if present) is overiddenby the \fB\-f\fP option.  .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 parameter(or Common) file, 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 "frame_len - integer".IPThe number of points in each frame.  This parameter is not read if the.B \-loption is specified.  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 specified neither with the.B \-loption nor in the parameter file..TP.I "step \- integer"Initial points of consecutive frames differ by this number of samples.This parameter is not read if the.B \-Soption is specified.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 "window_type \- string"The data window to apply to the data.This parameter is not read if the command-line option.B \-wis specified.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-ESPSsp) manual page for the complete list..PPThe values of parameters obtained from the parameter file are printedif the environment variable ESPS_VERBOSE is 3 or greater.  The defaultvalue is 3..SH ESPS COMMON.PPESPS Common is read provided that Common processing is enabled and that the .I filenameentry in Common matches .I input,in which case parameters present in Common override values fromthe parameter file, which in turn may be overriden by commandline options (see the discussion in ESPS PARAMETERS and undereach option).   Common is not read if .I inputis standard input.  If .I outputis not standard output and .I inputis not standard input, the Common parameters \fIfilename\fP (= input), \fIprog\fP (= frame), .I start,and.I nanare written to ESPS Common..PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off".  The default ESPS Common file is .espscom in the user's home directory.  This may be overidden by settingthe environment variable ESPSCOM to the desired path.  User feedbackof Common processing is determined by the environment variableESPS_VERBOSE, with 0 causing no feedback and increasing levels causingincreasingly detailed feedback.  If ESPS_VERBOSE is not defined, adefault value of 3 is assumed..SH ESPS HEADERA new file header is created for the FEA_ANA file.  The sampled data headerfrom the input header is added as a source in the output file header, andthe command line is added as a comment.  Another comment gives the name of the field created by \fIframe\fP.  The input file \fIinput\fP isset as the reference header for tags..PPThe program writes the usual values into the common part of theoutput header.  .I Framecreates and writes the following generic header itemsin the output file:.nf.spstart = \fIstart\fP (LONG)nan = \fInan\fP (LONG)frmlen = \fIframe_len\fP (LONG)src_sf = sample frequency of \fIinput\fP (FLOAT)step = \fIstep\fP (LONG)window_type = \fIwindow_type\fP (CODED) (not written for RECT window)start_timerecord_freq.fi.PPThe value written for \fIstart_time\fP is computed by taking the\fIstart_time\fP value from the header of the input file (or zero, ifsuch a header item doesn't exist) and adding to it the relative timefrom the first record in the file to the first record processed.  Thegeneric header item \fIrecord_freq\fP is the number of output recordsper second of input.fi.SH  SEE ALSO.PP.nf\fIpwr\fP(1\-\s-1ESPS\s+1), \fIzcross\fP(1\-\s-1ESPS\s+1),\fIwindow\fP(1\-\s-1ESPS\s+1), \fIplotsd\fP(1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1), \fIcopysps\fP (1\-\s-1ESPS\s+1), \fImake_sd\fP(1\-\s-1ESPS\s+1), \fIplotfield\fP(1\-\s-1ESPS\s+1), \fIFEA\fP(5\-\s-1ESPS\s+1), \fISD\fP(5\-\s-1ESPS\s+1), \fIget_sd_orecf\fP(3\-\s-1ESPS\s+1).nf.sp.SH BUGS.PPNone known..SH FUTURE CHANGES.PPAllow types other than float for the output field.  .SH  AUTHOR.PPMan page and program by John Shore (program based on the guts of cross_cor.c by Rod Johnson)

⌨️ 快捷键说明

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