Comparing sound

I’m trying to make my own translator. I know I know there probably hundreds of thousands out there, so can we skip all that. OK now that we got that outta the way I need to know how do i compare sounds in processing is there a way to? I’ve looked online and was only led to sound library where i didnt see a compare or = atm i’m just using a syfy sound. Eventually I wanna place it in glasses & have it translate conversations so I can flirt with nonenglish girls