Create a datastore that maintains parity between the audio of the underlying datastores. Create two separate audio datastores, and then create a combined datastore representing the two underlying datastores.
Create a datastore ads1 that points to the audio files included with Audio Toolbox.
Create a second datastore ads2 by adding noise to the audio in the ads1.
ads2 = transform(ads1,@(x) x + 0.01*randn(size(x)) );
Create a combined datastore from ads1 and ads2.
adsCombined = combine(ads1,ads2);
Read the first pair of audio files from the combined datastore. Each read operation on this combined datastore returns a pair of audio signals in a 1-by-2 cell array and a pair of info structs in a 1-by-2 cell array.