annotate docs/Instructions/ListeningTestInstructions.tex @ 1482:81e2a7162d18

Addition of HULTI-GEN interfaces to WAC paper.
author Dave <djmoffat@users.noreply.github.com>
date Wed, 23 Sep 2015 09:13:38 +0100
parents 8be2d08fbe15
children 85f05a29a01a
rev   line source
b@1481 1 \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format
b@1481 2 \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
b@1481 3 \geometry{letterpaper} % ... or a4paper or a5paper or ...
b@1481 4 %\geometry{landscape} % Activate for rotated page geometry
b@1481 5 \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
b@1481 6 \usepackage{graphicx} % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
b@1481 7 % TeX will automatically convert eps --> pdf in pdflatex
b@1481 8
b@1481 9 \usepackage{listings} % Source code
b@1481 10 \usepackage{amssymb}
b@1481 11 \usepackage{cite}
b@1481 12 \usepackage{hyperref} % Hyperlinks
b@1481 13
b@1481 14 \graphicspath{{img/}} % Relative path where the images are stored.
b@1481 15
b@1481 16 \title{Instructions for listening tests using\\ Web Audio Evaluation Tool}
b@1481 17 \author{Brecht De Man}
b@1481 18 \date{} % Activate to display a given date or no date
b@1481 19
b@1481 20 \begin{document}
b@1481 21 \maketitle
b@1481 22
b@1481 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.
b@1481 24 % TO DO: Linux
b@1481 25
b@1481 26 \tableofcontents
b@1481 27
b@1481 28
b@1481 29
b@1481 30 \section{Installation and set up}
b@1481 31 Download the folder and unzip in a location of your choice.
b@1481 32
b@1481 33 \subsection{Contents}
b@1481 34 The folder should contain the following elements: \\
b@1481 35
b@1481 36 \textbf{Main folder:}
b@1481 37 \begin{itemize}
b@1481 38 \item \texttt{ape.css, core.css, graphics.css}, structure.css: style files (edit to change appearance)
b@1481 39 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{deman2014b}
b@1481 40 \item \texttt{core.js}: JavaScript file with core functionality
b@1481 41 \item \texttt{index.html}: webpage where interface should appear
b@1481 42 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library
b@1481 43 \item \texttt{pythonServer.py}: webserver for running tests locally
b@1481 44 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)\\
b@1481 45 \end{itemize}
b@1481 46 \textbf{Documentation (/docs/)}
b@1481 47 \begin{itemize}
b@1481 48 \item Project Specification Document (\LaTeX/PDF)
b@1481 49 \item Results Specification Document (\LaTeX/PDF)
b@1481 50 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{deman2015c}\\
b@1481 51 \end{itemize}
b@1481 52 \textbf{Example project (/example\_eval/)}
b@1481 53 \begin{itemize}
b@1481 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}
b@1481 55 \textbf{Output files (/saves/)}
b@1481 56 \begin{itemize}
b@1481 57 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\ \end{itemize}
b@1481 58 \textbf{Auxiliary scripts (/scripts/)}
b@1481 59 \begin{itemize}
b@1481 60 \item Helpful Python scripts for extraction and visualisation of data.\\ \end{itemize}
b@1481 61 \textbf{Test creation tool (/test\_create/)}
b@1481 62 \begin{itemize}
b@1481 63 \item Webpage for easily setting up your own test without having to delve into the XML.\\ \end{itemize}
b@1481 64
b@1481 65 \subsection{Browser}
b@1481 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).
b@1481 67
b@1481 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.
b@1481 69
b@1481 70 \subsection{Python 2.7}
b@1481 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.
b@1481 72
b@1481 73 On Mac OS X, Python comes preinstalled.
b@1481 74
b@1481 75
b@1481 76 \section{Listening test}
b@1481 77 \subsection{Start local webserver}
b@1481 78 If the test is hosted locally, you will need to run the local webserver provided with this tool.
b@1481 79
b@1481 80 \subsubsection{Windows}
b@1481 81
b@1481 82 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded.
b@1481 83
b@1481 84 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'.
b@1481 85
b@1481 86 \begin{figure}[htbp]
b@1481 87 \begin{center}
b@1481 88 \includegraphics[width=.6\textwidth]{warning.png}
b@1481 89 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.}
b@1481 90 \label{fig:warning}
b@1481 91 \end{center}
b@1481 92 \end{figure}
b@1481 93
b@1481 94 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}.
b@1481 95
b@1481 96 \begin{figure}[htbp]
b@1481 97 \begin{center}
b@1481 98 \includegraphics[width=.75\textwidth]{python.png}
b@1481 99 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.}
b@1481 100 \label{fig:python}
b@1481 101 \end{center}
b@1481 102 \end{figure}
b@1481 103
b@1481 104 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open).
b@1481 105
b@1481 106
b@1481 107 \subsubsection{Mac OS X}
b@1481 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
b@1481 109
b@1481 110 \texttt{cd /Users/John/Documents/test/}
b@1481 111
b@1481 112 Then hit enter and run the Python script by typing
b@1481 113
b@1481 114 \texttt{python pythonServer.py}
b@1481 115
b@1481 116 and hit enter again. See also Figure \ref{fig:terminal}.
b@1481 117
b@1481 118 \begin{figure}[htbp]
b@1481 119 \begin{center}
b@1481 120 \includegraphics[width=.75\textwidth]{pythonServer.png}
b@1481 121 \caption{Mac OS X: Potential warning message when executing \texttt{pythonServer.py}.}
b@1481 122 \label{fig:terminal}
b@1481 123 \end{center}
b@1481 124 \end{figure}
b@1481 125
b@1481 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
b@1481 127
b@1481 128 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
b@1481 129
b@1481 130
b@1481 131 \subsection{Sample rate}
b@1481 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.
b@1481 133
b@1481 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.
b@1481 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.
b@1481 136
b@1481 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
b@1481 138
b@1481 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.
b@1481 140
b@1481 141
b@1481 142 \subsection{Setting up a participant}
b@1481 143
b@1481 144 \subsubsection{Instructions} % EXAMPLE?
b@1481 145 Before each test, show the instructions below or similar and make sure it is available to the subject throughout the test. Make sure to ask whether the participant has any questions upon seeing and/or reading the instructions.
b@1481 146
b@1481 147 \begin{itemize}
b@1481 148 \item You will be asked for your name (``John'') and location (room identifier).
b@1481 149 \item An interface will appear, where you are asked to
b@1481 150 \begin{itemize}
b@1481 151 \item click green markers to play the different mixes;
b@1481 152 \item drag the markers on a scale to reflect your preference for the mixes;
b@1481 153 \item comment on these mixes, using text boxes with corresponding numbers (in your \textbf{native language});
b@1481 154 \item optionally comment on all mixes together, or on the song, in `General comments'.
b@1481 155 \end{itemize}
b@1481 156 \item You are asked for your personal, honest opinion. Feel free to use the full range of the scale to convey your opinion of the various mixes. Don?t be afraid to be harsh and direct.
b@1481 157 \item The markers appear at random positions at first (which means some markers may hide behind others).
b@1481 158 \item The interface can take a few seconds to start playback, but switching between mixes should be instantaneous.
b@1481 159 \item This is a research experiment, so please forgive us if things go wrong. Let us know immediately and we will fix it or restart the test.
b@1481 160 \item When the test is finished (after all songs have been evaluated), just call the experimenter, do NOT close the window.
b@1481 161 \item After the test, please fill out our survey about your background, experience and feedback on the test.
b@1481 162 \item By participating, you consent to us using all collected data for research. Unless asked explicitly, all data will be anonymised when shared.
b@1481 163 \end{itemize}
b@1481 164
b@1481 165
b@1481 166 \subsubsection{The test}
b@1481 167 To start the test, open the browser and type
b@1481 168
b@1481 169 \texttt{localhost:8000}
b@1481 170
b@1481 171 and hit enter. The test should start (see Figure \ref{fig:test}).
b@1481 172
b@1481 173 \begin{figure}[htb]
b@1481 174 \begin{center}
b@1481 175 \includegraphics[width=.8\textwidth]{test.png}
b@1481 176 \caption{The start of the test in Google Chrome on Windows 7.}
b@1481 177 \label{fig:test}
b@1481 178 \end{center}
b@1481 179 \end{figure}
b@1481 180
b@1481 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}.
b@1481 182
b@1481 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}.
b@1481 184
b@1481 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.
b@1481 186
b@1481 187 To start the test again for a new participant, you do not need to close the browser or shut down the Terminal or Command Prompt. Simply refresh the page or go to \texttt{localhost:8000} again.
b@1481 188
b@1481 189
b@1481 190 \subsubsection{Survey}
b@1481 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.
b@1481 192
b@1481 193
b@1481 194 \subsection{Troubleshooting} \label{sec:troubleshooting}
b@1481 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.
b@1481 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
b@1481 197
b@1481 198 \texttt{createProjectSave()}
b@1481 199
b@1481 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.
b@1481 201 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically:
b@1481 202 \begin{itemize}
b@1481 203 \item the randomisation of pages and fragments are logged;
b@1481 204 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed;
b@1481 205 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown;
b@1481 206 \item any comments and pre- or post-test questions and their answers are logged as well.
b@1481 207 \end{itemize}
b@1481 208
b@1481 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.
b@1481 210
b@1481 211 \subsubsection{Opening the JavaScript Console}
b@1481 212 \begin{itemize}
b@1481 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).
b@1481 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.
b@1481 215 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K.
b@1481 216 \end{itemize}
b@1481 217
b@1481 218 % TO DO: add bibliography here
b@1481 219
b@1481 220 \end{document}