Skip to content

Commit

Permalink
Fix ssml_to_audio test (#2333)
Browse files Browse the repository at this point in the history
* fixing translate-with-glossary bug

* Revert "fixing translate-with-glossary bug"

This reverts commit 6a9f7ca.

* fixing ssml_to_audio test

* lint
  • Loading branch information
crowdus authored and nnegrey committed Aug 12, 2019
1 parent c7fdb13 commit a208992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Binary file modified texttospeech/ssml_addresses/resources/expected_example.mp3
Binary file not shown.
8 changes: 2 additions & 6 deletions texttospeech/ssml_addresses/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down Expand Up @@ -89,9 +87,7 @@ def text_to_ssml(inputfile):
# SSML commands
# For example, '<' --> '&lt;' and '&' --> '&amp;'

# 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
Expand Down

0 comments on commit a208992

Please sign in to comment.