comparison docs/Instructions/ListeningTestInstructions.tex @ 1457:c8a9825aaa05

Merge from branch "WAC2016"
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 23 Nov 2015 09:13:12 +0000
parents 04e8a9c07c7e
children 33d7a1faa50b
comparison
equal deleted inserted replaced
1456:cacd98e7e1ff 1457:c8a9825aaa05
8 8
9 \usepackage{listings} % Source code 9 \usepackage{listings} % Source code
10 \usepackage{amssymb} 10 \usepackage{amssymb}
11 \usepackage{cite} 11 \usepackage{cite}
12 \usepackage{hyperref} % Hyperlinks 12 \usepackage{hyperref} % Hyperlinks
13 \usepackage[nottoc,numbib]{tocbibind} % 'References' in TOC
13 14
14 \graphicspath{{img/}} % Relative path where the images are stored. 15 \graphicspath{{img/}} % Relative path where the images are stored.
15 16
16 \title{Instructions for listening tests using\\ Web Audio Evaluation Tool} 17 \title{Instructions for listening tests using\\ Web Audio Evaluation Tool}
17 \author{Brecht De Man} 18 \author{Brecht De Man}
18 \date{} % Activate to display a given date or no date 19 \date{} % Activate to display a given date or no date
19 20
20 \begin{document} 21 \begin{document}
21 \maketitle 22 \maketitle
22 23
23 These instructions are about use of the Web Audio Evaluation Tool \cite{deman2015c} with the APE interface \cite{deman2014b} on Windows and Mac OS X platforms. 24 These instructions are about use of the Web Audio Evaluation Tool \cite{waet} with the APE interface \cite{ape} on Windows and Mac OS X platforms.
24 % TO DO: Linux 25 % TO DO: Linux
25 26
26 \tableofcontents 27 \tableofcontents
27 28
28 29 \clearpage
29 30
30 \section{Installation and set up} 31 \section{Installation and set up}
31 Download the folder and unzip in a location of your choice. 32 Download the folder (\url{https://code.soundsoftware.ac.uk/hg/webaudioevaluationtool/archive/tip.zip}) and unzip in a location of your choice.
32 33
33 \subsection{Contents} 34 \subsection{Contents}
34 The folder should contain the following elements: \\ 35 The folder should contain the following elements: \\
35 36
36 \textbf{Main folder:} 37 \textbf{Main folder:}
37 \begin{itemize} 38 \begin{itemize}
38 \item \texttt{ape.css, core.css, graphics.css}, structure.css: style files (edit to change appearance) 39 \item \texttt{ape.css, core.css, graphics.css, structure.css}: style files (edit to change appearance)
39 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{deman2014b} 40 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{ape}
40 \item \texttt{core.js}: JavaScript file with core functionality 41 \item \texttt{CITING.txt, LICENSE.txt, README.txt}: text files with, respectively, the citation which we ask to include in any work where this tool or any portion thereof is used, modified or otherwise; the license under which the software is shared; and a general readme file.
41 \item \texttt{index.html}: webpage where interface should appear 42 \item \texttt{core.js}: JavaScript file with core functionality
42 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library 43 \item \texttt{index.html}: webpage where interface should appear
43 \item \texttt{pythonServer.py}: webserver for running tests locally 44 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library
44 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)\\ 45 \item \texttt{pythonServer.py}: webserver for running tests locally
45 \end{itemize} 46 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)\\
46 \textbf{Documentation (/docs/)} 47 \end{itemize}
47 \begin{itemize} 48 \textbf{Documentation (./docs/)}
48 \item Project Specification Document (\LaTeX/PDF) 49 \begin{itemize}
49 \item Results Specification Document (\LaTeX/PDF) 50 \item Instructions: PDF and \LaTeX source of these instructions
50 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{deman2015c}\\ 51 \item Project Specification Document (\LaTeX/PDF)
51 \end{itemize} 52 \item Results Specification Document (\LaTeX/PDF)
52 \textbf{Example project (/example\_eval/)} 53 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{waet}
53 \begin{itemize} 54 \item WAC2016: PDF and \LaTeX source of corresponding WAC2016 publication\\
54 \item An example of what the set up XML should look like, with example audio files 0.wav-10.wav which are short recordings at 44.1kHz, 16bit of a woman saying the corresponding number (useful for testing randomisation and general familiarisation with the interface).\\ \end{itemize} 55 \end{itemize}
55 \textbf{Output files (/saves/)} 56 \textbf{Example project (./example\_eval/)}
56 \begin{itemize} 57 \begin{itemize}
57 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\ \end{itemize} 58 \item An example of what the set up XML should look like, with example audio files 0.wav-10.wav which are short recordings at 44.1kHz, 16bit of a woman saying the corresponding number (useful for testing randomisation and general familiarisation with the interface).\\
58 \textbf{Auxiliary scripts (/scripts/)} 59 \end{itemize}
59 \begin{itemize} 60 \textbf{Output files (./saves/)}
60 \item Helpful Python scripts for extraction and visualisation of data.\\ \end{itemize} 61 \begin{itemize}
61 \textbf{Test creation tool (/test\_create/)} 62 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\
62 \begin{itemize} 63 \end{itemize}
63 \item Webpage for easily setting up your own test without having to delve into the XML.\\ \end{itemize} 64 \textbf{Auxiliary scripts (./scripts/)}
65 \begin{itemize}
66 \item Helpful Python scripts for extraction and visualisation of data.\\
67 \end{itemize}
68 \textbf{Test creation tool (./test\_create/)}
69 \begin{itemize}
70 \item Webpage for easily setting up your own test without having to delve into the XML.\\
71 \end{itemize}
64 72
65 \subsection{Browser} 73 \subsection{Browser}
66 As Microsoft Internet Explorer doesn't support the Web Audio API \footnote{\url{http://caniuse.com/\#feat=audio-api}}, you will need another browser like Google Chrome, Safari or Firefox (all three are tested and confirmed to work). 74 As Microsoft Internet Explorer doesn't support the Web Audio API\footnote{\url{http://caniuse.com/\#feat=audio-api}}, you will need another browser like Google Chrome, Safari or Firefox (all three are tested and confirmed to work).
67 75
68 The tool is platform-independent and works in any browser that supports the Web Audio API. It does not require any specific, proprietary software. However, in case the tool is hosted locally (i.e. you are not hosting it on an actual webserver) you will need Python, which is a free programming language - see the next paragraph. 76 The tool is platform-independent and works in any browser that supports the Web Audio API. It does not require any specific, proprietary software. However, in case the tool is hosted locally (i.e. you are not hosting it on an actual webserver) you will need Python, which is a free programming language - see the next paragraph.
69 77
70 \subsection{Python 2.7} 78 \subsection{Python 2.7}
71 On Windows, Python 2.7 is not generally preinstalled and therefore has to be downloaded\footnote{\url{https://www.python.org/downloads/windows/}} and installed to be able to run scripts such as the local webserver, necessary if the tool is hosted locally. 79 On Windows, Python 2.7 is not generally preinstalled and therefore has to be downloaded\footnote{\url{https://www.python.org/downloads/windows/}} and installed to be able to run scripts such as the local webserver, necessary if the tool is hosted locally.
72 80
73 On Mac OS X, Python comes preinstalled. 81 On Mac OS X, Python comes preinstalled.
74 82
75 83 \clearpage
76 \section{Listening test} 84
85 \section{Listening test: Local}
77 \subsection{Start local webserver} 86 \subsection{Start local webserver}
78 If the test is hosted locally, you will need to run the local webserver provided with this tool. 87 If the test is hosted locally, you will need to run the local webserver provided with this tool.
79 88
89 \subsubsection{Mac OS X}
90 Open the Terminal (find it in \textbf{Applications/Terminal} or via Spotlight), and go to the folder you downloaded. To do this, type \texttt{cd [folder]}, where \texttt{[folder]} is the folder where to find the \texttt{pythonServer.py} script you downloaded. For instance, if the location is \texttt{/Users/John/Documents/test/}, then type
91
92 \texttt{cd /Users/John/Documents/test/}
93
94 Then hit enter and run the Python script by typing
95
96 \texttt{python pythonServer.py}
97
98 and hit enter again. See also Figure \ref{fig:terminal}.
99
100 \begin{figure}[htbp]
101 \begin{center}
102 \includegraphics[width=.75\textwidth]{pythonServer.png}
103 \caption{Mac OS X: The Terminal window after going to the right folder (\texttt{cd [folder\_path]}) and running \texttt{pythonServer.py}.}
104 \label{fig:terminal}
105 \end{center}
106 \end{figure}
107
108 Alternatively, you can simply type \texttt{python} (follwed by a space) and drag the file into the Terminal window from Finder. % DOESN'T WORK YET
109
110 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
111
80 \subsubsection{Windows} 112 \subsubsection{Windows}
81 113
82 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded. 114 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded.
83 115
84 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'. 116 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'.
85 117
86 \begin{figure}[htbp] 118 \begin{figure}[htbp]
87 \begin{center} 119 \begin{center}
88 \includegraphics[width=.6\textwidth]{warning.png} 120 \includegraphics[width=.6\textwidth]{warning.png}
89 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.} 121 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.}
90 \label{fig:warning} 122 \label{fig:warning}
91 \end{center} 123 \end{center}
92 \end{figure} 124 \end{figure}
93 125
94 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}. 126 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}.
95 127
96 \begin{figure}[htbp] 128 \begin{figure}[htbp]
97 \begin{center} 129 \begin{center}
98 \includegraphics[width=.75\textwidth]{python.png} 130 \includegraphics[width=.75\textwidth]{python.png}
99 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.} 131 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.}
100 \label{fig:python} 132 \label{fig:python}
101 \end{center} 133 \end{center}
102 \end{figure} 134 \end{figure}
103 135
104 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open). 136 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open).
105 137
106 138
107 \subsubsection{Mac OS X} 139 \clearpage
108 Open the Terminal (find it in \textbf{Applications/Terminal} or via Spotlight), and go to the folder you downloaded. To do this, type \texttt{cd [folder]}, where \texttt{[folder]} is the folder where to find the \texttt{pythonServer.py} script you downloaded. For instance, if the location is \texttt{/Users/John/Documents/test/}, then type
109
110 \texttt{cd /Users/John/Documents/test/}
111
112 Then hit enter and run the Python script by typing
113
114 \texttt{python pythonServer.py}
115
116 and hit enter again. See also Figure \ref{fig:terminal}.
117
118 \begin{figure}[htbp]
119 \begin{center}
120 \includegraphics[width=.75\textwidth]{pythonServer.png}
121 \caption{Mac OS X: Potential warning message when executing \texttt{pythonServer.py}.}
122 \label{fig:terminal}
123 \end{center}
124 \end{figure}
125
126 Alternatively, you can simply type \texttt{python} (follwed by a space) and drag the file into the Terminal window from Finder. % DOESN'T WORK YET
127
128 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
129
130
131 \subsection{Sample rate} 140 \subsection{Sample rate}
132 Depending on how the experiment is set up, audio is resampled automatically (the Web Audio default) or the sample rate is enforced. In the latter case, you will need to make sure that the sample rate of the system is equal to the sample rate of these audio files. For this reason, all audio files in the experiment will have to have the same sample rate. 141 Depending on how the experiment is set up, audio is resampled automatically (the Web Audio default) or the sample rate is enforced. In the latter case, you will need to make sure that the sample rate of the system is equal to the sample rate of these audio files. For this reason, all audio files in the experiment will have to have the same sample rate.
133 142
134 To change the sample rate in Mac OS X, go to \textbf{Applications/Utilities/Audio MIDI Setup} or find this application with Spotlight. Then select the output of the audio interface you are using and change the `Format' to the appropriate number. Also make sure the bit depth and channel count are as desired. 143 Always make sure that all other digital equipment in the playback chain (clock, audio interface, digital-to-analog converter, ...) is set to this same sample rate.
135 If you are using an external audio interface, you may have to go to the preference pane of that device to change the sample rate. 144
136 145 \subsubsection{Mac OS X}
137 To change the sample rate in Windows, right-click on the speaker icon in the lower-right corner of your desktop and choose `Playback devices'. Right-click the appropriate playback device and click `Properties'. Click the `Advanced' tab and verify or change the sample rate under `Default Format'. % NEEDS CONFIRMATION 146 To change the sample rate in Mac OS X, go to \textbf{Applications/Utilities/Audio MIDI Setup} or find this application with Spotlight. Then select the output of the audio interface you are using and change the `Format' to the appropriate number. Also make sure the bit depth and channel count are as desired.
138 147 If you are using an external audio interface, you may have to go to the preference pane of that device to change the sample rate.
139 Always make sure that all other digital equipment in the playback chain (clock, audio interface, digital-to-analog converter, ...) is set to this same sample rate. 148
149 \subsubsection{Windows}
150 To change the sample rate in Windows, right-click on the speaker icon in the lower-right corner of your desktop and choose `Playback devices'. Right-click the appropriate playback device and click `Properties'. Click the `Advanced' tab and verify or change the sample rate under `Default Format'. % NEEDS CONFIRMATION
151 If you are using an external audio interface, you may have to go to the preference pane of that device to change the sample rate.
152
140 153
141 154
142 \subsection{Setting up a participant} 155 \subsection{Setting up a participant}
143 156
144 \subsubsection{Instructions} % EXAMPLE? 157 \subsubsection{Instructions} % EXAMPLE?
176 \caption{The start of the test in Google Chrome on Windows 7.} 189 \caption{The start of the test in Google Chrome on Windows 7.}
177 \label{fig:test} 190 \label{fig:test}
178 \end{center} 191 \end{center}
179 \end{figure} 192 \end{figure}
180 193
181 If at any point in the test the participant reports weird behaviour or an error of some kind, or the test needs to be interrupted, please notify the experimenter and/or refer to Section \ref{sec:troubleshooting}. 194 If at any point in the test the participant reports weird behaviour or an error of some kind, or the test needs to be interrupted, please notify the experimenter and/or refer to Section \ref{sec:troubleshooting}.
182 195
183 When the test is over (the subject should see a message to that effect, and click `Submit' one last time), the output XML file containing all collected data should have appeared in `saves/'. The names of these files are `test-0.xml', `test-1.xml', etc., in ascending order. The Terminal or Command prompt running the local web server will display the following file name. If such a file did not appear, please again refer to Section \ref{sec:troubleshooting}. 196 When the test is over (the subject should see a message to that effect, and click `Submit' one last time), the output XML file containing all collected data should have appeared in `saves/'. The names of these files are `test-0.xml', `test-1.xml', etc., in ascending order. The Terminal or Command prompt running the local web server will display the following file name. If such a file did not appear, please again refer to Section \ref{sec:troubleshooting}.
184 197
185 It is advised that you back up these results as often as possible, as a loss of this data means that the time and effort spent by the subject(s) has been in vain. Save the results to an external or network drive, and/or send them to the experimenter regularly. 198 It is advised that you back up these results as often as possible, as a loss of this data means that the time and effort spent by the subject(s) has been in vain. Save the results to an external or network drive, and/or send them to the experimenter regularly.
186 199
188 201
189 202
190 \subsubsection{Survey} 203 \subsubsection{Survey}
191 The tool allows for embedded questions before and after each page, and before and after the whole test. If these do \underline{not} include survey questions (about the participant's background, demographic information, and so on) make sure to ask the participant to complete the survey immediately after the test. Above anything else, this decreases the likelihood that the survey goes forgotten and the experimenters do not receive the data in time. 204 The tool allows for embedded questions before and after each page, and before and after the whole test. If these do \underline{not} include survey questions (about the participant's background, demographic information, and so on) make sure to ask the participant to complete the survey immediately after the test. Above anything else, this decreases the likelihood that the survey goes forgotten and the experimenters do not receive the data in time.
192 205
193 206 \clearpage
194 \subsection{Troubleshooting} \label{sec:troubleshooting} 207 \subsection{Troubleshooting} \label{sec:troubleshooting}
195 Thanks to feedback from using the interface in experiments by the authors and others, many bugs have been caught and fatal crashes due to the interface (provided it is set up properly by the user) seem to be a thing of the past. 208 Thanks to feedback from using the interface in experiments by the authors and others, many bugs have been caught and fatal crashes due to the interface (provided it is set up properly by the user) seem to be a thing of the past.
196 However, if things do go wrong or the test needs to be interrupted for whatever reason, all data is not lost. In a normal scenario, the test needs to be completed until the end (the final `Submit'), at which point the output XML is stored in the \texttt{saves/}. If this stage is not reached, open the JavaScript Console (see below for how to find it) and type 209 However, if things do go wrong or the test needs to be interrupted for whatever reason, all data is not lost. In a normal scenario, the test needs to be completed until the end (the final `Submit'), at which point the output XML is stored in the \texttt{saves/}. If this stage is not reached, open the JavaScript Console (see below for how to find it) and type
197 210
198 \texttt{createProjectSave()} 211 \texttt{createProjectSave()}
199 212
200 and hit enter. This will open a pop-up window with a hyperlink that reads `Save File'; click it and an XML file with results until that point should be stored in your download folder. 213 and hit enter. This will open a pop-up window with a hyperlink that reads `Save File'; click it and an XML file with results until that point should be stored in your download folder.
214
201 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically: 215 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically:
202 \begin{itemize} 216 \begin{itemize}
203 \item the randomisation of pages and fragments are logged; 217 \item the randomisation of pages and fragments are logged;
204 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed; 218 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed;
205 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown; 219 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown;
206 \item any comments and pre- or post-test questions and their answers are logged as well. 220 \item any comments and pre- or post-test questions and their answers are logged as well.
207 \end{itemize} 221 \end{itemize}
208 222
209 You can select all this and save into a text file, so that none of this data is lost. You may to choose to do this even when a test was successful as an extra precaution. 223 You can select all this and save into a text file, so that none of this data is lost. You may to choose to do this even when a test was successful as an extra precaution.
210 224
211 \subsubsection{Opening the JavaScript Console} 225 \subsubsection{Opening the JavaScript Console}
212 \begin{itemize} 226 \begin{itemize}
213 \item In Google Chrome, the JavaScript Console can be found in \textbf{View$>$Developer$>$JavaScript Console}, or via the keyboard shortcut Cmd + Alt + J (Mac OS X). 227 \item In Google Chrome, the JavaScript Console can be found in \textbf{View$>$Developer$>$JavaScript Console}, or via the keyboard shortcut Cmd + Alt + J (Mac OS X).
214 \item In Safari, the JavaScript Console can be found in \textbf{Develop$>$Show Error Console}, or via the keyboard shortcut Cmd + Alt + C (Mac OS X). Note that for the Developer menu to be visible, you have to go to Preferences (Cmd + ,) and enable `Show Develop menu in menu bar' in the `Advanced' tab. 228 \item In Safari, the JavaScript Console can be found in \textbf{Develop$>$Show Error Console}, or via the keyboard shortcut Cmd + Alt + C (Mac OS X). Note that for the Developer menu to be visible, you have to go to Preferences (Cmd + ,) and enable `Show Develop menu in menu bar' in the `Advanced' tab.
215 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K. 229 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K.
216 \end{itemize} 230 \end{itemize}
217 231
218 % TO DO: add bibliography here 232 \clearpage
233 \section{Listening test: remote}
234
235 (TBA)
236
237 \clearpage
238 \bibliographystyle{ieeetr}
239 \bibliography{ListeningTestInstructions}{}
219 240
220 \end{document} 241 \end{document}