Skip to main content

Lokutor TTS integration for Pipecat

Project description

Pipecat Lokutor TTS

Lokutor text-to-speech integration for Pipecat.

Get an API key and test voices at app.lokutor.com.

Lokutor TTS runs entirely on CPU-only infrastructure, keeping costs low while delivering high-quality speech synthesis. No GPU markup — just affordable, scalable TTS.

Installation

pip install pipecat-lokutor

Or with uv:

uv add pipecat-lokutor

Usage

from pipecat_lokutor import LokutorTTSService

tts = LokutorTTSService(
    api_key="your_api_key",
    voice_id="F1",
    params=LokutorTTSService.InputParams(
        language="en",
        speed=1.0,
        steps=5,
        visemes=False,
    ),
)

Pipecat Pipeline

from pipecat.pipeline.pipeline import Pipeline

pipeline = Pipeline([
    transport.input(),
    stt,
    llm,
    tts,
    transport.output(),
])

Voices

Browse and test available voices at app.lokutor.com.

Supported Languages

EN, ES, FR, PT, KO

Example

See examples/groq-stt-groq-llm-lokutor-tts.py for a full example using Groq STT + Groq LLM + Lokutor TTS.

# Install dependencies
uv sync

# Set environment variables
export GROQ_API_KEY="your_groq_api_key"
export LOKUTOR_API_KEY="your_lokutor_api_key"

# Run the example
python examples/groq-stt-groq-llm-lokutor-tts.py -t webrtc

Then open http://localhost:7860/client/.

Compatibility

Tested with Pipecat v0.0.86+.

License

BSD 2-Clause License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_lokutor-0.1.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_lokutor-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_lokutor-0.1.4.tar.gz.

File metadata

  • Download URL: pipecat_lokutor-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for pipecat_lokutor-0.1.4.tar.gz
Algorithm Hash digest
SHA256 86ff91beb79eeb33a28b0addfbf71c9c57ccc41c2a6b5bd4c0d82a8022a12436
MD5 f03b1f0f9cd05b57d480955d958c7856
BLAKE2b-256 501cb0cdc61e73688346862fa9046abb74b77533680f29147836bb8db8688699

See more details on using hashes here.

File details

Details for the file pipecat_lokutor-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pipecat_lokutor-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 526c0255da125154d68785b7608aa5c4078353d082123df15ac1f019ae2190b0
MD5 700aea2ee3e8c763daa86d640f069df3
BLAKE2b-256 625afecd104a13cdb7c1b6ada63c658bdba6aaff351221d02227540a2f7ccfbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page