October 23, 2020 at 9:57 am #6235
I am planning to run a production experiment in Japanese and want all the consent form and instructions to be presented in Japanese. I know that I can change the message in InitiateRecorder(), but I am wondering if I can do the same thing for the link to ask for the permission to record speech. By default it says “By clicking this link I understand that I grant this experiment’s script access to my recording device for the purpose of uploading recordings to the server designated by the experimenter(s).”, but is there any way for me to replace this with an equivalent Japanese message?October 23, 2020 at 10:19 am #6236October 23, 2020 at 10:57 am #6239
My bad! I thought I went through all the relevant posts but it seems that I didn’t do it well. Thank you so much for helping me out!
MasatoNovember 4, 2020 at 12:42 pm #6312
I’m having a similar issue as question 1 here. No matter how much I try to use .wait commands and test conditions, the continue button appears and is clickable before the recording has finished from the preceding trial. Any idea on what’s going on here?
Template( variable => newTrial( newText('instructions', 'Please record the following words:') .print() , newText('word', variable.text) //show people all the words in text column .print() , newVoiceRecorder("recorder") .log() .record() .print() .wait() , newButton("continue", "Click here to continue.") .print() .wait(getVoiceRecorder("recorder").test.recorded()) ));November 4, 2020 at 1:31 pm #6315
Your code works just fine when I test it. I’m using the most recent version of PennController (1.8) in which VoiceRecorder is deprecated in favor of MediaRecorder, but your code is still retro-compatible.
The only problem I have is that the “Record” button should be reading “Stop” instead, because you start recording before printing the interface. The continue button only appears after I click “Record” (which, again, should read “Stop”) and if I click the continue button, then it proceeds to the next trial, because I’m done recording: I clicked Stop, even though it misleadingly read “Record.”
Here’s what you can do to fix the text of the “Record/Stop” button:
newVoiceRecorder("recorder") .log() .print() .record() , newFunction( ()=>$(".PennController-MediaRecorder-record").html("Stop") ).call() , getVoiceRecorder("recorder").wait()
Let me know if you have questions
You must be logged in to reply to this topic.