Use shared Speech Dispatcher client v0.3.0

Move SSIP transport and protocol tests to screenreader-common. Recover both channels and voice settings for fresh speech after a daemon restart.

Validated race-enabled speech, preferences, and application speech tests and the standalone build with GOWORK=off. Physical keyboard, audible speech, and braille acceptance remain separate live checks.
This commit is contained in:
ak47 committed 2026-11-12 22:26:30 -05:00
1 parent 3d515b8810
commit 8ab9d3395a
19 files changed
+81 -2324

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
# Shared Speech Dispatcher acceptance
Both readers pin `screenreader-common` v0.3.0, which supplies the shared
`speechdispatcher` package. Standalone builds use the published module;
the sibling Go workspace can also be used for local development.
Automated coverage includes two-channel recovery, restored voice/numeric settings
and background priority, new cancellation IDs, failed reconnect attempts followed
by successful read-all, canceled requests, and no reconnection after Close. Native
fixtures restart private dummy-output daemons without touching session speech.
Physical keyboard, audible synthesis, and real braille checks require live testing.
## Cthulhu
1. Quit the current Cthulhu with Cthulhu+Q.
2. Press Ctrl+Escape to enter i3 personal mode. Then press Shift+G. These are
separate key presses. Shift+G rebuilds both the reader and braille helper via
`~/devel/cthulhu-go.sh` and opens a test terminal.
3. Move between two desktop windows and through controls using Tab. Confirm the
focused control is spoken, normal voice/rate is retained, braille follows focus,
and typing and navigation keys reach the expected window.
4. Restart Speech Dispatcher using the same method that reproduced the original
issue. Leave Cthulhu running. This temporarily silences any reader using that
daemon. Avoid changing settings or restarting readers during this step.
5. After the daemon returns, move focus again. An utterance in progress at the
disconnect may be lost. Fresh focus announcements must resume without restarting
Cthulhu. Try a second fresh focus movement if the first detects the old socket.
Confirm the selected voice/rate is retained, braille still follows the focused
control, and keys still reach that control.
6. Check repeated character review, typing echo (if enabled), read-all, and the
usual silence key. Read-all must advance normally and stop on interruption.
Repeat the daemon restart during read-all: that read-all request may stop;
starting a fresh read-all must work without restarting Cthulhu.
7. Report the exact announcement before and after restart, which control had
focus, whether a second movement was needed, braille content, and any changed
key behavior. For an unexpected result, retain `~/devel/cthulhu-go.log`.
## Fenrir
The verified temporary binary is `/tmp/fenrir-shared-speech`; rebuilding or
installing a released version later replaces this test artifact.
1. In the test terminal, run `/tmp/fenrir-shared-speech -x --keyboard-layout desktop
--debug-file /tmp/fenrir-shared-speech.log` as one command. This starts an
unprivileged terminal-mode shell using the new client, without replacing the
console reader. Console-device/sudo startup is a separate acceptance check.
2. Enter a short command such as `printf 'first line\nsecond line\n'`. Review
lines and characters using the desktop layout. Confirm speech order, voice,
rate, and that shell input remains functional.
3. Restart Speech Dispatcher by the same method used for the Cthulhu test, leaving
this Fenrir running. Once the daemon is back, request fresh line review.
Speech must return without restarting Fenrir. Outage speech must not replay.
4. Check the usual silence key, repeated character review, and a live rate change.
Verify the rate remains selected after another daemon restart. If braille is
configured for this session, confirm it still follows review independently of
the speech outage.
5. Exit the test shell with `exit`. Report the spoken text, rate/voice, review
position, braille result if available, and any keys that behaved differently.
Retain `/tmp/fenrir-shared-speech.log` if results are unexpected.