Hello, I would like to add to that.
On Tue, Sep 8, 2015 at 11:16 AM, Jonathan Peirce <
jon.p...@gmail.com> wrote:
> Basically, I don't think audio timing is very good in most software
> (including psychopy) using standard hardware so I'd be quite wary of the
> whole approach unless you can get some dedicated hardware for precise sound
> onsets (like the CRS AudioFile).
Several years back, I implemented an experiment using audio-visual
speech stimuli (McGurk stimuli, that is). Back then it was impossible
for me to perfectly align the A and V onsets or to maintain a fully
synchronized AV playback using PsychoPy when using ordinary movie
files with embedded audio. I have to add that probably much in this
area has changed in the meantime (for example, there is MovieStim2
now...). At any rate, it seemed that the "video player" would
sometimes even intentionally drop frames to keep the A and V streams
in sync. It was horrible, each trial would present the visual stimuli
a bit differently than the others.
After a few intermediate steps I finally found a solution, which was
decoding the video to a number of bitmap images (one image per frame)
and presenting them using a computer dedicated for video stimulus
delivery only (running ActiveSTIM,
http://www.activestim.com/); and
using a separate machine for audio playback via a National Instruments
data-acquisition board.
I would do it differently today (using PsychoPy and one computer
only), but I would always, always separate both streams (A and V)
manually; triple-check their duration; pre-load every single frame of
the video stimulus when possible (which means one will need many
gigabytes of RAM for longer streams); pre-load the whole audio stream
onto a specifically designed piece of hardware (in my case, it would
be an NI board); and trigger the audio playback using a photo-diode
placed on the monitor (it's very easy to trigger analog output via an
external signal on NI boards).
How the exact implementation would look like in PsychoPy I don't know;
I just wanted to share my experiences.
All the best,
Richard