# Przerwania i powrót do rozmowy

EN: **Interruption handling and recovery** · id `bargein`

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Język, obraz, audio](https://aiatlasgraph.com/t/modalities.md) › [Mowa i audio](https://aiatlasgraph.com/t/audio.md) › [Agenci głosowi](https://aiatlasgraph.com/t/voiceagents.md) › Przerwania i powrót do rozmowy

## Description

- PL: Rozpoznanie, czy użytkownik przerywa, zatrzymanie odpowiedzi oraz poprawne wznowienie rozmowy i zadania z uwzględnieniem tego, co już usłyszał.
- EN: Determining whether the user is interrupting, stopping the response and resuming the dialogue and task in line with what was already heard.

## In one sentence

- PL: To obsługa sytuacji, w której przerywasz mówiącemu asystentowi i rozmowa musi zmienić kierunek.
- EN: This handles situations where you interrupt a speaking assistant and the conversation needs to change direction.

## Problem it solves

- PL: Asystent mówi dalej po twojej korekcie albo wraca do zadania, jakby przerwanie nie nastąpiło.
- EN: An assistant keeps talking after your correction or resumes a task as though the interruption never happened.

## What it does

- PL: System rozpoznaje zamiar przerwania, zatrzymuje wypowiedź i aktualizuje kontekst oraz etap zadania według tego, co faktycznie usłyszałeś.
- EN: A system recognises an interruption, stops speaking and updates context and task progress according to what you actually heard.

## Everyday example

- PL: Przerywasz odczytywanie adresu, żeby poprawić numer mieszkania, a asystent wraca do potwierdzenia poprawionych danych.
- EN: You interrupt an address readback to correct the flat number, and the assistant returns to confirming the updated details.

## This concerns you if you…

- PL: poprawiasz asystenta w trakcie odpowiedzi
- PL: chcesz zachować stan zadania po przerwaniu
- EN: correct an assistant while it speaks
- EN: want to preserve task progress after interruptions

## Keywords

playback cancellation · turn takeover · backchannel detection · false interruption recovery · conversation truncation · IHBench · task checkpoints

## How it works

- PL: Wykryta próba przejęcia tury zatrzymuje lub przycisza odtwarzanie odpowiedzi i aktualizuje stan dialogu. Agent interpretuje nową wypowiedź względem odtworzonego fragmentu oraz faktycznie wykonanych działań, a następnie wybiera dalszy krok.
- EN: A detected attempt to take the turn stops or lowers response playback and updates dialogue state. The agent interprets new speech against the played portion and actions actually completed, then chooses the next step.

## Limits

- PL: Krótki sygnał słuchania może zostać błędnie uznany za przerwanie. Zatrzymanie audio nie cofa wykonanych narzędzi; niezaktualizowana historia powoduje odpowiedzi o treści, której użytkownik nie usłyszał.
- EN: Brief listening acknowledgements can be mistaken for interruptions. Stopping audio does not undo executed tools; stale history causes responses about content users never heard.

## Key terms

- PL: **przejęcie tury**: Rozpoczęcie wypowiedzi z intencją zmiany aktualnego przebiegu rozmowy.
- PL: **anulowanie odtwarzania**: Zatrzymanie bufora odpowiedzi przed wypowiedzeniem pozostałej treści.
- EN: **turn takeover**: Starting an utterance intending to change the current conversation flow.
- EN: **playback cancellation**: Stopping the response buffer before the remaining content is spoken.

## Know first

- [Prowadzenie tur rozmowy (Turn-taking in voice agents)](https://aiatlasgraph.com/t/turndetection.md)
- [Architektura zdarzeniowa (Event-driven AI)](https://aiatlasgraph.com/t/eventdriven.md)

## Examples

- PL: barge-in · potakiwanie · odzyskanie stanu zadania
- EN: barge-in · backchannels · task-state recovery

## Subtopics (3 direct, 3 in total)

- [Rozróżnianie przerwania od potakiwania i tła (Distinguishing interruptions from backchannels and background speech)](https://aiatlasgraph.com/t/spuriousinterrupt.md): After detecting audio, deciding whether the user wants to take the turn, is backchanneling or coughing, or another person spoke in the background.
- [Usuwanie niesłyszanej części odpowiedzi z kontekstu (Aligning conversation context with played speech)](https://aiatlasgraph.com/t/heardcontext.md): After an interruption, remove generated speech the user did not hear from conversation history. The boundary depends on playback tracking and the API.
- [Wznowienie zadania po przerwaniu (Task recovery after a voice interruption)](https://aiatlasgraph.com/t/interruptionrecovery.md): After the user interrupts, the agent handles the new request and returns to the right task step without repeating speech already heard.

## Sources

- [Voice AI & Voice Agents: An Illustrated Primer](<https://voiceaiandvoiceagents.com/>) `voiceprimer` · by Kwindla Hultman Kramer i współautorzy (Daily / Pipecat)
- [LiveKit: Turn-taking tuning](<https://docs.livekit.io/agents/logic/turns/tuning/>) `livekit-turns-guide` · by LiveKit
- [OpenAI API: Realtime conversations](<https://developers.openai.com/api/docs/guides/realtime-conversations>) `openai-realtime-conversations` · by OpenAI
- [IHBench: Evaluating Post-Interruption Recovery in Voice Agents with Structured Workflows](<https://github.com/boson-ai/ihbench>) `ihbench-voice` · by Ahmad Salimi i współautorzy (Boson AI)

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/bargein · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
