Original Post
I''m making a chatterbot, and it currently uses text, but I''m trying to make it able to handle different types of data, one of them being sound, but I can''t figure out a good way to compare two points in a sound wave. I tried storing the wave as volume and frequency over time, but I can''t figure out how to calculate the frequency. I tried going by the distance from the peaks in the wave, but that didn''t work very well, I think becase it look like little waves superimposed on a bigger wave, so I''m not even sure it''s possible to store sound in the way I want.
How do you calculate the frequency, or is there a better way?