• Stars
    star
    362
  • Rank 115,260 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple AI Chat Bot Demo with Web Speech API

Demo: A Simple Voice AI Bot with Web Speech API and Node.js

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.

View the demo on Vimeo

View the demo on Vimeo

This is how this web app works:

  1. Using the Web Speech API’s SpeechRecognition interface to listen your voice from a microphone
  2. Send your message to API.ai (the natural language processing platform) as a text string
  3. Once the AI from the API.ai returns the reply text back, use the SpeechSynthesis interface to give it a synthetic voice.

Try It on Your Own Server

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.

Deploy

More Repositories

1

a-picture-is-worth-a-1000-words

I am trying to describe complex matters in simple doodles!
10,849
star
2

RPi-KittyCam

Raspberry Pi app using a camera and PIR motion sensor, written in Node.js with Johnny-Five and Kittydar for cat facial detection
JavaScript
582
star
3

filterous-2

Instagram-like photo manipulation library for Node.js and Javascript on browser
JavaScript
195
star
4

Filterous

Instagram-like photo manipulation library in JavaScript
JavaScript
141
star
5

fb-apiai-bot-demo

A simple example of Facebook Chat Bot using API.ai
JavaScript
74
star
6

slack-httpstatuscats

HTTP Status Cats for Slack
JavaScript
47
star
7

html5-notifications-webOS-style

HTML5 Web Notifications API Demo
CSS
45
star
8

slack-sentiment

Slackbot: Sentiment analysis for Slack messages using IBM Watson
JavaScript
39
star
9

dash-rickroll

A node.js application to Rickroll whoever presses your Amazon Dash button.
JavaScript
36
star
10

x-barcode

Web Component wrapper for UPC-A (for now) barcode using Polymer.
HTML
22
star
11

girliemac.github.io

GirlieMac Blog on Github Pages
Less
18
star
12

arduino-led-rgb

A poor man's HUE smart light bulb demo with Arduino and RGB common cathode LED
CSS
18
star
13

send-sms

Nexmo demo: Sending SMS from web
JavaScript
17
star
14

presentation-slides

My Presentation slides in HTML
HTML
17
star
15

girliemac

my profile
11
star
16

magic8ball

HTML5 Device Orientation API Demo
JavaScript
9
star
17

msteams-httpstatuscats

HTTP Status Cats app for Microsoft Teams
JavaScript
8
star
18

nexmo-webhook

Nexmo Inbound Message Webhook Example in Node.js
JavaScript
5
star
19

sushi-compass

Pizza Compass Knock-off in HTML5
JavaScript
4
star
20

passport-uber-v2

Uber authentication strategy for Passport and Node.js
JavaScript
3
star
21

passport-lyft

Lyft authentication strategy for Passport and Node.js.
JavaScript
3
star
22

slack-twilio-call-demo

A Slack demo for Twilio Signal 2019 (1) receive a call and send a transcript to Slack and (2) Make a call to an agent and customer from Slack
JavaScript
3
star
23

Mojo-ICanHasLOL

ICanHasLOL app for Palm WebOS. (Unfinished. works as expected on emulator & devices. UI/Style will be modified. Icons will be modified.)
JavaScript
3
star
24

chat-lyft

A simple demo chat app that allows ypu to check nearby Lyft drivers
JavaScript
2
star
25

stickies

IndexedDB Demo App
JavaScript
2
star
26

comicsansfy

Make your web more friendly
2
star
27

x-twitter-button

Web Component wrapper for Twitter share button using Polymer
2
star
28

CoDoodler

Doodle with strangers on InterWeb
CSS
2
star
29

camera-cordova

PhoneGap version of the Coremob Camera app
JavaScript
1
star
30

flickr-css3-3d-demo

My CSS3 3D animation demo from 2009
CSS
1
star
31

terrarium-project

Learn the basics of HTML, CSS, and vanilla JavaScript DOM manipulation while building a web terrarium
HTML
1
star