Where do I start? Sound to frequency

I want to make a program that converts sound from a sound file format to a bunch of beeps with respective frequency.

For example, I can convert the buzzing of bees into a bunch of frequency lines which I can paste as code and run on a simple speaker that supports only frequencies (not exact but close).

Is there something like this already in existence to your knowledge?
See this thread, from the point I've linked down: http://www.cplusplus.com/forum/general/247022/#msg1090642
If you take a wav file (time domain) and convert it to frequencies (frequency domain) and then pump those frequencies into a speaker (time domain), all you've done is taken a roundabout method to play the wav file.

That leads me to think that there's more to this problem than what you've stated.
Not speaker. A beeper that is only capable of sending frequencies. I had a science project where I was using a beeper and I wanted to make the beeper beep in such a way that it mimicked bees (cmon people have made despacito tunes and what not with beepers, why not bee sounds!)

Btw total noob at tech & computers pls pardon ;)
Topic archived. No new replies allowed.