How can I do for recognition difference from sound (a) from sound (b) and after it program says right I am or I am wrong.
Try the personal audio classifier
This is a tool that can determine similarities between different sounds by training an audio model using a Spectogram. It is a free extension to use with App Inventor.
How it works