[MIRROR] [MDB IGNORE] Adds TTS to the game. Players can select their own voices in preferences. #5831
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original PR: tgstation/tgstation#74775
Copy from #73967
About The Pull Request
Allows players to hear tts messages from others, as well as selecting their own voices. The patreon received enough money for a GPU server, so this may be viable on the scale of our community once more.
It's all handled via python http requests to a local server. Docker is required to set up, but the container can be held on a separate linux server as it's only used to process text into audio and send it back via http requests.
TTS engine used in python script:
VITS: https://arxiv.org/pdf/2106.06103
coqui: https://github.com/coqui-ai/TTS
Base image is debian.
This is all handled locally. There are no calls to a third-party service.
TTS can be disabled via preferences if a player wishes to not hear it in game.
Why It's Good For The Game
TTS is cool.
Changelog
🆑 Watermelon914, Iamgoofball, MrStonedOne
add: Adds TTS to player speech. Players can hear themselves speak.
/:cl: