-
Notifications
You must be signed in to change notification settings - Fork 12
Setting Up (With TTS Endpoint)
If you want to use the audio generation capabilities through TikTok's Text-to-speech alongside the LLMs, this set up guide is for you.
Using the TTS endpoint in the wrapper API requires one thing, a session_id
from TikTok. To do this:
- Log in to the TikTok Web App
- Install the Cookie Editor extension for your browser
- Open the extension and search for
sessionid
- Copy the value and paste it in your desired setup in
SESSION_ID_HERE
-
pip install -r requirements.txt
-
python server.py --session-id SESSION_ID_HERE
(should now be running on localhost:1337) -
Perform a test call by running
python testcalls.py
in a separate terminal
This uses the latest image version in the Docker Hub repository
docker run -d --name keyless -p 1337:1337 -e TIKTOK_SESSION_ID=SESSION_ID_HERE callbacked/keyless:latest
If you don't want to use the Docker Hub image and want to do it yourself, you can do it one of two ways, its up to personal preference:
-
git clone https://github.com/callbacked/keyless-gpt-wrapper-api && cd keyless-gpt-wrapper-api
-
docker build -t keyless:latest .
-
docker run -d --name keyless -p 1337:1337 -e TIKTOK_SESSION_ID=SESSION_ID_HERE keyless:latest
-
git clone https://github.com/callbacked/keyless-gpt-wrapper-api && cd keyless-gpt-wrapper-api
-
docker-compose up -d