annotate docs/ProjectSpecificationDocument.tex @ 694:869ed636f7c0

Edit to project Spec Doc
author Dave Moffat <djmoffat@users.noreply.github.com>
date Thu, 09 Apr 2015 16:30:08 +0100
parents a74cb47e779c
children fef9e8337cfd
rev   line source
djmoffat@693 1 \documentclass{article}
djmoffat@693 2
djmoffat@693 3 \usepackage[margin=2cm]{geometry}
djmoffat@693 4 \usepackage{listings}
djmoffat@693 5
djmoffat@693 6 \begin{document}
djmoffat@693 7
djmoffat@693 8 \large APE Browser Tool - Project Specification Document
djmoffat@693 9
djmoffat@693 10 \section{Document}
djmoffat@693 11
djmoffat@693 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!
djmoffat@693 13
djmoffat@693 14 \section{Root}
djmoffat@693 15
djmoffat@693 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.
djmoffat@693 17
djmoffat@693 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.
djmoffat@693 19
djmoffat@693 20 The root will also contain the following tags: setup and tracks.
djmoffat@693 21
djmoffat@693 22 \section{Setup tag}
djmoffat@693 23
djmoffat@693 24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
djmoffat@693 25
djmoffat@693 26 An example of this tag could be:
djmoffat@693 27
djmoffat@693 28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />}
djmoffat@693 29
djmoffat@693 30 The setup should not have any element or any children.
djmoffat@693 31
djmoffat@693 32 \subsection{Attributes}
djmoffat@693 33 \begin{itemize}
djmoffat@693 34 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
djmoffat@693 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.
djmoffat@693 36 \end{itemize}
djmoffat@693 37
djmoffat@693 38 \subsection{Elements}
djmoffat@693 39 None
djmoffat@693 40
djmoffat@693 41 \section{AudioHolder tag}
djmoffat@693 42
djmoffat@693 43 There should be one audioHolder tag, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects.
djmoffat@693 44
djmoffat@693 45 \subsection{Attributes}
djmoffat@693 46 \begin{itemize}
djmoffat@693 47 \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.
djmoffat@693 48 \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.
djmoffat@693 49 \item \texttt{sampleRateExplicit} - Optional, DEPRECATED. A true/false to determine if the sample rate given in the attribute \texttt{sampleRate} must be matched by the system. If the web audio API does not match, a browser alert is called and the rest of the interface loading is discarded. Media files are also not downloaded until this check can be corrected.
djmoffat@693 50 \end{itemize}
djmoffat@693 51
djmoffat@693 52 \subsection{Elements}
djmoffat@693 53 Contain the audioElements tags.
djmoffat@693 54
djmoffat@693 55 \section{audioElements tag}
djmoffat@693 56
djmoffat@693 57 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
djmoffat@693 58
djmoffat@693 59 \subsection{Attributes}
djmoffat@693 60 \begin{itemize}
djmoffat@693 61 \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.
djmoffat@693 62 \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.
djmoffat@693 63 \end{itemize}
djmoffat@693 64
djmoffat@693 65 \section {CommentQuestion tag}
djmoffat@693 66
djmoffat@693 67 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.
djmoffat@693 68
djmoffat@693 69 \subsection{Attributes}
djmoffat@693 70 None.
djmoffat@693 71
djmoffat@693 72 \subsection{Elements}
djmoffat@693 73 The question to be presented.
djmoffat@693 74
djmoffat@693 75 \section {PreTest tag and PostTest tag}
djmoffat@693 76
djmoffat@693 77 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.
djmoffat@693 78
djmoffat@693 79 \subsection{Attributes}
djmoffat@693 80 None.
djmoffat@693 81
djmoffat@693 82 \subsection{Elements}
djmoffat@693 83 Takes the \texttt{statement} and \texttt{question} tags. The order these are presented in the XML define the order they appear on the screen.
djmoffat@693 84
djmoffat@693 85 \subsubsection{Statement}
djmoffat@693 86
djmoffat@693 87 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button.
djmoffat@693 88
djmoffat@693 89 \subsubsection{Question}
djmoffat@693 90
djmoffat@694 91 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.
djmoffat@693 92
djmoffat@693 93 \subsubsection{Resource}
djmoffat@693 94
djmoffat@693 95 The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute.
djmoffat@693 96
djmoffat@694 97 \section{Feature List}
djmoffat@694 98 \begin{itemize}
djmoffat@694 99 \item Paging listening tests - eg. Ask multiple questions in each experiment
djmoffat@694 100 \item Labels on X axis - scale
djmoffat@694 101 \item Input questions/comment at top to guide towards the question being asked.
djmoffat@694 102 \item Randomise track numbers -(inc. comment boxes and relate back to correct reference track)
djmoffat@694 103 \item Randomise order of individual tests
djmoffat@694 104 \item Save output XML file to remote server
djmoffat@694 105 \item Tests Metrics
djmoffat@694 106 \begin{itemize}
djmoffat@694 107 \item Duration of listening to each track
djmoffat@694 108 \item Time spent on each individual test
djmoffat@694 109 \item Start and end position of every track
djmoffat@694 110 \item Flags on each track, to ensure each track (but may not restrict users from submitting)
djmoffat@694 111 \begin{itemize}
djmoffat@694 112 \item Has been listened to
djmoffat@694 113 \item Has been moved
djmoffat@694 114 \item Has comments about it
djmoffat@694 115 \end{itemize}
djmoffat@694 116 \end{itemize}
djmoffat@694 117 \end{itemize}
djmoffat@694 118
djmoffat@694 119 \subsection{Advanced feature list}
djmoffat@694 120 \begin{itemize}
djmoffat@694 121 \item Repeat each tests number of times (2 or 3?) to remove learning / experience bias and ensure that the order is consistent
djmoffat@694 122 \item Perform Loudness equalisation on all tracks
djmoffat@694 123 \item Selection of test type
djmoffat@694 124 \item Pre-test of some basic hearing test
djmoffat@694 125 \begin{itemize}
djmoffat@694 126 \item MUSHRA (with vertical slider per track)
djmoffat@694 127 \item APE (Single horizontal slider)
djmoffat@694 128 \item AB Test
djmoffat@694 129 \end{itemize}
djmoffat@694 130 \end{itemize}
djmoffat@694 131
djmoffat@694 132
djmoffat@694 133
djmoffat@693 134 \section{Example}
djmoffat@693 135
djmoffat@693 136 Here is an example XML structure
djmoffat@693 137
djmoffat@693 138 \begin{lstlisting}
djmoffat@693 139 <?xml version="1.0" encoding="utf-8"?>
djmoffat@693 140 <BrowserEvalProjectDocument>
djmoffat@693 141 <setup interface="APE" projectReturn="null" />
djmoffat@693 142 <AudioHolder hostURL="example_eval/" sampleRate="44100"
djmoffat@693 143 sampleRateExplicit="true">
djmoffat@693 144 <audioElements url="0.wav" ID="0"/>
djmoffat@693 145 <audioElements url="1.wav"/>
djmoffat@693 146 <audioElements url="2.wav"/>
djmoffat@693 147 <audioElements url="3.wav"/>
djmoffat@693 148 <audioElements url="4.wav"/>
djmoffat@693 149 <audioElements url="5.wav"/>
djmoffat@693 150 <audioElements url="6.wav"/>
djmoffat@693 151 <audioElements url="7.wav"/>
djmoffat@693 152 <audioElements url="8.wav"/>
djmoffat@693 153 <audioElements url="9.wav"/>
djmoffat@693 154 <audioElements url="10.wav"/>
djmoffat@693 155 </AudioHolder>
djmoffat@693 156 <CommentQuestion>What is your mixing experiance</CommentQuestion>
djmoffat@693 157 <PreTest>
djmoffat@693 158 <statement>Please listen to all mixes</statement>
djmoffat@693 159 </PreTest>
djmoffat@693 160 <PostTest>
djmoffat@693 161 <statement>Thank you for taking this listening test.</statement>
djmoffat@693 162 <question>Please enter your name.</question>
djmoffat@693 163 </PostTest>
djmoffat@693 164 </BrowserEvalProjectDocument>
djmoffat@693 165 \end{lstlisting}
djmoffat@693 166
djmoffat@693 167
djmoffat@693 168
djmoffat@693 169 \end{document}