Offline Piper narration: downloadable voices (settings), automatic level prefetch, durable audio and Pyodide caches

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-17 14:50:06 +02:00
parent 3f10adb36b
commit 5d2cc0eedf
13 changed files with 431 additions and 9 deletions
+8
View File
@@ -12,6 +12,7 @@ PyQuest aims at **WCAG 2.2 AA**. The **Settings** button opens the following pan
| Guide character | shows or hides the encouragement bubbles |
| Sound effects / Volume | success and error sounds, can be turned off; "Test the sound" |
| Voice / Speed | the "Listen" button of explanations, can be turned off; "Test the voice" |
| Offline voices | downloads the quality voices so you can hear them without a connection (see below) |
| Author mode | shows the link to the [level editor](../contribute/author-editor.md) |
Sound and voice **never** start on their own. No information is conveyed by sound or colour alone: every result is
@@ -43,3 +44,10 @@ badges have their states in text, and the canvas drawing has a description and a
PyQuest is an installable web app (PWA). After a first complete load it works without a connection; your browser
may offer to install it.
### Offline voices
The quality voices (Piper) are audio files. The level you open is **preloaded automatically**; for all the others, open
**Settings → Offline voices → Download the voices for offline use** (about 4 MB per language, once). Without it, offline,
only the excerpts you already listened to remain available and the rest is read by your device's more rudimentary voice.
Downloaded voices survive application updates; the download must be redone for the other language if you switch.