AsrModule.AsrContentType
EnumThe 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
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:
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
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