function playSegments(SA)
% Play the sound data stored in struct array SA.
%   SA(k).data  stores the k-th segment of sound data (from wavread)
%   SA(k).rate  is the sampling rate of the k-th segment

for k= 1:length(SA)
    theData= SA(k).data;
    theRate= SA(k).rate;
    sound(theData,theRate)
    pause(length(theData)/theRate + 1)
end
