Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Real Time Tone Analysis

Blog post here.

app

This is a fun little demo using websockets and Watson Tone Analytics. When a user submits text to the app, we run tone analytics on it and then convert that tone to a color.

Using the magic of websockets all clients stay in sync - i.e. you see when other people are analyzing text and your background color updates with them etc etc.

App Structure

There are only two app files - server.js and index.html. Read my blog post for a breakdown on what they each do.

To run the app

Prerequisites:

  • Have a Bluemix account
  • Create a nodejs runtime
  • Bind the Tone Analytics service to your app
  • Replace username and password in server.sh with your actual username and password for tone analytics.
npm install
npm run start

About

Convert tone --> color

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.