Skip to main content

MachineLearning

Namespace

Namespace in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Enumerations

EnumerationDescription
DataLayoutUsed with BasePlaceHolder.
FrameTimingTiming options for when MLComponent should start or stop running. Used with MLComponent.runScheduled(). For more information, see the MLComponent Scripting guide.
InferenceModeInference modes used by MLComponent.inferenceMode. Each mode describes how the neural network will be run.
ModelStateDescribes the current state of the MLComponent model. For more information, see the MLComponent Scripting guide.
OutputModeTypes of output used by OutputPlaceholder.

Functions

FunctionDescription
createDelayBuilderCreates a new DelayBuilder object.
createDeltaBuilderCreates a new DeltaBuilder object.
createInputBuilderCreates a new InputBuilder object.
createMelSpectrogramBuilderCreates a new MelSpectrogramBuilder object.
createMFCCBuilderCreates a new MFCCBuilder object.
createNoiseReductionBuilder-
createOutputBuilderCreates a new OutputBuilder object.
createPitchShifterBuilder-
createSamplerBuilderCreates SamplerBuilder.
createSpectrogramBuilderCreates a new SpectrogramBuilder object.
createTransformerBuilderCreates a new TransformerBuilder object.