Class: Whisper::VAD::Context

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newinstance

Parameters:

  • model_name_or_path (String, path, ::URI::HTTP)

Returns:

  • (instance)


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

def self.new: (String | path | ::URI::HTTP model_name_or_path) -> instance

Instance Method Details

#detectSegments

Parameters:

  • wav_file_path (path)
  • (Params)

Returns:



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

def detect: (path wav_file_path, Params) -> Segments

#segments_from_samples(arg0, samples, n_samples) ⇒ Segments #segments_from_samples(arg0, arg1, n_samples) ⇒ Segments

Overloads:

  • #segments_from_samples(arg0, samples, n_samples) ⇒ Segments

    Parameters:

    • arg0 (Params)
    • samples (Array[Float])
    • n_samples (Integer)

    Returns:

  • #segments_from_samples(arg0, arg1, n_samples) ⇒ Segments

    Parameters:

    Returns:



1000
1001
# File 'sig/whisper.rbs', line 1000

def segments_from_samples: (Params, Array[Float] samples, ?Integer n_samples) -> Segments
| (Params, _Samples, ?Integer n_samples) -> Segments