feat(sdk): injectSay/injectPlay into a room + room verb synonym#12
Merged
Conversation
WebSocket session: injectSay({text, synthesizer?, loop?, stream?, id?, replace?})
and injectPlay({url, id?, replace?}) speak one-shot TTS / play a file-tone into
the room (conference) the call is in, heard by every member (room:say / room:play
inject commands). say-start/say-done/play-start/play-done arrive on the
conference verb's statusHook when subscribed; the optional app id correlates them.
Types: RoomVerb (a synonym of ConferenceVerb, verb:'room'), a room() verb builder,
UpdateCallRequest.room_say / room_play for REST parity, and the new statusEvents
documented on ConferenceVerb. tsc + vitest green. (The room() builder needs
@jambonz/schema to publish verbs/room.schema.json before runtime validation will
accept it; injectSay/injectPlay need no schema change.)
Co-Authored-By: Claude Opus 4.8 (1M context) <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.
WebSocket session:
injectSay({text, synthesizer?, loop?, stream?, id?, replace?})andinjectPlay({url, id?, replace?})speak one-shot TTS / play a file-tone into the room the call is in, heard by every member (room:say/room:playinject commands).say-start/say-done/play-start/play-donearrive on the conference verb's statusHook when subscribed; the optional appidcorrelates them.Types:
RoomVerb(synonym ofConferenceVerb,verb:'room'), aroom()builder,UpdateCallRequest.room_say/room_playfor REST parity, and the new statusEvents documented onConferenceVerb. tsc + 117 vitest green.Note: the
room()builder needs @jambonz/schema to publishverbs/room.schema.jsonbefore runtime validation accepts it;injectSay/injectPlay(commands, not verbs) need no schema change.Part of the 'say/play into a Room' feature.
🤖 Generated with Claude Code