Amazon provided this, which doesn't necessarily have to run on a Raspberry Pi, and could be used to build what you want: https://github.com/amzn/alexa-avs-raspberry-pi
The hardware is still a problem, I've tried to find microphones like the one on the Echo, but the few that seem to meet the requirements basically cost half of the Echo. I'm not particularly knowledgeable when it comes to microphones, so I may very well be looking in the wrong places.