How to replace real-time voice with (e.g.) a mp3 file in PJSIP samples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Javier,

> BTW, I tried "Remote Streaming" (streamutil) sample application but when
> trying to stream on the sender side I get an error:
>
> streamutil: ../src/pjmedia/master_port.c:67: pjmedia_master_port_create:
> Assertion 'u_port->info.clock_rate == d_port->info.clock_rate' failed
>
> Searching on the mailing list archive I read this is because streamutil does
> no resampling or channel number adjustment, so I need a mono WAV file with
> 8kHz clock rate. My question here is where can I get an encoder in order to
> transcode an audio file to this format. I'm using Debian Lenny 2.6.26-2.

Try SoX <http://sox.sourceforge.net/> ("apt-get install sox" as root
should do the trick in Debian); it allows you to convert to and from
just about anything :)

Regards,

Maarten

-- 
Privateer Software Development (www.privateer-software.nl)
* web usability, web accessibility, web development
* cross-platform software development



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux