-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Bug Description
When running a P.835 test generated by master_script.py on the MTurk Worker Sandbox (workersandbox.mturk.com), the audio clips within the HIT interface cannot be played. The play buttons appear but are either unresponsive or clicking them has no effect.
This occurs even though the underlying WAV audio files hosted on S3 are publicly accessible and network requests for them show a successful 206 Partial Content status code in the browser's developer tools. This suggests the issue lies within the HTML/JavaScript playback logic rather than S3 permissions or file accessibility.
Steps to Reproduce
- Generate P.835 test files using
master_script.py(provide configuration details ormaster.cfgif possible). Note the generated HTML file (e.g.,_p835.html) and the batch input CSV file (e.g.,_publish_batch.csv). - Ensure the required WAV audio files listed in the batch CSV are uploaded to a public S3 bucket and that S3 permissions (including disabling relevant "Block Public Access" settings) allow public reads.
- Log in to the MTurk Requester Sandbox UI (
requestersandbox.mturk.com). - Create a "New Project", selecting a template type that allows you to provide HTML content directly (e.g., by pasting or uploading the HTML, not the "Survey Link" template).
- Configure the project's HIT properties (Title, Description, Reward, Duration, etc.) in the UI.
- In the project's "Design Layout" step, paste or upload the full content of the generated
_p835.htmlfile. Ensure the project setup recognizes the${Q0},${Q1}...${gold_clips_ans}placeholders within the HTML/JavaScript as input variables to be substituted by MTurk. - Publish a new batch using this project. When prompted, upload the
_publish_batch.csvfile as the source of input data for the HITs via the UI. - Accept or Preview one of the newly created HITs on
workersandbox.mturk.com. - Attempt to click the play button for any audio clip in the Rating or Training sections.
Expected Behavior
Clicking the play button should initiate audio playback of the corresponding WAV file. The button should change state (e.g., to a pause icon).
Actual Behavior
The play buttons are unresponsive, or clicking them does nothing. Audio does not play. The browser's Network tab shows successful 206 Partial Content requests being made for the WAV file URLs when the page loads or interacts with the audio elements.
Debugging Information
- Network Tab: Shows successful
206 Partial Contentstatus codes for.wavfile requests initiated by the HTML page. (See attached screenshot if helpful).
Screenshot

