Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

236
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda