12.01.2014 Views

User Interface Service Software Developerís Guide - Hitech Projects

User Interface Service Software Developerís Guide - Hitech Projects

User Interface Service Software Developerís Guide - Hitech Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

January 2008<br />

Public<br />

1.3.2 Explicit speech interaction component interface<br />

This component exposes to other services and application services the IVoiceIO interface to<br />

provide three main functionalities: recognize and understand user input, synthesize predefined<br />

system outputs and generate system responses. The capabilities offered through this interface<br />

are described in the following sections, including descriptions and examples of use.<br />

1.3.2.1 Capability IVoiceIO::ListenTo<strong>User</strong>()<br />

Syntax<br />

string listenTo<strong>User</strong>(string userID, string applicationID, string sessionID, string grammarURL,<br />

string semVar, string speechInputURL)<br />

Description<br />

This method is used for accessing Speech recognition and understanding component. It<br />

requires userID, applicationID and sessionID as input for setting up the proper resources, the<br />

URL of the grammar to be used for the current speech understanding and the semantic<br />

variable where the semantics are stored, and finally the URL of the recorded speech input. It<br />

returns a string containing information for the recognized and understood data formatted in a<br />

XML schema.<br />

Example<br />

string result = proxy.listenTo<strong>User</strong>(“my<strong>User</strong>”, “myApp”, “mySession”,<br />

“C:\\myApp\\GetAction.grxml”, “command’,<br />

newrecFileURL);<br />

In this example the ListenTo<strong>User</strong> method is called from myApp application for user my<strong>User</strong><br />

and session mySession. The system will try to recognize and understand the user sentence<br />

contained in newrecFileURL using the grammatical and semantic information off<br />

GetAction.grxml grammar. A sample grammar follows (for more detailed information on<br />

GRXML grammar syntax refer to D4.2 §5.3.2: Speech Recognition Grammar Specification).<br />

<br />

<br />

<br />

<br />

<br />

command='';<br />

<br />

<br />

command = 'LIGHTS_ON'<br />

command = 'LIGHTS_OFF'<br />

<br />

<br />

<br />

<br />

<br />

I want to<br />

I would like to<br />

Please<br />

<br />

Amigo IST-2004-004182 24/114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!