JoinInDocs
Baton
v2 (beta)
Get a key
Baton v2 Resources BetaMarkdown

Changelog

Changes to the Baton API.

2026-10-22Echo handling optional; eot in signals accepted
  • session.start takes echo: "on" (default) ignores your agent's own voice when the microphone picks it up; "off" for audio that is already free of it (headphones, or your own echo cancellation), so speech over your agent is the user's at once. session.started echoes it.
  • signals accepts eot again and ignores it: turn events always arrive.
  • Rooms: no turn.hint for words the room's own transcript delivers, also when they arrive just after the turn.end.
  • A user's reply while an agent.speech utterance is still open (its end never sent, or its duration_s longer than what played) always gets its turn: when nothing of your agent was heard before it, it opens within a second; otherwise within about 3 s.
2026-10-18v2 in production; answers, echo and stop words
  • /v2/stream and /v2/room are served on baton.joinin.ai.
  • Choosing what you receive: signals in session.start adds vad (vad.start, vad.end), bargein, and in rooms partials (asr.partial) and language (asr.language, language.*). Turn events, and a room's asr.final, always arrive. session.started echoes the list; an unknown name closes with 1008.
  • schema_version: 2 is sent once, on session.started. Events carry seq and no version.
  • Expected answers: expect on agent.speech tells you which of the answers you list the user gave, with a confidence, in answer on turn.end or a following turn.answer.
  • Your agent's echo: send text and duration_s (or words) on agent.speech and Baton ignores your agent's voice coming back through the user's speaker, for turns and for barge-in.
  • Quick answers: an answer that starts right after your agent's question opens its turn, even before your agent's echo has died away.
  • Stop words and answers: a stop word or one of your answer words claims the floor at once. bargein.class then carries text (the word) and intent. Set your own lists with keywords in session.start. In rooms, confirmed_by: "two_speakers" marks a stop said over your agent's own "stop".
  • Hints: when a turn had speech but no clear words, hint on turn.end (or turn.hint) carries Baton's best guess, in text.
  • New events turn.hint and turn.answer, for a hint or an answer that is ready after its turn.end; turn_t names that turn.end.
  • End of turn: the patient profile; eot.action_delay_ms and eot.timeout_ms; each profile reports its rule, and published numbers hold live.
  • Rooms score end of turn with the full model and use messages.
  • Close reasons are short, fixed texts. The only one that repeats what you sent is a room's unsupported language '<code>'.
  • A session that falls more than 5 s behind real time closes with 1013 falling behind real time on this instance; retry.
  • patient can end a turn during a long thinking pause; handle turn.resumed (see End of turn: Resumed turns).
2026-10-08Rooms match the streams
  • /v2/room takes the same session.start options as /v2/stream: barge-in (agent.speech, bargein.onset, bargein.class) and idle_timeout_s.
  • mode is optional in rooms, as on the streams. eot is the way to choose an operating point.
  • A room's session.summary carries audio_s and turns, as on the streams.
2026-10-06Docs

Public documentation, with the streaming and HTTP references generated from the served API.

2026-10-05v2 beta
  • /v2/room: finalize control message and asr.flushed, for cutting segments at turn boundaries.
  • Barge-in on /v2/stream: agent.speech, bargein.onset, bargein.class.
  • Rooms: per-voice language ID and switching within an allowed set; asr.final carries t0, t1 and language.
Last updated 21 Oct 2026