agentcall icon indicating copy to clipboard operation
agentcall copied to clipboard

Bridges: support the collaborative voice strategy

Open jomon003 opened this issue 1 month ago • 1 comments

The bridges (bridge.py, bridge-visual.py, bridge.js, bridge-visual.js) only run in direct mode. Collaborative mode, where voice intelligence speaks for the bot and the agent provides knowledge, avatar, screenshare and tools, needs join.py or a hand-patched bridge.

Needed:

  • Launch flags for collaborative mode: voice strategy, trigger words, initial context, barge-in prevention, voice
  • Accept the voice intelligence commands on stdin (inject.verbatim, inject.natural, trigger.speak, voice.contribute, voice.context_update) and return their real result
  • Forward the voice intelligence events the agent needs (what the bot said; voice unavailable / recovered)
  • Keep chat, mic, screenshot, screenshare, webpage and avatar commands working
  • Don't apply direct-mode speech behaviour (automatic "thinking" state, greeting prompt for tts.speak) in collaborative mode

Reported in #15.

jomon003 avatar Oct 24 '26 08:10 jomon003

Released in v1.1.21: all four bridges now support --voice-strategy collaborative.

python scripts/python/bridge-visual.py "<meet-url>" --name "Juno" \
  --voice-strategy collaborative --trigger-words "juno,zuno" --context "You are Juno, ..."
  • Flags: --trigger-words, --context, --barge-in-prevention on|off (default on), --voice (voice.heart by default, or voice.bella, voice.echo, voice.eric), and --voice-events to also receive voice.state (off by default).
  • Speak with inject.verbatim / inject.natural. Steer with trigger.speak, voice.contribute, voice.context_update. Each gets command.ack, or command.error with a reason.
  • tts.speak is rejected in this mode, because voice intelligence is the bot's voice.
  • New events: voice.text (what the bot said), call.degraded / call.recovered. user.message still arrives.
  • Unchanged: screenshare (including screenshare.swap), webpage.open, chat, mic, set_state and tasks.set.
  • Direct mode is unchanged.

Details: SKILL.md (Collaborative voice strategy) and CHANGELOG.md.

jomon003 avatar Oct 24 '26 08:10 jomon003