SolDocs
Sol + Pipecat

Your Pipecat agent. The voice of Sol.

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

Python 3.11+Pipecat 1.15.0Streaming 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-pipecat @ git+https://github.com/hectordiazgomez/sol-sdks.git@integrations-v0.1.0#subdirectory=integrations/pipecat"

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.

Pipecat Cloud form for configuring SOL_API_KEY in a secret set. The key value is empty.
Pipecat Cloud · Secrets
03

Connect the voice

In your existing pipeline, put SolTTSService after the LLM and before audio output. Set output to 24 kHz.

Pipecat · Python
from buildsol_pipecat import SolTTSService
from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.worker import PipelineParams, PipelineWorker

tts = SolTTSService()
pipeline = Pipeline([
    transport.input(), stt, context_aggregator.user(), llm,
    tts, transport.output(), context_aggregator.assistant(),
])
worker = PipelineWorker(
    pipeline,
    params=PipelineParams(audio_out_sample_rate=24000),
)
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
SolTTSService(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.

Starting from scratch? Use the complete example: pipecat_speech.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 adapterPipecat