Skip to main content

AsrModule.AsrContentType

Enum

The kind of content the speech is expected to carry.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v384

The kind of content the speech is expected to carry. The transcription is processed and formatted accordingly, e.g. to fill in a text field of the matching type.

Index

Example

const options = AsrModule.AsrTranscriptionOptions.create()
options.contentType = AsrModule.AsrContentType.Url

Enumeration Members

Email

Email: number

SPECS

An email address.

Since

Lens Scripting Version 384


Numeric

Numeric: number

SPECS

A number.

Since

Lens Scripting Version 384


Phone

Phone: number

SPECS

A phone number.

Since

Lens Scripting Version 384


Search: number

SPECS

A short query, such as a search term. Unlike AsrModule.AsrContentType.Text, the transcription is lowercase and has no punctuation.

Since

Lens Scripting Version 384


Text

Text: number

SPECS

General speech, transcribed as text.

Since

Lens Scripting Version 384


Translation

Translation: number

SPECS

Speech translated into AsrModule.AsrTranscriptionOptions#language.

Since

Lens Scripting Version 384


Url

Url: number

SPECS

A URL.

Since

Lens Scripting Version 384