2026-10-22Echo handling optional; eot in signals accepted
session.starttakesecho:"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.startedechoes it.signalsacceptseotagain and ignores it: turn events always arrive.- Rooms: no
turn.hintfor words the room's own transcript delivers, also when they arrive just after theturn.end. - A user's reply while an
agent.speechutterance is still open (itsendnever sent, or itsduration_slonger 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/streamand/v2/roomare served onbaton.joinin.ai.- Choosing what you receive:
signalsinsession.startaddsvad(vad.start,vad.end),bargein, and in roomspartials(asr.partial) andlanguage(asr.language,language.*). Turn events, and a room'sasr.final, always arrive.session.startedechoes the list; an unknown name closes with 1008. schema_version: 2is sent once, onsession.started. Events carryseqand no version.- Expected answers:
expectonagent.speechtells you which of the answers you list the user gave, with a confidence, inansweronturn.endor a followingturn.answer. - Your agent's echo: send
textandduration_s(orwords) onagent.speechand 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
answerwords claims the floor at once.bargein.classthen carriestext(the word) andintent. Set your own lists withkeywordsinsession.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,
hintonturn.end(orturn.hint) carries Baton's best guess, intext. - New events
turn.hintandturn.answer, for a hint or an answer that is ready after itsturn.end;turn_tnames thatturn.end. - End of turn: the
patientprofile;eot.action_delay_msandeot.timeout_ms; each profile reports itsrule, 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. patientcan end a turn during a long thinking pause; handleturn.resumed(see End of turn: Resumed turns).
2026-10-08Rooms match the streams
/v2/roomtakes the samesession.startoptions as/v2/stream: barge-in (agent.speech,bargein.onset,bargein.class) andidle_timeout_s.modeis optional in rooms, as on the streams.eotis the way to choose an operating point.- A room's
session.summarycarriesaudio_sandturns, 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:finalizecontrol message andasr.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.finalcarriest0,t1andlanguage.