0
I need help again đ
How to add music or sound in the compiler of sololearn because a day i see a code that have sounds
5 Answers
+ 1
<video src="url"> or<audio src="url">
0
What programming language do you want to use for audio adding? You need writing the audio tag If you're going to use web development. Example:
<audio src="https://example.com/audio.mp3" controls>Music title</audio>
The src attribute indicates the source of your audio file. Controls shows the audio elements (play/pause).
0
You can't add audio in Python or in other programming languages, because you need connecting audio libraries and Sololearn doesn't support them.
0
Yonas Sileshi, a better way is to use the
<video>
<source src=(web URL of the video)
type=video/mp4 (or whatever format your video is in)>
</video>
https://sololearn.com/compiler-playground/W2BOXIJCvH48/?ref=app