Skip to content

feat: Add ModelsLab TTS engine#30

Merged
willwade merged 2 commits into
AACTools:mainfrom
adhikjoshi:feature/add-modelslab-engine
Feb 20, 2026
Merged

feat: Add ModelsLab TTS engine#30
willwade merged 2 commits into
AACTools:mainfrom
adhikjoshi:feature/add-modelslab-engine

Conversation

@adhikjoshi
Copy link
Copy Markdown
Contributor

Adds ModelsLab as a TTS engine, sister PR to willwade/tts-wrapper#66. Implements ModelsLabTTSClient with 9 voices, async polling, Node+browser support.

- Added ModelsLabTTSClient in src/engines/modelslab.ts
- Registered in factory.ts, factory-browser.ts, index.ts, browser.ts
- Added 'modelslab' to SupportedTTS/SupportedBrowserTTS unions
- Added 'modelslab' to UnifiedVoice provider union in types.ts
- Supports 9 voices (madison, tara, leah, jess, mia, zoe, leo, dan, zac)
- Handles async audio generation with polling
- Works in both Node.js and browser environments via getFetch()
@AACTools AACTools deleted a comment from chatgpt-codex-connector Bot Feb 20, 2026
Added @types/node in devDependencies.
Needed because TypeScript build failed (TS2688: Cannot find type definition file for 'node') after clean install.
emoved one malformed lock entry (node_modules/sherpa-onnx-node/node_modules/sherpa-onnx-linux-arm64 without a version) that caused npm install/ci to crash with Invalid Version:.
Lockfile also got small metadata churn from npm re-resolution (peer flags/versions), but no runtime code changed there.
Simplified dynamic loading and improved fallback conversion for emphasis/prosody syntax.
Needed because tests were failing in speech-markdown-converter.test.ts and throwing Jest teardown import errors.
@willwade willwade merged commit c6429a9 into AACTools:main Feb 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants