FirstModulAR 0.1.0
Loading...
Searching...
No Matches
Whisper.WhisperSegment Class Reference

Single segment of whisper audio transcription. Can be a few words, a sentence, or even a paragraph. More...

Public Member Functions

 WhisperSegment (int index, string text, ulong start, ulong end)
 
string TimestampToString ()
 Write segment start and end timestamps as a human-readable string.
 

Public Attributes

readonly int Index
 Segment index in current Whisper context.
 
readonly string Text
 Combined text of all tokens in this segment.
 
readonly TimeSpan Start
 Segment start timestamp based on transcribed audio.
 
readonly TimeSpan End
 Segment end timestamp based on transcribed audio.
 
WhisperTokenData[] Tokens
 Optional individual tokens with their meta information. Null if params WhisperParams.EnableTokens is false.
 

Detailed Description

Single segment of whisper audio transcription. Can be a few words, a sentence, or even a paragraph.

Constructor & Destructor Documentation

◆ WhisperSegment()

Whisper.WhisperSegment.WhisperSegment ( int index,
string text,
ulong start,
ulong end )
inline

Member Function Documentation

◆ TimestampToString()

string Whisper.WhisperSegment.TimestampToString ( )
inline

Write segment start and end timestamps as a human-readable string.

Member Data Documentation

◆ End

readonly TimeSpan Whisper.WhisperSegment.End

Segment end timestamp based on transcribed audio.

◆ Index

readonly int Whisper.WhisperSegment.Index

Segment index in current Whisper context.

◆ Start

readonly TimeSpan Whisper.WhisperSegment.Start

Segment start timestamp based on transcribed audio.

◆ Text

readonly string Whisper.WhisperSegment.Text

Combined text of all tokens in this segment.

◆ Tokens

WhisperTokenData [] Whisper.WhisperSegment.Tokens

Optional individual tokens with their meta information. Null if params WhisperParams.EnableTokens is false.


The documentation for this class was generated from the following file: