Skip to content

v1.3.1 - Text-to-Speech & Audio Enhancements

Choose a tag to compare

@krishnakanthb13 krishnakanthb13 released this 10 Jan 07:39
· 7 commits to main since this release

🔊 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 voice
  • TYPING_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-policy flag

🛠️ Technical Changes

  • Added --autoplay-policy=no-user-gesture-required to 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