If you use the bot's embed code it will automatically add speech recognition in the WebChatBotListener createBox() function.
To add speech recogntion yourself you can call the,
To start speech recognition, and,
to stop speech recognition.
Use all need to call,
To register for the speech events.
Speech recognition is only supported in browsers that support HTML5 Speech, such as Chrome.