The samples of an audio signal stored in an array can be played back over your computer’s speakers using the built-in function: sound.
The basic syntax for using the function is the following:
y – an array containing the samples of the signal.
Fs – a scalar representing the sampling rate of the signal.
Further documentation for the function is available here.