Skip to main content

WitAI

Block Name
BlockDescription
Listen and Play Response
Controller Press

Plays a response with a given voice preset.

  • Voice Preset: Text value corresponding to the name of the voice preset to be used to play the response.
  • Token: Text value corresponding to the name of the server token used by the user's Wit app
  • Wait For Finish: Boolean value indicating whether behaviour execution should only continue after the response audio is done playing.
Text to Speech
Controller Press

Reads the provided text using the given voice preset.

  • Text: Text value corresponding to the text to be read.
  • Token: Text value corresponding to the name of the server token used by the user's Wit app
  • Voice Preset: Text value corresponding to the name of the voice preset to be used to play the response.
  • Wait For Finish: Boolean value indicating whether behaviour execution should only continue after the response audio is done playing.
Listen for Response

Begins listening for the player's verbal response.

  • Target: The Object or scene listening to the player's response.
  • Key: The specified WitAI Data variable used to store the player's response.
  • Token: Text value corresponding to the name of the server token used by the user's Wit app
Listen for Intents

Begins listening for intents from the player's verbal commands.

  • Target: The Object or scene listening to the player's commands.
  • Key: The specified WitAI Data variable to use to store the player's response.
  • Token: Text value corresponding to the name of the server token used by the user's Wit app
Get Intent Text

Retrieves the intent as a text from the player's recorded verbal command.

  • Data: The WitAI Data variable recording the player's verbal command.
Get Entities Text

Retrieves the value of a given entity as text from the player's recorded verbal command.

  • Data: The WitAI Data variable recording the player's verbal command.
  • Entity: The entity of interest to retrieve the value of from the provided WitAI data.
Get Response Text

Returns a response as a Text from a provided WitAI data.

  • Data: The WitAI Data containing the response of interest.
Has Entities

Indicates whether the WitAIData contains values associated with a given entity.

  • Entities: The WitAI Data of interest.
  • Entities: The entity of interest to look for values associated with it in the provided WitAI data.
Is Recording

Returns whether voice command recording is currently enabled.

Stop Recording

Disable voice command recording.