diff --git a/tools/tts/documentation.md b/tools/tts/documentation.md index bf1b97c05aa..b1aa4d11501 100644 --- a/tools/tts/documentation.md +++ b/tools/tts/documentation.md @@ -1,8 +1,8 @@ ## Basic documentation -To run, simply do `docker compose up -d` in the tts and ffmpeg folders. -This will build the container if it isn't build already, but if it is, then it'll re-use the built image. - -To build the container after making any changes to the non-persistent files, you can do `docker compose build` +To run follow these steps: +1. Install [Docker](https://docs.docker.com/get-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` diff --git a/tools/tts/tts-api/tts-api.py b/tools/tts/tts-api/tts-api.py index 08a3896d54a..8c590ca0b13 100644 --- a/tools/tts/tts-api/tts-api.py +++ b/tools/tts/tts-api/tts-api.py @@ -7,7 +7,7 @@ from flask import Flask, request, send_file, abort app = Flask(__name__) -authorization_token = os.get_env("TTS_AUTHORIZATION_TOKEN", "coolio") +authorization_token = os.getenv("TTS_AUTHORIZATION_TOKEN", "coolio") @app.route("/tts") def text_to_speech():