Menu
Lumberyard
Developer Guide (Version 1.11)

Speech Recognition Cloud Gem

You can use the Speech Recognition Cloud Gem to add speech recognition and natural language processing to your Lumberyard game. The Speech Recognition Cloud Gem uses the Amazon Lex service, which recognizes the intent of spoken user input so that your game can react accordingly. Your users can use natural language and do not have to memorize or use specific phrases to initiate commands.

Bots, Intents, Slots, and Elicitations

To use Amazon Lex, you create a bot, which is a collection of one or more intents. An intent is an action that a user wants to perform or have performed. Intents can have conceptual variables called slots. Slots are placeholders for objects of a certain category. For example, if your game had an intent to switch weapons, the intent would have a slot called weapon. The weapon slot could have values like pistol, shotgun, or railgun. In your game, the user could say "change weapon to shotgun." If the user says only "change weapon," the intent is clear but the slot is missing, so Amazon Lex returns an elicitation (follow-up question). The elicitation might be "Switch to which weapon?", at which point the user can specify a weapon verbally.

To create, edit, and export bots, you can use the Amazon Lex console at https://console.aws.amazon.com/lex/. You can use the Speech Recognition Cloud Gem Portal to import bots into your game. Currently, you cannot use the Speech Recognition Cloud Gem Portal to create bots. Lumberyard includes a sample bot in the Speech Recognition Sample Level. To import the bot and try the sample level, see Using the Speech Recognition Sample Level.

For information about using the Speech Recognition Cloud Gem Portal, see Speech Recognition Cloud Gem Portal (Preview).

For information about Amazon Lex, see the Amazon Lex Developer Guide.