PennController for IBEX › Forums › Support › Recording Audio
- This topic has 4 replies, 2 voices, and was last updated 4 years, 5 months ago by gemma7290.
-
AuthorPosts
-
April 28, 2020 at 10:29 am #5145gemma7290Participant
Hello,
I am setting up an experiment to record audio. However when I run the experiment on test mode I get the error message. [7:13:24] Recorder not initiated. Make sure the sequence of items contains an InitiateRecorder PennController. (PennController: 6)
However, I have included the Audio Initiation Comman before the stimuli. Do you know what I am missing?
PennController.InitiateRecorder("https://XXXXXXXXXXXXXX/ibex.php"); PennController.Template( "XXXXXXXXX.tsv", row => PennController( "choice1" , newVoiceRecorder("recorder") .print() , newText("nameInput", row.Sentence ) .settings.center() .print() , // Adding a validation button (feels wrong to end the trial when the slider gets released) newButton("validate", "Next") .settings.center() .print() .wait() ) );
Thanks!
April 28, 2020 at 11:02 am #5147JeremyKeymasterHello,
Do you have a Sequence command anywhere in your script? If so, you need to be explicit about when you want the InitiateRecorder trial to run. So for example you could do this (I’m shortening the commands from your code, consistently with PennController 1.7):
Sequence( "init" , randomize("choice1") ) InitiateRecorder("https://XXXXXXXXXXXXXX/ibex.php") .label("init") Template( "XXXXXXXXX.tsv", row => newTrial( "choice1" , newVoiceRecorder("recorder") .print() , newText("nameInput", row.Sentence ) .center() .print() , // Adding a validation button (feels wrong to end the trial when the slider gets released) newButton("validate", "Next") .center() .print() .wait() ) )
Jeremy
April 29, 2020 at 10:38 am #5173gemma7290ParticipantHello Jeremy,
Thank you very much! It worked! Now, unfortunately the recordings are not saving in the server.
I get an error file in the server.[28-Apr-2020 14:09:28 UTC] PHP Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context in /XXXXX/public_html/experiments/ibex.php on line 35
Do you know what it might refer to?
Thank you so much for your help!
Gemma
April 29, 2020 at 11:40 am #5175JeremyKeymasterHello Gemma,
This is really weird, it’s an error that comes from an old version of the PHP script from this page, I remember fixing it (on August 15, 2019 according to the logs). Did you make sure your PHP script is up to date?
Jeremy
April 29, 2020 at 1:20 pm #5176gemma7290ParticipantHello Jeremy,
I updated the script and it works now. Thank you so much!
-
AuthorPosts
- You must be logged in to reply to this topic.