SolDocs
Sol + LiveKit

Your LiveKit agent. The voice of Sol.

Add Spanish speech to your agent with Sol’s LiveKit adapter. Keep your existing language model, transcription and transport.

Python 3.11+LiveKit Agents 1.8.11Streaming audio
01

Install the adapter

In your agent’s Python environment, install the adapter from the published GitHub release. Git must be installed.

Install · terminal
pip install "buildsol-livekit @ git+https://github.com/hectordiazgomez/sol-sdks.git@integrations-v0.1.0#subdirectory=integrations/livekit"

This adapter is maintained by Sol. Configure it in code; it is not yet listed in the platform’s native provider selector.

02

Add your key

Create a key in Sol → API keys and add it to your server environment.

Sol key · terminal
export SOL_API_KEY="YOUR_SOL_API_KEY"

The adapter reads this variable automatically. Keep the key on your server or in your deployment secrets.

03

Connect the voice

In your AgentSession, replace the voice provider with TTS(). Keep your existing STT, LLM and turn detection options.

LiveKit · Python
from livekit.agents import AgentSession
from buildsol_livekit import TTS

session = AgentSession(
    # Keep your existing STT, LLM and turn detection.
    tts=TTS(),
)
Choose another voice (optional)

Without parameters, Sol uses its default voice. Get another voice from GET /v1/voices and pass its ID:

Voice and speed
TTS(voice_id="YOUR_VOICE_ID", speed=1.0)
04

Test your agent

  1. Start your agent as usual and ask it for a short response in Spanish.
  2. Check that you hear the voice and review Sol usage.
  3. For cloud hosting, include the package in your agent’s dependencies and SOL_API_KEY in its secrets.
LiveKit Cloud instructions for deploying an agent from code: install the CLI, authenticate and create the agent.
LiveKit Cloud · Deploy with code

Starting from scratch? Use the complete example: livekit_agent.py.

Sol bills speech generation. Transcription, the language model and agent hosting have separate usage.

Troubleshooting

Authentication or balance error

Check that SOL_API_KEY is set in the agent process, the key is active and you have credits. Private voices must belong to that account.

Latency and interruptions

Latency depends on where your agent runs, the network, text and server load. Measure first audio in your deployment. The adapter streams arriving audio and closes the download when synthesis is cancelled.

Code and referenceSol adapterLiveKit