Developing a Voice Application

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:

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

1

 

adpcm32

 

 

adpcm24

 

 

pcm_ulaw

2

 

pcm_ulaw64

 

 

pcm_ulaw48

 

 

pcm_ulaw88

 

 

pcm_alaw

3

 

pcm_alaw64

 

 

pcm_alaw48

 

 

pcm_alaw88

 

 

g723-1

7

 

g723-1-53

 

 

g723-1-63

 

 

g729-a

8

 

sx7300

9

 

sx9600

10

 

gsm_610

14

-l

gsm_660

15

Loop forever, sending or receiving.

-n secs

Specify recording time in seconds.

-p

Play.

 

-r

Record (default 10 seconds).

-u unitnum

Use specified channel.

The -u 2 argument selects channel 2 as the recording channel; and the -rargument 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.

November 2009

58

Page 58
Image 58
Dialogic 6.2 manual Recording Voice, Arguments