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

📄 copyana.1

📁 speech signal process tools
💻 1
字号:
.sc.\"  @(#)copyana.1	1.7 1.7.TH COPYANA \1-SPS 1/9/87.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Processing, Inc..SH NAMEcopyana \- copies selected pieces of an ANA file to a new ANA file.SH SYNOPSIS.B copyana[.BI \-x " debug_level"] [.BI \-f] [.BI \-n " range"] [.B \-{vu} ] [.BI \-O " +\- power_level"] [.BI \-I " element_#"] [.BI \-{PERperSsCc} " +\- level"].I " infile" [.I " outfile "].SH DESCRIPTION.PP.I Copyanacopies selected pieces of an ANA file into another ANA file.If .I outfile exists,the selected pieces of.I infileare appended to.I outfile;if .I outfiledoesn't exist,it is created.Appending data to .I infileis not allowed..SH SPS PARAMETERSNo parameters are read from a .I paramsfile..SH SPS HEADERIf the output file is new (i.e. not appending to an existing file) thenthe source ANA header structure is copied into the new file header..I startand the number of points.I nanare updated, andthe input ANA file name is added to the list of sources.If the output file already exists and the selected records are to beappended, then the following header items are invalid and are set asfollows:.I frmlen:-1, .I p_offset:-1,.I piq_method:NONE,.I rcq_method:NONE,.I pwq_method:NONE,.I lpq_method:NONE,.I win_type:NONE,.I src_sf:-1,.I a_method:NONE,.I dcrem:-1,.I psynch:-1,.I matsiz:-1,.I rms_fullscale:-1, and.I sinc_flg:NONE..SH OPTIONSThe following options are supported:.TP.BI \-x " debug_level"Only debug level 1 is defined in this version;this causes several messages to be printed.The default level is zero, which causes no debug output..TP.BI \-fThis option causes a fast copy to be done.  This is done by appendingthe selected records onto the end of the destination file, rewinding thefile and writting an updated header (with the record count updated).Use of this option causes embedded headers not to be included in theoutput file.  Also, the command line is not saved as a comment in theoutput header (the output header size cannot change).This option should not be used to produce archival files where theentire processing history is needed..br.spIf the header version (\fIcommon.hdvers\fR) is not the same for theinput and output file, then a fast copy is not done.  This is becausethe size or the exact format of the header might be different and thewrite may fail.   The program checks the versions, and simply turnsthe \fB-f\fR flag off if the versions do not match..TP.BI \-n " range"Select a range of records to be processed.By default, all records in the file are processed. As is usualfor SPS programs, however,a rangeis specified as follows: two numbers separated by a colon (beginning : end),a single number (a range consisting of one value),a number followed by a colon (the largest possible valuedetermines the end of the range),or a colon followed by an number (the default is to start the range at thesmallest possible value). (See .I range_switch(3) for full details of range specification.).TP.B \-{vu} If .B -vis specified, only voiced records that satisfy the rest of the options{.B "n, I, P, S, E, R, C, p, s, e, r, c"or.B O}are copied.Unvoiced records are handled similarly with the.B -uoption..TP.BI \-O " \+\- power_level"If \+,only those records with total power (sum of the pulse powers) greater than.I power_levelare copied;If \-,only those records with total power less than.I power_levelare copied..TP.BI \-I " element_#"The .B \-Ioption selects one .I element_# in the specified parameter array (pulse durations (P), reflection coefficients (S or C), lpc error power (E), or raw speech power (R) )which is checked against the level specifed by one of theoptions{.B " P, S, E, R,"or.B C}.For example,.IP.Icopyana -I1 -P80 infile outfile.IPcopies from.I infileto .I outfileall records in which the first pulse duration is greater than 80..TP.BI \-{PERperSsCc} " +\- level"If \(pl and a .B "P, E,"or .B R is specified,copy only those records in which all specifed parameter values are greater than.I level;if \(pl and a .B "p, e,"or .B "r" is specified,copy only those records in which at least one of the specified parametervalues is greater than.I level;if \(mi and a .B "P, E,"or .B R is specified,copy only those records in which all specified parameter values are less than.I level;and if \(mi and a .B "p, e," or .B r is specifed,copy only those records in which at least one specified parameter valueis less than.I level.The.B S, s, C,and.B coptions work differently;the sign of .I levelis not used as part of the flag. This allows negative values to be specified.If .B \-S,copy only those records in which all reflection coefficients are greater than.I level;if .B \-C,copy only those records in which all reflection coefficients are less than.I level;if .B \-s,copy only those records in which at least one pulse duration is greater than.I level; andif .B \-c,copy only those records in which at least one reflection coefficient is less than.I level..IPFor example,.IP.Icopyana -v -R1000. infile outfile.IPcopies from .I infileto.I outfileall voiced records in which all pulse have power greater than  1000..SH DIAGNOSTICS.PPA fatal error occurs if the input file does not exist, if it is not an SPSANA-file, or if a requested range includesrecords that do not exist..PPIf the versions of the headers do not match when the \fB-f\fR flag isused, a message is printed and the \fB-f\fR flag is turned off..SH SEE ALSO.PPanastat(1), copysd(1).SH BUGS.PPThe \fB-I\fR and \fB-{PERperSsCc}\fR options are not implemented yet..SH AUTHOR.PPDavid K. Burton and Alan Parker, Entropic Processing, Inc.

⌨️ 快捷键说明

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