cepsyn.1
来自「speech signal process tools」· 1 代码 · 共 340 行
1
340 行
.\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)cepsyn.1 1.2 9/27/97 ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..if n .ds pi pi.if t .ds pi \(*p.TH CEPSYN 1\-ESPS 9/27/97.SH NAMEcepsyn \- recover sampled data from cepstrum and phase.SH SYNOPSIS.Bcepsyn[.BI \-r " range1"[.BI \-r " range2"]] [.BI \-t " output_type"] [.BI \-x " debug_level"] [.B \-W].I phase_in.fea.I cepst_in.fea.I output.sd.SH DESCRIPTION.PPThis is one of a pair of programs that lets oneanalyze a file of sampled data to obtain cepstrum and phase information,modify the cepstrum,and recombine the modified cepstrum with the original phaseto obtain a new sampled-data file.The program.IR cepanal (1\-ESPS)analyzes the sampled data into phase and cepstrum datain separate output files.This program performs the inverse transformation,combining phase and cepstrum data in.I phase_in.feaand.I cepstrum_in.feato produce sampled data in.I output.sd..PPEither input file, but not both, may be "\-", for standard input.If "\-" is given for the output file, the output is written to thestandard output..PPThe input files,.I phase_in.feaand.I cepst_in.feashould have the same format as the output files of.IR cepanal (1\-ESPS).Namely, they are ordinary ESPS files, not of any special FEA subtype,each containing a single field with data type FLOAT.The fields are named.I phaseand.I cepstrum,respectively; they must have the same length, namely.IR "n" "/2 + 1,"where.I "n"is the length of the Fourier transform used in.I cepanal.(Thus.I "n"is 2 raised to the power.I order,where.I orderis the order of the transform.See the option.B \-oin the man page for.IR cepanal (1\-ESPS))..PPEach input field implicitly determines a vectorof the full transform length,.I n,by symmetry, in the case of.I cepstrum,or antisymmetry (mod 2\*(pi), in the case of.I phase.The program performs a Fast Fourier Transform on each vector of cepstral data from.I cepst_in.fea,obtaining a real result (because of the symmetry).To this it adds an imaginary partconsisting of the vector of phase data from the corresponding frame in.I phase_in.fea.It then computes the inverse Fourier transformof the exponential of the resulting complex quantity,obtaining frames of sample data,which it combines to form the contents of an ESPS FEA_SD file,It normally attempts to compensate at the same time for any windowingperformed by .IR cepanal :it divides the overlapped sum of the sampled-data frames by a similarlyoverlapped sum of translated copies of the window function,obtaining an overlapped average of the frames.For this to succeed, the latter sum must not contain zeros;otherwise a message is printed, and the division step is skipped.This behavior can be modified by the.B \-Woption (see below)..SH OPTIONS.PPThe following options are supported. Default values are shown in brackets..TP.BI \-r " first" : "last" "\fR [1:(last in file)]".TP.BI \-r " first" :+ "incr".TP.BI \-r " first"The range of records to be taken from one or both input files.In the first form, a pair of unsigned integers specifies the range ofrecords to analyze.If.I firstis omitted, the default value of 1 is used. If.I lastis omitted, the range extends to the end of the file.If.IR last " = " first " + " incr,the second form (with the plus sign) specifies the same range as thefirst form.The third form (omitting the colon) specifies a single record.Note that for this program the range is specified in frames,whereas for.IR cepanal (1\-ESPS)it is specified in samples..IPThis option may be used at most twice.If used once, it applies to both input files.If used twice, it applies to.I phase_in.feathe first time and.I cepst_in.feathe second time.If the option is used twice and implies ranges of inconsistent sizes,a warning message may be issued.For example .BR \-r " 1" : 10and.BR \-r " 101" : 120in the same.I cepsyncommand will generate a warning of inconsistent.B \-roptions.On the other hand two options with one unspecified endpoint, like.BR \-r " 1" :and.BR \-r " 101" : 120,are not considered inconsistent and will not generate the warning..TP.BI \-t " output_type" "\fR [FLOAT]"The data type of the output sampled data..TP.BI \-x " debug_level \fR[0]\fP"A positive value specifies that debugging output is to be printed onthe standard error output.Larger values result in more output.For the default value, 0, there is no output..TP.BI \-WSpecifying this option causes the program to ignore the input header item.I window_typeand assume a rectangular window..SH ESPS PARAMETERS.PPThis program does not access a parameter file..SH ESPS COMMON.PPThe ESPS Common file is not read..PPIf Common processing is enabled,and the output file is not standard output,the program writes the Common parameters.I prog,.I filename,.I start,and.I nanto record the program's name, the name of the output file,the starting record number of the output file (always 1),and the number of points in the output file..PPESPS Common processing may be disabledby setting the environment variable USE_ESPS_COMMON to.I off.The default ESPS Common file is.I espscomin the user's home directory.This may be overriddenby setting the environment variable ESPSCOM to the desired path.User feedback of Common processing is determinedby the environment variable ESPS_VERBOSE, with 0 causing no feedbackand increasing levels causing increasingly detailed feedback.If ESPS_VERBOSE is not defined, a default value of 3 is assumed..SH ESPS HEADERS.PPThe program reads the header items.I sf,.I framelen,.I record_freq,.I start_time.I step,and.I window_typefrom the header of.I phase_in.fea.It relies on the phase file for these itemssince they are more likely to be preserved intact therethan in the cepstrum file.However, it also reads certain of the corresponding items from.I cepst_in.feaand prints a message in case of inconsistency..PPThe program defines thestandard ouput header items.I start_timeand.I record_freqand includes the normal field definitionfor a FEA_SD file in the output header (see.IR init_feasd_hd (3\-ESPS)).Like most ESPS programs, it includes copies of the input file headersin the ouput header (see.IR add_source_file (3\-ESPS)),and it saves a copy of the command line as a comment in the outputheader(see.IR add_comment (3\-ESPS)and.IR get_cmd_line (3\-ESPS))..SH FUTURE CHANGES.PP.SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PPIf an unknown option is specified,if the.B \-roption is used more than two times,or if the number of file names is wrong,.I cepsynprints a synopsis of command-line usage and exits.The program exits with an error message if any of the folowing are true:the output file name is the same as one of the input file names(but not "\-");the input file names are the same;the field.I phasein .I phase_in.feais absent or not FLOAT;the field.I cepstrumin .I cepst_in.feais absent or not FLOAT;the fields.I phaseand.I cepstrumhave different sizes;the size of the fields.I phaseand.I cepstrumdoes not correspond to an integer order(i.e. is is not of the form.IR "n" "/2 + 1,"where.I nis a power of 2);the generic header items.I frmlen,.I sf,and.I record_freqin.I cepst_in.feaare not all present or do not all have positive numerical values;a.B \-roption specifies a starting record before the beginning of the fileor specifies an empty range of records;two.B \-roptions specify ranges with different explicit lengths;the.B \-toption does not specify a valid numeric data type;an attempt to write an ESPS common file failed.The program prints a message and continuesif any of the following conditions are encountered:one of the generic header items.I frmlen,.I sf,and.I record_freqin.I cepst_in.fea(if present) specifies a value inconsistent with.I phase_in.fea;the two input file headers, together with any range options,specify inconsistent values of.I start_time;the end of the input file is reached prematurelyaccording to an explicitly indicated end of range..SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".na.IR cepanal (1\-ESPS),.IR fft (1\-ESPS),.IR fftcep (1\-ESPS),.br.IR fftinv (1\-ESPS),.IR init_feasd_hd (3\-ESPS),.br.IR add_source_file (3\-ESPS),.IR add_comment (3\-ESPS),.br.IR get_cmd_line (3\-ESPS)..ad.PP.SH AUTHOR.PPRod Johnson
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?