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

📄 esig2fea.1

📁 speech signal process tools
💻 1
字号:
.\" copyright (c) 1995 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)esig2fea.1	1.5 10/4/97 ERL.ds ]W (c) 1993 Entropic Research Laboratory, Inc..if t .ds - \-\h'-0.2m'\-.if n .ds - ---.TH ESIG2FEA 1\-ESPS 10/4/97.SH NAME.nfesig2fea \- write Esignal file data to ESPS FEA file.fi.SH SYNOPSIS.B esig2fea[.BI \-f " field"] .\ .\ . [.BI \-r " range"] [.BI \-x " debug_level"] [.BI \-F] [.BI \-T " subtype"].I input.esig output.fea.SH DESCRIPTION.PP.I esig2feaaccepts an input file.I input.esigin Esignal format (see Ref. [1]) and writes an output ESPS FEA file.I output.fea(see.IR ESPS (5\-ESPS),.IR FEA (5\-ESPS))containing the same information(or a subest thereof).If.I input.esigis "\-", standard input is used for the input file.If.I output.feais "\-", standard output is used for the output file.The input and output should not be the same file;however, you can run the program as a filterby specifying "\-" for both input and output..PPNormally the program reads all input records and copies to the outputthe contents of all fields in each record that meet certain requirements;one output record is written for each input record.However, with the.B \-roption, one can restrict processing to a subrange of the input records,and with the.B \-foption, one can restrict processing to a specified subset of the input fields..PPThe requirements on fieldsto be copied from input records to output records are the following..TP(1)Each such field must be a REQUIRED field.  OPTIONAL fields are ignored..TP(2)Each such field must be a top-level field\*-not a subfield of someother field.  This means that its name does not contain a dot (".").Subfields are ignored..TP(3)Each such field must have a data type that corresponds to an ESPS datatype according to the following table..nf.RS.ta 0.1i 1.3i 2.6i 4.3i.if n \l'2.2i\-'\h'0.3i'\l'3.0i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'3.0i'\v'0.2'	Esignal	ESPS	Esignal     	ESPS.if n \l'2.2i\-'\h'0.3i'\l'3.0i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'3.0i'\v'0.2'	DOUBLE	DOUBLE	DOUBLE_COMPLEX	DOUBLE_CPLX	FLOAT	FLOAT	FLOAT_COMPLEX	FLOAT_CPLX	LONG	LONG	LONG_COMPLEX	LONG_CPLX	SHORT	SHORT	SHORT_COMPLEX	SHORT_CPLX	SCHAR	BYTE	SCHAR_COMPLEX	BYTE_CPLX	UCHAR	CHAR	CHAR	CHAR.if n \l'2.2i\-'\h'0.3i'\l'3.0i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'3.0i'\v'0.2'.DT.RE.fiFields of types ARRAY, USHORT, ULONG, BOOL, and WCHARare ignored..LPFields that violate these requirements are allowed in input files;however,.I esig2feadoes not provide a mapping of such fields to FEA fields.Each input field that satisfies the requirements (and is retained)normally becomes an output field with the same name..PPAn exception is a REQUIRED field with data type LONGand rank 0 (a scalar).If such a field is present (and is retained), the output file istagged (see.IR ESPS (5\-ESPS)),and the "Tag" value in each Esignal recordfurnishes the value for the tag in the corresponding FEA record,rather than for an ordinary FEA field named "Tag"..PPEach top-level GLOBAL field with one of the Esignal types shownin the following table.nf.RS.ta 0.1i 1.3i 2.6i 3.8i.if n \l'2.2i\-'\h'0.3i'\l'2.2i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'2.2i'\v'0.2'	Esignal	ESPS	Esignal	ESPS.if n \l'2.2i\-'\h'0.3i'\l'2.2i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'2.2i'\v'0.2'	DOUBLE	DOUBLE	SCHAR	CHAR	FLOAT	FLOAT	UCHAR	CHAR	LONG	LONG	CHAR	CHAR	SHORT	SHORT.if n \l'2.2i\-'\h'0.3i'\l'2.2i\-'.if t \v'-0.2'\l'2.2i'\h'0.3i'\l'2.2i'\v'0.2'.DT.RE.fibecomes an ESPS generic header item with the same name,the indicated corresponding ESPS type,and the same number of data elements.ESPS generic header itemsdo not contain rank and dimension information, however.Thus for example a 15-element vector and a 3\(mu5 matrix inEsignal GLOBAL fields both become simply 15-element generic header items..PPIf an Esignal GLOBAL or REQUIRED field with Esignal data type SHORThas a subfield named "enumStrings",the corresponding FEA file field or header itemhas an ESPS CODED type, (see.IR FEA (5\-ESPS))rather than the normal corresponding ESPS type SHORTindicated in the table.The subfield must be a character matrix consisting of strings,one per row, padded on the right with null characters ('\\0') to acommon length.The strings become the list of string values associated withthe CODED type..PPThe output FEA file header has a single embedded source file header(see.IR ESPS (5\-ESPS),.IR add_source_file (3\-ESPS))which, like the output file header itself, is derived from thefield list in the input Esignal header.The source header is thus usually similer to the output file header,but there are some differences.The source header records all the fields of the input filethat satisfy (1), (2), and (3) above, even if the.B \-foption is used to specify that only some of these fieldsare retained in the output.Within the source header,there is a recursively embedded source headerfor each VIRTUAL field (if any) with a name of the form"source_0", "source_1", "source_2", etc.The embedded source header is obtained by converting the subfield listof the VIRTUAL field from an Esignal field list to an ESPS FEA file header.If the VIRTUAL field has a data array,it must be a one-dimensional CHAR array giving the source-file namethat goes with the corresponding header.More deeply nested source-file headers are derived from VIRTUALsubfields with names such as "source_0.source_2"or "source_0.source_2.source_1"..PPIf the input file has a scalar GLOBAL field.I FeaSubtypeof type SHORT,.I esig2feaassigns its value to the FEA file subtype code.I fea_type(see.IR FEA (5\-ESPS)).This behavior can be overridden by the.B \-Toption..PPIf the input file contains the waves GLOBAL fields.I recordFreqand.I startTime,the program creates corresponding waves generic header items.I record_freqand.I start_timein the output file.These are the header items that.IR xwaves (1\-ESPS)uses for time alignment of displays of files with uniformly spaced records.The value of.I record_freqis just that of.I recordFreq.The value of.I start_timeis obtained from that of.I startTimeby adding an offset that is the time differencebetween the first record of the input fileand the first record that is copied to the output.The offset is 0 unless the.B \-roption is used to specify a starting point other than the first input record.(See the ``Options'' section.)In that case, the offset is the result of dividing the starting record numberby the value of.I recordFreq.Like other input GLOBAL fields,.I recordFreqand.I startTime,if present, are represented in the outputby generic header items with the same names.In this case, the header item.I startTimeis simply a copy of the input GLOBAL field.I startTime;it is the header item.I start_timethat contains the correct starting time of the output file..SH OPTIONS.PPThe following options are supported:.TP.BI \-f " field"specifies the name of a input fieldto be retained in the output file records.The field should be a top-level field (the name should not contain "."),it should be a REQUIRED field (not OPTIONAL, for example),and it should have a supported data type (not ARRAY, for example);otherwise it is ignored.The option may be repeated to specify several input fields to be retained.If the option is not specified,all top-level REQUIRED input fields of supported types are retained..TP.BI \-r " start" : "last \fR[0:(last in file)]\fP".TP.BI \-r " start" :+ "incr".TP.BI \-r " start"In the first form, a pair of unsigned integers specifies the rangeof input records to be processed.Input record numbers follow Esignal file conventions:the first record in the file is number 0.Either.I startor.I lastmay be omitted; then the default value is used.If.IR last " = " start " + " incr,the second form (with the plus sign) specifies the same range as the first.The third form (omitting the colon) specifies a single record..TP.BI \-x " debug_level \fR[0]\fP"If .I debug_levelis positive,.I fea2esigwrites debugging messages on the standard error output.Larger values result in more output.The default is 0, for no output..TP.BI \-Fspecifies output in.I field order.If the option is not specified, the output is in.I type order,the default..TP.BI \-T " subtype"specifies that the subtype code.I fea_typeof the output FEA file (see.IR FEA (5\-ESPS))is filled in to indicate the given subtype.Allowed values include FEA_ANA, FEA_SD, FEA_SPEC, FEA_STAT,and FEA_VQ.The complete list of subtype names,with the corresponding numeric codes,is in the ESPS header file.I esps/fea.h.In addition,.I subtypemay be NONE,to specify that the output is not of any special FEA subtype.If.B \-Tis not specified,.I esig2fealooks in the input file for a GLOBAL field named "FeaSubtype"and having data type SHORT.It sets the subtype code according to the value of.I FeaSubtypeif the field is present;otherwise it sets the code to 0, for NONE.The.B \-Toption overrides any values specified by an input field.I FeaSubtype..IPSuch a field.I FeaSubtypeis created when the program.IR fea2esig (1\-ESPS)converts a file of a special FEA subtype to.I Esignalformat.This is done only so that.I esig2feacan restore the subtype when converting the file back to a FEA file;the notion of a FEA subtype has no exact parallel in the Esignalframework..IPUse of.B \-Tdoesn't ensure that the output file has the correct format.You should specify a subtype with this option only when you knowthat a file with the correct fields and generic header itemswill be produced.See the section-5 manual pages for the individual FEA file types..SH ESPS PARAMETERS.PPThe ESPS parameter file is not read..SH ESPS COMMON.PPThe ESPS common file is not accessed..SH ESPS HEADERS.PPAs mentioned under ``Description'' above,generic header items corresponding to top-level GLOBAL fieldsare added to the output header,and the input field list, converted to a FEA header,is added as an embedded source header.As is usual in ESPS files, the command line that invoked the programis added as a comment.For the setting of the FEA subtype code.I fea_type,see.B \-Tunder ``Options''.Generic header items.I record_freqand.I start_timeare added to the output header if the input contains GLOBAL fields.I recordFreqand.I startTime;see ``Description'' above for details..SH FUTURE CHANGES.PPFix some of the problems listed under ``Bugs''..SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PPThe program exits with a "Usage" messageif an unrecognized option is used on the command line.or if too many or too few file names are specified.It may exit with one of the following error messagesif the described conditions occur:.nf.RScan't start before beginning of fileempty range of records specifiedcan't allocate memory for input recordfailure converting input header to field listoutput order neither TYPE_ORDER nor FIELD_ORDERcan't set field ordering of outputwrite header failed.RE.fi.SH BUGS.PPConfusion is possible if field names in the input fileconflict with field names that.I esig2feauses for special purposes\*-for example,if there is a REQUIRED input field named "commandLine" or "source_0".The program ignores subfields named "encoding"(which flag their parent fields as containing.if n .IR mu -law.if t .IR \(*m -lawor.IR A -lawcompressed data..SH REFERENCES.PP[1] R. W. Johnson,``The Esignal File Format'',Entropic Research Laboratory, Inc., 1995.SH "SEE ALSO".IR add_source_file (3\-ESPS),.IR fea2esig (1\-ESPS),.IR xwaves (1\-ESPS),.br.IR Esignal (3\-Esignal),.IR ESPS (5\-ESPS),.IR FEA (5\-ESPS)..PP.SH AUTHOR.PPRod Johnson

⌨️ 快捷键说明

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