fix voice config - #111
Merged
Merged
fix voice config#111
Conversation
dyi1
marked this pull request as ready for review
September 16, 2026 04:44
dyi1
changed the base branch from
dyi/add-auto-keep-alive
to
graphite-base/111
September 16, 2026 04:44
dyi1
force-pushed
the
dyi/cleanup-interfaces
branch
from
September 16, 2026 04:49
a718d3a to
1cc4ed5
Compare
dyi1
force-pushed
the
graphite-base/111
branch
from
September 16, 2026 04:49
57f75bd to
287f14b
Compare
dyi1
changed the base branch from
graphite-base/111
to
dyi/add-auto-keep-alive
September 16, 2026 04:49
dyi1
changed the base branch from
dyi/add-auto-keep-alive
to
graphite-base/111
September 16, 2026 04:54
dyi1
force-pushed
the
graphite-base/111
branch
from
September 16, 2026 04:54
287f14b to
685d5b7
Compare
dyi1
force-pushed
the
dyi/cleanup-interfaces
branch
from
September 16, 2026 04:54
1cc4ed5 to
3bd4c09
Compare
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.

Proposed changes
Voice chat is now always-on by default. The
voiceChatfield inSessionConfighas been narrowed fromboolean | VoiceChatConfigtoVoiceChatConfigonly, and the SDK appliesvoiceChat: {}(microphone on, unmuted) when the field is omitted entirely. To start a session with the microphone muted, passvoiceChat: { defaultMuted: true }.A
normalizeSessionConfigshim handles callers still passing the oldbooleanform at runtime:voiceChat: truemaps to{}andvoiceChat: falsemaps to{ defaultMuted: true }, both with aconsole.warnpointing to the replacement. The shim is marked for removal in0.0.20.The
configureSessionmethod no longer conditionally starts voice chat — it always callsvoiceChat.start, relying on the normalized config. The redundanttypeof voiceChat === "object"guard in the constructor was also removed.All call sites in the demo and bg-removal apps have been updated to pass
VoiceChatConfigobjects instead of booleans, and theLiveAvatarSessionandElevenLabsAgentProviderprop types have been updated to match. Tests cover the new default-on behavior,defaultMuted, and both deprecated boolean migrations.An
AGENTS.mdhas been added to the SDK source documenting the config design rules (one type per field, no union shorthands, alphabetical field order, JSDoc on every field, and deprecation shim policy) to prevent the boolean-union pattern from being reintroduced.Bumps the SDK to
0.0.19.