arrow-left

All pages
gitbookPowered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

CommandRequester

Anythingworld.Voice.CommandRequester

hashtag
Methods

Requests a command from a plain text input string and handles resulting command through CommandHandler utility.

Requests a command from a plain text input string and returns the resulting command as a JSON-formatted string.

hashtag
Description

A class that handles sending plain text commands to our parsing API and then returning the parsed commands to users and handling the command.

RequestCommand
RequestAndReturnCommand

Voice

AnythingWorld.Voice

hashtag
Description

Namespace holding scripts handling speech-to-text, text-to-speech and command parsing functions.

hashtag
Classes

This class handles sending plain text commands to our parsing API and then returning the parsed commands to users and handling the command.

CommandRequester

RequestAndReturnCommand

AnythingWorld.Voice.CommandRequester.RequestAndReturnCommand

hashtag
Declaration

private static IEnumerator RequestAndReturnCommand(string input, Action<string> ReturnAction)

hashtag
Parameters

hashtag
Description

Requests a command from a plain text input string and returns the resulting command as a JSON-formatted string.

RequestCommand

AnythingWorld.Voice.CommandRequester.MakeCommand

hashtag
Declaration

hashtag
Parameters

input

Plain text command to be parsed by API.

OnSuccess

Action that will be invoked on successfully parsed and returned command, must take a string input

input

Plain text command to be parsed by API.

ReturnedCommandAction

Action that will be invoked on successfully parsed and returned command, must take a string input.

hashtag
Description

Requests a command from a plain text input string and handles resulting command through CommandHandler utility.

 public static void RequestCommand(string input, Action<string> ReturnedCommandAction = null)