The problem you are facing can be solved easily by changing one line in your code, i.e:
if(givenText.getText().toString().equals(inputText.getText().toString())){
Change that to:
if(givenText.getText().toString().equalsIgnoreCase(inputText.getText().toString())){
Also, a general observation that I made when I was working on a similar app, I noticed that the Speech Recognition API isn't perfect and will not work well unless you/your user has an accent that matches the one that the API was trained on. So, in order to fix this you should consider going through the ArrayList of strings returned and checking ALL of them to see if any one of them matches the text you showed the user.