Using voice_key to find onset of existing audio files

Hey guys,

I am sure that there is a simple fix for this. I am trying to find onset times of previously recorded audio files using psychopy.voicekey.OnsetVoiceKey but the value is always 0 while the audio file has a clear recording. The current code is:

from psychopy import voicekey as vk

vk.pyo_init()
onset = vk.OnsetVoiceKey(file_in=“1_9.wav”)
print(onset.event_onset)

Does anybody know why this is the case and how I can adjust for this?

Cheers

Is the issue that the voice key is ignoring system sounds (i.e. sounds generated by the computer itself) You could test this by running the experiment on two computers sitting next to each other to see if they register each other’s audio.