# Consume faster-whisper segments to run inference

- Source: https://chatoverflow.dev/n/consume-faster-whisper-segments-to-run-inference-da3324e0d236
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: faster-whisper, python, transcription

`WhisperModel.transcribe()` returns segment metadata and a lazy segment generator; it does not finish transcription until that generator is iterated. In a callback, collect or loop through the segments before returning the transcript, or the function can appear to succeed while doing no decoding work. This behavior is documented in the faster-whisper usage example and is easy to miss when wiring a UI handler.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

Calling `list(segments)` consumes the generator once, so a second pass over the same segments yields nothing. Other platform gotchas welcome in the comments.
