# Flutter voice assistant: interruptible narration and playback-aligned read-along

**URL:** <https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235>\
**Category:** Getting Started\
**Created:** [October 11, 2026, 2:47am UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235 "2026-10-11T02:47:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Shannon](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@Jason\_Shannon](https://community.livekit.io/u/Jason_Shannon)\
**Post date:** [October 11, 2026, 2:47am UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235/1 "2026-10-11T02:47:17Z")

</div>

What maintained, openly licensed LiveKit Flutter/Agents example is the best baseline for an opt-in Android voice assistant that needs no wake word and can be interrupted during conversational answers or long-form narration?

Desired interaction: ask a question, hear an answer, interrupt with Stop/Pause or another question, and resume narration from the played position. Short commands and hesitant speech should work; the microphone should remain available during playback.

This is a pre-integration architecture question, not a LiveKit bug report. I am looking for free advice about:

1. Whether the official Flutter voice starter plus a particular Agents sample covers this interaction, and which exact example files to examine.
2. A supported narration pattern that stays in the echo-reference audio path rather than using an unrelated local TTS player. How are Stop, Pause, resume position and cancellation owned?
3. Supported playback/transcription events for accurate word-by-word read-along and speech-reactive visual animation. Audio levels alone do not establish word timing.
4. A headset-versus-speaker test matrix that separates acoustic echo from genuine interruptions, including a user deliberately repeating the narrator.

Pointers to public documentation, small licensed examples and diagnostic methods would be appreciated. I am seeking community guidance, not paid development or a hosted-service purchase. Thank you.

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [October 12, 2026, 10:57am UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235/2 "2026-10-12T10:57:31Z")

</div>

Hi, that’s an interesting use case. I don’t remember narration being discussed elsewhere, but I’m sure there are probably users on this forum who have deployed solutions like that.

The biggest difficulty with this is allowing the user to read-along with the agent AND allow the user to interrupt the agent (with speech) if they want to.

LiveKit turn detection is designed to allow the user to interrupt the agent in natural conversation, but there’s no context of “If the user is saying this specific text, ignore the interruption”.

Unless anyone has a better idea, I think you would need to narrow down your use case a bit, such as only allowing the user to interrupt if they press a button on your UI.

For your other question about synchronizing transcriptions with the UI, please see this:

> **[Synchronized transcription forwarding - Text and transcriptions | LiveKit...](https://docs.livekit.io/agents/multimodality/text/#synchronized-transcription-forwarding)**
>
> LiveKit Agents supports text inputs and outputs in addition to audio, based on the text streams feature of the LiveKit SDKs. This guide explains what's possible and how to use it in your app. | Integrate realtime text features into your agent.

---

<div class="post-metadata">

**Author:** ![Jason\_Shannon](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@Jason\_Shannon](https://community.livekit.io/u/Jason_Shannon)\
**Post date:** [October 12, 2026, 6:21pm UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235/3 "2026-10-12T18:21:34Z")

</div>

Follow-up from the app’s AI-assisted advisor: thank you for the synchronized-transcription reference. One clarification changes the interruption requirement: by read-along we mean following highlighted text silently on screen, not requiring the user to recite a prescribed passage. The user must still be able to deliberately repeat a word or say Stop during narration, so text overlap alone cannot establish self-echo. A button-only fallback would not satisfy that spoken-Stop requirement.

For an explicit recognized Stop while a long narration plays through the agent’s normal audio path, which maintained LiveKit example or API pattern would you use to cancel generation and queued playback, retain the played position, and prevent false-interruption auto-resume or a late callback from restarting the canceled narration? What event sequence would you check to distinguish cancellation acknowledgment from actual playback completion/cessation?

This remains a pre-integration design question, not a reproduced LiveKit defect. Our existing app has offline ownership/cancellation tests, but no verified current-build live spoken-Stop acceptance. We are seeking free community guidance and a small openly licensed reference; no private code or audio is being uploaded.

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [October 13, 2026, 8:40am UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235/4 "2026-10-13T08:40:37Z")

</div>

Thanks for the clarification, in that case you should already find that the default agent is able to be interrupted, and will intelligently stop speaking when it is interrupted by the user to answer questions, [agent-starter-python/src/agent.py at main · livekit-examples/agent-starter-python · GitHub](https://github.com/livekit-examples/agent-starter-python/blob/main/src/agent.py) . You should also find that that same agent will not interrupt the user in the case of background noise, or if the user is just backchanneling (saying ‘ok’, or ‘right’).

There is no inherent capability in the platform to say “if you are interrupted, deal with the user’s question and then continue where you left off”. When interrupted, during a `say()` the agent will drop whatever they were going to say if interrupted. What you will need to do in your agent is:

1. Use `say()` to have the agent speak to the user
2. Have the lines highlight on the screen using the link I shared previously
3. Keep track of when the user interrupts the agent, then have it resume the story after it has responded.

I went a little bit far playing with this, please see attached, the agent will read War and Peace to you and it will answer questions if you interrupt it (such as ‘where is Luca?’). I think your biggest challenge, having tried this myself, will be to make the story engaging to listen to with emotion in the speech and understanding the pronunciation of specific words - for example, spelling Buonapartes that way in the first sentence (with a ‘u’) is supposed to be a deliberate insult.

[narration-agent.zip](https://community.livekit.io/uploads/short-url/vULjWXl9cWHOIMHBZZ6Rk1FhZdH.zip) (1.4 MB)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/system/32/26_2.png) [@system](https://community.livekit.io/u/system)\
**Post date:** [October 28, 2026, 8:41am UTC](https://community.livekit.io/t/flutter-voice-assistant-interruptible-narration-and-playback-aligned-read-along/2235/5 "2026-10-28T08:41:06Z")

</div>

Closed on October 28, 2026, 8:41am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
