Files
Bubberstation/tools/tts
SkyratBot c632274a65 [MIRROR] Fixes tts docker (#26826)
* Fixes tts docker (#81899)

## About The Pull Request
Thank you goof very cool
couldn't actually test it because my docker build kept hanging when i
tried

## Why It's Good For The Game
## Changelog
🆑
fix: fixed some errors with the prepackaged tts
/🆑

Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com>

* Fixes tts docker

---------

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com>
Co-authored-by: Pinta <68373373+softcerv@users.noreply.github.com>
2024-03-15 16:11:55 -04:00
..

Basic documentation

To run follow these steps:

  1. Install Docker
  2. Run docker compose up -d in the ./tools/tts folder. This may take a while the first time.
  3. To build the container after making any changes to the non-persistent files, you can do docker compose build

If you are testing on local

Once it's running, edit your config so that TTS_HTTP_URL is set to http://localhost:5002 and TTS_HTTP_TOKEN is set to coolio

If you are deploying to prod

Edit your config so that TTS_HTTP_URL is a http request to your TTS server (whether that be localhost, an ip address or a domain) on port 5002 and TTS_HTTP_TOKEN is set to a random string value. You'll also need to modify the tts-api.py file and set the authorization_token variable to whatever you've set your TTS_HTTP_TOKEN to. This is to prevent unauthorized requests.