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 trialAntonio Zammit
Courses Plus Student 1,630 PointsDigital Literacy JavaScript Sounds
.wav won't play when I click on them Any suggestions please?
Antonio Zammit
Courses Plus Student 1,630 Pointsthx Himanshu Chopra I solved it Changed Browser
Antonio Zammit
Courses Plus Student 1,630 Pointsthx Himanshu Chopra I solved it Changed Browser
Himanshu Chopra
3,055 PointsThat's Great :)
2 Answers
Elysha Spector
9,189 PointsHello Donte,
There are two ways that I know of to import audio into your workspace:
- Within your workspace, click the top "File" option, then select "Upload File".
- 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
1,961 PointsHow do i get a sound to the workspace? Thanks
Himanshu Chopra
3,055 PointsHimanshu Chopra
3,055 PointsHello Antaonio. Can you share your code please so that we can look into that.