feat(tts): declarative TTS_PROVIDERS table + resolve/preflight#213
Open
MohammedAnasNathani wants to merge 1 commit into
Open
feat(tts): declarative TTS_PROVIDERS table + resolve/preflight#213MohammedAnasNathani wants to merge 1 commit into
MohammedAnasNathani wants to merge 1 commit into
Conversation
Add a leaf tts module mirroring llm.ProviderSpec: openai/elevenlabs/local specs, resolve_tts_backend/model/voice, and check_tts_sdk/model. Auto never selects noncommercial local backends; cloud providers have no hardcoded default model. Unwired — no Config/CLI/pyproject changes. Closes alphacrack#193
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
Closes #193 (slice 1 of #113).
What
New leaf module
src/readme2demo/tts.py(no importers yet):TTSProviderSpec+TTS_PROVIDERSllm.ProviderSpec/PROVIDERSresolve_tts_backendresolve_backend— auto skipsnoncommercialresolve_tts_model/resolve_tts_voice_provider_model(+ voice)check_tts_sdk/check_tts_modelcheck_sdk/check_modelPolicy encoded as data
default_model(same incident class as the stale Gemini default 404)default_voiceis set (taste default operators should not have to supply)autonever selectslocal(noncommercial=True, CC-BY-NC named in the spec)Explicitly not in this PR
Configfield / CLI flag /pyproject.tomlextrascli.pypreflight (next slice)Test plan
pytest tests/test_tts_providers.py— 13 passedruff checkcleantts