...
sensors: Microphone
Audio input can also be provided in the form of an audio file
the audio input sent to the Google API has to be a bytestream
the audio length for one request can be maximum 1 minute, as per https://cloud.google.com/dialogflow/quotas#es-agent_2
actuators: None
services:
stream_audio
parameters:
Dialogflow keyfile path:
str
Dialogflow project ID:
str
The parameters are set at
BasicSICConnector
instantiation time
Service Configuration
The following steps will help you get the keyfile and project ID:
Create a Dialogflow agent by clicking the following link: https://dialogflow.cloud.google.com
Use the ‘Create Agent' button at the left top to start your first project. Press the settings icon next to your agent's name at the left top to see the Project ID.
Follow the steps here to retrieve your private key file in JSON format.
The following drivers need to be running if testing locally: computer-robot
, computer-speaker,
and computer-microphone
.
...
'intent':
str
the intent on which the audio was recognised, corresponding to the intent set on the agent
‘parameters’:
dict
the parameters defined in the agent
each parameter is a
str
key, with the its response asstr
value pairing
'confidence':
int
number ranging from 0 to 100 that defines how confident the API is with the intent and text detection
‘text’:
str
speech-to-text response from the API
'source':
str
for the SIC framework Dialogflow usage, the source is always ‘audio’
Parameters
Dialogflow Keyfile path:
str
Dialogflow Project ID:
str
The parameters are set at BasicSICConnector
instantiation time.
Service Configuration
Our service communicates with a Dialogflow agent to achieve its intended purpose, and it does so by using a project ID and a key file. If you happen to have them, you may skip this section.
The following steps will help you get the required items:
...
Create a Dialogflow agent by clicking the following link: https://dialogflow.cloud.google.com
...
Use the ‘Create Agent' button at the left top to start your first project. Press the settings icon next to your agent's name at the left top to see the Project ID.
...
Initialisation
Using the service
...