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.2.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipecat_lokutor-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1205f52553fe075a097a231974d3073f0937f1d1477bbbc52b125997b0196aac
MD5 91c1433cd8dd05379e88bec7f5fc06ee
BLAKE2b-256 45c9903da10da3258814a5cf8be7bc93a4c98abd152c8c392ba6f98366a6b07b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pipecat_lokutor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8575053904236c06e7c648790fb117aa85f7db2c41ec2cfd7dbd445fa24efb26
MD5 5335ceecb0d91775d0a782a83dbc8d2e
BLAKE2b-256 08bc65cf331e3bb4531268aeddd6e073782e3af3df8c288f474e21daa5ab0c5d

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