diff --git a/ui/src/lib/audio.svelte.ts b/ui/src/lib/audio.svelte.ts index bd28b61..9d5cb00 100644 --- a/ui/src/lib/audio.svelte.ts +++ b/ui/src/lib/audio.svelte.ts @@ -101,6 +101,13 @@ class AudioStore { */ autoNext = $state(false); + /** + * When true, announces the upcoming chapter number and title via the + * Web Speech API before auto-next navigation fires. + * e.g. "Chapter 12 — The Final Battle" + */ + announceChapter = $state(false); + /** * The next chapter number for the currently playing chapter, or null if * there is no next chapter. Written by the chapter page's AudioPlayer. diff --git a/ui/src/lib/components/ListeningMode.svelte b/ui/src/lib/components/ListeningMode.svelte index d08ccd1..ff49b16 100644 --- a/ui/src/lib/components/ListeningMode.svelte +++ b/ui/src/lib/components/ListeningMode.svelte @@ -618,8 +618,8 @@ {/if} - -
+ +
{#each SPEED_OPTIONS as s} @@ -661,6 +661,25 @@ {/if} + + +