Class: Whisper::Token

Inherits:
Object
  • Object
show all
Defined in:
sig/whisper.rbs

Instance Method Summary collapse

Instance Method Details

#deconstruct_keysdeconstructed_keys

Parameters:

  • (Array[:id | :tid | :probability | :log_probability | :pt | :ptsum | :t_dtw | :voice_length | :start_time | :end_time | :text], nil)

Returns:

  • (deconstructed_keys)


617
# File 'sig/whisper.rbs', line 617

def deconstruct_keys: (Array[:id | :tid | :probability | :log_probability | :pt | :ptsum | :t_dtw | :voice_length | :start_time | :end_time | :text] | nil) -> deconstructed_keys

#end_timeInteger

End time of the token.

Token-level timestamp data. Do not use if you haven't computed token-level timestamps.

Returns:

  • (Integer)


612
# File 'sig/whisper.rbs', line 612

def end_time: () -> Integer

#idInteger

Token ID.

Returns:

  • (Integer)


567
# File 'sig/whisper.rbs', line 567

def id: () -> Integer

#log_probabilityFloat

Log probability of the token.

Returns:

  • (Float)


579
# File 'sig/whisper.rbs', line 579

def log_probability: () -> Float

#probabilityFloat

Probability of the token.

Returns:

  • (Float)


575
# File 'sig/whisper.rbs', line 575

def probability: () -> Float

#ptFloat

Probability of the timestamp token.

Returns:

  • (Float)


583
# File 'sig/whisper.rbs', line 583

def pt: () -> Float

#ptsumFloat

Sum of probability of all timestamp tokens.

Returns:

  • (Float)


587
# File 'sig/whisper.rbs', line 587

def ptsum: () -> Float

#start_timeInteger

Start time of the token.

Token-level timestamp data. Do not use if you haven't computed token-level timestamps.

Returns:

  • (Integer)


605
# File 'sig/whisper.rbs', line 605

def start_time: () -> Integer

#t_dtwInteger

[EXPERIMENTAL] Token-level timestamps with DTW

Do not use if you haven't computed token-level timestamps with dtw. Roughly corresponds to the moment in audio in which the token was output.

Returns:

  • (Integer)


594
# File 'sig/whisper.rbs', line 594

def t_dtw: () -> Integer

#textString

Get the token text of the token.

Returns:

  • (String)


616
# File 'sig/whisper.rbs', line 616

def text: () -> String

#tidInteger

Forced timestamp token ID.

Returns:

  • (Integer)


571
# File 'sig/whisper.rbs', line 571

def tid: () -> Integer

#voice_lengthFloat

Voice length of the token.

Returns:

  • (Float)


598
# File 'sig/whisper.rbs', line 598

def voice_length: () -> Float