Lens Scripting API

    Class MFCC

    Mel-frequency cepstral coefficients.

    var mfccBuilder = MachineLearning.createMFCCBuilder();

    var mfcc = mfccBuilder.setFrameSize(1920)
    .setHopSize(480)
    .setFFTSize(2048)
    .setNumMFCC(13)
    .setNumMel(13)
    .setLifter(0)
    .setMinFreq(0.0)
    .setMaxFreq(8000.0)
    .setSampleRate(16000).build();

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    maxTensorSize: number

    Max tensor size.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Process in tensor with shape, write result to the outTensor, and returns the shape of outTensor.

      Parameters

      • inTensor: Float32Array
      • inShape: vec3
      • outTensor: Float32Array

      Returns vec3

    MMNEPVFCICPMFPCPTTAAATR