Packages

class WhisperPreprocessor extends Preprocessor with Serializable

Linear Supertypes
Preprocessor, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WhisperPreprocessor
  2. Preprocessor
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WhisperPreprocessor(feature_size: Int, hop_length: Int, n_fft: Int, n_samples: Int, padding_side: String, padding_value: Float, sampling_rate: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val do_normalize: Boolean
    Definition Classes
    Preprocessor
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def extractFeatures(rawFloats: Array[Float]): Array[Array[Float]]

    Creates the log-mel spectrogram of given float waveform and transforms it into features for the Whisper model.

    Creates the log-mel spectrogram of given float waveform and transforms it into features for the Whisper model. We assume, that the input has not been preprocessed yet.

    Adapted from huggingface transformer.

    rawFloats

    The waveform to transform into features

    returns

    Extracted Features

  9. val feature_size: Int
    Definition Classes
    WhisperPreprocessor → Preprocessor
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val hop_length: Int
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val n_fft: Int
  15. val n_samples: Int
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val padding_side: String
    Definition Classes
    WhisperPreprocessor → Preprocessor
  20. val padding_value: Float
    Definition Classes
    WhisperPreprocessor → Preprocessor
  21. val return_attention_mask: Boolean
    Definition Classes
    Preprocessor
  22. val sampling_rate: Int
    Definition Classes
    WhisperPreprocessor → Preprocessor
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Preprocessor

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped