Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 906 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 906 Bytes

Speak With Eliza

Talk with Eliza psychotherapist bot using speech recognition via Google Speech API and the default text to speech on your computer. This is just a demonstration of an AI being simplified two 4 Node.js modules.

Your voice --> mic-to-speech --> google-speech-from-buffer --> eliza-as-pomised --> say --> your ears --> repeat

Installation Mac

Audio recorder: brew install sox

Installation Linux/Raspberry Pi

sudo apt-get install sox libsox-fmt-all

How to run

Set your google service key and project environment variables. ( https://console.cloud.google.com/apis/credentials )

export GOOGLE_APPLICATION_CREDENTIALS=[Path to service account key json file]

Start your therapy session

npm install
npm start

For a detailed walk through of how this works read this blog post: http://www.natelewis.net/2017/08/speech-enabled-ai-conversations-with.html