mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
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:
@@ -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`
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user