Is anyone using TTS AWS Polly with SSML? I am get...
# agents
b
Is anyone using TTS AWS Polly with SSML? I am getting InvalidSsmlException errors unless I use the most trivial sentences: Works: <speak>Hi! My name is Joanna.</speak> Fails: <speak>Hi! My name is Joanna. What is yours?</speak>
g
in your local dev and see what happens
my gut feeling is that it's the way the sentence is being tokenized, but I have not tested it myself
Copy code
print(self._input_text)
will likely get you some information though
wdyt
if you discover it is tokenization you might be able to fork the
TTS
provider / use a pre TTS callback that ensures the test is wrapped in
<speak>
no matter how it's tokenized