Dictation
Presents an interface for dictation.
Presents an interface that lets you dictate a text. You can specify the locale of the text you want to dictate when calling the start() function. Dictation must manually be stopped from the presented interface when you are finished dictating.
Methods
Section titled “Methods”
start(locale)
Section titled “start(locale)”Starts dictation.
static start(locale: string): Promise<string>Presents an interface that shows the dictated string. Press “Done” when you are done dictating the text.
Parameters
Section titled “Parameters”locale string
Optional string identifier that specifies the language to dictate in. E.g. “en” for English, “it” for Italian and “da” for Danish. Defaults to the locale of the device.
Return value
Section titled “Return value”Promise<string>
Promise that provides the dictated text when fulfilled.