Implement read-along directive with audio synchronization and TTS support#1030
Implement read-along directive with audio synchronization and TTS support#1030
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
… issues Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
|
@copilot add the element to the documentation in website. |
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Added documentation for the read-along directive in commit 9c6a318. Documentation is now available in both English and German:
The page includes:
|
|
@copilot the text moves since you are using bold to highlight the current word. Use another highlighting style, which does not shift the text. |
…ighting Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Fixed the text shifting issue in commit f9617b4. Changes made:
The text now remains stable during playback without any shifting. |
|
@copilot with auto generated I meant use the tts of the browser. therefore add a mode attribute. mode tts or mode manual. |
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Added TTS mode in commit 3b9f2b7. The directive now supports two modes: TTS Mode (
Manual Mode (
Usage examples: :::readalong{mode="tts"}
Text-to-speech will read this automatically.
:::
:::readalong{src="/audio.mp3" autoGenerate="true"}
Uses audio file with auto-generated timestamps.
::: |



Implementing read-along directive for Hyperbook - COMPLETE ✅
All Requirements Implemented:
Implementation Details:
Mode Support:
The directive now supports two modes via the
modeattribute:TTS Mode (
mode="tts"):speedparameterManual Mode (
mode="manual", default):Usage Examples:
Highlighting Fix:
font-weight: 600that was causing text to shifttransform: scale()animation that affected layoutDocumentation:
/website/en/book/elements/readalong.md/website/de/book/elements/readalong.mdKey Features:
Code Quality:
Verification:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.