[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.8.2 Get Voice Response (#X)

The Get Voice Response command (#X) is a copy of the Get Key Response (#R) command. It pauses Cogsys until the subject makes a voice response into a microphone. Normally, there are three voice responses which are recognized: "bes", "bo", and "space". "bes" is the "yes" equivalent, and this returns the "/" key. "bo" is the "no" equivalent, and this returns the "z" key. "space" returns the "space" key. Then, like #R, #X writes the key pressed and the reaction time in milliseconds to output, followed by a newline. It updates Cogsys variables 7 and 5 with the key and time, respectively.

Currently, the Get Voice Response command is in parallel with the keyboard. Pressing "/" on the keyboard is equivalent to saying "bes". For this reason, it is possible to break out of #X when the "@" key is entered.

Name:
Get Voice Response
Class:
Audio Input/Output
Code:
#X
Syntax:
#X
System:
Cogsys variable 7 (COGVAR_KEY) is updated with the key equivalent. Cogsys variable 5 (COGVAR_TIME) is updated with the reaction time.
Output:
Key press equivalent and time are written to output.
Breakout:
YES
Test Files:
`VOIR_T01.IN'
tests basic operation

Examples:

input
Say bo#X
subject
Says "bo" after 200 milliseconds.
output
"Say bo" appears on the screen; z200 appears in output file



This document was generated on November, 24 2008 using texi2html