Dialogic 6.2 Manuale Utente

Pagina di 441
Developing a Voice Application
November 2009
58
Recording Voice
1. Prepare channel 2 to record your message:
voice -u 2 -r voice.ips
The command voice invokes the voice.c program, whose 
arguments include:
The -u 2 argument selects channel 2 as the recording channel; 
and the -r argument places channel 2 in record mode. Voice.ips 
is the speech infopkt stream file in which to store the voice 
message. The channel waits for a ring signal.
Arguments
-c num
Call the given number, else wait for ring.
-f
Specify record coding format; use the number of 
the format or one of the following names:
adpcm 
 
adpcm32 
 
adpcm24
 
pcm_ulaw
 
pcm_ulaw64
 
pcm_ulaw48 
 
pcm_ulaw88
 
pcm_alaw
 
pcm_alaw64
 
pcm_alaw48
 
pcm_alaw88
 
g723-1
 
g723-1-53
 
g723-1-63
 
g729-a
 
sx7300
 
sx9600
 
gsm_610
 
gsm_660
 
 
 
 
 
 
 
 
 7  
 
 
 8 
 9 
10 
14 
15
-l
Loop forever, sending or receiving.
-n secs
Specify recording time in seconds.
-p
Play.
-r
Record (default 10 seconds).
-u unitnum
Use specified channel.