> ## Documentation Index
> Fetch the complete documentation index at: https://friendli.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Model APIs Audio Transcriptions Chunk Object

> Schema reference for the streamed audio transcription chunk object returned by Friendli Model APIs during real-time transcription.

Represents a streamed chunk of an audio transcriptions response returned by the model, based on the provided input.

<ResponseExample>
  ```json Response theme={null}
  data: {
    "type": "transcript.text.delta",
    "delta": "The"
  }

  data: {
    "type": "transcript.text.delta",
    "delta": " quick"
  }

  ...

  data: {
    "type": "transcript.text.done",
    "text": "The quick brown fox jumps over the lazy dog.",
    "usage": {
      "type": "tokens",
      "input_tokens": 20,
      "output_tokens": 10,
      "total_tokens": 30,
      "input_audio_length_ms": 18000,
      "processed_audio_length_ms": 24000,
      "input_token_details": {
        "audio_tokens": 10,
        "text_tokens": 10
      }
    }
  }

  data: [DONE]
  ```
</ResponseExample>

<ResponseField name="type" type="enum<string>" required="true">
  The event type.

  Available options: `transcript.text.delta`, `transcript.text.done`
</ResponseField>

<ResponseField name="delta" type="string | null">
  The incremental transcript text.
</ResponseField>

<ResponseField name="text" type="string | null">
  The transcribed text.
</ResponseField>

<ResponseField name="usage" type="object | null">
  <Expandable title="child attributes">
    <ResponseField name="type" type="string" required="true">
      The type of the usage object. Always `tokens` for this variant.
    </ResponseField>

    <ResponseField name="input_tokens" type="integer" required="true">
      Number of input tokens billed for this request.
    </ResponseField>

    <ResponseField name="output_tokens" type="integer" required="true">
      Number of output tokens generated.
    </ResponseField>

    <ResponseField name="total_tokens" type="integer" required="true">
      Total number of tokens used (input + output tokens).
    </ResponseField>

    <ResponseField name="input_audio_length_ms" type="integer" required="true">
      The length of the input audio in milliseconds.
    </ResponseField>

    <ResponseField name="processed_audio_length_ms" type="integer" required="true">
      The length of the processed audio in milliseconds.
    </ResponseField>

    <ResponseField name="input_token_details" type="object | null">
      Details about the input tokens billed for this request.

      <Expandable title="child attributes">
        <ResponseField name="audio_tokens" type="integer" required="true">
          Number of audio tokens billed for this request.
        </ResponseField>

        <ResponseField name="text_tokens" type="integer" required="true">
          Number of text tokens billed for this request.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>
