Replies: 1 comment 3 replies
-
Hi @madhud3, just to clarify what you want to do: you want to request access to the user's microphone, play audio files, pick up that audio output through the user's mic, and display the volume levels from the mic stream on the screen. Is that right? Do you need to save any information about the volume test to the data, or is this just meant to be a visual indicator for the participant? I haven't done this but might be interested in trying it, because I am trying to figure out a way to sync the timing from an audio recording with the onset of a stimulus. One way to do this would be to play a tone that is synchronized with the visual display, so that the audio recording contains a tone that marks the visual stimulus onset as well as the participant's spoken response. Also, if I've understood correctly, one thing that occurs to me is that the levels that are generated using this method would depend on both the level/quality of the audio coming out of the computer (which I think is what you're interested in?), as well as the quality and positioning of the microphone that's picking up the audio. So that might be a problem if you're trying to compare volume level values across different participants. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I am trying to make a study with audio files and we need to have a volume test before the experiment. I found this code but I am having trouble implementing it into my experimental code:
https://ourcodeworld.com/articles/read/413/how-to-create-a-volume-meter-measure-the-sound-level-in-the-browser-with-javascript
Has anyone tried this or have a way to help as some of the code seems to be deprecated.
Beta Was this translation helpful? Give feedback.
All reactions