Check out example codes for "play audio html". It will help you in understanding the concepts better.

Code Example 1

<audio src="sound.mp3" autoplay></audio>

Code Example 2

<audio controls>

  <source src="horse.ogg" type="audio/ogg">

  <source src="horse.mp3" type="audio/mpeg">

 Your browser does not support the audio element.

 </audio>

Learn ReactJs, React Native from akashmittal.com