# This file was auto-generated by Fern from our API Definition.

import typing

import typing_extensions


class SpeakV2InterruptPlaybackOffsetParams(typing_extensions.TypedDict):
    """
    How much audio the client had played when the user barged in. Optional: without it the server cannot split the turn's text, so `SpeechInterrupted` omits `text_spoken` and `text_remaining`.

    The offset is cumulative from the start of the *session*, not from the start of the current turn. Each `Interrupt` must advance past the position the previous one established.
    """

    type: typing.Literal["time_ms"]
    """
    Offset unit. `time_ms` is the only supported form.
    """

    value: int
    """
    Milliseconds of session audio the client played before barging in.
    """
