Web Speech API is experimental with limited support.
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.
- API.ai API key (as an env var).
- Install Node.js dependencies ,
npm install
- Run
npm start