From 3979f858e5ae156030ad03943f8e1d7c0e83894f Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Wed, 25 Jan 2023 15:01:49 -0800 Subject: [PATCH] chore: remove deprecated twiml methods --- twilio/twiml/voice_response.py | 838 +-------------------------------- 1 file changed, 2 insertions(+), 836 deletions(-) diff --git a/twilio/twiml/voice_response.py b/twilio/twiml/voice_response.py index f6b0e365c2..b70234f7cf 100644 --- a/twilio/twiml/voice_response.py +++ b/twilio/twiml/voice_response.py @@ -7,7 +7,6 @@ """ import json -from twilio.base.obsolete import deprecated_method from twilio.twiml import ( TwiML, format_language, @@ -476,18 +475,6 @@ def sip(self, sip_url, **kwargs): """ return self.nest(ReferSip(sip_url, **kwargs)) - @deprecated_method('sip') - def refer_sip(self, sip_url, **kwargs): - """ - Create a element - - :param sip_url: SIP URL - :param kwargs: additional attributes - - :returns: element - """ - return self.sip(sip_url, **kwargs) - class ReferSip(TwiML): """ TwiML Noun used in """ @@ -723,19 +710,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -748,19 +722,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -773,19 +734,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def p(self, words=None, **kwargs): """ Create a

element @@ -797,18 +745,6 @@ def p(self, words=None, **kwargs): """ return self.nest(SsmlP(words=words, **kwargs)) - @deprecated_method('p') - def ssml_p(self, words=None, **kwargs): - """ - Create a

element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns:

element - """ - return self.p(words=words, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -822,20 +758,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -850,22 +772,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def s(self, words=None, **kwargs): """ Create a element @@ -877,18 +783,6 @@ def s(self, words=None, **kwargs): """ return self.nest(SsmlS(words=words, **kwargs)) - @deprecated_method('s') - def ssml_s(self, words=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns: element - """ - return self.s(words=words, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -902,20 +796,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -928,19 +808,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -953,19 +820,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlW(TwiML): """ Improving Pronunciation by Specifying Parts of Speech in """ @@ -988,19 +842,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -1013,19 +854,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -1039,20 +867,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -1067,22 +881,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -1096,20 +894,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -1122,19 +906,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - class SsmlSub(TwiML): """ Pronouncing Acronyms and Abbreviations in """ @@ -1175,19 +946,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -1200,19 +958,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -1225,19 +970,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def p(self, words=None, **kwargs): """ Create a

element @@ -1249,18 +981,6 @@ def p(self, words=None, **kwargs): """ return self.nest(SsmlP(words=words, **kwargs)) - @deprecated_method('p') - def ssml_p(self, words=None, **kwargs): - """ - Create a

element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns:

element - """ - return self.p(words=words, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -1274,20 +994,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -1302,22 +1008,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def s(self, words=None, **kwargs): """ Create a element @@ -1329,18 +1019,6 @@ def s(self, words=None, **kwargs): """ return self.nest(SsmlS(words=words, **kwargs)) - @deprecated_method('s') - def ssml_s(self, words=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns: element - """ - return self.s(words=words, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -1354,23 +1032,9 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): + def sub(self, words, alias=None, **kwargs): """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - - def sub(self, words, alias=None, **kwargs): - """ - Create a element + Create a element :param words: Words to be substituted :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation @@ -1380,19 +1044,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -1405,19 +1056,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlS(TwiML): """ Adding A Pause Between Sentences in """ @@ -1440,19 +1078,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -1465,19 +1090,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -1490,19 +1102,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -1516,20 +1115,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -1544,22 +1129,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -1573,20 +1142,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -1599,19 +1154,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -1624,19 +1166,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlPhoneme(TwiML): """ Using Phonetic Pronunciation in """ @@ -1668,19 +1197,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -1693,19 +1209,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -1718,19 +1221,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def p(self, words=None, **kwargs): """ Create a

element @@ -1742,18 +1232,6 @@ def p(self, words=None, **kwargs): """ return self.nest(SsmlP(words=words, **kwargs)) - @deprecated_method('p') - def ssml_p(self, words=None, **kwargs): - """ - Create a

element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns:

element - """ - return self.p(words=words, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -1767,20 +1245,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -1795,22 +1259,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def s(self, words=None, **kwargs): """ Create a element @@ -1822,18 +1270,6 @@ def s(self, words=None, **kwargs): """ return self.nest(SsmlS(words=words, **kwargs)) - @deprecated_method('s') - def ssml_s(self, words=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns: element - """ - return self.s(words=words, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -1847,20 +1283,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -1873,19 +1295,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -1898,19 +1307,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlP(TwiML): """ Adding a Pause Between Paragraphs in """ @@ -1933,19 +1329,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -1958,19 +1341,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -1983,19 +1353,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -2009,20 +1366,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -2037,22 +1380,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def s(self, words=None, **kwargs): """ Create a element @@ -2064,18 +1391,6 @@ def s(self, words=None, **kwargs): """ return self.nest(SsmlS(words=words, **kwargs)) - @deprecated_method('s') - def ssml_s(self, words=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param kwargs: additional attributes - - :returns: element - """ - return self.s(words=words, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -2089,20 +1404,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -2115,19 +1416,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -2140,19 +1428,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlEmphasis(TwiML): """ Emphasizing Words in """ @@ -2175,19 +1450,6 @@ def break_(self, strength=None, time=None, **kwargs): """ return self.nest(SsmlBreak(strength=strength, time=time, **kwargs)) - @deprecated_method('break_') - def ssml_break(self, strength=None, time=None, **kwargs): - """ - Create a element - - :param strength: Set a pause based on strength - :param time: Set a pause to a specific length of time in seconds or milliseconds, available values: [number]s, [number]ms - :param kwargs: additional attributes - - :returns: element - """ - return self.break_(strength=strength, time=time, **kwargs) - def emphasis(self, words=None, level=None, **kwargs): """ Create a element @@ -2200,19 +1462,6 @@ def emphasis(self, words=None, level=None, **kwargs): """ return self.nest(SsmlEmphasis(words=words, level=level, **kwargs)) - @deprecated_method('emphasis') - def ssml_emphasis(self, words=None, level=None, **kwargs): - """ - Create a element - - :param words: Words to emphasize - :param level: Specify the degree of emphasis - :param kwargs: additional attributes - - :returns: element - """ - return self.emphasis(words=words, level=level, **kwargs) - def lang(self, words=None, xml_lang=None, **kwargs): """ Create a element @@ -2225,19 +1474,6 @@ def lang(self, words=None, xml_lang=None, **kwargs): """ return self.nest(SsmlLang(words=words, xml_lang=xml_lang, **kwargs)) - @deprecated_method('lang') - def ssml_lang(self, words=None, xml_lang=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param xml:lang: Specify the language - :param kwargs: additional attributes - - :returns: element - """ - return self.lang(words=words, xml_lang=xml_lang, **kwargs) - def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ Create a element @@ -2251,20 +1487,6 @@ def phoneme(self, words, alphabet=None, ph=None, **kwargs): """ return self.nest(SsmlPhoneme(words, alphabet=alphabet, ph=ph, **kwargs)) - @deprecated_method('phoneme') - def ssml_phoneme(self, words, alphabet=None, ph=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param alphabet: Specify the phonetic alphabet - :param ph: Specifiy the phonetic symbols for pronunciation - :param kwargs: additional attributes - - :returns: element - """ - return self.phoneme(words, alphabet=alphabet, ph=ph, **kwargs) - def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ Create a element @@ -2279,22 +1501,6 @@ def prosody(self, words=None, volume=None, rate=None, pitch=None, **kwargs): """ return self.nest(SsmlProsody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs)) - @deprecated_method('prosody') - def ssml_prosody(self, words=None, volume=None, rate=None, pitch=None, - **kwargs): - """ - Create a element - - :param words: Words to speak - :param volume: Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB - :param rate: Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n% - :param pitch: Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n% - :param kwargs: additional attributes - - :returns: element - """ - return self.prosody(words=words, volume=volume, rate=rate, pitch=pitch, **kwargs) - def say_as(self, words, interpret_as=None, format=None, **kwargs): """ Create a element @@ -2308,20 +1514,6 @@ def say_as(self, words, interpret_as=None, format=None, **kwargs): """ return self.nest(SsmlSayAs(words, interpret_as=interpret_as, format=format, **kwargs)) - @deprecated_method('say_as') - def ssml_say_as(self, words, interpret_as=None, format=None, **kwargs): - """ - Create a element - - :param words: Words to be interpreted - :param interpret-as: Specify the type of words are spoken - :param format: Specify the format of the date when interpret-as is set to date - :param kwargs: additional attributes - - :returns: element - """ - return self.say_as(words, interpret_as=interpret_as, format=format, **kwargs) - def sub(self, words, alias=None, **kwargs): """ Create a element @@ -2334,19 +1526,6 @@ def sub(self, words, alias=None, **kwargs): """ return self.nest(SsmlSub(words, alias=alias, **kwargs)) - @deprecated_method('sub') - def ssml_sub(self, words, alias=None, **kwargs): - """ - Create a element - - :param words: Words to be substituted - :param alias: Substitute a different word (or pronunciation) for selected text such as an acronym or abbreviation - :param kwargs: additional attributes - - :returns: element - """ - return self.sub(words, alias=alias, **kwargs) - def w(self, words=None, role=None, **kwargs): """ Create a element @@ -2359,19 +1538,6 @@ def w(self, words=None, role=None, **kwargs): """ return self.nest(SsmlW(words=words, role=role, **kwargs)) - @deprecated_method('w') - def ssml_w(self, words=None, role=None, **kwargs): - """ - Create a element - - :param words: Words to speak - :param role: Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning - :param kwargs: additional attributes - - :returns: element - """ - return self.w(words=words, role=role, **kwargs) - class SsmlBreak(TwiML): """ Adding a Pause in """