Commit Graph
12 Commits
Author SHA1 Message Date
Storm Dragon 92fd479336 Use common v0.8.0 UI, transport, and translation APIs 2026-11-16 20:10:47 -05:00
Storm Dragon e20319f776 Fix speech preview ordering and use shared quick voice profiles 2026-11-15 17:56:36 -05:00
Storm Dragon 5aef0be169 Use shared quick settings and voice discovery from reader core v0.5.0 2026-11-15 12:30:20 -05:00
ak47 24840d355c Use shared reader core v0.4.0
Use common date/time formatting, locale voice selection, tone synthesis, phonetic spelling, and hardware command encoding. Share whiskey and x ray spelling and retain reader-owned device I/O and presentation.

Validated affected race-enabled speech, sound, presentation, date/time, application, review, and preferences tests and standalone builds with GOWORK=off against the published module. Physical hardware, audible synthesis, keyboard, and braille remain separate live checks.
2026-11-12 23:45:10 -05:00
ak47 0dd8e2f9c7 Use shared Speech Dispatcher client v0.3.0
Adapt console speech and discovery to the shared SSIP transport while retaining worker recovery, queue admission, and hardware drivers.

Validated race-enabled speech, application, and preferences tests and the standalone build with GOWORK=off. Private native startup checks passed; physical keyboard, audible speech, and braille acceptance remain separate live checks.
2026-11-12 22:26:30 -05:00
Storm Dragon 81cc630319 Notification sound added. Docs updated. 2026-11-07 00:27:44 -05:00
Storm Dragon dc945ff392 Attempt to make audio and speech discovery more robust. 2026-11-03 13:21:50 -05:00
deedra 92bf3025c5 Fall back to the system Speech Dispatcher socket
When using the default Speech Dispatcher address, try the user's Unix
socket first and then /run/speech-dispatcher/speechd.sock if the user
socket is missing or refuses the connection. This allows Fenrir to use
an existing system service before attempting to autospawn a user daemon.

Keep explicit Options.Socket, SPEECHD_ADDRESS, and SPEECHD_SOCKET
settings authoritative. Do not fall back for permission errors, TCP
connections, or a canceled context. If both sockets fail, preserve the
user socket's error so autospawn continues to target the user's endpoint.

After opening the data connection, use its selected Unix socket for the
control connection and disable further fallback there. Both connections
must belong to the same Speech Dispatcher server.

Add tests for address overrides, user-first selection, missing and stale
user sockets, permission errors, and preservation of the original error
when neither socket is available.

Validation:
- go test ./internal/speech -count=1 (GOPROXY=off): passed
- git diff --check: passed
- gofmt -l on all five changed Go files: no output

Live audible speech and physical keyboard behavior were not verified
as part of this commit.
2026-10-28 10:44:54 -07:00
deedra 55d550583c i screwed upMerge branch 'testing' of https://git.stormux.org/storm/fenrir into testing 2026-10-28 08:58:20 -07:00
deedra db6955f5b7 Improve sound server fallback and speech acknowledgement handling
Try the invoking user session followed by /run/pulse/native for sound
cues, while preserving an explicit PULSE_SERVER override. Resolve the
user socket from SUDO_UID, XDG_RUNTIME_DIR, or the current UID, and
document the fallback and Speech Dispatcher audio configuration.

Allow five seconds for Speech Dispatcher command acknowledgements so
large voice catalog queries can finish without premature failures.
Add regression coverage for socket selection and delayed replies.

Include cpu-usage.patch as a standalone patch artifact containing Python
remote registry permission and registration failure handling changes.
The patch is stored without applying it to the Python sources.

Validation: go test ./internal/sound ./internal/speech -count=1 passed
with GOCACHE=/tmp/cthulhu-go-cache and GOPROXY=off outside the sandbox
to permit local Unix sockets. source diff whitespace checks passed.
The staged patch has whitespace warnings from preserved blank context
lines; its contents are retained unchanged.
Live audio and keyboard behavior were not tested.
2026-10-28 08:57:12 -07:00
Storm Dragon ec32c6e4c4 Speech-dispatcher handling improved. 2026-10-28 11:34:57 -04:00
Storm Dragon 0e50de4c76 After commit c018f5fd29 Fenrir is being switched over to go. If you do not want to be part of the testing process, please switch to master. 2026-10-27 20:30:55 -04:00