Skip to main content

Lokutor TTS integration for Pipecat

Project description

Pipecat Lokutor TTS

Lokutor text-to-speech integration for Pipecat.

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

Voice Description
M1-M5 Male voices
F1-F5 Female voices

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.0.tar.gz (4.7 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.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pipecat_lokutor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c77403a289848aab8bcb3cff849354f4c91ee38c4937d89ccc1cd67515d0bcb6
MD5 061d47dee129e14d79eca617f44a1b80
BLAKE2b-256 7c11a4b3c9140f2334d38968d2a6af3beb9d0a34fdbbaba3e3b3b807768fbfd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pipecat_lokutor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f63b130f332538b290996213821362d75d4f106b1835965bada7c032f0ffd29e
MD5 48b40b52f279a7303d98432a26c3d4c5
BLAKE2b-256 6d394249595a0ea5b9f9443c5c77bfb75273523ad6839ee8f63e60fcadc0924a

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