Repository navigation
v1.3.1 - Text-to-Speech & Audio Enhancements
🔊 v1.3.1 - Text-to-Speech & Audio Enhancements
Your rhyming clock now speaks! Poems are read aloud automatically with configurable voices.
✨ New Features
🎤 Text-to-Speech (TTS)
- Automatic Read-Aloud: Every poem is now spoken automatically after typing completes
- Enabled by Default: No setup required—works out of the box
- Multiple Voice Options: Choose from Windows voices (
Microsoft David,Microsoft Zira), Chrome voices (Google US English), or macOS voices - Zero Cost: Uses the browser's built-in Web Speech API—no API keys or internet required for speech
- Toggle Control: Click
[ TTS: ON ]to disable; preference saved to localStorage
🔧 Configuration Variables
New easy-to-adjust settings in rhyming-clock.html:
TTS_PREFERRED_VOICE— Select your preferred speaking voiceTYPING_SOUND_VOLUME— Adjust typing sound volume (0 to 0.05)
⚡ Instant Audio Playback
- Audio and TTS now play immediately on page load
- No more clicking required to activate sounds
- Powered by Chrome's
--autoplay-policyflag
🛠️ Technical Changes
- Added
--autoplay-policy=no-user-gesture-requiredto launcher - Voice preloading via onvoiceschanged event ensures correct voice from first poem
- Audio context initializes immediately on load
- Updated documentation in README.md and code_readme.md
📋 Upgrade Notes
- Simply replace your existing files
- Close any running Rhyming Clock windows
- Re-launch via rhyming-clock.bat to apply new Chrome flags
Full Changelog: v1.2.0...v1.3.1