This folder includes different modules which use Google Cloud Services.
- googleSpeechProcess: it reveals the structure and the syntax of your textual or vocal input by analyzing also the sentiments of your phrases;
- googleSpeech: it performs speech-to-text;
- googleSynthesis: it performs text-to-speech;
- googleDialog: it allows to carry on a conversation about a specific theme, corresponding to your own dialog flow created in your Google project.
In order to use them, the user have to register, create and download a private key from Google Cloud. Below the instructions on how to do:
- Browse to Cloud Console and create an account. This requires the user to insert a credit card: this process is mandatory in order to run the application, but you will not pay anything
- Starting from the Dashboard page, under the Project info section, use the button Go to Project Settings which will lead you to the Settings
- Browse to Service Accounts using the left navigation bar
- In the table you will find all the service accounts active for your projects. Use the Actions button related to the dialog flow service and select Create key choosing the JSON format.
Some useful information for the user:
In order to inform the user about what is happening in the background while he is interacting with the module, the /moduleName/state:o
port has been created, which shows different states of the module:
State | Meaning |
Listening (specific for googleSpeech) | Audio is captured by the microphone |
Done | The google request has been smoothly performed and the response is not empty |
Empty | The google request has been smoothly performed but the response is empty |
Failure_<StatusCode> | The google request has not been performed; <StatusCode> depends on the type of failure |
Reset (specific for googleDialog) | The session of the dialogflow has been cleaned |