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

# STTSegment

A timestamped transcript segment, returned when response\_format is verbose\_json

## Example Usage

```typescript theme={null}
import { STTSegment } from "@openrouter/sdk/models";

let value: STTSegment = {
  end: 3.2,
  id: 0,
  start: 0,
  text: "Hello there.",
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `avgLogprob` | *number* | :heavy\_minus\_sign: | Average log probability of the segment | |
| `compressionRatio` | *number* | :heavy\_minus\_sign: | Compression ratio of the segment | |
| `end` | *number* | :heavy\_check\_mark: | Segment end time in seconds | 3.2 |
| `id` | *number* | :heavy\_check\_mark: | Segment index within the transcript | 0 |
| `noSpeechProb` | *number* | :heavy\_minus\_sign: | Probability the segment contains no speech | |
| `seek` | *number* | :heavy\_minus\_sign: | Seek offset of the segment | 0 |
| `speaker` | *number* | :heavy\_minus\_sign: | Speaker index for the segment, present when the provider returns diarization data | 0 |
| `start` | *number* | :heavy\_check\_mark: | Segment start time in seconds | 0 |
| `temperature` | *number* | :heavy\_minus\_sign: | Temperature used for the segment | |
| `text` | *string* | :heavy\_check\_mark: | Transcribed text of the segment | Hello there. |
| `tokens` | *number*\[] | :heavy\_minus\_sign: | Token IDs of the segment | |
