Name | Type | Mandatory | Additional |
---|---|---|---|
helpPrompt | Common.TTSChunk | false | array: true minsize: 1 maxsize: 100 |
initialPrompt | Common.TTSChunk | false | array: true minsize: 1 maxsize: 100 |
timeoutPrompt | Common.TTSChunk | false | array: true minsize: 1 maxsize: 100 |
timeout | Integer | true | |
grammarID | Integer | false | array: true minsize: 1 maxsize: 100 minvalue: 0 maxvalue: 2000000000 |
appID | Integer | true | |
cancelID | Integer | false |
Name | Type | Mandatory | Additional |
---|---|---|---|
choiceID | Integer | false | minvalue: 0 maxvalue: 2000000000 |
{ "id" : 79, "jsonrpc" : "2.0", "method" : "VR.PerformInteraction", "params" : { "initialPrompt" : [ { "text" : "Please make your choice by voice", "type" : "TEXT" } ], "helpPrompt" : [ { "text" : "Yes", "type" : "TEXT" }, { "text" : "No", "type" : "TEXT" }, { "text" : "Skip", "type" : "TEXT" } ], "timeoutPrompt" : [ { "text" : "The time is about to run out", "type" : "TEXT" } ], "timeout" : 10000, "grammarID" : 245, "appID" : 101 } }
{ "id" : 79, "jsonrpc" : "2.0", "result" : { "choiceID" : 2416, "code" : 0, "method" : "VR.PerformInteraction" } }
{ "id" : 79, "jsonrpc" : "2.0", "error" : { "code" : 10, "message" : "Interaction reached the maximum timeout and will be closed", "data" : { "method" : "VR.PerformInteraction" } } }