# Is the Audio in Three.js ready for production?

**URL:** <https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315>\
**Category:** Questions\
**Tags:** audio\
**Created:** [August 31, 2020, 5:21pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315 "2020-08-31T17:21:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond\_Herrera](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@Raymond\_Herrera](https://discourse.threejs.org/u/Raymond_Herrera)\
**Post date:** [August 31, 2020, 5:21pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315/1 "2020-08-31T17:21:32Z")

</div>

I am having serious problems playing audio. Several of the Freelancers that I hire have struggled to play sounds.

One of them tells me: “If I cannot play that welcome sound in Three.js, I will use the native Javascript library”. Is that the case? Are there options?

I gave him a \*.wav file and another in the \*.ogg format, to see whether there is a difference.

This is one of the applications that finally works properly:

[http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Vector-Generation/](http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Vector-Generation/)

It sounds upon entrance, and every time the user clicks on refresh. It cannot possibly get any simpler.

Here’s a perfect example, posted here recently.

[https://discourse.threejs.org/t/interactive-music-video-with-threejs/18220](https://discourse.threejs.org/t/interactive-music-video-with-threejs/18220)

In the Internet site, it works perfectly:

[http://splicy.com/](http://splicy.com/)

In my PC, under Visual Studio Code and XAMPP, there is no sound.

TIA

---

<div class="post-metadata">

**Author:** ![Raymond\_Herrera](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@Raymond\_Herrera](https://discourse.threejs.org/u/Raymond_Herrera)\
**Post date:** [August 31, 2020, 5:38pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315/2 "2020-08-31T17:38:52Z")

</div>

In my Linux server, no audio, either:

[http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/](http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/)

Thanks

---

<div class="post-metadata">

**Author:** ![dubois](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dubois](https://discourse.threejs.org/u/dubois)\
**Post date:** [August 31, 2020, 6:13pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315/3 "2020-08-31T18:13:20Z")

</div>

I doubt that this is linux related. Are there any websites you can access from that machine that play sounds? If so, i think you should be able to do so in your three app as well. I do see a 404 for an mp3 file in this last link, but i also wasnt able to load the page at all.

---

<div class="post-metadata">

**Author:** ![Raymond\_Herrera](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@Raymond\_Herrera](https://discourse.threejs.org/u/Raymond_Herrera)\
**Post date:** [August 31, 2020, 6:35pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315/4 "2020-08-31T18:35:40Z")

</div>

> [@dubois](#):
>
> I do see a 404 for an mp3 file in this last link,

How do you see that? I have tried with the 3 main browsers and there is no 404.

[http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/](http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/)

Do I need to be in developer mode?

Also: Your tip was very useful. There is no sound file.

 ![No Sound File](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/e/e673880753fbcd095ec92ce0e51c9d7a35e8c0b2.jpeg)

 ![Missing MP3](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/2/24974169a16e330100598ee0f4b3ef920c9c1639.jpeg)

The folder “music” doesn’t even exist in the version that has been published in GitHub.

I will record the audio from the site that works.

Thanks!

---

<div class="post-metadata">

**Author:** ![Raymond\_Herrera](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@Raymond\_Herrera](https://discourse.threejs.org/u/Raymond_Herrera)\
**Post date:** [August 31, 2020, 7:28pm UTC](https://discourse.threejs.org/t/is-the-audio-in-three-js-ready-for-production/18315/5 "2020-08-31T19:28:46Z")

</div>

Problem fixed!

[http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/](http://www.dealey-plaza.org/this-government-as-promised/SBT-MBT-Tools/Haags-Measurement-Tool/Those-Girls-You-Know/)

I recorded the audio track from the official website with Camtasia and saved it as MP3 with Adobe Audition.

Furthermore, from now on, I will use \*.mp3 files. They are known to work.

Thanks!

-Ramon  
**JFK Numbers**
