Repository navigation
fix(ios): use configured speech language for system voice - #113372
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 10:57 AM ET / 14:57 UTC. ClawSweeper reviewWhat this changesThe branch makes iOS Talk’s native Apple speech fallback select an installed BCP 47 voice from response directives, local selection, or the existing Gateway Merge readinessKeep this PR open for maintainer review. The branch appears to address the linked iOS locale defect with focused precedence and unavailable-voice fallback coverage, but it intentionally expands the behavior of an existing stored setting and the current head still needs a merge/CI refresh against Priority: P2 Review scores
Verification
How this fits togetheriOS Talk combines response directives, local device preferences, and Gateway Talk configuration before selecting either provider speech or Apple’s on-device synthesizer. The changed path resolves an available Apple voice locale for native fallback playback while leaving provider routing unchanged. flowchart LR
A[Response directive] --> D[Speech locale resolution]
B[Local Talk setting] --> D
C[Gateway Talk config] --> D
D --> E[Installed Apple voice check]
E --> F[Native system voice]
G[Provider speech route] --> H[Talk audio playback]
F --> H
Decision needed
Why: The branch fixes the reported speech-language defect by broadening an existing documented setting’s effect for already configured users; that upgrade behavior is a product compatibility decision, not a mechanical correction. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Docs 0, Other +159. Total +159 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Accept the documented expansion of Do we have a high-confidence way to reproduce the issue? Yes in source, with medium confidence: the linked report supplies a concrete iOS native-fallback path and the branch adds deterministic coverage for directive, local, Gateway, unavailable-voice, and device-default selection. This read-only review did not independently run an iOS simulator. Is this the best way to solve the issue? Unclear until maintainer intent is confirmed: reusing the existing documented locale setting is the narrowest implementation and avoids a new option, but it deliberately changes upgraded-user fallback behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 206f989069fb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
cb29360 to
fe490ce
Compare
Solvely-Colin
left a comment
There was a problem hiding this comment.
Two author-actionable findings from the maintainer pass.
4943e5a to
8ffee47
Compare
|
Final-head CI update for
The remaining shared Node failure is unrelated to this PR: I attempted a targeted rerun, but GitHub requires repository admin rights. A maintainer rerun should clear the two infrastructure-only conclusions. |
…eech-locale # Conflicts: # apps/.i18n/native-source.json
|
Refreshed once onto current main at |
|
Exact-head CI update for 9c7698f:\n\nThe iOS app build and focused lifecycle simulator tests passed. GitHub cancelled the job later during release screenshot capture. The macOS release build and OpenClawKit tests also passed; GitHub cancelled the job during the broader Swift test step.\n\nThe red CI gate only reflects those two cancellations. I attempted a failed-job rerun, but GitHub requires repository admin rights. A maintainer rerun is the remaining CI action.\n\nRun: https://github.com/openclaw/openclaw/actions/runs/30270769815 |
…eech-locale # Conflicts: # apps/.i18n/native-source.json
|
Refreshed the conflict-resolved branch onto current main at head Completed exact-head CI evidence:
The branch has no compile or test failure. A maintainer rerun and the compatibility decision on using the existing |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
…224005-host * origin/main: (72 commits) fix: macOS-only Parallels smoke harness regression (#75293) fix(ios): use configured speech language for system voice (#113372) refactor: centralize isolated agent test ownership (#115340) test(ui): stabilize browser route readiness (#115320) fix(cron): clear automation after failed scheduler shutdown (#115316) fix: keep isolated gateway workspaces and skills inside state dir (#114487) docs: document local TTS on macOS, Linux, and Windows (#110230) fix(tasks): clone only the requested task page (#114277) fix(agents): prevent Code Mode resume loss and unbounded preparation (#115314) fix(process): preserve the first process cancellation reason (#115317) fix(nostr): report unavailable ingress when queue open fails (#115313) fix: prevent Slack and Feishu ingress startup leaks (#115295) fix(slack): avoid unsafe emphasis boundaries (#111575) fix: prevent changed checks from expanding into full lint (#115322) fix(codex): stabilize prompts and expose real cache regressions (#115238) refactor(ui): derive page route specs from the route table (#115214) fix(compaction): plan cut points in trigger units (#111886) (#115309) fix: prevent cron and gateway stress-run timeouts (#115241) fix(ci): validate frozen Matrix QA targets (#115298) test(macos): block real process fallthrough (#113337) ... # Conflicts: # CHANGELOG.md
…13372) * fix(ios): honor speech locale for system voice * chore(ios): refresh talk locale i18n inventory * fix(ios): fall through unavailable system voices * chore(ios): refresh talk locale i18n inventory --------- Co-authored-by: Colin Johnson <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…afea23-host * origin/main: (72 commits) fix: macOS-only Parallels smoke harness regression (openclaw#75293) fix(ios): use configured speech language for system voice (openclaw#113372) refactor: centralize isolated agent test ownership (openclaw#115340) test(ui): stabilize browser route readiness (openclaw#115320) fix(cron): clear automation after failed scheduler shutdown (openclaw#115316) fix: keep isolated gateway workspaces and skills inside state dir (openclaw#114487) docs: document local TTS on macOS, Linux, and Windows (openclaw#110230) fix(tasks): clone only the requested task page (openclaw#114277) fix(agents): prevent Code Mode resume loss and unbounded preparation (openclaw#115314) fix(process): preserve the first process cancellation reason (openclaw#115317) fix(nostr): report unavailable ingress when queue open fails (openclaw#115313) fix: prevent Slack and Feishu ingress startup leaks (openclaw#115295) fix(slack): avoid unsafe emphasis boundaries (openclaw#111575) fix: prevent changed checks from expanding into full lint (openclaw#115322) fix(codex): stabilize prompts and expose real cache regressions (openclaw#115238) refactor(ui): derive page route specs from the route table (openclaw#115214) fix(compaction): plan cut points in trigger units (openclaw#111886) (openclaw#115309) fix: prevent cron and gateway stress-run timeouts (openclaw#115241) fix(ci): validate frozen Matrix QA targets (openclaw#115298) test(macos): block real process fallthrough (openclaw#113337) ... # Conflicts: # CHANGELOG.md
Closes #113319
What Problem This Solves
Fixes an issue where iOS Talk/Wake users who selected a Speech Language would still hear the default system voice when ElevenLabs was unavailable or gateway speech fell back locally. Locale-specific directives such as
tr-TRwere also discarded before native speech playback.Why This Change Was Made
The iOS Talk pipeline now keeps the provider's two-letter language code separate from the BCP 47 locale accepted by the system voice. Native synthesis consistently resolves language in directive, local setting, then gateway-config order across full-response and incremental playback. Each candidate is checked against voices available through Apple's API, so an unavailable directive or local locale cannot mask a valid lower-priority choice; Apple's device-default voice is used only after every candidate fails. Provider routing is unchanged.
Maintainer decision: accept the expanded
talk.speechLocalecontract for upgraded iOS users. A configured locale should intentionally control native system-voice fallback when a matching voice is available, while retaining the device default when none is available.User Impact
iOS users can select a language such as Turkish and have Talk's native fallback choose the matching available system voice instead of silently reverting to the device default. Inline response directives can still override that configured locale for one response, while unavailable directives fall through safely.
Evidence
Final head:
52b4d8a543b178948ae174d2ef4047fb9e19ef06AVSpeechSynthesis.hdocuments BCP 47 input,nilfor an invalid language, and system-default behavior when no voice is set;TalkSpeechLocaleTests,TalkGatewaySpeechClientTests,TalkModeIncrementalSpeechBufferTests, andTalkModeManagerTests;git diff --checkpassed;52b4d8a543b178948ae174d2ef4047fb9e19ef06is tracked separately by the PR checks.The separate native-transport provider-routing and occasional-silence report remains tracked in #113321 and is intentionally not folded into this locale-only fix.
AI-assisted: yes. Codex inspected the issue, full and incremental code paths, sibling platform/shared-synth ownership, Apple dependency contract, tests, docs, and current
main; then refreshed the branch and structured review. The maintainer reviewed the final diff and accepted the compatibility decision above.