You'll have to adapt it to your own experiment, but the basic principle is:
soundfile = "correct.wav"
soundfile = "incorrect.wav"
And then in your sound1 component you must set the Sound property to
There's an example of how to do this for a text message in the stroopExtended demo. It only changes the text of a message, but you can apply this principle to any property.