Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • sensors: Microphone

  • 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:

  1. Create a Dialogflow agent by clicking the following link: https://dialogflow.cloud.google.com

  2. 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.

  3. 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 as str 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

  1. Dialogflow Keyfile path: str

  2. 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

...