Hey Guys, Im planning to train a TTS model, Can I ...
# ask-ai
t
Hey Guys, Im planning to train a TTS model, Can I run it later using livekit ?
t
Thanks for reaching out, Khalid. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
t
ok
t
Thanks — regarding running a custom-trained TTS model with LiveKit: I cannot confirm that LiveKit can directly host or run a user-trained TTS model. LiveKit supports integrating pre-built TTS providers (like ElevenLabs, Google, Amazon Polly) and using TTS via LiveKit Agents/plugins or LiveKit Inference, but it does not state that LiveKit will host custom model training or serve arbitrary user-trained models. Two practical options you can use instead: • Host your trained TTS model yourself (or on a cloud inference endpoint) and call it from your application, then send the generated audio into LiveKit as a media track or via server-side publishing. • Wrap your model behind an HTTP/gRPC inference API and integrate that with LiveKit Agents or your application’s server so LiveKit can play the returned audio into rooms. To advise the best approach, can you tell me: 1. Where do you plan to host your trained model (self-hosted server, AWS/GCP/Azure, or another inference service)? 2. Do you want LiveKit to trigger TTS generation and play audio into rooms automatically, or will your app handle generating and publishing audio? I can then give concrete integration steps for your setup.
Thanks — quick follow-up and next step. I can’t confirm LiveKit will host or run a user-trained TTS model. LiveKit supports integrating pre-built TTS providers and playing TTS audio into rooms, but running custom model training or directly serving arbitrary user-trained models is not provided. Two practical options you can use: • Host your trained model on your own server or cloud inference endpoint, generate audio there, then publish the audio into LiveKit as a media track (client- or server-side). • Expose your model via an HTTP/gRPC inference API and have a LiveKit Agent or your app call it, fetch audio, and play/publish the returned audio into rooms. To give concrete steps for your setup, please tell me: 1. Where will you host the model? (self-hosted, AWS/GCP/Azure, or other) 2. Do you want LiveKit to trigger generation and play audio automatically, or will your app generate and publish audio?
t
Summraize my TTS is in the cloud already can I link it
t
Yes — you can link a cloud-hosted TTS to LiveKit. How to integrate (two common approaches): • App-side flow a. Your app calls your cloud TTS API to generate audio. b. Receive the audio file/stream (e.g., WAV/MP3). c. Publish that audio into a LiveKit room as a participant's track (client-side SDK) or play it into the room on the client. • Server/Agent-side flow a. Expose your TTS model via an HTTP/gRPC inference endpoint. b. A server (or LiveKit Agent) calls the endpoint, gets back audio. c. Server publishes the audio into the LiveKit room (server-side publishing or using an Agent to inject audio). Things to consider: • Audio format and codec compatibility (use WAV/PCM or a codec supported by your SDK). • Latency and synchronous vs. asynchronous generation (streaming vs. file). • Authentication to your TTS endpoint and securing requests. • Whether you want LiveKit to auto-trigger generation (use an Agent or server logic) or let clients trigger it. If you tell me which cloud provider and whether you prefer app-side or server-side publishing, I’ll give concise, step-by-step instructions for that exact setup.