Customer-service-assistant tts-service
Shared text-to-speech microservice for the multi-tenant voice assistant platform.
install
source · Clone the upstream repo
git clone https://github.com/papdawin/customer-service-assistant
manifest:
tts/skill.mdsource content
TTS Service (Piper)
Purpose
Provide text-to-speech for a multi-tenant voice assistant deployed at different companies. This service is shared across tenants.
Interfaces
- HTTP GET
for voice and device info./health - HTTP POST
for speech synthesis./speak
Models
- Piper voice ONNX from
with configPIPER_VOICE
.PIPER_VOICE_JSON
Libraries
fastapi
(PiperVoice)piperpydantic- stdlib:
,io
,wave
,base64
,timeos
Runtime Config
(voice path)PIPER_VOICE
(voice config)PIPER_VOICE_JSON
(cpu or cuda)TTS_DEVICE
Main Components
- Voice load on startup.
validation.SpeakRequest- WAV serialization and JSON or binary response.