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

📄 srecord.1

📁 speech signal process tools
💻 1
字号:
.\" Copyright (c) 1992 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)srecord.1	1.5 3/28/97 ERL.ds ]W (c) 1992 Entropic Research Laboratory, Inc..TH SRECORD 1\-ESPS 10/24/92.SH NAMEsrecord - record to disk or pipe for SUN SPARC built-in audio device.PP.SH SYNOPSIS.B srecord[.BI \-s " duration"] [.BI \-S] [.BI \-W " xwaves display args."] [.BI \-P] [.BI \-p " prompt string"] [.BI \-x " debug-level"] [.BI \-H] [.BI \-e] [[.BI \-o].I file].PP.SH DESCRIPTION.PP.PP\fISrecord\fP provides recording to local disk using SUN SPARCstationbuilt-in audio device, sampling at 8000 Hz.Direct recording onto network disks is oftenfeasible as well.  Output data files are linear encoded and have ESPS FEA_SD headers, or,optionally, no headers.  Output may optionally be directed to\fIstdout\fP.  \fISrecord\fP has special adaptations that permit tightcoupling with \fIxwaves\fP (see \fIINTERACTION WITH XWAVES\fP below)..PPNote that processes consuming the output of\fIsrecord\fP on a pipe must be able to keep up with the average aggregatesampling frequency.  Options are available to control the recording duration, prompting, header suppression, and immediate display by \fIxwaves\fP..PP.SH OPTIONS.PPThe following options are supported:.TP.BI \-s " duration" "\fR [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 \-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..TP.BI \-eThis option causes a/d input to be echoed out the d/a during recording..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 not the last command-line component..PP.SH "INTERACTION WITH XWAVES".PP\fISrecord\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 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 signal (e.g.via "kill \-30 pid," where pid is the process ID of the \fIsrecord\fPprocess), or if \fIsrecord\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"	exec srecord  -P -s60 -S -W"name $$ loc_y 150" \\                xx$$& echo $! > foo"STOP"          kill -30 `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-30" (SIGUSR1).  This causes \fIsrecord\fP to send the "make" command to\fIxwaves\fP.  If either kill -2 (SIGINT) or kill -3 (SIGQUIT) is sent to\fIsrecord\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 another /fIsrecord/fR process is started while one is in progress,it will hang until the device becomes available.  Use the /fI-P/fR optionto signal when the recording starts..PP.SH SEE ALSO.PP.nfFEA_SD(5\-\s-1ESPS\s+1), \fItestsd\fP(1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1),\fIsplay\fP(1\-\s-1ESPS\s+1), \fIsfconvert\fP(1\-\s-1ESPS\s+1), \fIsetmax\fP(1\-\s-1ESPS\s+1),\fImu2esps\fP(1\-\s-1ESPS\s+1).fi.PP.SH AUTHOR.PPDerek Lin

⌨️ 快捷键说明

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