Trouble with audio files. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Trouble with audio files.

Haing trouble here. When I run the code given in the example only 'invalid source' is displayed for one audio file while for the second 'Error: Audio playback was aborted' displays. Feedback will be much appreciated

20th Nov 2018, 8:43 AM
Msizi
2 Answers
+ 4
attach the code ...
20th Nov 2018, 10:13 AM
Madhav
Madhav - avatar
+ 1
You should add this at the end of the link on your audio file: dl=1&raw=1 If there is already a "dl=0" at the end of the link of your audio file, replace "0" into "1" and add "&raw=1" so that it will be able to be played.
20th Nov 2018, 10:45 AM
Incognito
Incognito - avatar