Class: Whisper::Token
- Inherits:
-
Object
- Object
- Whisper::Token
- Defined in:
- sig/whisper.rbs
Instance Method Summary collapse
- #deconstruct_keys ⇒ deconstructed_keys
-
#end_time ⇒ Integer
End time of the token.
-
#id ⇒ Integer
Token ID.
-
#log_probability ⇒ Float
Log probability of the token.
-
#probability ⇒ Float
Probability of the token.
-
#pt ⇒ Float
Probability of the timestamp token.
-
#ptsum ⇒ Float
Sum of probability of all timestamp tokens.
-
#start_time ⇒ Integer
Start time of the token.
-
#t_dtw ⇒ Integer
[EXPERIMENTAL] Token-level timestamps with DTW.
-
#text ⇒ String
Get the token text of the token.
-
#tid ⇒ Integer
Forced timestamp token ID.
-
#voice_length ⇒ Float
Voice length of the token.
Instance Method Details
#deconstruct_keys ⇒ 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_time ⇒ Integer
End time of the token.
Token-level timestamp data. Do not use if you haven't computed token-level timestamps.
612 |
# File 'sig/whisper.rbs', line 612
def end_time: () -> Integer
|
#id ⇒ Integer
Token ID.
567 |
# File 'sig/whisper.rbs', line 567
def id: () -> Integer
|
#log_probability ⇒ Float
Log probability of the token.
579 |
# File 'sig/whisper.rbs', line 579
def log_probability: () -> Float
|
#probability ⇒ Float
Probability of the token.
575 |
# File 'sig/whisper.rbs', line 575
def probability: () -> Float
|
#pt ⇒ Float
Probability of the timestamp token.
583 |
# File 'sig/whisper.rbs', line 583
def pt: () -> Float
|
#ptsum ⇒ Float
Sum of probability of all timestamp tokens.
587 |
# File 'sig/whisper.rbs', line 587
def ptsum: () -> Float
|
#start_time ⇒ Integer
Start time of the token.
Token-level timestamp data. Do not use if you haven't computed token-level timestamps.
605 |
# File 'sig/whisper.rbs', line 605
def start_time: () -> Integer
|
#t_dtw ⇒ Integer
[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.
594 |
# File 'sig/whisper.rbs', line 594
def t_dtw: () -> Integer
|
#text ⇒ String
Get the token text of the token.
616 |
# File 'sig/whisper.rbs', line 616
def text: () -> String
|
#tid ⇒ Integer
Forced timestamp token ID.
571 |
# File 'sig/whisper.rbs', line 571
def tid: () -> Integer
|
#voice_length ⇒ Float
Voice length of the token.
598 |
# File 'sig/whisper.rbs', line 598
def voice_length: () -> Float
|