📄 sgram.1
字号:
.\" Copyright (c) 1990 Entropic Speech, Inc.; All rights reserved.\" @(#)sgram.1 1.14 3/28/97 ESI.TH SGRAM 1\-ESPS 3/28/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"sgram \- compute sequence of FFTs suitable for display as a spectrogram.SH "SYNOPSIS".B sgram [.BI \-d " data_window"] [.BI \-m " method"] [.BI \-o " fft_order"] [.BI \-p " range"] [.BI \-s " range"] [.BI \-w " window_len"] [.BI \-x " debug_level"] [.BI \-E " pre_emphasis"] [.BI \-P " param_file"] [.BI \-S " step_size"] [.BI \-T " desired_frames"] [.B \-z] .I " input.sd output.fspec".SH "DESCRIPTION".PP.I Sgramreads an ESPS sampled data file, preemphasizes it, and produces anFFT-based ESPS FEA_SPEC file that is suitable for displaying as aspectrogram. (See \fIplotsgram\fP(1\-\s-1ESPS\s+1).).PPBy default (specifying no options) or by specifying\fIwb\fR for the \fB\-m\fR option, \fIsgram\fR produces a FEA_SPECfile that simulates the analysis done to produce a wide-band speechspectrogram. Alternatively, by specifying \fInb\fR for the \fB\-m\fRoption, a FEA_SPEC file that simulates the analysis for a narrow-bandspectrogram is computed. The \fB\-m\fP option defines differentdefaults for the other options. By specifying any of the otheroptions, in addition to \fB\-m\fP, the default values are overriddenby the specified option values. This allows the user to alter thebasic display to highlight facets of the spectrogram that are ofparticular interest..PPThe output FEA_SPEC file has freq_format SPFMT_SYM_EDGE, spec_typeSPTYP_DB, and frame_meth SPFRM_FIXED. To compress space, the output data type for re_spec_val is BYTE (see FEA_SPEC(5\-\s-1ESPS\s+1)). .PPThe number of output frames is the minimum sufficient to cover aspecified range of points (see \fB-p\fP and \fB-s\fP options), given\fIwindow_len\fP and \fIstep_size\fP. In the \fB-T\fP option is used,\fIsgram\fP chooses \fIstep_size\fP so that the number of outputframes is close to \fIdesired_frames\fP, which provides a convenientmeans of varying the time-domain resolution in terms that relate tothe physical size of a resulting display via \fIxwaves\fP+ (see thedescription under \fB-T\fP below). Whether or not \fB-T\fP is used,the last frame analyzed may overrun the range, in which case a warningis printed if the \fB-x\fP option is used. If a frame overruns theend of a file, it is filled out with zeros. Neither complex normultichannel sampled data files are supported yet..PPIf "\-" is specified for the input file, standard input is used. If"\-" is specified for the output file, standard output is used..SH OPTIONS.PP.TP.BI \-d " data_window" "\fR [(see \fB\-m\fR)]"The data window applied to the data before the computation of thepower spectrogram. If the option is omitted, the parameter file isconsulted, and if no value is found there, the default implied by.I method(see.BR \-m )is used. Possible window types include RECT (rectangular), HAMMING,HANNING, COS4, and TRIANG (triangular). See.IR window (3-ESPSsp)for a complete list of supported data windows..TP.BI \-m " method \fR[wb]\fP"The basic method for spectrogram computation.There are two possible values:.I wbfor wide band and.I nbfor narrow band.By specifying.I wb,the following default values are set:preemphasis = .94, fft_order = 8, window_len = 8 ms, step_size = 2 ms,and data_window = HANNING.By specifying.I nb,the following default values are set: preemphasis = .94, fft_order =9, window_len = 40 ms, step_size = 2 ms, and data_window = HANNING.If the option is omitted, the parameter file is consulted, and if novalue is found there, the default.I wbis used. If the parameter file contains a value for \fImethod\fP, corresponding default values are determined for the other parameters\- in this case, these defaults can be overriden by command lineoptions but not by other parameter file values (there is one exception\- see the discussion under ESPS PARAMETERS). .TP.BI \-o " fft_order" "\fR [(see \fB\-m\fR)]"The FFT length used in computing the power spectrum is 2 to the power.I fft_order.If the number of data points in each frame.RI ( window_len )is less than the transform length, the frame is padded with zeros, anda warning is given if the \fB-x\fP option is used. If the number ofdata points per frame exceeds the transform length, each frame iseffectively truncated to the transform length, and a warning is givenif the \fB-x\fP is used. The number of frequencies in the outputspectral records is 1 more than half the transform length. If thisoption is not specified, the parameter file is consulted, and if novalue is found there, the default implied by.I method(see.BR \-m )is used..TP.BI \-p " first" : last "\fR [1:(last in file)]".TP.BI \-p " first" :+ incrThe range of points in the input file over which the spectrogramvalues are to be computed. In the first form, a pair of unsignedintegers gives the first and last points of the range, counting from 1for the first point in the file. If.I firstis omitted, 1 is used. If .I last is omitted, the range extends to the end of the file. The second formis equivalent to the first with.I "last = first + incr".This option should not be specified if.B \-sis specified. If neither option is specified, the range is determinedby the parameters.I startand.I nanas read from the parameter file.If either parameter is missing from the parameter file, it is determinedby default..TP.BI \-s " start_time" : end_time "\fR [0.0:(end of file)].TP.BI \-s " start_time" :+ durationDetermines the range in seconds in the input file over which thespectrogram values are to be computed. In the first form, a pair ofreal numbers gives the starting and ending times of the range. Thecorrespondence between samples and times is determined by twoquantities: the starting time of the file and the interval betweensamples. The former is given by the generic header item.I start_timein the input file, or 0.0 if the header item is not present. Thelatter is the reciprocal of the sample frequency.I sfin the type-dependent part of the SD header.If.I start_timeis omitted, the starting time of the file is used. If .I end_time is omitted, the range extends through the end of the file.The second form of the option is equivalent to the first with .I "end = start + duration".This option should not be specified if.B \-pis specified.If neither option is specified,the range is determined by the parameters.I startand.I nan,as discussed above for.B \-p..TP.BI \-w " window_len" "\fR [(see \fB\-m\fR)]"The duration of data in milliseconds over which the the power spectrumis computed for each column of the spectrogram. The analysis bandwidthis inversely proportional to this value. If this option is notspecified, the parameter file is consulted, and if no value is foundthere, the default implied by.I method(see.BR \-m )is used..TP.BI \-x " debug_level"A positive valuecauses debugging output to be printed on the standard error output.Larger values give more output.The default is 0, for no output..TP.BI \-E " pre_emphasis" "\fR [(see \fB\-m\fR)]"The coefficient.I Ain the preemphasis filter.RI "1 \- " A/z.This filter is applied to the sampled data before computing the powerspectrum. A value of 1.0 provides a 6 dB/octave boost to the highfrequencies; a value of 0.0 provides no boost. If this option is notspecified, the parameter.I pre_emphasisis read from the parameter file, and if no value is found there,the default value implied by.I method(see.BR \-m)is used..TP.BI \-P " param_file"Use the parameter file.I param_filerather than the default, which is.I params..TP.BI \-S " step_size" "\fR [(see \fB\-m\fR and \fB-T\fP)]"The time step in milliseconds between columns in the spectrogram. Thetime resolution and horizontal magnification are affected by thisparameter. If this option is not specified, the parameter file fileis consulted, and if no value is found there, the default valueimplied by.I method(see.BR \-m)is used.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -