Repository navigation
Voice: pronunciations, so a client can say how a word is said - #26
Merged
Merged
Conversation
…nciations) A client can say how a word the node's model may get wrong is said, in IPA, so a voice node need not know a client's names. Each request carries its own entries (requests stand alone); an entry the node can't say is ignored; a malformed one is InvalidParams. Optional, so a node or client that doesn't know it is unaffected (cjus/chessgui#539). Spec 8, 8.2 and 14, the cnp types, a round-trip test and a conformance session for the bad-params rule. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
A voice node's model may get a word wrong that the client knows how to say: a player's name, an opening's. This adds
pronunciationstovoice/speak, behind a new capability of the same name, so the client says the word's sounds (IPA) instead of the voice node knowing the client's domain.voice/speaktakespronunciations: an array of{"word", "ipa"}; the node says each word as given wherever it appears intext(whole words, case-insensitive).wordoripa, or one with a space or a line break, isInvalidParams; a node MAY refuse more entries than it can take. A node that has no phoneme for a symbol ignores that entry, so one entry never silences a reply.Why
cjus/chessgui#539 (Mac App Store build) needs a voice with no eSpeak NG (GPL) in it. A listening test of a patched build (blind, current voice against patched, 16 sentences) came out level once plurals/verb endings were handled and a list of player and opening names was given. The names belong in Solrac, not in the voice module (audio-chat-box's rule), and this is the field Solrac sends them in.
Checks
cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test,RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-depsandcargo deny checkpass locally. New: a round-trip test (a plain request leaves the field out), a spec example, and the conformance sessionvoice/pronunciations-bad-params(needsvoice.pronunciations; skipped for nodes without it, so no existing node changes status).For the maintainer
A minor version adding optional fields and a capability (rule 2), recorded in the spec's Changes. Open choice: IPA as the notation (any node maps it to its own symbols) against a node-specific one; IPA keeps the protocol node-independent. Draft until you agree; audio-chat-box and Solrac follow once this merges and their pins move.
🤖 Generated with Claude Code