This is a Text-to-Speech (TTS) plugin for the Trouble in Terrorist Town (TTT) game mode in Garry's Mod. It allows players to use TTS commands and quick chat messages that are read aloud using a variety of voices.
- Enable or disable TTS for the entire server or individual clients.
- Choose from a selection of voices for TTS.
- Use quick chat messages with predefined phrases.
- Super admins can control global TTS settings.
- Download the repository and place the files in your Garry's Mod server's
addons
folder. - Ensure the necessary permissions and dependencies are met for the server to access the internet for TTS functionality.
voice_1
: Enable TTS on the client.voice_0
: Disable TTS on the client.voice_zahar
,voice_oksana
,voice_alyss
,voice_omazh
,voice_jane
,voice_random
: Set the TTS voice.
speech_1
: Enable TTS on the server.speech_0
: Disable TTS on the server.
Players can use chat commands to control TTS settings or send quick chat messages. The available commands are:
!voice_1
: Enable TTS on the client.!voice_0
: Disable TTS on the client.!voice_<voice>
: Set the TTS voice (e.g.,!voice_zahar
).
Players can use predefined quick chat messages by pressing the B
key followed by a number key (1-9):
Да.
Нет.
На помощь!
Я с никто.
Я вижу никого.
Никто ведет себя подозрительно.
Никто предатель!
Никто невиновный.
Есть кто живой?
- Listens for network messages to handle TTS speak and toggle events.
- Provides console commands to control TTS settings and voice selection.
- Uses a URL encoding function to handle TTS requests to Yandex TTS API.
- Defines network messages for TTS functionalities.
- Provides commands for super admins to enable or disable TTS globally.
- Handles chat commands and key presses to trigger TTS messages.
- Manages quick chat messages and ensures they are sent with the selected voice.
Feel free to submit issues or pull requests to improve the plugin. Contributions are welcome!
This project is licensed under the MIT License. See the LICENSE
file for details.