feat: add streaming TTS service with Coqui XTTS

- tts_streaming.py: NATS-based TTS using XTTS HTTP API
- Streaming audio chunks for low-latency playback
- Voice cloning support via reference audio
- Multi-language synthesis
- OpenTelemetry instrumentation with HyperDX support
This commit is contained in:
2026-02-02 06:23:34 -05:00
parent fddec4585b
commit d4fafea09b
6 changed files with 592 additions and 1 deletions

15
requirements.txt Normal file
View File

@@ -0,0 +1,15 @@
nats-py>=2.0.0,<3.0.0
httpx>=0.20.0,<1.0.0
msgpack
# OpenTelemetry core
opentelemetry-api
opentelemetry-sdk
# OTEL exporters (gRPC for local collector, HTTP for HyperDX)
opentelemetry-exporter-otlp-proto-grpc
opentelemetry-exporter-otlp-proto-http
# OTEL instrumentation
opentelemetry-instrumentation-httpx
opentelemetry-instrumentation-logging