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.3.tar.gz (6.1 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.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pipecat_lokutor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 82e83621e8a6d404724d2137d5278549084b3922d3e970478f571e4551728bdc
MD5 65fab4e8354e4b2c8a38ff69b41f0326
BLAKE2b-256 e7598debaf3e7a9ba4fad5df9212392f2bf59a638892f074cb317f1723bf2317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pipecat_lokutor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17226a7f5190d56db20a78ddfbe897fcd1edba0ce71d613104063af815a81b3a
MD5 5802335e4cf3305215e038d9fe4f3f45
BLAKE2b-256 19e4a724ce0a849b9dda2cef99e9925bd815d3058423de2d044b9c2a0952ba82

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