๐๏ธ Supernal TTS
High-performance Text-to-Speech API with multi-provider support, intelligent caching, and real-time audio generation.
Development Status
Supernal TTS is currently in active development. While functional, some features may be incomplete or subject to change. We appreciate your patience as we work to deliver the best TTS experience possible!
โจ Featuresโ
- ๐ Multi-Provider Support - OpenAI, Cartesia, Azure, and Mock providers
- โก Ultra-Fast Performance - Low latency latency with Cartesia
- ๐พ Intelligent Caching - Automatic content-based caching
- ๐ Production Ready - Authentication, rate limiting, security headers
- ๐ฏ Easy Integration - REST API, JavaScript SDK, and web widget
- ๐ฐ Cost Optimization - Provider comparison and cost estimation
๐ Quick Startโ
1. Install and Runโ
# Clone the repository
git clone https://github.com/supernalintelligence/supernal-nova.git
cd supernal-nova/families/supernal-tts
# Install dependencies
npm install
# Start the server (uses mock provider by default)
npm run dev
The API will be available at http://localhost:3030
2. Test with Mock Providerโ
curl -X POST https://tts.supernal.ai/api/v1/generate \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world!",
"options": {
"provider": "mock"
}
}'
3. Add Real Providersโ
Create a .env file:
# OpenAI (recommended for quality)
OPENAI_API_KEY=sk-...
# Cartesia (recommended for speed)
CARTESIA_API_KEY=...
# Azure (recommended for budget)
AZURE_API_KEY=...
AZURE_REGION=eastus
4. Generate Real Audioโ
curl -X POST https://tts.supernal.ai/api/v1/generate \
-H "Content-Type: application/json" \
-d '{
"text": "Welcome to Supernal TTS!",
"options": {
"provider": "openai",
"voice": "fable"
}
}'
๐ฏ Provider Comparisonโ
| Provider | Latency | Cost/1M chars | Best For | Key Feature |
|---|---|---|---|---|
mock | 500ms | $0 | Testing | No API key needed |
openai | 200ms | $15-30 | Quality | 6 premium voices |
cartesia | Low latency | ~$24 | Real-time | Emotion control |
azure | 300ms | $0-16 | Budget | 500K free tier |
๐ Next Stepsโ
- ๐ API Reference - Complete API documentation
- โก Quick Reference - Commands and examples
- ๐ Security Guide - Production deployment
- ๐จ Widget Guide - Web integration
- ๐ฆ Examples - Integration examples
๐ฎ Interactive Demoโ
Try the live demo:
- ๐๏ธ Widget Demo - Interactive examples of TTS widgets in action
- ๐ Documentation - Complete integration guide
# Or run comparison tests locally
./demo-scripts/compare-all-providers.sh "Test message"
๐ก Use Casesโ
- Blog Audio - Convert articles to audio
- E-learning - Course narration
- Accessibility - Screen reader enhancement
- Chatbots - Voice responses
- Podcasts - Automated narration
- Games - Character voices
๐ค Supportโ
๐ง Try It Nowโ
Development Preview
This TTS widget is currently under active development. Features may not work perfectly and are subject to change. We're working hard to improve the experience!
Ready to get started? Check out the API Reference or jump to the Quick Reference for common patterns.