Skip to main content

๐ŸŽ™๏ธ 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โ€‹

ProviderLatencyCost/1M charsBest ForKey Feature
mock500ms$0TestingNo API key needed
openai200ms$15-30Quality6 premium voices
cartesiaLow latency~$24Real-timeEmotion control
azure300ms$0-16Budget500K free tier

๐Ÿ“š Next Stepsโ€‹

๐ŸŽฎ Interactive Demoโ€‹

Try the live demo:

# 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!

Welcome to Supernal TTS! This is a live demo of our text-to-speech widget using eSpeak (our free, open-source provider). Click the button below to hear this text spoken aloud with real speech synthesis.


Ready to get started? Check out the API Reference or jump to the Quick Reference for common patterns.