Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
How to play sounds in github?

I was making a github repository with a HTLM5 file and a mp3 file.

On the html file i writed:

<script>
var audio = new Audio('sound.mp3');
audio.play();
</script>

And then i uploaded in the repository a mp3 file, imagine if the file name was sound.mp3.

Here's what the files look like:

index.html

sound.mp3

The problem is that the HTML script i made is not playing the sound on the github page.

I'm 100% sure that i have the volume up but it dosn't play.

What can i do to make it play the sound in the repository files?

Also i tried using images and looks like the html can get the img file in the repository but not sounds.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

if you have a sounds file on your repository this is not working like that. Put the audio files on the same level with the index.html file.

about 4 years ago · Juan Pablo Isaza Report

0

You can't embed <script> tags into READMEs because of XSS attacks.

See this answer and this from the GitHub docs for more information.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!