+ 1

How do I upload an audio to use it in html?

How do I upload an audio to use it in html?

17th Aug 2021, 6:38 PM
JoseD
JoseD - avatar
12 Respostas
+ 1
Well, try this web site to get direct link to play mp3 from google drive. https://softgateon.herokuapp.com/directlink/
19th Aug 2021, 3:56 PM
Matias
Matias - avatar
+ 4
First upload the audio on google drive or Dropbox and then copy the link that you uploaded then add the link in the html. For example: <audio controls autoplay> <source src="add the link here" type="audio/the audio file type here">   Your browser does not support the audio element. </audio> If there is any question i will accept. If you able to share your code attempt that is better to help you!
17th Aug 2021, 7:14 PM
Matias
Matias - avatar
+ 3
Matiyas Thank a lot!
19th Aug 2021, 4:03 PM
JoseD
JoseD - avatar
19th Aug 2021, 4:23 PM
JoseD
JoseD - avatar
+ 2
Good 👍. Happy Coding!
19th Aug 2021, 4:31 PM
Matias
Matias - avatar
+ 1
Matiyas I did it and chrome gives me an error (The audio is in mp3) Error: Uncaught (in promise) DOMexception: the element has no supportex sources
19th Aug 2021, 3:09 PM
JoseD
JoseD - avatar
+ 1
Can you show us your code attempt?
19th Aug 2021, 3:24 PM
Matias
Matias - avatar
+ 1
It's basically this https://code.sololearn.com/WY5yu4O2kVsI/?ref=app I tried having the audio in a local file and it works fine delay 1-2 seconds
19th Aug 2021, 3:32 PM
JoseD
JoseD - avatar
+ 1
does not end in mp3
19th Aug 2021, 3:53 PM
JoseD
JoseD - avatar
0
JoseD try to upload on Dropbox and then copy the url make sure in the end of the url must be .mp3
19th Aug 2021, 3:40 PM
Matias
Matias - avatar
0
Ok
19th Aug 2021, 3:41 PM
JoseD
JoseD - avatar
0
JoseD that solve your question?
19th Aug 2021, 4:16 PM
Matias
Matias - avatar