class RubyLLM::Transcription::Segment

A timed piece of a transcript: an entry of Transcription#segments or Transcription#words, or the TranscriptionChunk#segment a stream completed. Readers cover what providers share; [] and to_h reach the rest under the provider’s own field names.

transcription.segments.each do |segment|
  puts "#{segment.speaker} at #{segment.start}s: #{segment.text}"
end