0

I'm developing a web application for employees of an enterprise and what I need is to make the motherboard to generate a sound on an event in a webpage in my application. I know about embedding a WAV file in my html and play it, but the constraint is that nearly all of my users don't have any speakers attached to their PCs. I've read about a solution that enables me to do that via an "applet". That's a way to do that, but you know the headache of installing Java on all the clients. So I want a more clear way to that.

Is there any one having such experience or any idea? I would love to hear about it.

Thanks a lot folks

Hosein
  • 546
  • 1
  • 7
  • 27
  • 1
    It's impossible with JavaScript only. – helpermethod Jul 29 '14 at 08:21
  • 1
    I think its not possible with Javascript in Webpage you need to look at some things like javascript with node-webkit or some thing else to create a desktop based solution which can access hardware – Arun Kumar Jul 29 '14 at 08:21
  • @maremp I read that question. It doesn't have any idea about my situation about not having access to speakers. – Hosein Jul 29 '14 at 08:25
  • http://www.computerhope.com/beep.htm – Deepanshu J bedi Jul 29 '14 at 08:27
  • @ArunKumar Thank you. Do you have any resource link about that? – Hosein Jul 29 '14 at 08:28
  • @Hosein it's still a duplicate since the base premise doesn't change: JS cannot access the native beep functionality. – Niels Keurentjes Jul 29 '14 at 08:30
  • @Hosein you've tagged web-audio. Accessing to speakers is web audio. JavaScript doesn't have access to system's beep. I can't imagine how annoying it would be if it did. And FYI, newer systems (I can say for sure it's the case with Windows 7+ and OS X) don't have access to beep either, it's done as a system sound, which can be disabled. – Marko Gresak Jul 29 '14 at 08:33
  • @NielsKeurentjes So is there another way like the applet solution to do that? – Hosein Jul 29 '14 at 08:34
  • 1
    @Hosein You can check these out [System Beep](https://gist.github.com/taterbase/3154646) [BeepBeep](https://www.npmjs.org/package/beepbeep) [Html5 Desktop App with Node-Webkit](http://code.tutsplus.com/tutorials/introduction-to-html5-desktop-apps-with-node-webkit--net-36296) – Arun Kumar Jul 29 '14 at 08:36

0 Answers0