Hamaar / botcekkurs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🤖 Chatbot using IBM Watson

Node.js application using Speech to Text, Text to Speech and Assistant

Prerequisites

  1. Sign up for an IBM Cloud account.
  2. Download the IBM Cloud CLI.
  3. Create an instance of the Speech to Text, Text to Speech and Assistant service and get your credentials:
    • Copy the apikey value.
    • Copy the url value.

Configuring the application

  1. Open the config/config.env file and add the service credentials that you obtained in the previous step.
    TEXT_TO_SPEECH_IAM_APIKEY=<your text to speech apikey>
    TEXT_TO_SPEECH_URL=<your text to speech url>
    SPEECH_TO_TEXT_IAM_APIKEY=<your speech to text apikey>
    SPEECH_TO_TEXT_URL=<your speech to text url>
    ASSISTANT_APIKEY=<your assistant apikey>
    ASSISTANT_IAM_APIKEY=<your assistant iam apikey>
    ASSISTANT_URL=<your assistan url>
    ASSISTANT_AUTH_TYPE=iam
    workspaceId=<your workspace id>
    
    

Running locally

  1. Install the dependencies

    npm install
    
  2. Run the application

    npm start
    
  3. View the application in a browser at localhost:8080

  4. It will works like a charm

About

License:Apache License 2.0


Languages

Language:JavaScript 80.8%Language:HTML 9.0%Language:CSS 7.0%Language:Shell 3.2%