P5.sound playing sound from samples


Hi,I have an image of sound wave,and I want to make it play using P5.js.

So I sample it then I get a number array ,like {0.51,0.52,0.43…}. Is there a way to play the sound using P5.js from the array,or should I do FFT and use multiple sine oscillators to play the sound?