Skip to content

feat(api): add uploads and voices routes - #14

Merged
prateekchaplot merged 3 commits into
mainfrom
arch/tts/t2.1
Nov 20, 2026
Merged

prateekchaplot merged 3 commits into
mainfrom
arch/tts/t2.1

Conversation

@prateekchaplot

Copy link
Copy Markdown
Owner

Task T2.1 from docs/ARCHITECTURE.md §14.

Verification: 156 unit tests (16 new); 15 integration tests (2 new) against en_US-lessac-medium (valid RIFF/WAV preview ≤ 5 s); Ruff check + format; strict mypy; git diff --check. All green.

Decisions / frozen downstream:

  • Both routes call voices.store.ensure_data_dirs(settings) lazily (idempotent); T2.3 keeps its startup bootstrap wiring.
  • GET /api/voices returns settings.defaultVoiceId from config; T2.3 owns persisted settings and should decide whether to source it from dal.get_settings().
  • Upload accepts case-insensitive .txt and text/* or application/octet-stream; missing field maps to 422 OUT_OF_RANGE (skeleton behavior).
  • Shared file: src/tts/api/__init__.py ROUTERS appended with uploads + voices; dependent tasks T2.2, T2.3.

@prateekchaplot
prateekchaplot merged commit 9cbabdf into main Nov 20, 2026
5 checks passed
@prateekchaplot
prateekchaplot deleted the arch/tts/t2.1 branch November 20, 2026 18:15
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.

1 participant