Sam Kaufman writes:

> > Is the MP3 format supported by AmAudioFile?
> 
> It is. I'm using it to play MP3s. (I've loaded the 'mp3' plug-in.)

in order to test playing of mp3 files i made a short test script:

from log import *
from ivr import *

class IvrDialog(IvrDialogBase):
    
    def onSessionStart(self, hdrs):

        info("starting to tango ...")

        self.setNoRelayonly()
        
        self.audio_msg = IvrAudioFile()
        self.audio_msg.open("/home/jh/test/Tango.mp3", AUDIO_READ)
        self.enqueue(self.audio_msg,None)

    def onEmptyQueue(self):

        if not self.queueIsEmpty():
            return

        self.bye()
        self.stopSession()
        return        

    def onBye(self):            

        self.stopSession()

tango gets played, but at very slow motion.  any idea how to speed up
the play?

i have these mp3 packages installed on debian squeeze:

/usr/lib/sems/ivr# dpkg -l | egrep mpg
ii  libmpg123-0                                   1.12.1-2                      
 MPEG layer 1/2/3 audio decoder -- runtime library
ii  libmpg123-dev                                 1.12.1-2                      
 MPEG layer 1/2/3 audio decoder -- development files
ii  mpg123                                        1.12.1-2                      
 MPEG layer 1/2/3 audio player
ii  mpg123-alsa                                   1.12.1-2                      
 MPEG layer 1/2/3 audio player with ALSA support - dummy packag
/usr/lib/sems/ivr# dpkg -l | egrep lame
ii  lame                                          3.98.4-0.0                    
 LAME Ain't an MP3 Encoder
ii  libmp3lame-dev                                3.98.4-0.0                    
 LAME Ain't an MP3 Encoder
ii  libmp3lame0                                   3.98.4-0.0                    
 LAME Ain't an MP3 Encoder
ii  libtwolame0                                   0.3.12-1                      
 MPEG Audio Layer 2 encoding library

-- juha
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to