Add TTS/STT service with Coqui TTS and faster-whisper

- Added tts-stt service definition to docker-compose.yml
- Created tts-stt directory with:
  - Dockerfile: Based on debian:trixie-slim with ROCm dependencies
  - requirements.txt: Python packages including TTS, faster-whisper, FastAPI
  - app.py: FastAPI service with /tts and /stt endpoints
- Service includes GPU device mapping (/dev/kfd, /dev/dri) for ROCm acceleration
- Uses YourTTS multilingual model for TTS and large-v3 for Whisper
- Configured to use persistent storage for models and cache
This commit is contained in:
Hermes Agent
2026-04-27 10:51:56 +00:00
parent fb0f2cbe84
commit ea1ddd8c63
4 changed files with 208 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
fastapi==0.104.1
uvicorn[standard]==0.24.0
TTS==0.22.0
faster-whisper==1.0.3
python-multipart==0.0.6
torch==2.3.0
torchaudio==2.3.0