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

📄 s16play.1

📁 speech signal process tools
💻 1
字号:
.\" Copyright (c) 1992 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)s16play.1	1.3 4/3/97 ERL.ds ]W (c) 1993 Entropic Research Laboratory, Inc..TH S16PLAY 1\-ESPS 4/3/97.SH NAMEs16play - send sampled data (PCM) to native Sun Sparc 16 bit audio port.PP.SH SYNOPSIS.B s16play[.BI \-r " range"] [.BI \-s " start time"] [.BI \-e " end time"] [.BI \-f " sample rate"] [.BI \-c " channel"] [.BI \-x " debug-level"] [.BI \-H] [[.BI \-i].I file] [.I more-files].PP.SH DESCRIPTION.PP.I S16playsends all or a portion of one or more ESPS, SIGnal, NIST or headerlesssampled data files to a Sun Sparc dbri digital-to-analogconverter.  This programs supports those machines that require the externalspeakerbox (such as SS 10), the SS 5, and those machines that have both the internal codec or the external speakerbox (such as Sparc LX).This program does notsupport the 8 bit codec in the SS1, SS1+, SS2, SLC, and Classic.   TheESPS program \fIsplay\fR supports those machines..PPA subrange of data within the files may be chosen; thissubrange may be specified in seconds or sample points.  Dual-channel(stereo) or single-channel (monaural) data may be converted.Single-channel input data may be directed to either or both outputchannels..PPPlayback may be stopped 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 file or a headerless file (i.e., SIGnal orNIST/Sphere files cannot be used with standard input)..PPOn a Sparcstation LX, the optional speakerbox must be attached at boottime in order to be usable.  If the speak- erbox is not attached, thenthe only available output is the internal speaker.  The internalspeaker is single channel only..PPOn a SS10, or an LX with the speakerbox the output optionsare a headphone jack, a line level output jack, and internal speakers.These are all dual channel.   .PPOn a SS5 the output options are internal speaker, headphone jack, or the linelevel output jack..PPThere is modified version of the Sun \fIgaintool\fR program in the Entropicbin directory.   This program must be used to set the output gain and to select the output (either line level jack orspeaker).  There also is a button on this panel to pause the play..PPOn the SS 10 and the LX (the SS10 is worse) the Sun audio device clicks when it is opened and when its mode is set orchanged.   This results in several clicks (or pops) being heard at thebeginning of the file.   The SS5 audio is much cleaner..SH OPTIONS.PPThe following options are supported:.TP.BI \-r " 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 alternative is specified. .IPIf multiple files were specified, the same range from each file is played..TP.BI \-s " start time"Specify the start time in seconds.  Play will continue to the end of file orthe end time specified with -e.  -s may not be used with -r..TP.BI \-e " end time"Specify the playback end time in seconds.  Play will start at thebeginning of file or the time specified by -s.  -e may not be usedwith -r..TP.BI \-f " frequency"Specifies the sampling frequency.  The closest frequency to thatrequested will be selected from those available and the user will be notifiedif the selected value differs from that requested.  If -f is notspecified, the sampling frequency in the header is used, elsethe default value for headerless files is 16kHz..TP.BI \-c " channel"Select the output channel configuration.  For files with headers, thebehavior is to play stereo if the file is stereo and to provideidentical output on both channels if the file is single-channel.If the file has no header, the default is to assume single-channeldata and provide identical output to both channels.  For headerlessfiles, this may be changed with -\fIc\fP 2 (stereo data, stereo output)..TP.BI \-HForce \fIs16play\fP to treat the input as a headerless file.  This is probably unwiseto use unless the gain on your loudspeaker or earphones is way down, sincea file that really does have a header, or a file composed of data types otherthan shorts (of the correct byte order!) will cause a terrible sound..TP.BI \-i " input file"Specify a file to be D/A converted.  Use of -i before the file designation is optionalif the filename is the last command-line component.  If no input file isspecified, or if "-" is specified, input is taken from stdin..TP.BI \-x " debug_level"Setting debug_level nonzero causes several messages to be printed asinternal processing proceeds.  The default is level 0, which causes no debugoutput..PP.SH "INTERACTION WITH XWAVES".I S16playis designed to optionally use the server mode of \fIxwaves\fP (1\-\s-1ESPS\s+1).This is especially handy when.I s16playis 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 (SIGUSR1) to the play program.  S16play 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 s16playmay 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 S16playmay also be interrupted with kill -2 (SIGINT) or kill -3(SIGQUIT).  These signals are caught gracefully and .I s16playhalts immediately, but no message is sent to \fIxwaves\fP.  No message is sent ifthe play operation finishes without interruption..PP.SH ESPS PARAMETERS.PPThe parameter file is not read.  .PP.SH ESPS COMMON.PPESPS Common is not read or written..PP.SH DIAGNOSTICS.PP.I S16playinforms the user if the input file does not exist, if inconsistentoptions are used, or if an unsupported sample rate is requested.Also see \fBWARNINGS\fP below..PPIf the starting point requested is greater than the last point in thefile, then a message is printed.  Ifthe ending point requested is greater than the last point in the file,it is reset to the last point and processing continues..PP.SH WARNINGS.PP\fIS16play\fP supports only the dbri 16 bit sampling rates.  Theseare (in Hz): 48000 44100 37800 32000  22050 18900 16000 11025 9600 8000.If you play a file that is sampled atan unsupported rate, \fIs16play\fP plays the data at the closestsupported rate and issues a warning..PP\fIS16play\fP provides stereo D/A conversion at rates up to at least48kHz when playing from local disk.  Sampling from network disks isoften feasible as well.  The maximum rate over the network isunpredictable in general, but we routinely achieve 16kHz stereo atEntropic Research Laboratory.  Of course rate limitations due tonetwork speed will be less severe for single-channel playing.Obviously, processes supplying input to.I s16playon a pipe must be able to keep up with the average aggregate sampling frequency..PP.SH FILES.PP.SH BUGS.PPIf readable header IS present, but -H is specified, the header istreated like sampled data -- usually resulting in very unpleasantsounds..PP.SH SEE ALSO.PPFEA_SD (5\-\s-1ESPS\s+1), \fItestsd\fP (1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1), .br\fIs16record\fP (1\-\s-1ESPS\s+1), \fIsfconvert\fP (1\-\s-1ESPS\s+1),\fIsgram\fP (1\-\s-1ESPS\s+1), .br\fIgaintool\fP (1).PP.SH AUTHOR.PPDavid Talkin and Alan Parker at Entropic Research Laboratory.

⌨️ 快捷键说明

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