Files
ray-serve/ray_serve/serve_tts.py
Billy D. 0fb325fa05
All checks were successful
Build and Publish ray-serve-apps / build-and-publish (push) Successful in 2m5s
feat: FastAPI ingress for TTS — GET /api/tts returns raw WAV
- Add FastAPI ingress to TTSDeployment with two routes:
  POST / — JSON API with base64 audio (backward compat)
  GET /api/tts?text=&language_id= — raw WAV bytes (zero overhead)
- GET /speakers endpoint for speaker listing
- Properly uses _fastapi naming to avoid collision with Ray binding
- app = TTSDeployment.bind() for rayservice.yaml compatibility
2026-02-21 12:49:44 -05:00

6.0 KiB