I want to create a project where my Raspberry Pi Micro-controller can listen to my parrot talking and then talk back to him. I would need my rpi to listen to some of his phrases at least 100 times so that the pi could recognize that certain phrase and then say it back to him and also to know when to use it to talk back to him. I would also like to use it to teach him new phrases and new sounds. I would like to know if this is even possible and what hardware and software I would use to go about this?
I have already asked this in the Raspberry Pi stack exchange but have recieved no answers.