Class: Whisper::Parakeet::Segment
- Inherits:
-
Object
- Object
- Whisper::Parakeet::Segment
- Includes:
- Output::Segment
- Defined in:
- sig/whisper.rbs
Instance Method Summary collapse
-
#deconstruct_keys ⇒ deconstructed_keys
Possible keys:
:start_time,:end_time,:text. -
#each_token {|arg0| ... } ⇒ Object
Yields each Whisper::Parakeet::Token:.
-
#end_time ⇒ Integer
End time in milliseconds.
-
#start_time ⇒ Integer
Start time in milliseconds.
-
#text ⇒ String
Text of the segment.
Methods included from Output::Segment
Instance Method Details
#deconstruct_keys ⇒ deconstructed_keys
Possible keys: :start_time, :end_time, :text
879 |
# File 'sig/whisper.rbs', line 879
def deconstruct_keys: (Array[:start_time | :end_time | :text] | nil) -> deconstructed_keys
|
#each_token ⇒ void #each_token ⇒ Enumerator[Token]
Yields each Whisper::Parakeet::Token:
parakeet.each_segment.first.each_token do |token|
p token
end
Returns an Enumerator if no block is given:
parakeet.each_segment.first.each_token.to_a # => [#<Whisper::Parakeet::Token>, ...]
874 875 |
# File 'sig/whisper.rbs', line 874
def each_token: { (Token) -> void } -> void
| () -> Enumerator[Token]
|
#end_time ⇒ Integer
End time in milliseconds.
858 |
# File 'sig/whisper.rbs', line 858
def end_time: () -> Integer
|
#start_time ⇒ Integer
Start time in milliseconds.
854 |
# File 'sig/whisper.rbs', line 854
def start_time: () -> Integer
|
#text ⇒ String
Text of the segment.
862 |
# File 'sig/whisper.rbs', line 862
def text: () -> String
|