mushraJS

mushraJS is a HTML5 and JavaScript based framework to create MUSHRA listening tests

View the Project on GitHub seebk/mushraJS

Attention

mushraJS is now superseeded by BeaqleJS and won’t be developed any further.

Please check https://github.com/HSU-ANT/beaqlejs

mushraJS

Description

mushraJS is a HTML5 and JavaScript based framework to perform MUSHRA listening tests. MUSHRA is the abbreviation for MUlti Stimulus with Hidden Reference and Anchor and describes a method for the subjective evaluation of audio quality. It is described in detail in the ITU-R recommendation BS.1534-1.

The framework does not rely on any server side ressources and is capable to completely run locally in your browser. However you could publish the configured test scripts on a web server to easily reach your participants or even transmit the results to a web service for collection and further evaluation.

Screenshot

MushraJS has already been used for for real listening tests by the author and should work reliably. Anyway, please thoroughly test your setup before your public test starts.

Requirements

As the framework uses modern HTML5 techniques for audio playback and the user interface it is very important to use a modern web browser. The support for different audio file types varies a lot between the different browsers. I would recommend to use .WAV files as these are lossless and supported by all major browsers with the only exception of the Microsoft Internet Explorer. Other file formats like .FLAC, .MP3 or .OGG are only supported by different subsets of browsers.

JQuery and JQueryUI are used to simplify the coding with JavaScript. Both are already part of the package and can be found in js/ subfolder.

Configuration

The configuration of the test is written in JSON format. See example_config.js to get an impression on how it works, it should be pretty self explanatory. The config is loaded before any other JavaScript files in the header of the index.html file.

Some of the texts, for example the introduction on the first page, can be edited in the index.html file. The corresponding <div> tags are marked by comments.

Server side data evaluation

It is possible to send the results to a server script and to collect and evaluate them in a central place. See results.php for a basic example. This saves the transmitted results in a human readable .TXT file with the timestamp in its name. This is not intendend to run out of the box and needs some PHP and JS skills to get it up and running. There are plans for a more comfortable server backend but currently no time is available to work on this.

Contact

sebastian_kraft (AT) gmx (DOT) de

License

The complete sources, html and script files as well as images are released unter the GPLv3 license. A copy of the GPL is provided in the LICENSE.txt file.