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

📄 hprecord.1

📁 speech signal process tools
💻 1
字号:
.\" Copyright (c) 1993-1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)hprecord.1	1.8 20 Sep 1997 ERL/ATT.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH HPRECORD 1\-ESPS 20 Sep 1997.SH NAMEhprecord - mono or stereo record to disk or pipe for HP 700.PP.SH SYNOPSIS.B hprecord[.BI \-s " duration"] [.BI \-f " sample rate"] [.BI \-c " channel"] [.BI \-S] [.BI \-W " xwaves display args."] [.BI \-P] [.BI \-p " prompt string"] [.BI \-x " debug-level"] [.BI \-H] [.BI \-I] [.BI \-o].I file].PP.SH DESCRIPTION.PP.PP\fIHprecord\fP provides mono or stereo sampling at selected rates up to at least 48kHz whenrecording to local disk.  Direct recording onto network disks is oftenfeasible as well.  Output files have ESPS FEA_SD headers, or,optionally, no headers.  Output may optionally be directed to\fIstdout\fP.  \fIHprecord\fP has special adaptations that permit tightcoupling with \fIxwaves\fP (see \fIINTERACTION WITH XWAVES\fP below)..PPWhen no output file is specified, \fIhprecord\fP will, by default, write a FEA_SD fileto standard output.  When stereo recordingis selected (see the -c option) channels 0 and 1 alternate in the file, withchannel 0 being first.  Note that processes consuming the output of\fIhprecord\fP on a pipe must be able to keep up with the average aggregatesampling frequency.  Options are available to control the sampling rate, recording duration, prompting, header suppression, and immediate display by \fIxwaves\fP..PPThis program is for HP Series 700 systems using the Audio Application ProgramInterface (AAPI).  To use this program, the audio server must be enabled asdetailed in the \fIAudio\fP (5) man page..PP\fIhprecord\fR uses the standard environment variables used by the AAPI libraryfunctions.  As of this writing, these consist of \fBAUDIO\fP to set the nodeof the audio server to use..PP.SH OPTIONS.PPThe following options are supported:.TP.BI \-s " duration" [10]Specifies the maximum duration of the recording session in seconds.Recording may be interrupted before this time expires with SIGINT,SIGQUIT or SIGUSR1 (see below).  The default \fIduration\fP is 10 seconds.The upper limit is set only by disk space..TP.BI \-f " frequency" [16000]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 default sampling frequency of 16kHz is used..TP.BI \-c " channel" [1]By default hprecord samples and stores single-channel data from the left channel.Dual-channel (stereo) recording is selected by setting \fIchannel\fP to 2..TP.BI \-SEnable the \fIxwaves\fP(1-ESPS) "make" command via \fIsend_xwaves2\fP(3-ESPS) when therequested recording time has elapsed or when recording is interrupted.  This permits immediate examination of the recorded passage using \fIxwaves\fP.  See \fIINTERACTION WITH XWAVES\fP below..TP.BI \-WThe argument to this option will be appended to the \fIsend_xwaves\fP"make" command to permit display customization (e.g. viawindow location and size specifications).  See \fIINTERACTIONWITH XWAVES\fP below..TP.BI \-PEnable a prompt message when A/D has actually commenced.  The default messageis a "bell ring" and the text "Start recording now ...."  This prompt may be changedwith the \-p option..TP.BI \-p " prompt string"\fIPrompt string\fP will be used as the alert that recording is commencing.  Specifying\-p forces -P..TP.BI \-HSuppresses header creation.  A "bare" sample stream will result.  The default isto produce an ESPS FEA_SD file with one or two channels depending on the\-c option..TP.BI \-ISelects the line input jack, rather than the mic input.  This is usually higher quality..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..TP.BI -o " output"Specifies a file for output.  Use of -\fIo\fP before the file designation is optionalif the filename is the last command-line component.  If no output file isspecified or if "-" is specified, output will go to \fIstdout\fP..PP.SH "INTERACTION WITH XWAVES".PP\fIHprecord\fP is designed to optionally use the server mode of \fIxwaves\fP(1-ESPS) fordisplay of its output file on completion of the record operation.This is implemented using \fIsend_xwaves2\fP(3-ESPSu).  The followingconditions must be met for this feature to work.  (1)\fIxwaves\fP(1-ESPS)must berunning in the server mode. (2) The environment variables WAVES_PORTand WAVES_HOST must be correctly defined (see \fIespsenv\fP(1-ESPS)).  (3)The record operation must be interrupted with a SIGUSR1 signalor if \fIhprecord\fP is not thus interrupted, the -\fIS\fP flag must havebeen set.  (4) Output must be to a file..PPAn example \fImbuttons\fP(1-ESPS) script to implement a primitive recordcontrol panel follows:.PP.nf.na.ne 10"RECORD Mono"  exec hprecord  -P -s60 -S -W"name $$ loc_y 150" \\                xx$$& echo $! > foo"RECORD Stereo" exec hprecord -P -c2 -s60 -S -W"name $$ loc_y 150" \\                xx$$& echo $! > foo"STOP"          kill -16 `cat foo`"ERASE"         f=`cat foo` ; k=`echo $f 1 - p q | dc` ; \\		kill -2 $f ; rm -f xx$k ; send_xwaves kill name $k.fi.ad.PPNote how the -\fIW\fP option is used to name the display ensemble and to fixthe vertical location of the waveform at the same place on consecutiveinvocations.  In general, the -\fIW\fP option can be used to augment thedisplay generation as described under the "make" command in the \fIxwaves\fPmanual.  Note that the "STOP" function is implemented with a "kill-16" (SIGUSR1).  This causes \fIhprecord\fP to send the "make" command to\fIxwaves\fP.  If either kill -2 (SIGINT) or kill -3 (SIGQUIT) is sent to\fIhprecord\fP, it will terminate gracefully, but will not send any messagesto \fIxwaves\fP.  The -\fIS\fP option causes the \fIxwaves\fP display operation to occureven in the non-interrupted case (i.e. after 60 sec of recording).The above script is not robust, but may serve as a useful startingpoint for more serious attempts..PP.SH ESPS PARAMETERS.PPThe parameter file is not read.  .PP.SH ESPS COMMON.PPESPS Common is not read or written..PP.SH WARNINGS.PPWhen output is to a file, the ESPS header, if it is present, willcorrectly reflect the absolute maximum sample value encountered duringrecording and the number of samples recorded.  If output is to a pipe,these values are not recorded in the header..PPIf the output of \fIhprecord\fP goes to the terminal, bad things willhappen to the terminal configuration and you may not be able to regaincontrol of the terminal.  In this case, kill the window or kill therecord process remotely from another window..PP\fIHprecord\fP supports only the sampling rates supported by the hardware thatthe AAPI communicates with.  These cannot be guaranteed, but typically theyare (in Hz): 48000 44100 32000  22050 16000 11025 8000.If you try to record a file atan unsupported rate, \fIhprecord\fP records the data at the closestsupported rate and issues a warning..PPThe maximum rate over the network is unpredictable in general, but weroutinely achieve 16kHz stereo at Entropic Research Laboratory.  Ofcourse rate limitations due to network speed will be less severe forsingle-channel recording..PP.SH FILES.PP.SH BUGS.PP.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), \fIhpplay\fP(1\-\s-1ESPS\s+1), \fIsfconvert\fP(1\-\s-1ESPS\s+1),.fi.PP.SH AUTHORS.PPKen Hornstein at Entropic Research Laboratory.

⌨️ 快捷键说明

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