diff --git a/texttospeech/ssml_addresses/resources/expected_example.mp3 b/texttospeech/ssml_addresses/resources/expected_example.mp3 index 407b85f7f5d..efa38a1428e 100644 Binary files a/texttospeech/ssml_addresses/resources/expected_example.mp3 and b/texttospeech/ssml_addresses/resources/expected_example.mp3 differ diff --git a/texttospeech/ssml_addresses/tts.py b/texttospeech/ssml_addresses/tts.py index 0482b8f0b7e..b30cfce004f 100644 --- a/texttospeech/ssml_addresses/tts.py +++ b/texttospeech/ssml_addresses/tts.py @@ -16,9 +16,7 @@ # [START tts_ssml_address_imports] from google.cloud import texttospeech -# For Python 3, instead use: -# import html -import cgi +import html # [END tts_ssml_address_imports] @@ -89,9 +87,7 @@ def text_to_ssml(inputfile): # SSML commands # For example, '<' --> '<' and '&' --> '&' - # For Python 3, instead use: - # escaped_lines = html.escape(raw_lines) - escaped_lines = cgi.escape(raw_lines) + escaped_lines = html.escape(raw_lines) # Convert plaintext to SSML # Wait two seconds between each address