You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/ivr_examples/test_mp3.py

16 lines
372 B

#
# testing mp3: play play.mp3, then record record.mp3
#
from log import *
from ivr import *
class IvrDialog(IvrDialogBase):
def onSessionStart(self):
self.voice_msg = IvrAudioFile()
self.voice_msg.open("play.mp3", AUDIO_READ, False)
self.enqueue(self.voice_msg, None)
self.voice_msg.open("record.mp3", AUDIO_WRITE, False)
self.enqueue(None, self.voice_msg)