Have a look at my Replay online demo.
Replay | code | try it | discussion thread
Two audio files are loaded into two sound components during the ITI, but played with zero volume. During the trial routine, buttons are used to play the sound files. Once both audio files have been selected at least once, the trial can be ended with a forced choice. In this demo the pairs are fixed, but independent randomisation could be used if desired.