0
How to.play audio present in your computer?
4 odpowiedzi
+ 6
Create an audio element, with a source element inside. Then set the source element's value of src to the filepath or url of the audio file.
Example:
<audio controls>
<source src="myfile.mp3" type="audio/mpeg" />
</audio>
Note: Don't forget that source is a self closing tag.
+ 4
you should put it in the same directory with your HTML document
+ 4
Also you can extract your file path by press and hold left shift while pressing on your right button mouse then copy it's path and paste it on your HTML fils as usual...
0
with the web audio API, you could manipulate sounds, loops, music synthesis and sound generation. it also comes with a set of predefined sound processing modules (reverb, delay, etc)