How to play a beep sound using java script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to play a beep sound using java script?

I was curious how to play an arbitrary note using java script? For example I want to play a C or D note, or I want to imitate sounds of the phone when you press different digits. How to do it? Thanks

17th Jan 2018, 8:16 AM
wave rider
7 Answers
23rd Apr 2018, 3:10 AM
Morpheus
Morpheus - avatar
+ 6
yeah it works on android...😊😎
17th Jan 2018, 8:45 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 4
works =P
17th Jan 2018, 11:01 AM
João Duarte
João Duarte - avatar
+ 3
I found an example on the web http://jsfiddle.net/55Kfu/1506/ It works on the iPhone Does it work on Android in Sololearn playground? https://code.sololearn.com/WkF7LlaguR26/?ref=app
17th Jan 2018, 8:19 AM
wave rider
+ 3
Thank you for your tests, guys
17th Jan 2018, 6:02 PM
wave rider
+ 3
This link contains an amazing example of using sounds in java script http://outputchannel.com/post/recreating-phone-sounds-web-audio/ It is fun !
17th Jan 2018, 6:04 PM
wave rider
+ 2
love to learn
17th Jan 2018, 8:37 AM
Android Boi
Android Boi - avatar