Add primary voice profiles from shared reader core v0.6.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Storm DragonandClaude Opus 5.5 committed 2026-11-15 14:26:44 -05:00
1 parent 0f5c2db158
commit 764a289071
26 files changed
+820 -5

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# Primary voice profiles
Standalone builds pin screenreader-common v0.6.0. Use `GOWORK=off` to verify
the released dependency; a sibling workspace remains useful for development.
Run shared tests with `GOWORK=off go test -race ./...` in screenreader-common.
In Cthulhu, run `GOWORK=off go test ./internal/config ./internal/preferences
./internal/app` and build a temporary binary with
`GOWORK=off go build -o /tmp/cthulhu-voice-profiles ./cmd/cthulhu`.
The isolated GTK workflow is:
```sh
CTHULHU_BINARY=/tmp/cthulhu-voice-profiles CTHULHU_PREFS_VOICE_PROFILES_ONLY=1 python3 tests/native_preferences.py
```
This exercises actual GTK widgets on a private X display/accessibility bus. It
checks name focus, Tab/Shift+Tab, backend-specific fields, automatic names,
duplicate rejection, editing, cancellation, selection and removal. Go regressions
cover atomic storage, global/application boundaries, auxiliary voices and failed
runtime selection. These checks do not prove audible output or physical hardware.
Before submitting, review all three diffs and test with the intended reader:
1. Add two installed software voices, leaving one name blank. Save preferences,
reopen them and verify both complete profiles.
2. Change rate/pitch/volume in a preset. Cancel once, then save and Apply; verify
only the saved edit survives reopening and restarting.
3. Use the profile selector in quick settings to cycle both directions. Listen
to an article in each voice. Save the selection and verify it after restart.
4. Check typing echo and system messages with explicit custom settings and with
inheritance. Check uppercase/hyperlink speech and application window changes.
5. Select an unavailable module/device. Confirm an error and continued speech
with the previous working settings. Check failed Apply and Cancel afterward.
6. Where available, switch between software speech and a permitted serial synth.
Verify actual device speech, cancellation and numeric parameters. Check the
existing separate-echo restriction without losing access to Preferences.
7. Remove the final preset, save, reopen, and verify only Add remains. Confirm
the currently configured primary voice keeps working after preset removal.
No running desktop reader needs to be restarted for the private checks.