Skip to content

feat: add demo page and update README with demo link; change voice gender to male - #12

Merged
ronibhakta1 merged 1 commit into
readium:mainfrom
ronibhakta1:feature/#11-Demo
Jul 6, 2026
Merged

feat: add demo page and update README with demo link; change voice gender to male#12
ronibhakta1 merged 1 commit into
readium:mainfrom
ronibhakta1:feature/#11-Demo

Conversation

@ronibhakta1

Copy link
Copy Markdown
Contributor

Closes #11
This pull request introduces a new browser-based demo page for the TTS API, accessible at /demo, and makes a correction to the metadata for the "alba" voice across all supported languages. The main changes include serving a static HTML demo, updating the "alba" voice's gender to "male" in the voice data, and adding a test to ensure the demo page is available.

New browser demo and API endpoint:

  • Added a static HTML demo page (app/static/demo.html) that allows users to interactively select voices, synthesize speech, and view equivalent curl commands, with advanced developer options. This page is served at /demo by the FastAPI app. [1] [2]
  • Registered the /demo route in the FastAPI app and enabled serving the static file. [1] [2]
  • Updated README.md to document the new browser demo and its features.

Voice metadata correction:

  • Changed the gender field for the "alba" voice from "female" to "male" for all supported languages in app/data/voices/pocket/voices.json. [1] [2] [3] [4] [5] [6]

Testing:

  • Added a test (tests/test_demo.py) to verify that the /demo page is available and returns HTML.

@ronibhakta1
ronibhakta1 merged commit 60153c9 into readium:main Jul 6, 2026
1 check 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.

Basic demo page

1 participant