Generally, in Javascript, there is a way to using SpeechRecognition API. But in Salesforce this is under locker service. So is there any way to perform speech recognition in a lightning component?

1 Answer 1


You can check the support for a given JavaScript API on the Locker API Viewer. Unfortunately, searching for "SpeechRecognition" returns the following (source is SecureWindow):

API Support
webkitSpeechRecognition Not Supported
webkitSpeechRecognitionError Not Supported
webkitSpeechRecognitionEvent Not Supported

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .