annotate docs/ProjectSpecificationDocument.tex @ 1533:317faa29ab11

Feature Feature #1270: Outside reference object added. Some small bugs and GUI to solve.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 23 Jul 2015 09:37:27 +0100
parents 766bff1a8f73
children 06fbaccf3b58
rev   line source
nickjillings@1528 1 \documentclass{article}
nickjillings@1528 2
nickjillings@1528 3 \usepackage[margin=2cm]{geometry}
nickjillings@1528 4 \usepackage{listings}
nickjillings@1528 5
nickjillings@1528 6 \begin{document}
nickjillings@1528 7
nickjillings@1528 8 \large APE Browser Tool - Project Specification Document
nickjillings@1528 9
nickjillings@1528 10 \section{Document}
nickjillings@1528 11
nickjillings@1528 12 An XML file containing all project information to load and execute the project on the client. Certain interfaces are optional, however others are mandatory. This guide should reflect the changes in the XML project and keep track of the versions. Hopwfully this can remain simple!
nickjillings@1528 13
nickjillings@1528 14 \section{Root}
nickjillings@1528 15
nickjillings@1528 16 The XML root must be \texttt{<BrowserEvalProjectDocument>}. This should be sufficiently identifiable in both itself and in the JavaScript decoding as it will create an object called the root name.
nickjillings@1528 17
nickjillings@1528 18 There must also be a \texttt{<version>} tag which has the attribute \texttt{id} containing a numerical representation of the version. Currently everything in this document can be assumed to be version 1. If future updates or corrections are made post delivery this should give the flexibility to ensure past projects still work.
nickjillings@1528 19
nickjillings@1528 20 The root will also contain the following tags: setup and tracks.
nickjillings@1528 21
nickjillings@1528 22 \section{Setup tag}
nickjillings@1528 23
nickjillings@1528 24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
nickjillings@1528 25 Any general pre/post test questions must be specified in the relevant children tag. Any enabled metrics must also be specified in the metric child node.
nickjillings@1528 26
nickjillings@1528 27 \subsection{Attributes}
nickjillings@1528 28 \begin{itemize}
nickjillings@1528 29 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
nickjillings@1528 30 \item \texttt{projectReturn} - Mandatory, String. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file.
nickjillings@1528 31 \item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the tests can be randomised.
nickjillings@1528 32 \item \texttt{collectMetrics} - Optional, Boolean. Default to false. Determine if the test metrics should be collected. These include how long each test session took etc. The full metrics list can be modified in the 'metrics' tag.
nickjillings@1528 33 \end{itemize}
nickjillings@1528 34
nickjillings@1528 35 \subsection{Elements}
nickjillings@1528 36 None
nickjillings@1528 37
nickjillings@1528 38 \section{AudioHolder tag}
nickjillings@1528 39
nickjillings@1528 40 There should be one audioHolder tag per test session, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects. Each audioHolder instance specifies a separate listening test to be paged, each with their own specific requirements.
nickjillings@1528 41
nickjillings@1528 42 \subsection{Attributes}
nickjillings@1528 43 \begin{itemize}
nickjillings@1528 44 \item \texttt{id} - Mandatory, String. Give an ID string or number to identify the test in the result.
nickjillings@1528 45 \item \texttt{hostURL} - Optional, String. If all tracks are hosted from the same folder on a server, you can put in the lead here. For instance, if loading http://test.com/tracks/track1.wav and http://test.com/tracks/track2.wav, this could equal http://test.com/tracks/ and the url attribute in the track tag can be track1.wav or track2.wav. Equally http://test.com/ and then using tracks/track1.wav and tracks/track2.wav is valid.
nickjillings@1528 46 \item \texttt{sampleRate} - Optional, Number. If your test requires a specific sample rate, this should be set to the desired sample rate in Hertz. This does not set the browser to the correct sample rate, but forces the browser to check the sample rate matches. If this is undefined, no sample rate matching will occur.
nickjillings@1528 47 \item \texttt{randomiseOrder} - Optional, Boolean String. Defaults to false. Determine if the track order should be randomised. Must be true or false.
nickjillings@1528 48 \item \texttt{repeatCount} - Optional, Number. Defaults to 0 (ie: no repeats). The number of times a test should be repeated.
nickjillings@1528 49 \item \texttt{loop} - Optional, Boolean String. Defaults to false. Enable if audioElements should loop their playback or not.
nickjillings@1528 50 \end{itemize}
nickjillings@1528 51
nickjillings@1528 52 \subsection{Elements}
nickjillings@1528 53 Contain the audioElements tags and the interfaceSetup tag.
nickjillings@1528 54
nickjillings@1528 55 \section{audioElements tag}
nickjillings@1528 56
nickjillings@1528 57 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
nickjillings@1528 58
nickjillings@1528 59 \subsection{Attributes}
nickjillings@1528 60 \begin{itemize}
nickjillings@1528 61 \item \texttt{id} - Mandatory, String. Must give a string or number to identify each audio element. This id is used in the output to identify each track once randomised.
nickjillings@1528 62 \item \texttt{url} - Mandatory, String. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL.
nickjillings@1528 63 \end{itemize}
nickjillings@1528 64
nickjillings@1528 65 \section{interface tag}
nickjillings@1528 66
nickjillings@1528 67 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags:
nickjillings@1528 68 \begin{itemize}
nickjillings@1528 69 \item 'title' - Contains the test title to be shown at the top of the page. Can only be one title node per interface.
nickjillings@1528 70 \item 'scale' - Takes the attribute position to be a value between 0 and 100 indicating where on the scale to place the text contained inside. Can be multiple scale tags per interface.
nickjillings@1528 71 \end{itemize}
nickjillings@1528 72
nickjillings@1528 73 \section {CommentQuestion tag}
nickjillings@1528 74
nickjillings@1528 75 This is a 1st level tag (same level as AudioHolder and setup). This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. The id attribute is set to keep track at the results XML.
nickjillings@1528 76
nickjillings@1528 77 \section {PreTest tag and PostTest tag}
nickjillings@1528 78
nickjillings@1528 79 These are 1st level tags. The PreTest tag allows for the specifying of pre test instructions and questions. These appear as a pop-up style window with next buttons and other automatic GUI. The postTest tag allows for specifying post test instructions, questions and resources. These appear as a pop-up style window after the submit button is pressed.
nickjillings@1528 80
nickjillings@1528 81 \subsection{Attributes}
nickjillings@1528 82 None.
nickjillings@1528 83
nickjillings@1528 84 \subsection{Elements}
nickjillings@1528 85 Takes the \texttt{statement} and \texttt{question} tags. The order these are presented in the XML define the order they appear on the screen.
nickjillings@1528 86
nickjillings@1528 87 \subsubsection{Statement}
nickjillings@1528 88
nickjillings@1528 89 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button.
nickjillings@1528 90
nickjillings@1528 91 \subsubsection{Question}
nickjillings@1528 92
nickjillings@1528 93 This allows for a question to be asked pre/post the test. This is added to the response XML in the same location as the other common/global questions. The response includes both the question asked and the response. This takes two attributes, id and mandatory. ID is a mandatory field. The same ID will be used in the results so it is important it is properly entered. Mandatory is optional. True means the field must be entered before continuing.
nickjillings@1528 94
nickjillings@1528 95 \subsubsection{Resource}
nickjillings@1528 96
nickjillings@1528 97 The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute.
nickjillings@1528 98
nickjillings@1528 99 \section{Metric tag}
nickjillings@1528 100 A 1st level tag, metrics must be declared in the setup tag. This takes a set of children 'metricEnable' to define which metrics to collect and present.
nickjillings@1528 101
nickjillings@1528 102 \subsection{metricEnable tag}
nickjillings@1528 103 This takes a single attribute to determine which metric to enable for collection. Some of these are a global, per track or per test instance.
nickjillings@1528 104 \begin{itemize}
nickjillings@1528 105 \item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit.
nickjillings@1528 106 \item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer
nickjillings@1528 107 \item elementTracker - Return the initial position of each track
nickjillings@1528 108 \item elementTrackerFull - Return an enumerated pair of time and position. Track the entire movement of each element position. NOTE: Will override the elementTracker option above and throw an error into the browser console.
nickjillings@1528 109 \item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to
nickjillings@1528 110 \item elementFlagMoved - Return a boolean per element to see if the element slider was moved.
nickjillings@1528 111 \item elementFlagComments - Return a boolean per element to see if the element has comments.
nickjillings@1528 112 \end{itemize}
nickjillings@1528 113
nickjillings@1528 114 \section{Feature List}
nickjillings@1528 115 \begin{itemize}
nickjillings@1528 116 \item Paging listening tests - eg. Ask multiple questions in each experiment
nickjillings@1528 117 \item Labels on X axis - scale
nickjillings@1528 118 \item Input questions/comment at top to guide towards the question being asked.
nickjillings@1528 119 \item Randomise track numbers -(inc. comment boxes and relate back to correct reference track)
nickjillings@1528 120 \item Randomise order of individual tests
nickjillings@1528 121 \item Save output XML file to remote server
nickjillings@1528 122 \item Tests Metrics
nickjillings@1528 123 \begin{itemize}
nickjillings@1528 124 \item Duration of listening to each track
nickjillings@1528 125 \item Time spent on each individual test
nickjillings@1528 126 \item Start and end position of every track
nickjillings@1528 127 \item Flags on each track, to ensure each track (but may not restrict users from submitting)
nickjillings@1528 128 \begin{itemize}
nickjillings@1528 129 \item Has been listened to
nickjillings@1528 130 \item Has been moved
nickjillings@1528 131 \item Has comments about it
nickjillings@1528 132 \end{itemize}
nickjillings@1528 133 \end{itemize}
nickjillings@1528 134 \end{itemize}
nickjillings@1528 135
nickjillings@1528 136 \subsection{Advanced feature list}
nickjillings@1528 137 \begin{itemize}
nickjillings@1528 138 \item Repeat each tests number of times (2 or 3?) to remove learning / experience bias and ensure that the order is consistent
nickjillings@1528 139 \item Perform Loudness equalisation on all tracks
nickjillings@1528 140 \item Selection of test type
nickjillings@1528 141 \item Pre-test of some basic hearing test
nickjillings@1528 142 \begin{itemize}
nickjillings@1528 143 \item MUSHRA (with vertical slider per track)
nickjillings@1528 144 \item APE (Single horizontal slider)
nickjillings@1528 145 \item AB Test
nickjillings@1528 146 \end{itemize}
nickjillings@1528 147 \end{itemize}
nickjillings@1528 148
nickjillings@1528 149
nickjillings@1528 150
nickjillings@1528 151 \section{Example}
nickjillings@1528 152
nickjillings@1528 153 Here is an example XML structure
nickjillings@1528 154
nickjillings@1528 155 \begin{lstlisting}
nickjillings@1528 156 <?xml version="1.0" encoding="utf-8"?>
nickjillings@1528 157 <BrowserEvalProjectDocument>
nickjillings@1528 158 <setup interface="APE" projectReturn="null" randomiseOrder='true' collectMetrics='true'>
nickjillings@1528 159 <PreTest>
nickjillings@1528 160 <statement>Please listen to all mixes</statement>
nickjillings@1528 161 <question id="location" mandatory="true">Please enter your listening location</question>
nickjillings@1528 162 </PreTest>
nickjillings@1528 163 <PostTest>
nickjillings@1528 164 <statement>Thank you for taking this listening test.</statement>
nickjillings@1528 165 <question id="SessionID">Please enter your name.</question>
nickjillings@1528 166 </PostTest>
nickjillings@1528 167 <Metric>
nickjillings@1528 168 <metricEnable>testTimer</metricEnable>
nickjillings@1528 169 <metricEnable>elementTimer</metricEnable>
nickjillings@1528 170 <metricEnable>elementTracker</metricEnable>
nickjillings@1528 171 <metricEnable>elementFlagListenedTo</metricEnable>
nickjillings@1528 172 <metricEnable>elementFlagMoved</metricEnable>
nickjillings@1528 173 </Metric>
nickjillings@1528 174 </setup>
nickjillings@1528 175 <audioHolder id='0' hostURL="example_eval/" sampleRate="44100" randomiseOrder='true' repeatCount='1'>
nickjillings@1528 176 <interface>
nickjillings@1528 177 <title>Example Test Question</title>
nickjillings@1528 178 <scale position="0">Min</scale>
nickjillings@1528 179 <scale position="100">Max</scale>
nickjillings@1528 180 <scale position="50">Middle</scale>
nickjillings@1528 181 <scale position="20">20</scale>
nickjillings@1528 182 </interface>
nickjillings@1528 183 <audioElements url="0.wav" id="0"/>
nickjillings@1528 184 <audioElements url="1.wav" id="1"/>
nickjillings@1528 185 <audioElements url="2.wav" id="2"/>
nickjillings@1528 186 <audioElements url="3.wav" id="3"/>
nickjillings@1528 187 <audioElements url="4.wav" id="4"/>
nickjillings@1528 188 <audioElements url="5.wav" id="5"/>
nickjillings@1528 189 <audioElements url="6.wav" id="6"/>
nickjillings@1528 190 <audioElements url="7.wav" id="7"/>
nickjillings@1528 191 <audioElements url="8.wav" id="8"/>
nickjillings@1528 192 <audioElements url="9.wav" id="9"/>
nickjillings@1528 193 <audioElements url="10.wav" id="10"/>
nickjillings@1528 194 <CommentQuestion id='mixingExperiance'>What is your mixing experiance</CommentQuestion>
nickjillings@1528 195 <PreTest>
nickjillings@1528 196 <statement>Start the Test 3</statement>
nickjillings@1528 197 </PreTest>
nickjillings@1528 198 <PostTest>
nickjillings@1528 199 <statement>Please take a break before the next test</statement>
nickjillings@1528 200 <question id="testComment">How did you find the test</question>
nickjillings@1528 201 </PostTest>
nickjillings@1528 202 </audioHolder>
nickjillings@1528 203 </BrowserEvalProjectDocument>
nickjillings@1528 204 \end{lstlisting}
nickjillings@1528 205
nickjillings@1528 206
nickjillings@1528 207
nickjillings@1528 208 \end{document}