Code Monkey home page Code Monkey logo

ibm-emotive-droid-demo's Introduction

Emotive Droid from IBM Research

Showing how to intelligently animate a 3D model using Watson Speech to Text & Tone Analyser

Technologies used:

Project

This project uses Watson SDK for Unity to invoke multiple cloud based watosn AI systems. First is uses Watson Speech to Text to detect when you are talking, and then what you are saying.

Using this it then runs the text though Watson Tone Analyser This allows us to pick up the emotional content of the speech ( Joy/Sadness/Anger/Fear/Disgust). Importantly we can also understand how confident we are in this emotional content, we are confident, and express enough of the emotion, the Droid in our animation scene will then react to your emotions.

Getting Started

  1. Sign up for an account with IBM Cloud

  2. Create your Speech to Text Service 2.1. Sign in using the account you created, and go to Catalog and go to find Speech to Text and create a new instance. 2.2. Then go to "Service credentials" 2.3. Click on "View Credentials", and copy the credentials, which should look like

     {
       "url": "https://stream.watsonplatform.net/speech-to-text/api",
       "username": "a0a310b5-dont-steal-mine",
       "password": "super-secret"
     }
    

    2.4. Thesse can then be added to EmotivDroid.cs around line 40:

     private string _username_STT = "";
     private string _password_STT = "";
     private string _url_STT = "https://stream.watsonplatform.net/speech-to-text/api";
    
  3. Create your Own Tone Analyser Service 3.1. Sign in using the account you created, and go to Catalog and go to find Tone Analyser and create a new instance. 3.2. Then go to "Service credentials" 3.3. Click on "View Credentials", and copy the credentials, which should look like

     {
       "url": "https://gateway.watsonplatform.net/tone-analyzer/api",
       "username": "145e7d3b-nope-not-this-time",
       "password": "Watson4Ever"
     }
    

    3.4. Thesse can then be added to EmotivDroid.cs around line 50:

         private string _username_TONE = "";
         private string _password_TONE = "";
         private string _url_TONE = "https://gateway.watsonplatform.net/tone-analyzer/api";
    
  4. Try it out! hit play in unity and try and trigger each of the emotions, when you hit the threshold defined in the code, the droid will react to your emotions. ( If you find it hard to trigger, try playing with the threshold values in the code! ) 4.1 For joy you could try saying:

     Hi Watson, I am having a really great day, I am feeling positive and uplifted and think this demo is just the best!
    

    4.2 For sadness you could try saying:

     Hi Watson, I am having a really terrible day, I am feeling negative and low and think this demo is rubbish
    

    4.3 For fear you could try saying:

     Hi Watson, I am really concerned about this demo, I am worried people wont like it. I dread the publics reaction, it makes me tremble.
    

    4.4 For Disgust you could try saying:

     Hi Watson, I think this demo is revolting, honestly it makes me sick to my stomach just thinking about it.
    

    4.5 For Anger you could try saying:

     Hi Watson, I am so furious that I did'nt make a demo this cool, it makes my blood boi, if only I had thought of it!
    

ibm-emotive-droid-demo's People

Contributors

gwilymnewton avatar

Watchers

 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.