Fixes some TTS setup (#75501)

## About The Pull Request
Fixes the api not working + instructions

🆑
fix: fixed TTS not working when used by local servers
/🆑

Co-authored-by: TiviPlus <572233640+TiviPlus@users.noreply.com>
This commit is contained in:
TiviPlus
2023-05-18 17:33:00 +02:00
committed by GitHub
parent d25e096e13
commit ff6102addf
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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`
+1 -1
View File
@@ -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():