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

📄 man.diff

📁 speech signal process tools
💻 DIFF
字号:
.\" Copyright (c) 1988-1990 Entropic Speech, Inc..\" Copyright (c) 1996 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)addgen.1	1.19 10/1/98 ESI/ERL.ds ]W (c) 1996 Entropic Research Laboratory, Inc..TH ADDGEN 1\-ESPS 10/1/98.SH "NAME"addgen - adds generic header items to an existing or new ESPS file header.SH "SYNOPSIS".B addgen[.BI \-g.I generic_name]\|.\|.\|.[.BI \-t.I generic_type]\|.\|.\|.[.BI \-v.I generic_value]\|.\|.\|.[.BI \-x.I debug_level][.B \-F][.BI \-P.I params].I espsfile.in[.I espsfile.out].SH "DESCRIPTION".PP\fIAddgen\fR creates a new file \fIespsfile.out\fR, copies the headerfrom \fIespsfile.in\fR to \fIespsfile.out\fR, adds the specifiedgeneric header item, and copies the data from \fIespsfile.in\fR to theoutput file.  If \fIespsfile.out\fR is not supplied, then the genericheader item is added to the input file \fIespsfile.in\fR.  In this case a temporary copy is created in the process.  (The temporary file will be create in the directory specified by the environment variable ESPS_TEMP_PATH, with /usr/tmp as the default).  .PPIf \fIespsfile.in\fP does not exist, then \fIaddgen\fP creates a newESPS FEA file and adds the generic header item (in this case\fIespsfile.out\fP may not be supplied).  The resulting file\fIespsfile.in\fP has a single field defined (name: ADDGEN; type:SHORT; size: 1) and no data records.  This \fIaddgen\fP capability isuseful when the resulting file (with additional generics defined inthe header) will serve as an external ESPS file reference in theheaders of other ESPS files.  Thus, common parameters for a large setof ESPS files can be stored one time only..PPValues for all three options \fB\-g\fR, \fB\-t\fR, and \fB\-v\fR must bespecified, or \fIaddgen\fR exits with an error message.  The valuesmay be specified on the command line, in the params file, or jointlyin the params file and on the command line.  If.I espsfile.inis not an ESPS file,.I addgenprints an error message and exits.  .PPIf \fIespsfile.in\fR = "\-", standard input is read;if \fIespsfile.out\fR = "\-", standard output is written..PPMore than one generic header item can be added to the output header byrepeating the three options \fB\-g\fR, \fB\-t\fR, and \fB\-v\fR on thecommand line.Each must be given the same number of times, up to a maximum of 100..PP.SH OPTIONS.PPThe following options are supported:.TP.BI \-g " generic_name"Specifies the name of the generic header item.If a generic header item by this name already exists,\fIaddgen\fR warns and exits unless \fB\-F\fR is also specified..TP.BI \-t " generic_type"Specifies the type of the generic header item.  Allowable values areDOUBLE, FLOAT, LONG, SHORT, CHAR, EFILE, and AFILE..TP.BI \-v " generic_value"Specifies the value of the generic header item.  For CHAR, EFILE, andAFILE, the value is a quoted string.  For EFILE (external ESPS file)and AFILE (external ASCII file) the string gives the name of the file,which can be a full path name.  If there is no leading "/" or hostnamein the string, the path to the current working directory is prependedautomatically.  If there is a leading hostname, the hostname must befollowed by a full path (i.e., starting with "/"). A leading hostnamehas the form of a string followed by a colon.  For example,"epiwrl:/usr/speech_data/male/fricative.sd" is a properly formatedEFILE value.  If a leading hostname is not followed by a full path,\fIaddgen\fP prints an error and exits.  Note that the use EFILE andAFILE types with leading hostnames can be expensive, as the currentimplementation causes programs like \fIpsps\fP(1\-\s-1ESPS\s+1) \fB-e\fPor \fIget_genhd_efile\fP(3\-\s-1ESPS\s+1) to copy the entire referencedfile from across the network via \fIrcp\fP. .TP.BI \-x " debug level \fR[0]\fP"If.I debug_levelis nonzero then debugging output from library functions is enabled..I addgen does not do any debug output currently..TP.BI \-F This forces the overwriting of an existing header item.If the \fB\-g\fP named generic header item already exists inthe input file, \fIaddgen\fP (1\-\s-1ESPS\s+1) normallywarns the user and exits. By specifying the \fB\-F\fPoption, \fIaddgen\fP (1\-\s-1ESPS\s+1) will overwrite the existingvalue with the new specified value. .TP.BI \-P " param" " \fR[params]\fP"Specifies the name of the parameter file..SH "ESPS PARAMETERS".PPThe following parameters are read, if present, from the parameterfile:.IP.I "generic_name \- string".IPThis is the name of the generic header item to add.  .IP.I "generic_type \- string".IPThis is the type of generic header item to add.  AllowableDOUBLE, FLOAT, LONG, SHORT, CHAR, EFILE, and AFILE..sp.IP.I "gen_value_f \- float".IP.I "gen_value_i \- integer".IP.I "gen_value_s \- string".IPThese are used to specify the value of the generic header item to add..IPAt present, there are three types of values that can be specified in aparameter file: \fIint\fR, \fIfloat\fR, and \fIstring\fR.  \fIInt\fRis used to input LONG and SHORT.  \fIfloat\fR is used to input FLOATand DOUBLE, and \fIstring\fR is used to specify character strings.Only one value is read from the parameter file for the generic headeritem that is being added \- either \fIgen_value_f\fR,\fIgen_value_i\fR, or \fIgen_value_s\fR \- and which value is readdepends on the value of \fIgeneric_type\fR. For example if\fIgeneric_type = DOUBLE\fR, \fIgen_value_f\fR should be specified inthe params file.  If \fIgeneric_type\fP is CHAR, EFILE, or AFILE,\fIgen_value_s\fP should be specified in the params file.  See the discussion of string format under \fB-v\fP, above.  .PPRemember that command line option values override parameter file values..SH ESPS HEADERS.PPAll old header values are copied and the specified header value isadded.  The input ESPS file is not treated as a source file within therecursive header.  The \fIdate\fP field in the universal portion ofthe output header is not affected by \fIaddgen\fP (i.e., it is thesame as that of the input header).  Besides the usual command line inthe comment field, a comment is added giving the name of the addedgeneric header item, the user name, and the date/time at which it was added..PP\fIaddgen\fP (1\-\s-1ESPS\s+1) can be used to add the \fIstart_time\fPand \fIrecord_freq\fP generics that are required by\fIwaves+\fP. It can also be used to modifythe values of any generic header items..SH ESPS COMMON.PPESPS Common is not used..SH "FUTURE CHANGES".PPNone contemplated..SH "SEE ALSO".PP.nf\fIaddfea\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), \fIbhd\fP (1\-\s-1ESPS\s+1), \fIinhibit_hdr_date\fP (3\-\s-1ESPS\s+1), ESPS(5-ESPS).fi.SH "WARNINGS".PPSphere files are not supported.Files in Esignal format are not supported.PC WAVE format files are not supported.To add generic header items to files of these types (and convert themto ESPS files) put addgen(1-ESPS) on a pipe from copysps(1-ESPS)..PP.SH "BUGS".PP.SH "AUTHOR".PPManual page and code by David Burton. Modifications by John Shore, Alan Parker, Derek Lin, and Rod Johnson.  

⌨️ 快捷键说明

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