Is it possible to do a microphone check? #796
-
Hello! I was wondering whether there is some way I can test the functionality of the microphone? Ideally some features that allows the experiment to proceed only when voice input is detected. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Hi @zhangchi199133, We don't currently have any officially released plugins that deal with audio input. @becky-gilbert has been developing an audio-input plugin. You can see more about that here. She's looking for folks willing to test it out. I don't know off the top of my head whether it does a mic check, but that would be useful feedback to have! |
Beta Was this translation helpful? Give feedback.
-
That's an interesting question and would be a great feature! Off the top of my head, here are a few ways to address this: (1) Check that the participant's computer has access to a mic. This seems pretty straightforward, e.g.: (2) Do a test recording where you play the audio back to the participant, and then have them confirm that the recording worked. If not, ask them stop and contact you (and make sure it's clear that they will still be paid for their time if it doesn't work). This should be possible with the current version of the plugin. (3) Do some online audio processing on the test recording to check that audio input has been detected. I don't think there's an easy way to differentiate a voice from other sounds, but it would confirm that the mic picked up some kind of input. I have no idea how easy/difficult this would be to implement, but I can look into it! |
Beta Was this translation helpful? Give feedback.
-
Hi, guys, I just would like to give my contribution on this topic. I have been working in picture naming tasks and I developed a R script to convert base64 to .wav with fftmpeg conversion, naming each file correctly, and making the file able to open in any software, but specially CheckVocal to track the RT and ACC. One important detail for naming the files, "word" is the name of the picture and may be defined inside "data" in jsPsych, as the example below.
The first block loads the R libraries. The second block opens data directly downloaded from cognition. The third block filters only "response == base64". The fourth block makes the following routine for each file: i) converts base64 to raw; ii) define the input ".webm" file name and iii) define the output ".wav" file name, both using "run_id" and "word" information; iv) the decoded file is written as ".webm"; and the ".webm" file is converted to ".wav" using fftmpeg. The last block deletes all ".webm" files. Have fun!
|
Beta Was this translation helpful? Give feedback.
Hi @zhangchi199133,
We don't currently have any officially released plugins that deal with audio input. @becky-gilbert has been developing an audio-input plugin. You can see more about that here. She's looking for folks willing to test it out. I don't know off the top of my head whether it does a mic check, but that would be useful feedback to have!