Text input form for spoken word recognition
Hi all! I'm new to OpenSesame and am hoping to use the platform to administer a spoken word recognition task (where listeners will hear an audio file and type in the word they heard). I'm able to get something like that working with an audio sampler followed by a form text input, such that participants can see what they're typing and press the enter key to advance to the next trial. The form successfully logs the responses; however, in looking at the .csv file, I notice that it doesn't log accuracy or response time or the other types of things that the keyboard logger would. Is there a way to have it log the same information as the keyboard logger? Thanks!
Comments
Hi,
The reason why these variables are missing is that they are not clearly defined (at least I presume so). For example, what is used as a response time? The time until the first letter is typed, or until the entire phrase is written? Similar ambiguities hold for accuracy.
There are probably ways to retrieve these kind of variables, but what you have to do depends a lot on what you want. So, if you give more information on how you want response time and accuracy be defined, we can help you in a more suitable way. Here, just one example of code that might help you.
Hope this helped.
Good luck,
Eduard
Hi Eduard,
Thanks! Yes, I was considering response time in this case to be the time until the first letter is typed. I have also specified correct responses in correct_response in the loop table and was considering accuracy to be an exact match.
Angela
If it is the time until the first letter is typed, you won't be able to use the
text_input_form, but have to use python scripting. It is certainly possible, but won't be very easy, especially if you want to have code that is flexible enough to deal with special cases, as corrections or uppercase letters.As a starting point, this code here does measure the time for the first stroke, and checks if the word matches the correct word:
I haven't tested the code, but something along these lines should be it. This code has to be placed in an
inline_scriptand run while the audio is played back.Does this make sense?
Eduard