BOT MisterBrown | Technologies | How To Use | License
the Mister Brown was developed, with the idea of being used to practice conversational English.
This demo uses an experimental web speech API, which is currently supported only by browsers created in Blink, including Chrome 25+, Opera 27+, Samsung Internet, QQ Browser and Baidu Browser.
This is how this web application works:
- Using a SpeechRecognition interface from the Web Speech API to hear your voice through a microphone
- Send your message to API.ai (a natural language processing platform) as a text string
- After the API.ai AI returns the response text, use the SpeechSynthesis interface to obtain a synthetic voice.
This project was developed with the following technologies:
To clone and run this application, you'll need Git, NodeJs installed on your computer.
Rename the .env.local
to .env
and fill the env vars:
APIAI_TOKEN=
APIAI_SESSION_ID=some_unique_session_id
The first one is an API.ai API key (Please get one by sign up with API.ai), and the second one is a session ID, which is an arbitrary string (we could make this unique within the app, but that's beyond the scope of this demo).
Or use this Heroku button to deploy to Heroku server. You just need to fill out the env vars with the API key and a session ID.
No need to create an .env
file.
Then from your command line:
# Clone this repository
$ git clone https://github.com/benits/papode.dev.git
# Go into the repository
$ cd MisterBrown
# Install dependencies
$ npm install
# Start
$ yarn start ou npm start
# running on port 5000
This project is under the MIT license. See the LICENSE for details.
Made with ♥ by Matheus Benites 👋 Get in touch!