Stopping a voice AI's speech does not stop the booking behind it
This is part 2 of the series "Akari Tried It." Akari, an AI employee at my company, runs a piece of software or a service on her own machine and reports what she found. Sources are the official documentation and public r
This is part 2 of the series "Akari Tried It." Akari, an AI employee at my company, runs a piece of software or a service on her own machine and reports what she found. Sources are the official documentation and public repositories of what she tried.
Series contents
- Same positive-integer rule, different precision: Pydantic and Zod split because JSON is read differently before validation
- Telling a voice AI to stop does not cancel the booking behind it (this article)
- A skill scanner score is not proof of bad intent: three tiny skills through SkillSpector (coming soon)
- In EmDash, *.example.com also lets a plugin reach example.com: eight host names through the real check (coming soon)
When a voice AI's speech is cut off, the booking work behind it keeps going. That is what OpenAI's own guide says. Your app has to send the cancel itself, and then check the booking record to see whether the cancel took.
The guide for GPT-Live, OpenAI's voice model, is direct about it: "Interrupting the spoken conversation leaves backend work running," and an instruction the app adds mid-session (session.instructions.append) "does not cancel backend work." Cancel in the backend, the guide says, and confirm it worked before telling the user. That guide is the evidence for this article's answer.
Akari, an AI employee at my company, looked at both sides. On the voice side, she opened two real GPT-Live sessions to see when an added "stop explaining" instruction gets applied and what the model says next. On the work side, she wrote a small Python mock of a booking to make the guide's rule visible.
Cancelling the work: three cases in a Python mock
A small Python program runs a job in the background. After 20 ms it adds one "reservation confirmed" record to a list. Instead of calling a real booking service, the program just checks whether the record appears. The 20 ms is there to line the cases up; it says nothing about how fast a real service is. No voice AI is involved.
- Stop the talk only: after 5 ms, set a "talk stopped" flag and leave the job alone
- Cancel before commit: after 5 ms, cancel the job
- Cancel after commit: wait 30 ms, so the job has finished, then send the same cancel
Here is the case function only, reformatted with comments added.
async def case(cancel, late=False):
committed = []
async def worker():
await asyncio.sleep(.02)
committed.append('reservation') # the "booking confirmed" record
task = asyncio.create_task(worker())
await asyncio.sleep(.03 if late else .005)
speech_stopped = True # the talk is stopped
if cancel:
task.cancel() # cancel the work behind it
try:
await task
except asyncio.CancelledError:
pass
return {'speech_stopped': speech_stopped, 'cancel_requested': cancel,
'after_commit': late, 'committed': len(committed),
'task_cancelled': task.cancelled()}
Case 1 only sets speech_stopped and never touches the task. Cases 2 and 3 make the same task.cancel() call; only the timing differs. committed is the number of confirmed records; task_cancelled says whether the job ended in the cancelled state.
| Case | Cancel sent? | Confirmed records | Job ended as cancelled? |
|---|---|---|---|
| 1. Stop the talk only | No | 1 | No |
| 2. Cancel before commit | Yes | 0 | Yes |
| 3. Cancel after commit | Yes | 1 | No |
Case 1 is what the code is built to do: a job nobody touches runs on to the commit. It proves nothing new; it makes the guide's rule, that stopping the talk leaves the work running, easy to see. Case 3 shows that a cancel does not remove a record that is already committed. Sending a cancel is not proof that anything was cancelled.
Case 2 left zero records because, in this mock, the cancel reached the job before the commit. With a real booking service, once the request has gone out, a cancel sent before the confirmation may still leave a record. Either way, check the booking record to know whether the cancel took. Re-running the program for this article gave the same rows as the recorded run.
Two sessions against the GPT-Live API
The setup
Akari connected to the GPT-Live API over WebSocket with delegation set to client, which means her app, not the API, runs the work behind the conversation. No other model or tool was called for that work. The spending cap was $0.50, nothing retried connections automatically, and no real bookings or customer data were involved.
The session start carried only five settings: model gpt-live-1; an instruction to the model, in Japanese, to "answer briefly in Japanese; do not perform any outside actions"; voice marin; audio as 24 kHz PCM; and delegation client.
On top of that, the app can add two kinds of input. A note (commentary) tells the model what is going on, and the model passes it on to the user. An instruction (instructions) changes how the model behaves from that point. Each one went out with an ID Akari chose (test_start, stop_speech) so she could match the replies later.
Run 1: no audio
Run 1 sent no audio. Right after connecting, it added a note: "I have started preparing the reservation. It is not confirmed yet." About 4 seconds after the connection opened, it added an instruction: "Please stop the explanation. The result of cancelling the reservation is still unknown." About 4 seconds after that, Akari's app asked to close the session. (Both texts were sent in Japanese.)
Four events came back: started, two errors, closed. Each error said the session closed before the note or the instruction was applied (context_injection_incomplete). Both errors arrived around the time the app asked to close, about 8 seconds after the connection opened; no "applied" event had come before that. Being able to send an event is not the same as the model taking it in and speaking. The reported usage was 0 seconds.
Run 2: silent audio streaming in
Run 2 differed in three ways. Starting 1 second after the connection opened, it streamed silent 24 kHz audio in 0.1-second pieces, 120 of them, about 12 seconds in all. Because of that, the instruction went out about 1 second later. And it waited about 8 seconds instead of 4 after the instruction, then waited for the audio to finish, before closing. The note and the instruction were the same. Since several things changed at once, what these two runs show is only that the run 2 setup got the note and the instruction applied, not which change did it.
This time both the note and the instruction were confirmed as applied. Joining the text chunks, the model first said it had started preparing the reservation but had not confirmed it, and after the instruction it said: "I will stop the explanation here. The result of cancelling the reservation is not known yet." That second sentence is a near restatement of the instruction Akari's app added. No cancel was sent anywhere in this session.
Each text chunk carries the time it arrived (seconds since the connection attempt started):
| Seconds | What arrived |
|---|---|
| 2.811 | First text chunk ("Got it") |
| 3.074 | The note (test_start) applied |
| 6.158 | Last chunk of "it is not confirmed yet" |
| 6.258 | The instruction (stop_speech) applied |
| 7.520 | First chunk of "I will stop the explanation here" |
| 11.860 | Last text chunk |
| 15.748 | Interim usage update (14 seconds) |
| 19.286 | Session closed (usage 17 seconds) |
When the instruction was applied, the model had already finished the previous sentence ("it is not confirmed yet", 6.158 s vs 6.258 s). From the instruction being applied to the model starting "I will stop the explanation here" took about 1.3 seconds.
156 audio chunks also arrived; Akari did not play them back. And this was the app adding an instruction, not a person cutting in by voice.
What the two runs showed
The stop instruction was applied, and the model then spoke along the lines of that instruction. With delegation set to client, the work itself belongs to the app, and these two sessions ran no work behind the conversation at all. The work side is the Python mock above.
What it cost
The API reported 0 seconds of usage for run 1 and 17 seconds for run 2. At the listed price of $0.05 per minute, that is about $0.014 in total. This is computed from the usage the API reported, not taken from an invoice. No backend model or tool was called. The three mock cases run on local Python and cost nothing.
Usage and connected time are different numbers. Run 1 took 11.761 seconds by the local clock, from starting to connect to finishing the close, and the reported usage was 0. When you estimate cost, keep your own timing and the reported usage side by side so you can reconcile them later.
Check the booking record to know whether the cancel took
When a voice AI's speech is cut off, the booking work behind it keeps going. As OpenAI's guide says, stopping the talk, cancelling the work, and confirming the cancel in the booking record are three separate pieces, and your app has to build each one.
- Fine to leave to the voice AI: putting the state your app reports into words for the user, once your app has seen the event confirming the note or instruction was applied (in run 1, it never was). In run 2, the model spoke along the lines of the instruction it was given.
- Your app's job: sending the cancel to the work, then reading the booking record to see whether it was cancelled or had already been committed. Decide "cancelled" from the record, not from the fact that you asked.
- Where a person checks: a cancel that arrives after the commit. As in mock case 3, the record stays, so undoing a confirmed booking is a separate call for a person to make.
Let the voice AI say "I cancelled it" only after your app has confirmed the cancel in the booking record.
What Akari ran
- The tests were run by Akari, an AI employee at my company.
- API sessions: Python 3 with
websockets, connecting to the gpt-live-1 WebSocket. Voicemarin, audio 24 kHz PCM, delegationclient. - Cancel mock: a small Python 3
asyncioprogram with no network calls. - Cap of $0.50, one connection per run, no automatic reconnects.
Official docs: GPT-Live-1 model and pricing, Live delegation, connecting over WebSocket, and ending a session and usage.
Terms
-
Delegation: the setting for who runs the work behind the conversation, such as confirming a booking. With
client, your app does. - Event: one message sent over the session, such as started, closed, an error, or a chunk of the model's text.
- Note (commentary): text the app adds to tell the model what is going on; the model passes it on to the user.
- Backend work: work that the app or a service carries on apart from the conversation, such as confirming a booking.
-
Booking record: the record that a booking was confirmed. In the mock, the length of the
committedlist. It is not the same as the session logs (live-events.jsonand so on). -
Background job: work that runs separately so the program can keep going while it waits. In Python it runs as an
asynciotask and can be cancelled midway. - PCM: uncompressed audio stored as a series of numbers. Silence is a run of zeros.
- WebSocket: a connection that stays open so the app and the service can both send messages at any time.
In this series, Akari, our AI employee, runs software and services herself and separates what works as-is from what still needs a human decision.
If you are interested, please like and follow.
Our products are listed at https://www.eln.ne.jp/products
EarthLink Network builds its own products to run the whole company on AI β each one born from a need along the way. See the full index of what we build:
β The 18 products EarthLink Network builds in-house
For more about the company and each product, visit www.eln.ne.jp.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.


