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

📄 window.1

📁 speech signal process tools
💻 1
字号:
.\" Copyright (c) 1987,1988,1990 Entropic Speech, Inc.; All rights reserved.\" @(#)window.1	1.8 1.8 ESI.TH WINDOW 1\-ESPS 3/16/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"window \- windows sampled data in FEA records .SH "SYNOPSIS".B window[.BI \-P " params"] [.BI \-f " sd_field"[.BI \-f " power_field"] [.BI \-r " range"] [.BI \-l " window_len"] [.BI \-w " window_type"] [.BI \-x " debug_level"].I "input output".SH "DESCRIPTION".PP.I Windowaccepts a FEA file \fIinput\fP containing a vector sampled-data fieldin each record.  It produces a FEA file \fIoutput\fP with recordscontaining the results of applying a fixed window to the inputsampled-data field.  Each field of sampled data may be thought of as aseparate frame of data, such as might be produced by \fIframe\fP(1\-\s-1ESPS\s+1).  The default name for the sampled data field in\fIinput\fP is \fIsd\fP, and the default name for the window field in\fIoutput\fP is \fIwind_sd\fP.  Both defaults can be changed by meansof the \fB\-f\fP option.  If the input is tagged or segment labelled,the relevant information is copied over to the output.  If \fIinput\fPis "\-", standard input is used for the input file.  If \fIoutput\fPis "\-", standard input is used for the output file..PPThe window is computed using \fIwindow\fP (3\-\s-1ESPS\s+1).  The fixed window length \fIwindow_len\fP must not be larger than the sizeof the sampled data field.  If it is smaller, zeros are filled to the end of the field.  All of the first \fIwindow_len\fP elements in each input field are processed.  If \fIinput\fP is segment-labelled, \fIwindow\fP warns if any of the \fIsegment_length\fP values are less than \fIwindow_len\fP.  (This may be intentional, so it would be too verbose to identify each such frame.  They may, however,be identified using \fIselect\fP (1\-\s-1ESPS\s+1).)  .PPNote that windowed FEA sampled data records can also be produced by \fIframe\fP (1\-\s-1ESPS\s+1).  \fIWindow\fP is intended for occasions when it is appropriate to defer windowing because of intermediate processing.  .SH OPTIONS.PPThe following options are supported:.TP.BI \-P " param" " \fR[params]\fP"Specifies the name of the parameter file..TP.BI \-r " start" : "last" "\fR [1:(last in file)]".TP.BI \-r " start" :+ "nan"In the first form, a pair of unsigned integers specifies the rangeof records to be processed.Either.I startor.I lastmay be omitted; then the default value is used.If.IR last " = " start " + " nan,the second form (with the plus sign) specifies the same range as the first.The \fB\-r\fP overrides the values of \fIstart\fP and \fInan\fP from the parameter file.  .TP.BI \-f " field_name" If this option is used once, it specifies the name of the sampled data field in \fIinput\fP.  If it is used twice, the second timeit specifies the name of the window field in \fIoutput\fP.  The default names for these fields are "sd" and "wind_sd", respectively. .TP.BI \-l " window_len" "\fR [0]"Specifies the window length.  If the option is omitted, theparameter file is consulted.  A value of 0 (from either the option or theparameter file) indicates that the window length is the size of the sampleddata field in \fIinput\fP.  This is also the default value in case.I window_lenis not specified either with the.B \-loption or in the parameter file..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, the parameterfile is consulted, and if no value is found there, the default used is arectangular window with amplitude one.  Possible window types includerectangular ("RECT"), Hamming ("HAMMING"), and triangular ("TRIANG"); seethe window(3-ESPSsp) manual page for the complete list of supportedwindow types..IPIf the \fB\-w\fP specifiedvalue is not a supported window type,it is assumed to be the name of an ascii file containingweighting function values. If no file by this name exists,\fIwindow\fP (1\-\s-1ESPS\s+1) warns and exits.Otherwise the file is read, the weighting values are saves, and the numberof weighting values is counted (\fIwindow_len\fP). In this case, the \fIwindow_len\fP value from either the \fB\-l\fP optionor the specified \fIparams\fP file is ignored.The same rules about \fIwindow_len\fP as described above in \fBDESCRIPTION\fPare in effect..SH "ESPS PARAMETERS".PPThe parameter file does not have to be present,since all the parameters have default values.The following parameters are read, if present, from the parameter file:.TP.I "sd_field_name \- string".IPThis is the name of the sampled data field in \fIinput\fP.The default is "sd".  A paramter file value (if present) is overiddenby the first use of the \fB\-f\fP option.  .TP.I "wind_field_name \- string".IPThis is the name of the windowed sampled data field in \fIoutput\fP.  Thedefault is "wind_sd".  A paramter file value (if present) is overiddenby the second use of the \fB\-f\fP option..TP.I "start \- integer".IPThis is the first record of \fIinput\fP to process.The default is 1.It is not read if the \fB\-r\fP option is used.  .TP.I "nan \- integer".IPThis is the number of records to process.  It is not read if the \fB\-r\fPoption is used.A value of zero means all subsequent records in the file;this is the default..TP.I "window_len - integer".IPThe window size. This parameter is not read if the.B \-loption is specified.  A value of 0 indicates that the window length is thesize of the sampled data field in \fIinput\fP; this is also the defaultvalue in case.I window_lenis specified neither with the.B \-loption nor in the parameter file..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 inthe parameter file, the default used is "RECT", for a rectangularwindow with amplitude one.  If the specified value is not a supported window type,it is assumed to be a user-defined window function.See the discussion of the \fB-w\fP option..PPRemember that command line option values override parameter filevalues..SH "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 feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback.  If ESPS_VERBOSE is not defined, a default value of 3 isassumed..PPESPS Common is not processed by .I windowif \fIinput\fP is standard input.  Otherwise, provided that the Common file is newer than the parameter file, and provided that the \fIfilename\fP entry in Common matches \fIinput\fP, the Common values for \fIstart\fP and \fInan\fP override those that may be present in the parameter file. .PPThe following items are written into the ESPS Common file provided that \fIoutput\fP is not <stdout>.  .IP.I "start \- integer".IPThe starting point from the input file..sp.I "nan \- integer".IPThe number of points in the selected range..sp.I "prog \- string".IPThis is the name of the program .RI ( windowin this case)..sp.I "filename \- string".IPThe name of the input file \fIinput\fP..SH ESPS HEADERS.PPThe \fIoutput\fP header is a new FEA file header.  If it exists in theinput header, the generic header item \fIsrc_sf\fP is copied frominput to output.  Following the convention from \fIframe\fP(1\-\s-1ESPS\s+1), this generic is intended to contain the samplingrate of the original sampled data.  The generic header item\fIstart_time\fP is written with a value 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.  Thecomputation of \fIstart_time\fP depends on the value of the genericheader item \fIrecord_freq\fP in the input file.  If this item is notpresent, \fIstart_time\fP is just copied from the input file to theoutput..PPThe items \fIstart\fP and \fInan\fP are rewritten (if they alreadyexist) to contain the starting record number and number of recordsprocessed.  Generic header items are added for the \fIwindow_len\fPand \fIwindow_type\fP.  As usual, the command line is added as acomment and the header of \fIinput\fP is added as a source file to\fIoutput\fP.  .SH "FUTURE CHANGES".PPControl over the type of the output windowed sampled data field.  .SH "SEE ALSO".PP\fIframe\fP (1\-\s-1ESPS\s+1), window (3\-\s-1ESPS\s+1), \fIpwr\fP(1\-\s-1ESPS\s+1), FEA (5\-\s-1ESPS\s+1), \fImake_sd\fP(1\-\s-1ESPS\s+1), \fIplotfield\fP (1\-\s-1ESPS\s+1).SH "WARNINGS AND DIAGNOSTICS".PP.I windowwill exit with an error message if any of the following are true: .I inputdoes not exist or is not an ESPS FEA file; the sampled-data field does not exist in.I input;the window field already exists in.I input;the \fIwindow_len\fP is larger than the size of the \fIinput\fP sampleddata field..SH "BUGS".PPNone known.  .SH "AUTHOR".PPManual page and program by John Shore. 

⌨️ 快捷键说明

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