docs(tts): migrate core recipes to /waves/v1/tts + Lightning v3.1 Pro#44
Merged
abhishekmishragithub merged 2 commits intoMay 20, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
EntelligenceAI PR SummaryUpdates documentation for the
Confidence Score: 5/5 - Safe to MergeSafe to merge — this PR makes purely documentation updates to the text-to-speech getting started README, accurately reflecting model-dependent language support for the Key Findings:
Files requiring special attention
|
…3.1 Pro
The TTS API has a new unified route — POST /waves/v1/tts (sync) and
/waves/v1/tts/live (SSE + WebSocket, protocol-dispatched). The legacy
model-named routes (/waves/v1/lightning-v3.1/get_speech etc.) still work but
are deprecated. New code should pick the model via the `model` body field:
"lightning_v3.1" (default, standard pool, more voices + voice cloning) or
"lightning_v3.1_pro" (premium pool, curated voice catalog).
Migrated to the unified route + Pro-by-default in these recipes:
- text-to-speech/README.md
- text-to-speech/quickstart-{curl.sh,python.py,javascript.js}
- text-to-speech/quickstart/{quickstart.py,quickstart.js,README.md}
- text-to-speech/getting-started/{python,javascript}/synthesize.{py,js}
- text-to-speech/getting-started/README.md
- text-to-speech/streaming-python.py
- text-to-speech/streaming/{python,javascript}/stream_{ws,sse}.{py,js}
- text-to-speech/streaming/README.md
Each updated recipe carries a comment explaining how to switch back to the
standard pool (drop the `model` field or set it to "lightning_v3.1"). Voice
ID defaults to "meher" (top-ranked Indian female Pro voice).
Verified live: quickstart-python.py returned 138 KB WAV; stream_sse.py
TTFB 716ms, 19 chunks, 138 KB WAV.
Recipes that depend on Pro-incompatible features are intentionally left on
the standard pool and will be migrated in a follow-up PR if/when needed:
- voice-cloning/ — Pro doesn't offer voice cloning
- multilingual-translator/, language-translation-app/ — need non-en/hi
languages that Pro voices aren't trained on
- pronunciation-dicts/ — pronunciation_dicts param is standard-pool only
Lower-priority recipes (audiobook-generator, podcast-generator,
news-voice-app, voice-gallery-app, voice-explorer, voices/, sdk-usage)
to be migrated in a follow-up; they would each benefit but were out of
scope for this batch.
ab7ed34 to
316bad7
Compare
Bot MAJOR (CORRECTNESS) on PR #44: with MODEL defaulting to lightning_v3.1_pro, the LANGUAGE table previously listed `es` and `ta` as valid options. Pro voices only support `en` (all accents) and `hi` (Indian voices). Sending `es`/`ta` to Pro returns an API error. Replace the misleading parenthetical with a Pro-vs-Standard-aware description that points users to MODEL=lightning_v3.1 when they need the wider 12-language catalog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the core TTS recipes to the new unified
/waves/v1/ttsroute and switches the defaultmodeltolightning_v3.1_pro(the new Pro pool). Code samples on the docs site (PR smallest-inc/smallest-ai-documentation#146) are updated in lockstep.Why
POST /waves/v1/tts(sync) and/waves/v1/tts/live(SSE + WebSocket, protocol-dispatched). The legacy model-named routes (/waves/v1/lightning-v3.1/get_speechetc.) still work but are deprecated.modelbody field, defaultlightning_v3.1, orlightning_v3.1_profor the Pro pool. No URL change needed mid-pipeline.What changed
Migrated to the unified route + Pro-by-default:
text-to-speech/README.mdtext-to-speech/quickstart-{curl.sh, python.py, javascript.js}text-to-speech/quickstart/{quickstart.py, quickstart.js, README.md}text-to-speech/getting-started/{python, javascript}/synthesize.{py, js}text-to-speech/getting-started/README.mdtext-to-speech/streaming-python.pytext-to-speech/streaming/{python, javascript}/stream_{ws, sse}.{py, js}text-to-speech/streaming/README.mdEach updated recipe carries an inline comment explaining how to switch back to the standard pool (drop the
modelfield or set it to"lightning_v3.1"). Voice ID defaults tomeher(top-ranked Indian female Pro voice).Verified live against the production API
quickstart-python.py→ 138,284 bytes WAVstreaming/python/stream_sse.py→ TTFB 716ms, 19 chunks, 138,240 bytes WAV/waves/v1/ttsREST sync: 200 OK/waves/v1/tts/liveSSE: 200 OK,text/event-streamwss://api.smallest.ai/waves/v1/tts/liveWS: 200 OK, TTFB ~236msWhat's NOT in this PR (intentional)
Recipes that depend on features the Pro pool doesn't offer remain on the standard pool — they'll be revisited in a follow-up if/when relevant:
voice-cloning/— Pro doesn't offer voice cloning.multilingual-translator/,language-translation-app/— need non-en/hi languages that Pro voices aren't trained on.pronunciation-dicts/—pronunciation_dictsbody field is standard-pool only.Lower-priority recipes (
audiobook-generator,podcast-generator,news-voice-app,voice-gallery-app,voice-explorer,voices/,sdk-usage) would each benefit but were out of scope for this batch.Dependency / merge sequence
Land smallest-inc/smallest-ai-documentation#146 first so the Pro model card URL referenced from these recipes' READMEs (
/waves/model-cards/text-to-speech/lightning-v-3-1-pro) resolves. The recipe code itself works regardless — the API endpoint is already live.