Giter Club home page Giter Club logo

robo-face's Introduction

Web Speech AI Bot

This is a simple AI bot made with nodejs, web speech api and dialogflow

WebSpeechAiBOt

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 dialogflow agent (the natural language processing platform) as a text string.
  3. Once the AI from the agent returns the reply text back, use the SpeechSynthesis interface to give it a synthetic voice.

The full tutorial can be found 👉 Here

Supported Browser

Project Setup

#install dependencies
npm install

#install nodemon
npm install -g nodemon

Setting Up Dialogflow

  1. To setup DialogFlow, you’ll need to create a DialogFlow Account.
  2. After creating an account, you would need to create an “agent”. The Getting Started guide illustrates all the relevant details
  3. Rather than opting for the complete customization method and creating entities and intents, you can just click Small Talk in the left menu.
  4. You can then toggle the switch for the service to be enabled.
  5. To use the API with our Nodejs application, you’ll need to go to the ‘General Settings’ page (click on the cog icon beside your agent’s name in the menu) and retrieve your Project Id.

Before You begin

  1. Enable the Dialogflow API
  2. Set up authentication with a service account so you can access the API from your local workstation.
  3. Click on create service account key page.
  4. Download your josn file credentials and put in your root directory.
  5. Replace the keyfilename of your json file name in app.js

Add config.env file inside the config folder and add the following:

PORT=5000
NODE_ENV=development
PROJECT_ID=your dialogflow project id

Run App

#Run in dev mode
npm run dev
#Run in prod mode
npm start
  • version: 1.0.0
  • License: MIT
  • author: Sajid Ansari

Robo-face

robo-face's People

Contributors

sajidantechie avatar lasithaya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.