-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I've been thinking about the flooding problem (when players flood TTS with the same word and you get a ban from GoogleTranslate). Reuse already spoken phrases by building a cache of them.
If I read it correctly, here you save the samples to files anyway:
Line 294 in d1702d8
| myobj.save(fname) |
When players repeat the same phrase, you could use the already saved sample. Of course, this would imply that you save files with a different naming convention, and it would only be useful for relatively short, but common phrases, so I'm not really sure if it would worth the effort. Also it wouldn't stop players from simply flooding the system with different phrases. Rest assured, some rate limiting would probably help.
I'd love to provide a pull request, but I don't (yet?) have a test environment for Sven Co-op server configs. I only have a HLDM server so far – as you might guess, that's easier to maintain. :D