Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)
Play an audio file at a URL

:param url: point to af audio file. The MIME type on the file must be set
            correctly.

:param loop: specifies how many times you'd like the text repeated.
             Specifying '0' will cause the the :class:`Say` verb to loop
             until the call is hung up. Defaults to 1.

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
    def testEmptyPlay(self):
        """should play hello monkey"""
        r = Response()
        r.append(twiml.Play(""))
        r = self.strip(r)
    def testPlayHello(self):
        """should play hello monkey"""
        r = Response()
        r.append(twiml.Play("http://hellomonkey.mp3"))
        r = self.strip(r)
    def testPlayHelloLoop(self):
        """should play hello monkey loop"""
        r = Response()
        r.append(twiml.Play("http://hellomonkey.mp3", loop=3))
        r = self.strip(r)
    def testPlayAddAttribute(self):
        """add attribute"""
        r = twiml.Play("", foo="bar")
        r = self.strip(r)
        assert_equal(r, '<?xml version="1.0" encoding="UTF-8"?><Play foo="bar" />')
 
    def testPlayBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twiml.Play(""))

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
    def testEmptyPlay(self):
        """should play hello monkey"""
        r = Response()
        r.append(twiml.Play(""))
        r = self.strip(r)
    def testPlayHello(self):
        """should play hello monkey"""
        r = Response()
        r.append(twiml.Play("http://hellomonkey.mp3"))
        r = self.strip(r)
    def testPlayHelloLoop(self):
        """should play hello monkey loop"""
        r = Response()
        r.append(twiml.Play("http://hellomonkey.mp3", loop=3))
        r = self.strip(r)
    def testPlayAddAttribute(self):
        """add attribute"""
        r = twiml.Play("",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<?xml version="1.0" encoding="utf-8"?><Play foo="bar" />')
 
    def testPlayBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twiml.Play(""))