Repository navigation
Remove the server-supplied digit audio pack from dynamic pairing - #241
Merged
maximmaxim345 merged 3 commits intoSep 10, 2026
Merged
maximmaxim345 merged 3 commits into
maximmaxim345 merged 3 commits into
Conversation
A speaker client's digits again come from its own bundled voice, with the language chosen against the server's languages hint (RFC 4647 Lookup), rather than from clips supplied over the wire by an unauthenticated peer. Binary message ID 2 returns to the reserved range.
Makes explicit what the Digits emission paragraph only implied: a client that speaks the pairing code does so from audio it bundles itself, and the server sends none.
chrisuthe
marked this pull request as ready for review
September 9, 2026 20:46
maximmaxim345
deleted the
chrisuthe/task/remove-the-server-supplied-digit-audio-pack-from
branch
September 10, 2026 06:52
1 of 9 tasks
maximmaxim345
added a commit
to Sendspin/sendspin-js
that referenced
this pull request
Oct 28, 2026
# What does this implement/fix? <!-- Quick description and explanation of changes. --> Audio from a server that sends the spec's 13-byte audio chunk header was corrupted, since the client read the 4-byte `send_ahead` field as audio. The client also sent `trust_level` and player `supported_commands` in `client/hello`, which strict servers reject. The client now sends the rc1 `client/hello` and skips the full 13-byte header, and `send_ahead` doesn't affect playback. The operator's `languages` for a spoken pairing code are now read from `server/hello`, where the spec defines them. Breaking changes: - A server that still sends 9-byte audio chunk headers now plays corrupted audio. - `ClientHello` no longer has `trust_level` or player `supported_commands`, and `ActivatePairing` no longer has `languages`. Closing the connection on an audio message shorter than 13 bytes is left for a later PR. **Related issue or spec PR (if applicable):** - Sendspin/spec#158 - Sendspin/spec#167 - Sendspin/spec#177 - Sendspin/spec#241 ## Types of changes <!-- Tick exactly one box. CI (.github/workflows/pr-labels.yaml) applies the matching label, and the release notes use it to sort this change. --> - [ ] Bugfix (non-breaking change which fixes an issue): `bugfix` - [ ] New feature (non-breaking change which adds functionality): `new-feature` - [ ] Enhancement to an existing feature: `enhancement` - [x] Breaking change (changes the public API or the protocol in a way that is not backwards compatible): `breaking-change` - [ ] Refactor (no behavior change): `refactor` - [ ] Documentation only: `documentation` - [ ] Maintenance / chore: `maintenance` - [ ] CI / workflow change: `ci` - [ ] Dependencies bump: `dependencies`
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.
Removes the digit audio pack that #173 introduced. During initial pairing the pack came from an unauthenticated peer, which thereby chose what the client's speaker played and drove the client's audio decoders before any trust was established. Speaking clients return to their own bundled voice, choosing the language against the server's
languageshint inserver/hellounder RFC 4647 Lookup matching, as before #173.Hand revert rather than
git revert: #179, #194 and #237 have since rewritten the surrounding text, and thelanguagesmove fromserver/activatetoserver/helloin #173 stays, sinceclient/pair-pending'smessagefield relies on it.Changes, all in
messaging.mdandpairing.mdwithREADME.mdregenerated:2returns to the reserved2-3range.server/activatepairing.format?no longer conditionsdigitson fitting a pack.dynamic_pairing_codedescriptor (digit_audioremoved;out_channelsunchanged), the Messages intro,client/pair-initandserver/pair-initlose their pack references.Server → Client: Digit Audio Clip (Binary)section is removed.Closes #203