I do not think EJS has build in element for sound to play at particular frequency.
But EJS is a code generator: It means that you can add any java library into ejs.
So find a library that can do the things you want and add it to EJS library.
And you can add code to use functions available in the library.