ejbeaty/ChattyKathy

cache conflict with multiple voices.

Opened this issue · 1 comments

When using multiple objects for different voices, if you do Amy.Speak('blah') and then do something like Justin.Speak('blah), Justin uses Amy's voice too.

This is because you've cached the string "blah" so you're not sending a request to Polly, you're just getting the old audio from the cache. You either need to set caching to false or modify the code to store the strings per voice in the cache.