Embedded Audio, file from github repo

Hey,

I am trying to embed an audio file onto my website from a file stored in the same repository as the website (link to wav file).

Below is the code I have been using to do this, but I cannot get the src= '...' portion to work.

<audio controls="controls">
<source>
<script src="http://gist-it.appspot.com/github/Sebastian-O-Rodriguez/about/blob/master/audio/100-grandkids-sample.wav"></script>
</source>
<p>Your browser does not support the audio element.</p>
</audio>

It comes out like this

an empty audio player. I have also tried
src=https://github.com/Sebastian-O-Rodriguez/about/blob/master/audio/100-grandkids-sample.wav

but I cannot seem to embed the audio into the player.

Shouldn’t it look more like either of these?

<audio controls="controls" src="http://gist-it.appspot.com/github/Sebastian-O-Rodriguez/about/blob/master/audio/100-grandkids-sample.wav">
<p>Your browser does not support the audio element.</p>
</audio>

or

<audio controls="controls">
<source src="http://gist-it.appspot.com/github/Sebastian-O-Rodriguez/about/blob/master/audio/100-grandkids-sample.wav"/>
<p>Your browser does not support the audio element.</p>
</audio>
1 Like