Repository navigation
Voice over the Relay through the link - #174
Merged
Merged
Conversation
The box was to call the voice service itself over the Relay, with a voice token. That needs an HTTP client and a second TLS session in the firmware, a token endpoint and a token handout, and a box that follows every change to the voice API, to save one hop of a few hundred milliseconds; the Relay carries only ciphertext since ADR-0015. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The box sends its recording over the Relay too, as it does over USB and the local network, leaving 8 places in the Relay's outgoing queue to its other lines so VOICE END isn't lost behind audio; the daemon offers voice and takes the turn there as anywhere but the UART bridge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #163. It amends ADR-0018. Stacked on #169; it retargets to main as the PRs below it merge. It replaces #172 and vibebuddy-cloud#15, which are closed.
Why
ADR-0018 had the box call the voice service itself over the Relay, with an hour-long voice token. dragon and Claude dropped that on 2026-10-24, because it cost much more than it saved:
All that to save one hop: a few hundred ms against an answer that takes about 10 s. Its other reason, keeping audio off the Relay, went with ADR-0015, because the link there is end-to-end encrypted. The ADR's Considered options record this.
What changes
device/src/main.rs):write_stream(VOICE DATA, about 21 lines a second) now also seals lines onto the Relay.VOICE ENDisn't lost behind audio.SealedLines::linesalready guarantees, so the Noise session stays in step.VOICE DATAgoing over the Relay, and docs/api.md says only daemons call the voice API.Checked
cargo test --workspace --locked: all pass (daemon 337, firmware core 86).cargo clippyhas no new warnings.cargo build --releaseinfirmware-rs/device.rateclose.🤖 Generated with Claude Code