How can we add audio in html5 to play in other devices also? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we add audio in html5 to play in other devices also?

12th Jun 2018, 9:47 AM
Prakher Srivastava
Prakher Srivastava - avatar
2 Answers
+ 7
https://www.sololearn.com/Discuss/1054246/?ref=apphttps://www.sololearn.com/discuss/1073871/?ref=app 1. Find an audio you want and download it. For example some gunshot audios can be found here: https://www.soundjay.com/gun-sound-effect.html 2. Cut audio (optional)** 3. Upload audio on dropbox 4. Share it's link on dropbox 5. Copy shared link and paste it in src of your audio tag 6. And the most important thing -> instead of 'www' put 'dl' (Check out code example) ** After you download a desired sound, it can often have a certain 'no sound' region. I suggest you to use some audio cutter to leave only the part you need (useful for rapid fire). There are plenty of cutters on web. https://code.sololearn.com/WUhX3W6925bT/?ref=app https://www.sololearn.com/discuss/1187958/?ref=app
12th Jun 2018, 9:52 AM
Vishal Pal❄️⚛️
Vishal Pal❄️⚛️ - avatar
+ 2
thanku vishal pal
12th Jun 2018, 10:02 AM
Prakher Srivastava
Prakher Srivastava - avatar