Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SPICE

Index

Constructors

constructor

  • new SPICE(modelUrl?: string): SPICE

Methods

dispose

  • dispose(): void
  • Disposes of any untracked Tensors to avoid GPU memory leaks.

    Returns void

getAudioFeatures

  • getAudioFeatures(inputAudioBuffer: AudioBuffer, confidenceThreshold?: number): Promise<AudioFeatures>
  • Include getAudioFeatures as a member method for API/export.

    Parameters

    • inputAudioBuffer: AudioBuffer

      An AudioBuffer

    • Optional confidenceThreshold: number

    Returns Promise<AudioFeatures>

    Audio Features of provided audio buffer

initialize

  • initialize(): Promise<void>
  • Loads variables from the checkpoint and builds the model graph.

    Returns Promise<void>

isInitialized

  • isInitialized(): boolean

Generated using TypeDoc