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:
- CSE (Framework & Orchestration): Runtime lifecycle, streaming controllers, voice registries, and user CLI configuration.
- 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 canonicalPerformanceGraph. - Acoustic Synthesis: Powered by KittenTTS (ONNX) with zero PyTorch runtime overhead.
Future Development:
- Full CPE (Claire Performance Engine): Deep semantic understanding, emotion reasoning, context-aware dialogue planning, and rich prosody control beyond basic punctuation heuristics.
- CAM (Claire Acoustic Model): Custom in-house acoustic model designed to natively interpret
PerformanceGraphrepresentations.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6539243a440bbe15be2e274484cacb4fbf14e8172a51feb2f9eb47ac8d5c7952
|
|
| MD5 |
a4568c8c58c34ea82686047d32be7c6d
|
|
| BLAKE2b-256 |
7f773733bdb12619a1b05e276d34c912a62aab82b323fe99fe36bc987936a5e3
|
File details
Details for the file claire_speech_engine-1.0.5-py3-none-any.whl.
File metadata
- Download URL: claire_speech_engine-1.0.5-py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
132f7d0540cf1b9d2a66f0db78ca85c575316f8b0f5c0eac1248013f9b06f0b2
|
|
| MD5 |
d5d67ba22ef0b1fc09637829ad84fba9
|
|
| BLAKE2b-256 |
36ebcdced6dde11124f516deea95e52b37787b5e9d9d76583cd1fa412e88cc63
|