Reply To: Audio playing twice

PennController for IBEX Forums Support Audio playing twice Reply To: Audio playing twice

#10493
stradee
Participant

Hi, Jeremy.
I modified the script as you mentioned, but it didn’t work well as I expected.

I want participants to listen to the target audio file once or twice (as they want to listen one more)
So, after they listen twice, the audio play bar must disappear so that they cannot listen any more.

How can I modify the script?
Thanks for your help!

>>
Template( “practice2.csv” , row =>
newTrial(“practice”,
newTimer(“break”, 1000)
.start()
.wait()
,
newAudio(“audio”, row.audio)
.center()
.print()
.wait()
,
newTimer(10)
.callback(getAudio(“audio”).wait().remove()).start
,
//getAudio(“audio”)
// .remove()
//,
newTextInput(“answer”)
.size(400, 50)
.cssContainer({“margin”:”2em”})
.center()
.log()
.print()
,
newButton(“next”, “다음”)
.center()
.cssContainer({“margin”:”1em”})
.print()
.wait(getTextInput(“answer”).test.text(/[ㄱ-ㅎㅏ-ㅣ가-힣]+/))
.remove()

// .log(///)
)
);