Mercurial > hg > webaudioevaluationtool
comparison docs/ProjectSpecificationDocument.tex @ 13:c1d941d405f2
Updated Project Specification Document. New tags for extra comments/questions. Pre test and post test questions/statments. Improved syntax (tracks and track now audioHolder and audioElement).
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 07 Apr 2015 10:22:35 +0100 |
parents | 59c7ed077dd3 |
children | 27bd02956128 |
comparison
equal
deleted
inserted
replaced
12:ffde18e534ff | 13:c1d941d405f2 |
---|---|
25 | 25 |
26 An example of this tag could be: | 26 An example of this tag could be: |
27 | 27 |
28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />} | 28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />} |
29 | 29 |
30 The setup should not require an element or any children to run. | 30 The setup should not have any element or any children. |
31 | 31 |
32 \subsection{Attributes} | 32 \subsection{Attributes} |
33 \begin{itemize} | 33 \begin{itemize} |
34 \item \texttt{interface} - Mandatory. Defaults to APE, otherwise use to load any of the available interfaces | 34 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE. |
35 \item \texttt{projectReturn} - Mandatory. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file. | 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. |
36 \end{itemize} | 36 \end{itemize} |
37 | 37 |
38 \subsection{Elements} | 38 \subsection{Elements} |
39 None | 39 None |
40 | 40 |
41 \section{Tracks tag} | 41 \section{AudioHolder tag} |
42 | 42 |
43 There should be one tracks tag, inside which each track is specified as children. The track tag can help to generalise certain objects. | 43 There should be one audioHolder tag, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects. |
44 | 44 |
45 \subsection{Attributes} | 45 \subsection{Attributes} |
46 \begin{itemize} | 46 \begin{itemize} |
47 \item \texttt{hostURL} - Optional. 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. | 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. |
48 \item \texttt{sampleRate} - Optional. 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 allows for checking if the sample rates match. | 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. |
49 \item \texttt{sampleRateExplicit} - Optional. 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. | 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. |
50 \end{itemize} | 50 \end{itemize} |
51 | 51 |
52 \subsection{Elements} | 52 \subsection{Elements} |
53 Contain the track tags. | 53 Contain the audioElements tags. |
54 | 54 |
55 \section{Track tag} | 55 \section{audioElements tag} |
56 | 56 |
57 This must reside as children in the tracks tag. There must be one track tag per track to load. The track tag must contain the URL to load. | 57 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test. |
58 | 58 |
59 \subsection{Attributes} | 59 \subsection{Attributes} |
60 \begin{itemize} | 60 \begin{itemize} |
61 \item \texttt{url} - Mandatory. 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. | 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. |
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. | |
62 \end{itemize} | 63 \end{itemize} |
64 | |
65 \section {CommentQuestion tag} | |
66 | |
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. | |
68 | |
69 \subsection{Attributes} | |
70 None. | |
71 | |
72 \subsection{Elements} | |
73 The question to be presented. | |
74 | |
75 \section {PreTest tag and PostTest tag} | |
76 | |
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. | |
78 | |
79 \subsection{Attributes} | |
80 None. | |
81 | |
82 \subsection{Elements} | |
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. | |
84 | |
85 \subsubsection{Statement} | |
86 | |
87 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button. | |
88 | |
89 \subsubsection{Question} | |
90 | |
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. The optional attribute 'mandatory' defines whether the question can be blank or not, default is for optional. If mandatory, the next button is not available until something is entered. | |
92 | |
93 \subsubsection{Resource} | |
94 | |
95 The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute. | |
63 | 96 |
64 \section{Example} | 97 \section{Example} |
65 | 98 |
66 Here is an example XML structure | 99 Here is an example XML structure |
67 | 100 |
68 \begin{lstlisting} | 101 \begin{lstlisting} |
69 <?xml version="1.0" encoding="utf-8"?> | 102 <?xml version="1.0" encoding="utf-8"?> |
70 <BrowserEvalProjectDocument> | 103 <BrowserEvalProjectDocument> |
71 <setup interface="APE" projectReturn="null" /> | 104 <setup interface="APE" projectReturn="null" /> |
72 <tracks hostURL="example_eval/" sampleRate="44100" | 105 <AudioHolder hostURL="example_eval/" sampleRate="44100" |
73 sampleRateExplicit="true"> | 106 sampleRateExplicit="true"> |
74 <track url="0.wav"/> | 107 <audioElements url="0.wav" ID=0/> |
75 <track url="1.wav"/> | 108 <audioElements url="1.wav"/> |
76 <track url="2.wav"/> | 109 <audioElements url="2.wav"/> |
77 <track url="3.wav"/> | 110 <audioElements url="3.wav"/> |
78 <track url="4.wav"/> | 111 <audioElements url="4.wav"/> |
79 <track url="5.wav"/> | 112 <audioElements url="5.wav"/> |
80 <track url="6.wav"/> | 113 <audioElements url="6.wav"/> |
81 <track url="7.wav"/> | 114 <audioElements url="7.wav"/> |
82 <track url="8.wav"/> | 115 <audioElements url="8.wav"/> |
83 <track url="9.wav"/> | 116 <audioElements url="9.wav"/> |
84 <track url="10.wav"/> | 117 <audioElements url="10.wav"/> |
85 </tracks> | 118 </AudioHolder> |
119 <CommentQuestion>What is your mixing experiance</CommentQuestion> | |
120 <PreTest> | |
121 <statement>Please listen to all mixes</statement> | |
122 </PreTest> | |
123 <PostTest> | |
124 <statement>Thank you for taking this listening test.</statement> | |
125 <question>Please enter your name.</question> | |
126 </PostTest> | |
86 </BrowserEvalProjectDocument> | 127 </BrowserEvalProjectDocument> |
87 \end{lstlisting} | 128 \end{lstlisting} |
88 | 129 |
89 | 130 |
90 | 131 |