[pjsip] The rate of Recording and Playing
=?GB2312?B?RmFuLUNoZW5nIFd1IIXH6PPVXA==?=
fcwu.cs95g at nctu.edu.tw
Thu Oct 9 02:25:54 EDT 2008
Hi All,
I experienced pjsua on TI Davinci, which configured ./aconfigure
--host=armv5tl-montavista-linuxeabi CFLAGS='-O2 -msoft-float -DNDEBUG
-mcpu=arm926ej-s' --disable-floating-point and defined "#define
PJSUA_DEFAULT_CLOCK_RATE (8000)" on config_site.h.
When I run pjsua to record sound of 10 second from mic to a file, the
file would be extended to 20 second long and sound lower pitch than
original one. (Play it with double rate, it sound fine.) I suppose
it's because recording device has wrong recording rate. Anybody knows
how can I adjust it?
p.s. If I recorded a default ring sound from port 02 (Port #02[
8KHz/20ms/1] ring transmitting to: ), it's also correct. So the
problem come from recording device (?).
The following are the steps I recorded sound from mic.
./pjsua-armv5tl-montavista-linux-gnueabi --rec-file=output.wav
--clock-rate=8000 --snd-clock-rate=8000
...
>>> cc 0 1
07:49:01.566 pjsua_media.c pjsua_set_snd_dev(): attempting to open
devices @8000 Hz
07:49:01.758 ec0x150df8 AEC created, clock_rate=8000, channel=1,
samples per frame=160, tail length=200 ms, latency=96 ms
07:49:01.759 conference.c Port 3 (ring) transmitting to port 1 (output.wav)
Best Regards,
FCWu
More information about the pjsip
mailing list