Skip to main content

The Claire Speech Engine (CSE)

The Claire Speech Engine is a production-grade, lightweight speech synthesis library built in Python.

Installation

pip install claire-speech-engine

To install from source for development:

git clone https://github.com/Yukariii04/Claire-Speech-Engine.git
cd Claire-Speech-Engine
pip install -e ".[dev]"

Quick Start

1. Setup Backend & Pre-download Models

CSE uses KittenTTS (CPU-optimized, ONNX Runtime) as its acoustic synthesis backend on Python 3.10 – 3.12.

# Setup KittenTTS dependencies and pre-download models for offline use
cse setup

2. Examples

You can instantly scaffold a runnable example into your current directory to test your setup:

cse example
python example_kittentts.py

3. Interactive CLI

# List available KittenTTS models (Nano, Micro, Mini)
cse models

# Interactively select your default model
cse model

# Interactively select your default voice
cse voice

4. Python API

from cse import SpeechEngine

engine = SpeechEngine()
engine.load_backend("kittentts")
# Loads your saved CLI preference, or falls back to backend default ('expr-voice-2-f' / 'Bella')
engine.load_voice()

speech = engine.speak("Synthesis is now extremely simple and lightweight.")
if speech.success:
    print(f"Audio saved to: {speech.audio_path}")

Architecture & Vision

Read these documents to understand the core philosophy and design of the engine:

System Overview & Roadmap

The Claire Speech Engine (CSE) is currently at v1.0.5:

  1. CSE (Framework & Orchestration): Runtime lifecycle, streaming controllers, voice registries, and user CLI configuration.
  2. CPE Baseline (Performance Reasoning Pipeline): Initial rule-based passes (meaning -> intent -> planning) that infer basic communicative intent and delivery from punctuation/structure to construct the canonical PerformanceGraph.
  3. Acoustic Synthesis: Powered by KittenTTS (ONNX) with zero PyTorch runtime overhead.

Future Development:

  1. Full CPE (Claire Performance Engine): Deep semantic understanding, emotion reasoning, context-aware dialogue planning, and rich prosody control beyond basic punctuation heuristics.
  2. CAM (Claire Acoustic Model): Custom in-house acoustic model designed to natively interpret PerformanceGraph representations.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Development

Running Tests

pytest tests/

Running Golden Tests

pytest tests/golden/test_perf_golden.py

See docs/Benchmarks/README.md for full performance targets and reports.

Download files

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

Source Distribution

claire_speech_engine-1.0.5.tar.gz (62.5 kB view details)

Uploaded Source

Built Distribution

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

claire_speech_engine-1.0.5-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file claire_speech_engine-1.0.5.tar.gz.

File metadata

  • Download URL: claire_speech_engine-1.0.5.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for claire_speech_engine-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6539243a440bbe15be2e274484cacb4fbf14e8172a51feb2f9eb47ac8d5c7952
MD5 a4568c8c58c34ea82686047d32be7c6d
BLAKE2b-256 7f773733bdb12619a1b05e276d34c912a62aab82b323fe99fe36bc987936a5e3

See more details on using hashes here.

File details

Details for the file claire_speech_engine-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for claire_speech_engine-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 132f7d0540cf1b9d2a66f0db78ca85c575316f8b0f5c0eac1248013f9b06f0b2
MD5 d5d67ba22ef0b1fc09637829ad84fba9
BLAKE2b-256 36ebcdced6dde11124f516deea95e52b37787b5e9d9d76583cd1fa412e88cc63

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0b1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page