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

📄 hpplay.1

📁 speech signal process tools
💻 1
字号:
.\" Copyright (c) 1992 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)hpplay.1	1.9 9/30/98 ERL/ATT.ds ]W (c) 1998 Entropic Research Laboratory, Inc..TH HPPLAY 1\-ESPS 9/30/98.SH NAMEhpplay - send sampled data (PCM) to HP audio.PP.SH SYNOPSIS.B hpplay[.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 Hpplaysends all or a portion of one or more ESPS, SIGnal, NIST or headerlesssampled data files to a HP system using the Audio Application ProgramInterface (AAPI).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..PP.I Hpplayuses one of the standard environment variables used by the AAPI library function:AUDIO.  \fIHpplay ignores the environment variable SPEAKER\fP, and it always sendsthe audio output to the headphone and line out jacks.Once audio is flowing to the output destination, HP's \fIAudioCP\fPprogram can toggle the output on and off. .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, PC WAVE,Esignal, and NIST/Sphere files cannot be used with standard input)..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 \fIhpplay\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 Hpplayis designed to optionally use the server mode of \fIxwaves\fP(1\-\s-1ESPS\s+1).This is especially handy when.I hpplayis 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 hpplaymay 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 Hpplaymay also be interrupted with kill -2 (SIGINT) or kill -3(SIGQUIT).  These signals are caught gracefully and .I hpplayhalts 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 hpplayinforms 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\fIhpplay\fP supports only the sampling rates supported by the hardware that theAAPI communicates with.  These cannot be guaranteed, but typically they are(in Hz): 48000 44100 32000 22050 16000 11025 8000.If you play a file that is sampled atan unsupported rate, \fIhpplay\fP plays the data at the closestsupported rate and issues a warning..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.PP.nf\fIFEA_SD\fP(5\-\s-1ESPS\s+1), \fItestsd\fP(1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1), \fIhprecord\fP(1\-\s-1ESPS\s+1), \fIsfconvert\fP(1\-\s-1ESPS\s+1), \fIsend_xwaves2\fP(3\-\s-1ESPS\s+1).fi.PP.SH AUTHOR.PPKen Hornstein at Entropic Research Laboratory.

⌨️ 快捷键说明

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