psychopy.org | Reference | Downloads | Github

Triggering a sound for a heartbeat discrimination task (interoception) with python

Hello, Im very new to python.
Does anyone know how might a voltage input (R-wave) trigger an output of sound with a delay?

Thanks…

The question is underspecified. Do you already have some device in the computer that reads the R wave and you just want to know how to read this device with python and then start a sound file?