man.diff

来自「speech signal process tools」· DIFF 代码 · 共 251 行

DIFF
251
字号
.\" Copyright (c) 1987, 1990 Entropic Speech, Inc.; All rights reserved.\" @(#)addfea.1	1.11 1.11 ESI.TH ADDFEA 1\-ESPS 4/2/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 "NAME"addfea - adds a new FEA file field based on ASCII data .SH "SYNOPSIS".B addfea[.BI \-P.I params] [.BI \-f.I field_name] [.BI \-t.I field_type] [.BI \-s.I field_size] [.BI \-T.I FEA_subtype] [.BI \-x " debug_level"] [.BI \-c " comment"] [.BI \-C " comment_file"].I "ascfile feafile"[.I "feafile.out"].SH "DESCRIPTION".PP\fIAddfea\fR creates a new FEA file fieldand fills it with data taken from the ASCII file .I ascfile.  If \fIfeafile.out\fP is not supplied, then the new field is added to each record of \fIfeafile\fP; if \fIfeafile\fP does not exist, a new file is created with one field perrecord.  If \fIfeafile.out\fP is supplied, then the records from \fIfeafile\fP are copied to \fIfeafile.out\fP with the new field being added to each record.  In this case, \fIfeafile\fP must exist.  .PPIf \fIascfile\fP is "\-", standard input is used for the input ASCII file.  If\fIfeafile\fP is "\-", standard input is used for the input FEA file.  (Itis an error for both \fIascfile\fP and \fIfeafile\fP to be "\-".)  If\fIfeafile.out\fP is "\-", standard output is used.  If \fIfeafile\fPexists and is not an ESPS FEA file, \fIaddfea\fP prints an error messageand exits..PP\fIAscfile\fP is an ASCII file containing values separated by whitespace or new lines.  \fIAddfea\fP takes \fIfield_size\fP values at atime from \fIascfile\fP, converts them to type \fIfield_type\fP, andstores them in a field named \fIfield_name\fP within sequentialrecords of \fIfeafile\fP.  For complex types, each complex value isrepresented by a two ASCII inputs \- real part followed by imaginarypart.  \fIAddfea\fP keeps processing the input until it is exhaustedor until all records in \fIfeafile\fP (if it exists) have beenupdated.  If the input is exhausted before all records have beenupdated, the \fIfea_field\fP in remaining records is set to zero and awarning is issued.  If additional input remains after all records havebeen updated, the additional input is discarded and a warning isissued.  If \fIascfile\fP is empty, then the new FEA field is createdand set uniformly to zero..PPIf the field name given for the \fB-f\fR option is \fITag\fR, the builtin tag value of the record is modified, rather than a feature fieldnamed \fITag\fR.   This is a special case, to allow setting the built intag value on each feature record.   See \fIfea(5\-ESPS)\fR for detailson the tag field.   In this case, the other field related options are ignored (size andtype)..PPIf the new field is complex data type, then two values from the ASCIIfile are used for each data item.  The real value is given first, andthen the imaginary value.  So a complex field of size 2 wouldrequire 4 values.  If an odd number of ASCII values is given, then theimaginary part is filled with zero..PPFor record-keeping purposes,.I addfeastores an ASCII comment in the header of of the output file.  The commentshould describe the origins of the ASCII data in \fIascfile\fP.  If acomment is not supplied in the parameter file or by means of the \fB\-c\fRor \fB\-C\fR options, the user is prompted for one.  If \fIaddfea\fPis called on a pipe with \fIascfile\fP or \fIfeafile\fP as standard input, the comment must be supplied directly as the usercannot be prompted.  .PPNote that \fIpplain\fP (1\-\s-1ESPS\s+1) and \fIselect\fP (1\-\s-1ESPS\s+1) (in EVAL mode) can be used to create ASCII inputs for \fIaddfea\fP.  .PPNote that the difference between CHAR and BYTE is that CHAR is forcharacter data (either a single character or a character string) andBYTE is for byte signed integer data.Also,CHAR data is handled a bit awkwardly. A new-line is considered a deliminatorfor a string of characters,but it also is retained in the string. So, for example, if youhave four lines of ASCII data.sp.nfThisisatest.fiand you want to have each output record contain a single word,you must specify a size of 5 or larger.That is, you must allow space for the new-line character..SH OPTIONS.PPThe following options are supported:.TP.BI \-P " param" " \fR[params]\fP"Specifies the name of the parameter file..TP.BI \-f " field_name" " "Specifies the name of the new FEA field.  If a field with this namealready exists in \fIfeafile\fP, \fIaddfea\fR exits with an error message.If this option is used, it overides the parameter file value.The field name \fITag\fR is handled as a special case as described above..TP.BI \-t " field_type" " \fR[FLOAT]\fP"Specifies the type of the new field.  Allowable types are thefollowing: DOUBLE, FLOAT, LONG, SHORT, CHAR, BYTE, DOUBLE_CPLX,FLOAT_CPLX, LONG_CPLX, SHORT_CPLX, CHAR_CPLX, and BYTE_CPLX (casedoesn't matter).  If this option is used, it overides the parameterfile value..TP.BI \-s " field_size" " \fR[1]\fP"Specifies the size of the new field.  If this option is used, it overidesthe parameter file value..TP.BI \-T " FEA_subtype " If this option is given, the feature file sub-type code is filled inwith the given code.  The symbolic name of the sub-type code must begiven, for example FEA_ANA or FEA_SD.  For a complete list of definedsub-type codes, see FEA(5\-ESPS).  Use of this option doesn't ensurethat the is of the correct format for the defined subtype.  The usershould use this option only in cases where he or she knows that a filewith the correct fields is being produced.  See the section 5 manpages for the defined feature file types..TP.BI \-x " debug_level \fR[0]\fP"If .I debug_levelis positive,.I testsdprints debugging messages and other information on the standard erroroutput.  The messages proliferate as the  .I debug_levelincreases.  If.I debug_levelis 0, no messages are printed.  Only levels 0 and 1 are supported.   .TP.BI \-c " comment"Specifies that the ASCII string .I commentbe added as a comment in the header of the output file.  If this option isused, it overides the parameter file value..TP.BI \-C " comment_file"Specifies that the contents of the file.I comment_filebe added as a comment in the header of the output file.  If this option isused, it overides the parameter file value..SH "ESPS PARAMETERS".PPThe parameter file does not have to be present if all of the parameters arespecified by means of command-line options.  The following parameters areread, if present, from the parameter file:.IP.I "field_name \- string".IPThis is the name of the field to add to \fIfeafile\fP..IP.I "field_type \- string".IPThis is the type of the field to add to \fIfeafile\fP.  Allowablevalues are DOUBLE, FLOAT, LONG, SHORT, CHAR, BYTE, DOUBLE_CPLX,FLOAT_CPLX, LONG_CPLX, SHORT_CPLX, CHAR_CPLX, and BYTE_CPLX (casedoesn't matter)..IP.I "field_size \- integer".IPThis specifies the size of \fIfield_name\fP \- i.e., the size of thefield added to \fIfeafile\fP..IP.I "comment \- string".IPThis provides an ASCII comment that is added to the comment field in theoutput file.  The comment should describe the origins of the data in\fIascfile\fP.  If this parameter is not present in the parameter file andis not specified by the \fB\-c\fP or \fB\-C\fP options, then the user isprompted for a comment provided that \fIaddfea\fP is not called on a pipewith \fIascfile\fP or \fIfeafile\fP as standard input..PPRemember that command line option values override parameter file values..SH "ESPS COMMON".PPESPS Common is not read or written by \fIaddfea\fP.  .SH ESPS HEADERS.PPAll the old header values are copied to the new header and the input FEAfile becomes a source file within the recursive header.\fIaddgen\fP (1\-\s-1ESPS\s+1) can be used to add the \fIstart_time\fPand \fIrecord_freq\fP generics used by \fIwaves+\fP,if they don't already exist..SH "FUTURE CHANGES".PPAdd CODED type to the list of possible field types..PPImprove the handling of CHAR data. Make each line correspond to a data record.Allow use of either \fIfield_size\fP characters or the new-line characteras the end-of-data deliminator for each line of input.If more than \fIfield_size\fP characters exist on a line,a warning is issued and only \fIfield_size\fP characters are used.If less than \fIfield_size\fP characters occur before a new-line character,the string is null padded..SH "SEE ALSO".PP.nf\fIaddgen\fP (1\-\s-1ESPS\s+1), \fIcomment\fP(1\-\s-1ESPS\s+1), \fIpsps\fP(1\-\s-1ESPS\s+1), \fIpplain\fP (1\-\s-1ESPS\s+1), \fIselect\fP(1\-\s-1ESPS\s+1), \fIfea_deriv\fP (1\-\s-1ESPS\s+1).fi.SH "WARNINGS AND DIAGNOSTICS".PP\fIAddfea\fP will exit with an error message if \fIfeafile\fP exists andalready contains a field named \fPfield_name\fP.  .PP\fIAddfea\fP will exit with an error message if both \fIascfile\fP and \fIfeafile\fP are "\-".  .PP\fIAddfea\fP will exit with an error message if, when \fIaddfea\fP iscalled on a pipe with \fIascfile\fP as standard input, a comment is notsupplied in the parameter file or via \fB\-c\fP or \fB\-C\fP.  .SH "BUGS".PPNone known.  .SH "AUTHOR".PPManual page by John Shore.  

⌨️ 快捷键说明

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