splay.1

来自「speech signal process tools」· 1 代码 · 共 264 行

1
264
字号
.\" Copyright (c) 1992 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)splay.1	1.4 3/28/97 ERL.ds ]W (c) 1992 Entropic Research Laboratory, Inc..TH SPLAY 1\-ESPS 9/11/91.SH NAMEsplay - send ESPS sampled data to the SPARCstation codec output..SH SYNOPSIS.B splay[.BI \-x " debug-level"] [.BI \-{ps} " range"] [.BI \-g " gain"] [.BI \-R " nrepeat"] [.BI \-b " shift-value"] [.B \-a] [.B \-e] [.B \-q].I file[.I more-files].SH DESCRIPTION.PP.I Splaydoes a mu-law encoding of the data in one or more ESPS, SIGnal, NISTor headerless type SHORT sampled datafiles and sends the data to the SPARCstation 1 digital-to-analogconverter.  A subrange of data within the files may be chosen; thissubrange may be specified in seconds or points. Furthermore, a repeatcount, a scaling factor (gain), and a shift factor may be specified..PPThe mu-encoding algorithm expects data in the range +/- 8059.  Thescaling, shifting, or automatic (see \fB\-a\fP) option can be used tochange the data values before mu encoding. If after all shifting orscaling of the data is completed, there are still data values greaterthan 8059, these values are set to 8059 and mu encoding is carriedout..PPThe SPARCstation supports only one sampling rate: 8000samples/second.  \fISplay\fP checks the sampling rate of the inputfile.  If it is different than 8000, it sends a warning to standarderror, resamples the data using a relatively crude but fast algorithm,and plays the resampled data.  .PPPlayback may be aborted by sending the terminal's interrupt character (normally control-C)after playback has started. .PPIf "-" is given for a filename, then the input is taken from standardinput and must be an ESPS FEA_SD file (ie., SIGnal or NIST/Spherefiles cannot be used with standard input).  .SH ENVIRONMENT.PP\fBSPLAY_GAIN\fP - audio chip playback volume level: from 0 to 100..br.PP\fBSPLAY_X\fP - if set to a non-zero value, use external speaker jack. If not set, use internal speaker. This is overrriden by the \fB\-e\fP option..SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug"Only debug level 1 is defined in this version.   This causes severalmessages to be printed as internal processing proceeds.   The defaultis level 0, which causes no debug output..TP.BI \-p " range"Select a subrange of points to be played, using the format.I start\-end,.I start:end or.IR start:+count .Either the start or the end may be omitted; the beginning or the end of thefile are used if no alternate is specified. .IPIf multiple files were specified, the same range from each file is played..TP.BI \-r " range"\fB\-r\fP is a synonym for \fB\-p\fP..TP.BI \-s " range"Select a subrange of speech, specified in seconds. The beginning of the file is 0.  The format for a subrangeis the same as the \fB\-p\fR option.  The arguments to the \fB-s\fRoption can be decimal numbers (e.g. 1.5)..TP.BI \-R " count"Repeat count. The selected speech is played.I counttimes.  Playback from standard input can not be repeated.If multiple files were specified, the files are played in order, andthe order is repeated.I counttimes..TP.BI \-g " gain"Speech samples are multiplied by.I gainbefore being mu-law encoded and played back.  Gain is a floating point value..TP.BI \-b " shift-value"If this option is given and \fIshift-value\fR is positive, then eachsample (after it is converted to integer format) is shifted to the rightby \fIshift-value\fR bits.   \fIShift-value\fR being negative causes aleft shift.   The shifting takes place before the mu-law conversion.Thisis preferred to using the \fB-g\fR option becausethe shift is faster than a floating multiply.   This difference is mostnoticeable on large files..TP.B \-aIf set and the generic header item \fImax_value\fP is set in the inputfile header, automatic scaling is done.This multiplies each data value by 8059/\fImax_value\fP beforemu encoding..TP.B \-eIf set, the external output jack is used..TP.B \-qSuppresses various warnings and information messages (quiet mode). .PP.SH "INTERACTION WITH XWAVES".I Splayis designed to optionally use the server mode of \fIxwaves\fP(1\-\s-1ESPS\s+1).Thisis especially handy when.I splayis used as an \fIxwaves\fP external playcommand (e.g. by setting the \fIxwaves\fP global play_prog).  When the latter is the case,play commands initiated via \fIxwaves\fP' menu operations may be interruptedby pressing the left mouse button in the data view.  \fIXwaves\fP will senda signal 30 (SIGUSR1) to the play program.  Splay responds to thisby sending back to \fIxwaves\fP a command "set da_location xx", where xx isthe sample that was being output when play was interrupted.  Thissetting, in conjunction with \fIxwaves\fP' built-in callback procedure forhandling child-process exits, causes the \fIxwaves\fP signal display tocenter itself on the sample where play was halted..PPThe SIGUSR1 signal to terminate.I splaymay come from any source.  Ifit comes from sources other than \fIxwaves\fP, the environment variablesWAVES_PORT and WAVES_HOST must be correctly defined (see\fIespsenv\fP(1-ESPS)), for correct functioning of the \fIxwaves\fP viewpositioning.  (Of course, \fIxwaves\fP must actually be displaying thesignal in question at the time and \fIxwaves\fP must have initiated theplay.).PP.I Splaymay also be interrupted with kill -2 (SIGINT) or kill -3(SIGQUIT).  These signals are caught gracefully and.I splayhalts immediately, but no message is sent to \fIxwaves\fP.  No message is sentif the play operation finishes without interruption..PP.SH ESPS PARAMETERS.PPThe parameter file is not read.  .SH ESPS COMMON.PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off".  The default ESPS Common file is .espscom in the user's home directory.  This may be overridden by settingthe environment variable ESPSCOM to the desired path.  User feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback.  If ESPS_VERBOSE is not defined, a default value of 3 isassumed..PPIf Common file processing is enabled the following are read from the Common file..IP.I "filename - string".IPThis is the name of the input file.  If no input file is specified on the command line, \fIfilename\fP is taken to be theinput file.  If an input file is specified on the command line, that input file name must match \fIfilename\fP or the other items (below) are not read from Common. .IP.I "start - integer".IPThis is the starting point in the input file to begin output.  It is not read if the \fB\-p\fP or \fB-s\fR option is used.  .sp.I "nan - integer".IPThis is the number of points to output from the input file.  It is notread if the \fB\-p\fP or \fB-s\fR option is used.  A value of zero means the lastpoint in the file..sp.PPAgain, the values of \fIstart\fR and \fInan\fR are only used if theinput file on the command line is the same as \fIfilename\fP in thecommon file, or if no input file was given on the command line.  If\fIstart\fR and/or \fInan\fR are not given in the common file, or ifthe common file can't be opened for reading, then \fIstart\fRdefaults to the beginning of the file and \fInan\fR defaults to thenumber of points in the file..PPThe following items are written into the ESPS Common file:.IP.I "start - integer".IPThe starting point from the input file..sp.I "nan - integer".IPThe number of points in the selected range..sp.I "prog - string".IPThis is the name of the program (\fIsplay\fP in this case)..sp.I "filename - string".IPThe name of the last input file.  .PPThese items are not written to ESPS COMMON if the input file is <stdin>..SH ESPS HEADER.PPThe generic header items \fImax_value\fP and \fIrecord_freq\fP areread, if they exist. If the \fB\-a\fP is specified and \fImax_value\fPexists, the value of the \fImax_value\fP header item is usedto automatically scale the data for full scale output. The \fIrecord_freq\fPheader item is checked to see if it equals 8000, if it doesn't,a warning is issued..SH DIAGNOSTICS.PP.I Splayinforms the user if the input file does not exist, it is not an ESPS sampleddata file, the sampling frequency of the input file(s) != 8000, or if inconsistent options are used..PPIf the starting point requested is greater than the last point in thefile, then a message is printed and the program exits with status 1.  Ifthe ending point requested is greater than the last point in the file,it is reset to the last point, a warning is printed and processingcontinues..SH SEE ALSO.nf\fIesps2mu\fP(1\-\s-1ESPS\s+1), \fItofeasd\fP(1\-\s-1ESPS\s+1).fi.SH AUTHOR.PPProgram by Derek Lin.  Manual page by David Burton, modified by Derek Lin.The program used a resampling funcion from Tom Veatch, Departmentof Linguistics, University of Pennsylvania.  Thanks to Tom forpermission to use the resampling function. 

⌨️ 快捷键说明

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