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

Code Example 1

<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>

Code Example 2

<audio controls>
  <source src="name.mp3" type="audio/mp3" />
</audio>

Learn ReactJs, React Native from akashmittal.com