Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Speech.

Read the question and choose the best answer. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
You are responsible for creating the lingual computer interaction interface of a new federation starship. If someone wants to log a message the computer should ask for the name of the person and for the message to be logged. Choose the appropriate SALT code to perform this task. Somebody else already wrote the visual part and the scripts: <html xmlns:salt="http://www.saltforum.org/2002/SALT"> <body onload="askForService()"> <form id="messageForm" action="http://javaschool.com/school/public/knowledge/SALT/message" method="post"> <input name="fromTextBox" type="text" /> <input name="messageTextBox" type="text" /> </form> <!-- ********************* --> <!-- insert SALT code here --> <!-- ********************* --> <script> // settings are based on user answers function setName() { messageForm.fromTextBox.value = nameRecognition.text; askForService(); } function setMessage() { messageForm.messageTextBox.value = messageRecognition.text; messageForm.submit(); } // the main script function askForService() { if messageForm.fromTextBox.value=="") { askName.Start(); nameRecognition.Start(); } else if (messageForm.messageTextBox.value=="") { askMessage.Start(); messageRecognition.Start(); } } </script> </body> </html>

<salt:ask id="askName"> What is your name? </salt:prompt>
<salt:ask id="askMessage"> What is your message? </salt:prompt>
<salt:ask id="repeatDefault" onComplete="askForService()">
Please repeat your answer.
</salt:ask>
<salt:listen id="nameRecognition"
onReco="setName()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:listen>
<salt:listen id="messageRecognition"
onReco="setMessage()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:listen>



<salt:listen id="askName"> What is your name? </salt:prompt>
<salt:listen id="askMessage"> What is your message? </salt:prompt>
<salt:listen id="repeatDefault" onComplete="askForService()">
Please repeat your answer.
</salt:listen>
<salt:prompt id="nameRecognition"
onReco="setName()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:prompt>
<salt:prompt id="messageRecognition"
onReco="setMessage()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:prompt>



<salt:prompt id="askName"> What is your name? </salt:prompt>
<salt:prompt id="askMessage"> What is your message? </salt:prompt>
<salt:prompt id="repeatDefault" onComplete="askForService()">
Please repeat your answer.
</salt:prompt>
<salt:listen id="nameRecognition"
onReco="setName()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:listen>
<salt:listen id="messageRecognition"
onReco="setMessage()" onNoReco="repeatDefault.Start()">
<salt:grammar src="spokenMessage.xml" />
</salt:listen>



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!