简体   繁体   中英

how to generate sound of exact frequecy in javascript

I want to create a project in JavaScript in which I want to generate sounds of all frequency from 20 to 20K. is there any way to do ? I have used http://codebase.es/riffwave/ this library also but if I select frequency of sound greater than 20K db, I am still hearing that. so this js library is not accurate according to my need. can you suggest some way in achieving my task.

The Web Audio API can be used to generate sounds. http://chimera.labs.oreilly.com/books/1234000001552/ch04.html#s04_5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM