
Developing a Voice Application
Recording Voice
1.Prepare channel 2 to record your message:
voice
The command voice invokes the voice.c program, whose arguments include:
Arguments |
|
|
Call the given number, else wait for ring. | ||
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 |
|
| 7 | |
|
| |
|
| |
| 8 | |
| sx7300 | 9 |
| sx9600 | 10 |
| gsm_610 | 14 |
gsm_660 | 15 | |
Loop forever, sending or receiving. | ||
Specify recording time in seconds. | ||
Play. |
| |
Record (default 10 seconds). | ||
Use specified channel. | ||
The
November 2009 | 58 |