Description

Computes a mel scale spectrogram - a spectrogram where the frequencies are converted to the mel scale.

Example

var melSpectrogram = melSpectrogramBuilder
.setFrameSize(frameSize)
.setHopSize(hopSize)
.setFFTSize(fftSize)
.setNumMel(numMel)
.setMinFreq(minFreq)
.setMaxFreq(maxFreq)
.setSampleRate(sampleRate)
.build();
interface MelSpectrogram {
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
    process(inTensor, inShape, outTensor): vec3;
}

Hierarchy (view full)

Methods

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

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

  • Parameters

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

    Returns vec3

    Description

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

Generated using TypeDoc