JellyPod Speech SDK
Use Smallest AI as a TTS provider in the JellyPod Speech SDK - a universal, cross-platform TypeScript SDK that works in Node.js, edge runtimes, and the browser. Switch between providers without changing your application code.
Installation
Setup
Get your API key from app.smallest.ai and set it as an environment variable:
Models
@speech-sdk/core 0.38.0 sends every Smallest AI request, including lightning_v3.1_pro, to the legacy /lightning-v3.1/get_speech route. This works today, but that route will be retired on Nov 30, 2026. Speech through this SDK will stop working then unless the SDK moves to POST /waves/v1/tts.
The SDK supports two Lightning models:
Pass the model id to the factory to select which model to use:
Generate Speech
Add this inside any TypeScript/JavaScript file in your project - an API route, a server action, a backend script, or a CLI tool:
The createSmallestAI() factory reads SMALLEST_API_KEY from the environment automatically if no apiKey is passed.
Provider Options
All parameters are optional. Pass them via providerOptions to override defaults:
Save to File (Node.js)
Available Voices
Premium Pool (lightning_v3.1_pro)
Curated catalog with American, British, and Indian accents. Default voice: meher. Indian voices code-switch between English and Hindi; British and American voices are English-only.
Fetch the full list:
Switching Providers
One of the main benefits of the Speech SDK is swapping providers without changing application logic. To switch away from Smallest AI, replace the factory import:
Everything else - generateSpeech, result shape, metadata - stays identical.