GithubHelp home page GithubHelp logo

cave-tjbot's Introduction

This is cave-version tjbot

cavedu cave-tjbot

Preparation

Material

  1. Raspberry Pi
  2. TJbot
  3. SD card
  4. Microphone
  5. Speaker

Assembly of TJbot

youtube link

Purchase info

System Installation

The following steps are applicable on three main computer OS: Linux, macOS and Windows.

  1. Download the latest image of Raspian.
  2. Download the latest Etcher to burn the image.
  3. Burn the image to SD card and boot RPi.

Basic config for RPi

Open terminal in RPi and type the following commands.

  1. Update RPi system
sudo apt-get update
sudo apt-get dist-upgrade
  1. Set the audio output to 3.5mm jack
sudo raspi-config

7 Advanced Options -> A4 Aduio -> 1 Force 3.5mm ('headphone') jack -> Ok

  1. Install nodejs on RPi
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install nodejs
  1. (Optional) Install espeak for running tjdemo-espeak.js
sudo apt-get install espeak
  1. Tune audio volume
alsamixer

Press <Esc> to exit.

Prerequisite

Register an IBM Bluemix account

Go to this website and register a new account. Note that a new account is free for 30 days.

Initialize the IBM bluemix

Log in to Bluemix Web UI.

Set the Region, Organization, Space.

ex.

Create the Speech-To-Text service

Create Service -> Watson -> Speech-To-Text-Service -> Plan: Standard

Get the credential of STT service

Speech-To-Text service -> Service credntials -> New credential -> View credentials

ex.

{
  "url": "https://stream.watsonplatform.net/speech-to-text/api",
  "username": "512e2a10-4411-4900-90af-947d0f339070",
  "password": "mUyesb3fl7oB"
}

(Optional) Create Bluemix service in CLI

Install Bluemix CLI(Cloud Foundry)

Open the terminal in your computer(Command Prompt for Windows users).

cf login -a https://api.ng.bluemix.net
cf create-service speech_to_text standard my-stt-service
cf create-service-key my-stt-service
cf servic-key my-stt-service my-stt-key

Usage

  1. Clone this project and change the working diretory into src.
git clone https://github.com/YuanYouYuan/cave-tjbot.git
cd cave-tjbot/src
  1. Install node dependencies
npm install
  1. Edit the credential in config.js
nano config.js
  1. Run the sample code
sudo node tjdemo-google.js

Scheme

cave-tjbot's People

Contributors

yuanyuyuan avatar

Watchers

James Cloos avatar  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.