How zengs7991-a11y/text-to-speech-app works
This repository is a Chinese-English text-to-speech and pinyin tool, with a browser interface and command-line workflows. The main web flow accepts text or a Word document, exposes voice and speech controls, and returns generated audio through Edge TTS. Pinyin display, correction, and export, plus batch conversion, are documented product capabilities; their implementation is not present in the sampled source. The graph distinguishes the local Flask app from the Vercel API variant. Relationships for unsampled interfaces and CLI features rely on README descriptions, not inspected implementation.
Main entry points: server.py Local web server · index.html Web interface · scripts Pinyin generation · index.py Vercel API
Components 17
Web experience
- Web interface
web-app/index.html - Local web server
web-app/server.py - Word import
web-app/server.py - Vercel API
api/index.py - Vercel page
api/index.html
Speech generation
- Speech API
web-app/server.py - Text enhancement
web-app/server.py - Voice catalogue
web-app/server.py - Edge TTS
- MP3 response
web-app/server.py
Pinyin tools
- Pinyin generation
scripts - Pinyin formats
scripts - Polyphone correction
web-app/index.html - Pinyin export
web-app/index.html
Command line
- CLI conversion
scripts/text-to-speech.sh - Batch conversion
scripts/batch-convert.sh
Other components
- User
Connections 16
- User → Web interface: uses
README.md - Local web server → Web interface: serves
web-app/server.py - Web interface → Local web server: requests
- Local web server → Word import: routes upload
web-app/server.py - Local web server → Speech API: routes synthesis
web-app/server.py - Local web server → Voice catalogue: routes listing
web-app/server.py - Speech API → Text enhancement: enhances text
web-app/server.py - Speech API → Edge TTS: generates speech
web-app/server.py - Speech API → MP3 response: returns audio
web-app/server.py - User → Pinyin generation: enters text
README.md - Pinyin generation → Pinyin formats: shows in
README.md - Web interface → Polyphone correction: offers editing
README.md - Web interface → Pinyin export: offers export
README.md - User → CLI conversion: runs conversion
README.md - User → Batch conversion: runs batches
README.md - Vercel API → Vercel page: serves
api/index.py