V-Blaze and V-Cloud Online Help

V‑Blaze REST API and V‑Cloud

To obtain emotional intelligence data using the V‑Blaze REST API or the V‑Cloud API, add a new form field to your POST using the name “emotion” with the value “true”.

Using the curl command-line tool, include the emotion parameter with the value set to true to submit test.wav for translation with emotion results, as shown in the following example:

curl -F "emotion=true" -F "file=@test.wav" -XPOST http://server:17171/STREAM

where server should be replaced by the name or IP address of the translation server.

The command above prints a JSON data structure to your terminal. To include the results in a JSON file, append >test.json to the end of your request to redirect the results to a JSON file, as shown in the following example:

curl -F "emotion=true" ... > test.json

These commands apply to all common operating systems, including Windows, Mac, and various forms of Linux. They are intended to be entered in a terminal or command window.

If you know ahead of time that emotional intelligence will always be required, you can request that Voci supports the configuration of your Web API or cloud interface with emotion enabled by default. You can also send a message to support@vocitec.com to have the default changed. In this case, you would not need to add -F “emotion=true” to your commands.

Refer to Emotion, Sentiment, and Gender for more details on parameters and how they are used.