Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

spech66/watson_speech_text_speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speech to Text

This module provides a Node.js code to convert voice to text and back to voice using IBM Watson. The code is based on the tjbot example. The german tutorial is found at SPech.de

This will only run on the Raspberry Pi.

##How It Works

  • Listens for voice commands
  • Sends audio from the microphone to the Watson Speech to Text Service - STT to transcribe Watson Speech to Text
  • Parses the text looking for the attention word
  • Once the attention word is recognized the response is sent to Watson Text to Speech to generate the audio file.
  • The robot speaks the response via the Alsa audio playback tools

##Hardware

Raspberry Pi USB Microphone

##Build

Install ALSA tools (required for recording audio on Raspberry Pi)

sudo apt-get install alsa-base alsa-utils

Install Dependencies

npm install

Add your Bluemix service credentials

edit config.js
enter your watson username, password and version.

##Running

Start the application

sudo node speech_text_speech.js   

Note the sudo command. Root user access is required to control the NeoPixel LEDs.

Now talk to your microphone.

##Dependencies