wav player from memory (Python)

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

 



I think that Wav player with the playlist in Python will be very nice 
and helpful. If there are some plan to port this to Python it would be 
great.

thank for your reply
> On Tue, Jul 15, 2008 at 3:29 PM, Adamczak Krzysztof 
> <kradamcz at gmail.com <mailto:kradamcz at gmail.com>> wrote:
>
>     Hi,
>
>     Is there any way to play .wav file directly from memory (in Python
>     binding) ? I've tried StringIO library but it doesn't work.
>
>
> We don't have that (yet) unfortunately. We do have memory based 
> playback in pjmedia, but it hasn't been ported to Python (yet).
>  
>
>
>     I have to play many rather small .wav files (ca 200 - 500 ms
>     length) that comes through socket. Ideally those files should be
>     played without gaps.
>     Now I have a thread that operates on queue that contains file
>     names. When the .wav part arrives I create temp file and put the
>     name to the queue.
>     Wav player thread takes file name from queue, plays it to the
>     conference bridge and then sleep (time equal to .wav part length).
>     The goal is to achieve
>     a real time playback from some source.
>
>
> There is a WAV playlist object in pjsua API, where you can arrange 
> multiple WAV files in a playlist and these will be played sequentially 
> without a gap. Will that help if we have the same in Python?
>
> Cheers
>  Benny
>
>
>  
>
>     best regards,
>     chris
>
>     _______________________________________________
>     Visit our blog: http://blog.pjsip.org
>
>     pjsip mailing list
>     pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org>
>     http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>   




[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