Speech to Text API in Lightning
In this post, I will be showing how speech recognition can be added in Salesforce Lightning UI using Google's Speech API.
Its one of the easiest ways to integrate speech recognition in Salesforce because it does not require any authentication. However, it does have cons. You are only limited to 50 queries per day and It only works on Chrome version 25 or later and Firefox.
The records are retrieved from Leads object and displayed on the component. You have to click the mic button for the API to listen. After the conversion from voice to text, you have a string to work with. From there on, you can create your own logic to handle speech. My solution looks for an action word and first name(s), from that point on it will take appropriate action. There are loops in this solution, however, this POC was only to figure out how the API works.
This API opens up an opportunity to easily add voice capability to business use cases.