Options for controlling how and when speech is interrupted now wired up in preferences under the speech tab.
This commit is contained in:
1 parent
e62f8c8e17
commit
3e9c4f83ce
32 files changed
+784
-47
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Speech queue verification
|
||||
|
||||
Ordinary output always appends. Cancellation belongs to physical key input,
|
||||
Ordinary output always appends. Cancellation belongs to configured interruption keys,
|
||||
reader command dispatch and explicit stop requests. An announcement arriving
|
||||
later from the same action must let earlier speech finish. This includes focus,
|
||||
selection, state, notification and delayed review output. Accepted Tentacle
|
||||
@@ -46,7 +46,8 @@ and Pi:
|
||||
1. In keyboard preferences, change Desktop to Laptop, release the key and wait.
|
||||
Laptop should finish, followed by the role/state announcements. Repeat in
|
||||
the other direction and test radio buttons, checkboxes and combo boxes.
|
||||
2. During a long announcement, press Control. Repeat with typing, an arrow,
|
||||
2. With All keys interrupt selected, during a long announcement, press Control.
|
||||
Repeat with typing, an arrow,
|
||||
Tab and a reader command. Old speech and its queued feedback should stop;
|
||||
the new action should speak normally. Releasing keys should leave speech
|
||||
alone. Test rapid presses and held arrows, including automatic titles.
|
||||
@@ -64,3 +65,48 @@ Screen lock still clears speech for privacy. Disabling speech, replacing its
|
||||
configuration/backend and shutdown retain their existing behavior. Protected
|
||||
Tentacle messages retain their explicit timeout and cancellation rules. The
|
||||
bounded queue can discard pending requests on overflow and logs that loss.
|
||||
|
||||
## Interruption preferences
|
||||
|
||||
Build a separate binary and exercise the recorder on a private display:
|
||||
|
||||
```sh
|
||||
go build -o /tmp/cthulhu-interruption-test ./cmd/cthulhu
|
||||
CTHULHU_BINARY=/tmp/cthulhu-interruption-test CTHULHU_PREFS_INTERRUPTION_ONLY=1 /usr/bin/python3 tests/native_preferences.py
|
||||
CTHULHU_BINARY=/tmp/cthulhu-interruption-test CTHULHU_PREFS_INTERRUPTION_RUNTIME_ONLY=1 /usr/bin/python3 tests/native_preferences.py
|
||||
```
|
||||
|
||||
This checks all three choices, Tab and Shift+Tab around the new controls,
|
||||
recording Tab/Enter/Space/Escape and separate modifiers, duplicate suppression,
|
||||
Control+Enter finish, Control+Escape cancellation, replacement, empty-recording
|
||||
rejection, Apply and reloading the accepted draft. Direct XTest modifier input
|
||||
avoids extra Control presses synthesized by xdotool. Config tests separately
|
||||
check disk persistence and application profiles. Application tests apply the
|
||||
preference to the live settings and check that unselected keys preserve both
|
||||
queued speech and Say All, while selected keys and reader commands cancel them.
|
||||
The runtime check starts a private reader and fake speech server. It verifies
|
||||
that the read-only summary's contents are spoken on focus and characters are
|
||||
spoken while moving with Left and Right. The generic native text-label test
|
||||
also covers read-only entries and keeps password contents excluded.
|
||||
|
||||
After reviewing the diff and authorizing a reader replacement, verify audibly:
|
||||
|
||||
1. Select All keys interrupt and Apply. During long speech, press a letter,
|
||||
Tab, an arrow, Shift and Control separately; each should stop old speech.
|
||||
2. Select Control, Enter, Space, and Escape and Apply. Letters, arrows, Tab and
|
||||
Shift should let speech continue. Both Control keys, both Enter keys, Space
|
||||
and Escape should stop it. Repeat during Say All.
|
||||
3. Select Define interruption keys. Record Tab, Enter, Escape and Right Control,
|
||||
finishing with Control+Enter. Confirm Left Control was not added. Check the
|
||||
result field, Apply, close, reopen and confirm the list persists. Test each
|
||||
chosen key during long speech and confirm unchosen keys let it continue.
|
||||
4. Record a different list and cancel with Control+Escape; the previous list
|
||||
should remain. Cancel the whole Preferences window and confirm unapplied
|
||||
changes do not alter runtime behavior.
|
||||
5. Tab and Shift+Tab through the interruption group, recorder button, defined
|
||||
keys and speech history. Check spoken instructions and Braille in recording,
|
||||
normal typing/key echo, browser navigation, reader commands, automatic title
|
||||
repeats, and selected/unselected held keys after applying each mode.
|
||||
|
||||
The private checks do not establish live speech, physical keyboard, physical
|
||||
Braille or Wayland compositor acceptance.
|
||||
Reference in new issue
Block a user