+ 1
How to generate a simple sound using javascript?
I'seen some code to use sound oscilator, but i wanted something really simple, like, a line of code (or just some) to beep in a frequency. is there a way to do that using javascript?
2 Answers
+ 5
Use tone.js
https://code.sololearn.com/W0J6zL1yypQl/?ref=app
More information, please visit https://tonejs.github.io/
0
ok, it is good, but it generates a clickable square to produce the sound. How do I make the aound start automatically?