Prototype for text-to-speech integration with ChatMate using Coqui TTS. Livestream chat messages are converted to audio as they come in, then automatically played to the user.
- Bun
dockersudo apt install docker.io
docker-composesudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-compose
nvidia-container-toolkit-
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list sudo apt-get install -y nvidia-container-toolkitsudo nvidia-ctk runtime configure --runtime=dockersudo systemctl restart docker- A running instance of Coqui TTS
sudo docker pull ghcr.io/coqui-ai/tts- Run the container:
sudo docker run --rm -it -p 5002:5002 --gpus all --entrypoint /bin/bash ghcr.io/coqui-ai/tts - Check the list of models:
python3 TTS/server/server.py --list_models - Start the REST API server:
python3 TTS/server/server.py --model_name tts_models/en/vctk/vits --use_cuda true
- Ollama
ollama run gemma3:4bto download the modelollama create tts-filter -f ./Modelfileto create the custom chat filter. This needs to be run whenever theModelfileis changed.
-
To install Node dependencies:
bun installTo run:
bun run index.ts