This demo uses the experimental Web Speech API, which is currently only supported by Blink-based browsers including Chrome 25+, Opera 27+, Samsung Internet, QQ Browser, and Baidu Browser.
This is how this web app works:
- Using the Web Speech API’s
SpeechRecognition
interface to listen your voice from a microphone - Send your message to API.ai (the natural language processing platform) as a text string
- Once the AI from the API.ai returns the reply text back, use the
SpeechSynthesis
interface to give it a synthetic voice.
Installation:
npm install node index.js