Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Treehouse Club: JavaScript Car Sounds What's JavaScript?

Digital Literacy JavaScript Sounds

.wav won't play when I click on them Any suggestions please?

Himanshu Chopra
Himanshu Chopra
3,055 Points

Hello Antaonio. Can you share your code please so that we can look into that.

thx Himanshu Chopra I solved it Changed Browser

thx Himanshu Chopra I solved it Changed Browser

2 Answers

Elysha Spector
Elysha Spector
9,189 Points

Hello Donte,

There are two ways that I know of to import audio into your workspace:

  1. Within your workspace, click the top "File" option, then select "Upload File".
  2. Click and hold an audio file on your computer and drag it into the bottom left grey section of the workspace, where you see your other files/folders.

After it imports, you can drag it into any other folder of your choosing.

I have only utilized .wav formats, but other Treehouse forms state you can also use mp3's (https://teamtreehouse.com/community/can-i-use-mp3-files-on-workspaces).

Adding audio to HTML: <audio id="AudioName" src="FolderName/AudioName.wav" preload="auto"></audio>

Donte nall
Donte nall
1,961 Points

How do i get a sound to the workspace? Thanks