Did I find the right examples for you? yes no

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)
The :class:`Say` verb converts text to speech that is read back to the
caller.

:param voice: allows you to choose a male or female voice to read text
              back.

:param language: allows you pick a voice with a specific language's accent
                 and pronunciations. Twilio currently supports languages
                 'en' (English), 'es' (Spanish), 'fr' (French), and 'de'
                 (German).(more...)

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
    def testEmptySay(self):
        """should be a say with no text"""
        r = Response()
        r.append(twiml.Say(""))
        assert_equal(self.strip(r), '<?xml version="1.0" encoding="UTF-8"?><Response><Say /></Response>')
 
    def testSayHelloWorld(self):
        """should say hello monkey"""
        r = Response()
        r.append(twiml.Say("Hello World"))
    def testSayFrench(self):
        """should say hello monkey"""
        r = Response()
        r.append(twiml.Say(u("n\xe9cessaire et d'autres")))  # it works on python 2.6 with the from __future__ import unicode_literal
        assert_equal(text_type(r),
    def testSayLoop(self):
        """should say hello monkey and loop 3 times"""
        r = Response()
        r.append(twiml.Say("Hello Monkey", loop=3))
        r = self.strip(r)
    def testSayLoopGreatBritian(self):
        """should say have a woman say hello monkey and loop 3 times"""
        r = Response()
        r.append(twiml.Say("Hello Monkey", language="en-gb"))
        r = self.strip(r)

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
    def testEmptySay(self):
        """should be a say with no text"""
        r = Response()
        r.append(twiml.Say(""))
        self.assertEquals(self.strip(r), '<?xml version="1.0" encoding="utf-8"?><Response><Say /></Response>')
 
    def testSayHelloWorld(self):
        """should say hello monkey"""
        r = Response()
        r.append(twiml.Say("Hello World"))
    def testSayFrench(self):
        """should say hello monkey"""
        r = Response()
        r.append(twiml.Say(u"nécessaire et d'autres"))
        self.assertEquals(unicode(r),
    def testSayLoop(self):
        """should say hello monkey and loop 3 times"""
        r = Response()
        r.append(twiml.Say("Hello Monkey", loop=3))
        r = self.strip(r)
    def testSayLoopWoman(self):
        """should say have a woman say hello monkey and loop 3 times"""
        r = Response()
        r.append(twiml.Say("Hello Monkey", loop=3, voice=twiml.Say.WOMAN))
        r = self.strip(r)