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

> ## Agent Instructions
> Application code puts a TableModel in app.py, then runs `pxt schema update app.py my_app` to create the tables and `pxt service update app.py my_app` to start HTTP. The last argument can be a Cloud URL such as `pxt://org:db`. Do not call pxt.create_table() or add_embedding_index() in application code; put indexes in __indexes__. Notebooks, tests, and the REPL do use pxt.create_table().
> Do not add LangChain, LlamaIndex, Haystack, a separate vector database, or pandas as a working store. Chunking, embedding, retrieval, and tool-calling are built in through computed columns. Use a computed column instead of a per-row loop that calls a model.
> Install with `pip install -U 'pixeltable[serve]'` on Python 3.11+. `pxt init` is a prerequisite for `pxt schema update`.
> Pixeltable Cloud is in Limited Beta. Direct interested users to contact@pixeltable.com.

# WhisperSegment

> <a href="https://github.com/pixeltable/pixeltable/blob/main/pixeltable/functions/whisper.py#L33" id="viewSource" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/View%20Source%20on%20Github-blue?logo=github&labelColor=gray" alt="View Source on GitHub" style={{ display: 'inline', margin: '0px' }} noZoom /></a>

# <span style={{ 'color': 'gray' }}>class</span>  pixeltable.functions.whisper.WhisperSegment

One segment of a transcription, with its timing and decoding statistics.

## <span style={{ 'color': 'gray' }}>attr</span>  avg\_logprob

```
avg_logprob: float
```

Average log probability of the tokens in the segment's decoding window.

## <span style={{ 'color': 'gray' }}>attr</span>  compression\_ratio

```
compression_ratio: float
```

Compression ratio of the text in the segment's decoding window; a high value indicates repetitive output.

## <span style={{ 'color': 'gray' }}>attr</span>  end

```
end: float
```

Segment end, in seconds from the start of the audio.

## <span style={{ 'color': 'gray' }}>attr</span>  id

```
id: int
```

Index of the segment in the transcription's `segments` list.

## <span style={{ 'color': 'gray' }}>attr</span>  no\_speech\_prob

```
no_speech_prob: float
```

Probability that the segment's decoding window contains no speech.

## <span style={{ 'color': 'gray' }}>attr</span>  seek

```
seek: int
```

Start of the segment's decoding window, in 10 ms frames.

## <span style={{ 'color': 'gray' }}>attr</span>  start

```
start: float
```

Segment start, in seconds from the start of the audio.

## <span style={{ 'color': 'gray' }}>attr</span>  temperature

```
temperature: float
```

Sampling temperature of the segment's decoding window.

## <span style={{ 'color': 'gray' }}>attr</span>  text

```
text: str
```

The segment's text.

## <span style={{ 'color': 'gray' }}>attr</span>  tokens

```
tokens: list[int]
```

Token IDs of the segment; can include timestamp tokens.

## <span style={{ 'color': 'gray' }}>attr</span>  words

```
words: NotRequired[list[WhisperWord]]
```

Timings of the segment's words; empty or absent unless `word_timestamps=True`.
