annotate docs/ProjectSpecificationDocument.tex @ 921:533d51508e93

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