annotate docs/ProjectSpecificationDocument.tex @ 1658:274014f482f3

Updated the interface modification to the specification document. Updated example XML at bottom of the page
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Sat, 11 Apr 2015 11:45:04 +0100
parents 06e4d36ca9d7
children 89e08a7e0b6b
rev   line source
nickjillings@1642 1 \documentclass{article}
nickjillings@1642 2
nickjillings@1642 3 \usepackage[margin=2cm]{geometry}
nickjillings@1642 4 \usepackage{listings}
nickjillings@1642 5
nickjillings@1642 6 \begin{document}
nickjillings@1642 7
nickjillings@1642 8 \large APE Browser Tool - Project Specification Document
nickjillings@1642 9
nickjillings@1642 10 \section{Document}
nickjillings@1642 11
nickjillings@1642 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@1642 13
nickjillings@1642 14 \section{Root}
nickjillings@1642 15
nickjillings@1642 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@1642 17
nickjillings@1642 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@1642 19
nickjillings@1642 20 The root will also contain the following tags: setup and tracks.
nickjillings@1642 21
nickjillings@1642 22 \section{Setup tag}
nickjillings@1642 23
nickjillings@1642 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@1642 25
nickjillings@1642 26 An example of this tag could be:
nickjillings@1642 27
nickjillings@1642 28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />}
nickjillings@1642 29
nickjillings@1642 30 The setup should not have any element or any children.
nickjillings@1642 31
nickjillings@1642 32 \subsection{Attributes}
nickjillings@1642 33 \begin{itemize}
nickjillings@1642 34 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
nickjillings@1642 35 \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@1642 36 \item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the tests can be randomised.
nickjillings@1642 37 \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@1642 38 \end{itemize}
nickjillings@1642 39
nickjillings@1642 40 \subsection{Elements}
nickjillings@1642 41 None
nickjillings@1642 42
nickjillings@1642 43 \section{AudioHolder tag}
nickjillings@1642 44
nickjillings@1642 45 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@1642 46
nickjillings@1642 47 \subsection{Attributes}
nickjillings@1642 48 \begin{itemize}
nickjillings@1642 49 \item \texttt{id} - Mandatory, String. Give an ID string or number to identify the test in the result.
nickjillings@1642 50 \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@1642 51 \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@1642 52 \item \texttt{randomiseOrder} - Optional, Boolean String. Defaults to false. Determine if the track order should be randomised. Must be true or false.
nickjillings@1642 53 \item \texttt{repeatCount} - Optional, Number. Defaults to 0 (ie: no repeats). The number of times a test should be repeated.
nickjillings@1642 54 \end{itemize}
nickjillings@1642 55
nickjillings@1642 56 \subsection{Elements}
nickjillings@1642 57 Contain the audioElements tags and the interfaceSetup tag.
nickjillings@1642 58
nickjillings@1642 59 \section{audioElements tag}
nickjillings@1642 60
nickjillings@1642 61 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
nickjillings@1642 62
nickjillings@1642 63 \subsection{Attributes}
nickjillings@1642 64 \begin{itemize}
nickjillings@1642 65 \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@1642 66 \item \texttt{ID} - Optional, Number. Give the track a specific ID for the return. This will help if using multiple projects to spread a test across multiple sessions and/or locations, where each test will not use all the samples. If one audioElement is given the ID 3, the next audioElement (assuming it does not have an ID set itself) will have the ID of 4. This continues until the next audioElement with the ID attribute set is reached.
nickjillings@1642 67 \end{itemize}
nickjillings@1642 68
nickjillings@1658 69 \section{interface tag}
nickjillings@1642 70
nickjillings@1658 71 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags:
nickjillings@1658 72 \begin{itemize}
nickjillings@1658 73 \item 'title' - Contains the test title to be shown at the top of the page
nickjillings@1658 74 \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.
nickjillings@1658 75 \end{itemize}
nickjillings@1642 76
nickjillings@1642 77 \section {CommentQuestion tag}
nickjillings@1642 78
nickjillings@1642 79 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.
nickjillings@1642 80
nickjillings@1642 81 \subsection{Attributes}
nickjillings@1642 82 None.
nickjillings@1642 83
nickjillings@1642 84 \subsection{Elements}
nickjillings@1642 85 The question to be presented.
nickjillings@1642 86
nickjillings@1642 87 \section {PreTest tag and PostTest tag}
nickjillings@1642 88
nickjillings@1642 89 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@1642 90
nickjillings@1642 91 \subsection{Attributes}
nickjillings@1642 92 None.
nickjillings@1642 93
nickjillings@1642 94 \subsection{Elements}
nickjillings@1642 95 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@1642 96
nickjillings@1642 97 \subsubsection{Statement}
nickjillings@1642 98
nickjillings@1642 99 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button.
nickjillings@1642 100
nickjillings@1642 101 \subsubsection{Question}
nickjillings@1642 102
nickjillings@1642 103 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@1642 104
nickjillings@1642 105 \subsubsection{Resource}
nickjillings@1642 106
nickjillings@1642 107 The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute.
nickjillings@1642 108
nickjillings@1642 109 \section{Metric tag}
nickjillings@1642 110 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@1642 111
nickjillings@1642 112 \subsection{metricEnable tag}
nickjillings@1642 113 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@1642 114 \begin{itemize}
nickjillings@1642 115 \item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit.
nickjillings@1642 116 \item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer
nickjillings@1642 117 \item elementTracker - Return the initial position of each track
nickjillings@1642 118 \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@1642 119 \item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to
nickjillings@1642 120 \item elementFlagMoved - Return a boolean per element to see if the element slider was moved.
nickjillings@1642 121 \item elementFlagComments - Return a boolean per element to see if the element has comments.
nickjillings@1642 122 \end{itemize}
nickjillings@1642 123
nickjillings@1642 124 \section{Feature List}
nickjillings@1642 125 \begin{itemize}
nickjillings@1642 126 \item Paging listening tests - eg. Ask multiple questions in each experiment
nickjillings@1642 127 \item Labels on X axis - scale
nickjillings@1642 128 \item Input questions/comment at top to guide towards the question being asked.
nickjillings@1642 129 \item Randomise track numbers -(inc. comment boxes and relate back to correct reference track)
nickjillings@1642 130 \item Randomise order of individual tests
nickjillings@1642 131 \item Save output XML file to remote server
nickjillings@1642 132 \item Tests Metrics
nickjillings@1642 133 \begin{itemize}
nickjillings@1642 134 \item Duration of listening to each track
nickjillings@1642 135 \item Time spent on each individual test
nickjillings@1642 136 \item Start and end position of every track
nickjillings@1642 137 \item Flags on each track, to ensure each track (but may not restrict users from submitting)
nickjillings@1642 138 \begin{itemize}
nickjillings@1642 139 \item Has been listened to
nickjillings@1642 140 \item Has been moved
nickjillings@1642 141 \item Has comments about it
nickjillings@1642 142 \end{itemize}
nickjillings@1642 143 \end{itemize}
nickjillings@1642 144 \end{itemize}
nickjillings@1642 145
nickjillings@1642 146 \subsection{Advanced feature list}
nickjillings@1642 147 \begin{itemize}
nickjillings@1642 148 \item Repeat each tests number of times (2 or 3?) to remove learning / experience bias and ensure that the order is consistent
nickjillings@1642 149 \item Perform Loudness equalisation on all tracks
nickjillings@1642 150 \item Selection of test type
nickjillings@1642 151 \item Pre-test of some basic hearing test
nickjillings@1642 152 \begin{itemize}
nickjillings@1642 153 \item MUSHRA (with vertical slider per track)
nickjillings@1642 154 \item APE (Single horizontal slider)
nickjillings@1642 155 \item AB Test
nickjillings@1642 156 \end{itemize}
nickjillings@1642 157 \end{itemize}
nickjillings@1642 158
nickjillings@1642 159
nickjillings@1642 160
nickjillings@1642 161 \section{Example}
nickjillings@1642 162
nickjillings@1642 163 Here is an example XML structure
nickjillings@1642 164
nickjillings@1642 165 \begin{lstlisting}
nickjillings@1642 166 <?xml version="1.0" encoding="utf-8"?>
nickjillings@1642 167 <BrowserEvalProjectDocument>
nickjillings@1658 168 <setup interface="APE" projectReturn="null" randomiseOrder='true' collectMetrics='true'>
nickjillings@1658 169 <PreTest>
nickjillings@1658 170 <statement>Please listen to all mixes</statement>
nickjillings@1658 171 <question id="location" mandatory="true">Please enter your listening location</question>
nickjillings@1658 172 </PreTest>
nickjillings@1658 173 <PostTest>
nickjillings@1658 174 <statement>Thank you for taking this listening test.</statement>
nickjillings@1658 175 <question id="SessionID">Please enter your name.</question>
nickjillings@1658 176 </PostTest>
nickjillings@1658 177 <Metric>
nickjillings@1658 178 <metricEnable>testTimer</metricEnable>
nickjillings@1658 179 <metricEnable>elementTimer</metricEnable>
nickjillings@1658 180 <metricEnable>elementTracker</metricEnable>
nickjillings@1658 181 <metricEnable>elementFlagListenedTo</metricEnable>
nickjillings@1658 182 <metricEnable>elementFlagMoved</metricEnable>
nickjillings@1658 183 </Metric>
nickjillings@1658 184 </setup>
nickjillings@1658 185 <audioHolder id='0' hostURL="example_eval/" sampleRate="44100" randomiseOrder='true' repeatCount='1'>
nickjillings@1658 186 <interface>
nickjillings@1658 187 <title>Example Test Question</title>
nickjillings@1658 188 <scale position="0">Min</scale>
nickjillings@1658 189 <scale position="100">Max</scale>
nickjillings@1658 190 <scale position="50">Middle</scale>
nickjillings@1658 191 <scale position="20">20</scale>
nickjillings@1658 192 </interface>
nickjillings@1658 193 <audioElements url="0.wav" id="0"/>
nickjillings@1658 194 <audioElements url="1.wav" id="1"/>
nickjillings@1658 195 <audioElements url="2.wav" id="2"/>
nickjillings@1658 196 <audioElements url="3.wav" id="3"/>
nickjillings@1658 197 <audioElements url="4.wav" id="4"/>
nickjillings@1658 198 <audioElements url="5.wav" id="5"/>
nickjillings@1658 199 <audioElements url="6.wav" id="6"/>
nickjillings@1658 200 <audioElements url="7.wav" id="7"/>
nickjillings@1658 201 <audioElements url="8.wav" id="8"/>
nickjillings@1658 202 <audioElements url="9.wav" id="9"/>
nickjillings@1658 203 <audioElements url="10.wav" id="10"/>
nickjillings@1658 204 <CommentQuestion id='mixingExperiance'>What is your mixing experiance</CommentQuestion>
nickjillings@1658 205 <PreTest>
nickjillings@1658 206 <statement>Start the Test 3</statement>
nickjillings@1658 207 </PreTest>
nickjillings@1658 208 <PostTest>
nickjillings@1658 209 <statement>Please take a break before the next test</statement>
nickjillings@1658 210 <question id="testComment">How did you find the test</question>
nickjillings@1658 211 </PostTest>
nickjillings@1658 212 </audioHolder>
nickjillings@1642 213 </BrowserEvalProjectDocument>
nickjillings@1642 214 \end{lstlisting}
nickjillings@1642 215
nickjillings@1642 216
nickjillings@1642 217
nickjillings@1642 218 \end{document}