Appendix

1. The audio files used in the project can be downloaded from here.

2. The excel sheet for the collected data can be downloaded from here.

3. The graphs of the collected data can be downloaded from the following links:

4. The code for the interface designed as a part of this project is given below:

Part I:

<html>
<head>
</head>
<body topmargin="50" leftmargin="100" rightmargin="100" bottommargin="50" text="#003366" bgcolor="#C0C0C0">

<h1 align="center"> Thanks for visiting! Fill in the details below and proceed to take the test</h1>

<br><br>
---------------------------------------------------------------------------------------------------------------------------------- <br><br>

<form method="post" action="main.php">

Enter your name: <input type="textbox" name="name"> <br>
Enter your age: <input type="textbox" name="age"> <br>
Languages you know: <input type="textbox" name="language"> <br>
Nationality: <input type="textbox" name="nationality"> <br>
<input type="submit" name="submit" value="SUBMIT"> <br><br>
</form>

---------------------------------------------------------------------------------------------------------------------------------- <br><br>

</body>
</html>

 



 

Part II:

<?php
if (isset($_POST['submit']) )
{
if ($_POST['submit']=="SUBMIT")
{
$file=fopen('data.doc','a');
$name=$_POST['name']."\n";
$age=$_POST['age']."\n";
$lang=$_POST['language']."\n";
$nation=$_POST['nationality']."\n";



fwrite($file,"Details of subject:\n");
fwrite($file,$name);
fwrite($file,$age);
fwrite($file,$lang);
fwrite($file,$nation);
fclose($file); 


?>


<html>
<head>
</head>
<body topmargin="50" leftmargin="100" rightmargin="100" bottommargin="50" text="#003366" bgcolor="#C0C0C0">





<h1 align = "center">TEST</h1>
Instuctions to take the test: 
<ul>
<li> Press the start button to hear the audio clip. The audio clip consists of 3 parts(clip1, clip2 and a single word) seperated from each other by beep sounds. Clip1 will be heard first and contains 3-5 words(depending on the test trial number). You have to remember the words in clip1. These words might or might not be meaningful english words. 
</li>
<li> Clip1 is followed by a beep sound which will then be followed by clip2.
</li>
<li> After clip2 ends, you will hear a beep sound again which will be followed by a word which was either present in the clip2 or not. You have to identify the word as contained in clip2 by pressing the yes button or not by pressing the no button. 
</li>
<li> After this, you will be asked to type in the words of clip1 which you were supposed to remember.
</li>
</ul>
<u>NOTE1</u>: The 2nd audio clip that you hear may contain the words that you were asked to remember.<br>
<u>NOTE2</u>: Take a practice test before taking the actual test.<b> THIS IS COMPULSORY.</b> You can take the Pactice Test as many times as you want till you are comfortable with the audio. <br>
<u>NOTE3</u>: You have to take the test for 15 trails. <br>
<b><u>IMP</u></b>: Do not use pen or paper while taking the test. It is an auditory task. Also, do not replay the audio. <br> 
---------------------------------------------------------------------------------------------------------------------------------- <br>
To take practice test, click below: <br>
<form method="post" name="form"> 
<input type="submit" name="submit" value="Practice Test" onclick="form.action='start1.php';"> <br><br>
---------------------------------------------------------------------------------------------------------------------------------- <br>
<br>
<br>



Test Trial No.1: 
<input type="submit" name="submit" value="Start Test 1" onclick="form.action='start1.php';"> <br><br>
Test Trial No.2: 
<input type="submit" name="submit" value="Start Test 2" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.3: 
<input type="submit" name="submit" value="Start Test 3" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.4: 
<input type="submit" name="submit" value="Start Test 4" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.5: 
<input type="submit" name="submit" value="Start Test 5" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.6: 
<input type="submit" name="submit" value="Start Test 6" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.7: 
<input type="submit" name="submit" value="Start Test 7" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.8: 
<input type="submit" name="submit" value="Start Test 8" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.9: 
<input type="submit" name="submit" value="Start Test 9" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.10: 
<input type="submit" name="submit" value="Start Test 10" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.11: 
<input type="submit" name="submit" value="Start Test 11" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.12: 
<input type="submit" name="submit" value="Start Test 12" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.13: 
<input type="submit" name="submit" value="Start Test 13" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.14: 
<input type="submit" name="submit" value="Start Test 14" onclick="form.action='start1.php';"> <br> <br>
Test Trial No.15: 
<input type="submit" name="submit" value="Start Test 15" onclick="form.action='start1.php';"> <br> <br> 

</form>
</body>
</html>

</body>
</html>

 



 

 

Part III:

<?php
if (isset($_POST['submit'])) {

function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

$time_start = microtime_float();


$testnumber = $_POST['submit'];
switch ($testnumber){
case "Practice Test":
$time_start += 19.75;
break;
case "Start Test 1":
$time_start += 29.4375; 
break;
case "Start Test 2":
$time_start += 16.8125; 
break;
case "Start Test 3":
$time_start += 21.6875; 
break;
case "Start Test 4":
$time_start += 20.6875; 
break;
case "Start Test 5":
$time_start += 15.8125; 
break;
case "Start Test 6":
$time_start += 30.4375; 
break;
case "Start Test 7":
$time_start += 35.3125; 
break;
case "Start Test 8":
$time_start += 21.6875; 
break;
case "Start Test 9":
$time_start += 14.8125; 
break;
case "Start Test 10":
$time_start += 20.6875; 
break;
case "Start Test 11":
$time_start += 17.75; 
break;
case "Start Test 12":
$time_start += 31.375; 
break;
case "Start Test 13":
$time_start += 33.375; 
break;
case "Start Test 14":
$time_start += 21.6875; 
break;
case "Start Test 15":
$time_start += 17.75; 
break;
}




$time = fopen("time.txt", 'a');

fwrite($time,$time_start);
fclose($time);


$testnumber1 = "\n".$_POST['submit']."\n";

$number = fopen("data.doc", 'a');
fwrite($number,$testnumber1);
fclose($number);
}
switch ($testnumber){
case "Practice Test":
echo '<embed src="Prac.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 1":
echo '<embed src="A1.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 2":
echo '<embed src="B1.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 3":
echo '<embed src="C1.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 4":
echo '<embed src="C2.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 5":
echo '<embed src="B2.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 6":
echo '<embed src="A2.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 7":
echo '<embed src="A3.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 8":
echo '<embed src="C3.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 9":
echo '<embed src="B3.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 10":
echo '<embed src="C4.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 11":
echo '<embed src="B4.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 12":
echo '<embed src="A4.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 13":
echo '<embed src="A5.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 14":
echo '<embed src="C5.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
case "Start Test 15":
echo '<embed src="B5.mp3" height="45" width="170" autostart="0" loop="0" volume="-300" hidden="true"></embed>' ; 
break;
}


?>



<html>
<head>
</head>
<body topmargin="50" leftmargin="100" rightmargin="100" bottommargin="50" text="#003366" bgcolor="#C0C0C0">



<form method="post" name="form">
<br> 
Was the word contained in clip2? <br>
<input type="submit" name="answer" value="YES" onclick="form.action='end1.php';"> <t>
<input type="submit" name="answer" value="NO" onclick="form.action='end1.php';"> <br><br>

</form>


</body>
</html>

 



 

 

 

Part IV:

<?php

function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

$time_end = microtime_float();


$time = fopen("time.txt", 'r');
$n= filesize("time.txt")-15;
if ($n>0)
{
$temp=fread($time,$n);
}
$time_start=fread($time,15);
fclose($time);
$time_taken = $time_end - $time_start;
$timed = 'time taken is '.$time_taken.' seconds'."\n"; 


$reply = fopen("data.doc", 'a');
$ans = 'answered as '.$_POST['answer']."\n"; 
fwrite($reply,$timed);
fwrite($reply,$ans);
fclose($reply)
?>


<html>
<head>
</head>
<body topmargin="50" leftmargin="100" rightmargin="100" bottommargin="50" text="#003366" bgcolor="#C0C0C0">





<form method="post" action='final1.php'>
Enter all the words that you heard in clip1 seperated by spaces: <input type=textbox name="recall">
<input type="submit" name="submit" value="SUBMIT"> 
</form>


</body>
</html>

 



 

 

Part V:

<html>
<head>
</head>
<body topmargin="50" leftmargin="100" rightmargin="100" bottommargin="50" text="#003366" bgcolor="#C0C0C0">

<?php
$reply = fopen("data.doc", 'a');
$ans = $_POST['recall']."\n"; 
fwrite($reply,$ans);
fclose($reply)
?>

<form method="post" action='main.php'>
Conratulations! You have finished this test trial. <br> 
<input type="submit" name="submit" value="Click Here">
to go back to the home page.<br>
Thanks!
</form> 
</body>
</html>