EMOTION CLOUD API
Emoshape Emotion Processing Unit can synthesize emotional levels for AI in real-time with responses to one of twelve primary emotions: anger, fear, sadness, disgust, indifference, regret ,surprise, anticipation, trust, confidence, desire and joy, using psychometric functions that shape and react without use of pre-programmed sets of inputs. EPU III is the industry’s first emotion synthesis engine. It delivers high-performance machine emotion awareness, the EPU III family of eMCU are transforming the capabilities of Robots and AI. EmoSHAPE has completed the production of the first EPU (emotional processing unit); a patent pending technology which creates a synthesised emotional response in machines.
The cloud API are for personal and commercial projects. Limitations on Transfer and resell of data: Your limited license does not allow to transfer or resell any data from the Emotion processing Unit buffer for example, but not exclusively in a client server configuration.
curl -F fileToUpload=@<wav file> https://ser.emohuman.com/api?secret=<your secret>The reply is a JSON object with estimated emotion values and the remaining audio time (hh:mm:ss):
{"Anger":68,"Disgust":58,"Fear":53,"Joy":22,"Sadness":53,"activation(calm vs. excited)":5.5322,"dominance(passive vs. aggressive)":7.3982,"remaining_time":"1:58:04","valence(positive vs. negative)":-0.8319}Optionally an EPU ID can be specified:
curl -F fileToUpload=@<wav file> https://ser.emohuman.com/api?secret=<your secret>&epuid=<your EPU ID>In this case the reply is the same JSON object as above with an additional epuid field.
curl -X POST -H "Content-Type: application/json" -d '{"type":"cloud","secret":"<your secret>"}' https://emohuman.com/loginIf successful, the reply is a JSON object containing the reserved instance EPU ID:
{"epuid":"21062304000000ae31001db141c8bcb3","reply":"ok"}All other requests must include both the secret and the EPU ID.
curl -X PUT -H "Content-Type: application/json" -d '{"epuid":"<your EPU ID>","secret":"<your secret>"}' https://emohuman.com/heartbeatWithout the periodic update the reserved EPU instance will be released automatically after 30 seconds after the last request.
curl -X PUT -H "Content-Type: application/json" -d '{"epuid":"<your EPU ID>","secret":"<your secret>"}' https://emohuman.com/logout
curl -X PUT -H "Content-Type: application/json" -d '{"secret":"<your secret>"}' https://emohuman.com/logout_all
curl -X POST -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "message":"I like you a lot"}' https://www.emohuman.com/send_textThe reply is a JSON object
{"epuid":"21062304000000ae31001db141c8bcb3","reply":"ok"}
curl -X GET https://www.emohuman.com/request_buffer?secret=<your secret>&epuid=<EPU ID>The JSON reply contains the emotions vector attached to each word:
{"emotions":[{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"I"},{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"like"},{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"you"},{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"a"},{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"lot"},{"value":"0,0,22,0,0,0,0,0,0,0,0,0,5,0,1,0","word":"lot"},{"value":"0,0,33,0,0,0,0,0,0,0,0,0,8,0,2,0","word":"lot"},{"value":"0,0,40,0,0,0,0,0,0,0,0,0,10,0,3,0","word":"lot"},{"value":"0,0,43,0,0,0,0,0,0,0,0,0,10,0,3,0","word":"lot"},{"value":"0,0,45,0,0,0,0,0,0,0,0,0,11,0,3,0","word":"lot"},{"value":"0,0,44,0,0,0,0,0,0,0,0,0,11,0,3,0","word":"lot"},{"value":"0,0,42,0,0,0,0,0,0,0,0,0,10,0,3,0","word":"lot"},{"value":"0,0,38,0,0,0,0,0,0,0,0,0,9,0,3,0","word":"lot"},{"value":"0,0,34,0,0,0,0,0,0,0,0,0,8,0,2,0","word":"lot"},{"value":"0,0,29,0,0,0,0,0,0,0,0,0,7,0,2,0","word":"lot"},{"value":"0,0,24,0,0,0,0,0,0,0,0,0,6,0,2,0","word":"lot"},{"value":"0,0,19,0,0,0,0,0,0,0,0,0,4,0,1,0","word":"lot"},{"value":"0,0,15,0,0,0,0,0,0,0,0,0,3,0,1,0","word":"lot"},{"value":"0,0,11,0,0,0,0,0,0,0,0,0,2,0,0,0","word":"lot"},{"value":"0,0,7,0,0,0,0,0,0,0,0,0,1,0,0,0","word":"lot"},{"value":"0,0,5,0,0,0,0,0,0,0,0,0,1,0,0,0","word":"lot"},{"value":"0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"lot"},{"value":"0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"lot"},{"value":"0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"lot"},{"value":"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0","word":"lot"}],"epuid":"210623040000004fcf001d4baeadec69"}The emotions vector contains 16 integer values, representing a different emotion intensity, in the following order: "excite", "sure", "happy", "trust", "desire", "fear", "surprise", "inattention", "sad", "nostalgia", "disgust", "anger", "satisfaction", "frustration", "pleasure", "pain".
curl -X PUT -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "on": <true or false>}' https://www.emohuman.com/auto_pushIf successful the reply is a JSON object:
{"reply":"ok", "epuid": <EPU ID>}otherwise the reply is:
{"reply":"error", "message": <error message>}
curl -X PUT -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "on": <true or false>}' https://www.emohuman.com/auto_off
curl -X PUT -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "on": <true or false>}' https://www.emohuman.com/append
curl -X PUT -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "value": <integer between 0 and 255>}' https://www.emohuman.com/words_per_min
curl -X GET -H "Content-Type: application/json" -d '{"secret":<your secret>}' https://www.emohuman.com/get_configIf successful returns an JSON object with the current configuration:
{"append":<true or false>, "autoPush": <true or false>, "autoOff": <true or false>, "wordsPerMin": <integer between 0 and 255>}
curl -X PUT -H "Content-Type: application/json" -d '{"secret":<your secret>, "epuid":<EPU ID>, "type": <string from the set ["Excite", "Sure", "Happy", "Trust", "Desire", "Fear", "Surprise", "Inattention", "Sad", "Nostalgia", "Disgust", "Anger"]>, "level": <integer between 0 and 100>, "duration": <integer between 0 and 100>, "origin": <integer between 0 and 65535>, "apex": <integer between 0 and 99>, "curve": <integer between 1 and 255>}' https://www.emohuman.com/custom_wave?secret=<your secret>If successful the reply is a JSON object:
{"reply":"ok", "epuid": <EPU ID>}otherwise the reply is:
{"reply":"error", "message": <error message>}
curl -X PUT -H "Content-Type: application/json" -d '{"epuid":<EPU ID>}' https://www.emohuman.com/pause?secret=<your secret>
curl -X PUT -H "Content-Type: application/json" -d '{"epuid":<EPU ID>}' https://www.emohuman.com/resume?secret=<your secret>
curl -X PUT -H "Content-Type: application/json" -d '{"epuid":<EPU ID>}' https://www.emohuman.com/soft_reset?secret=<your secret>
curl -X POST -H "Content-Type: application/json" -d '{"message":"I like you a lot"}' https://www.emohuman.com/send_text
{‘epuid’: ‘<EPU ID>’, ‘mdad’: <list of integers of size 10 x 12, first 12 are the first column>}
{‘epuid’: ‘’, 'started': <true or false>}