Arduino Speaker - how to do it?

Does it need to play audio or will a beep suffice?

The tone library can do a beep and it could be set to trigger based on a value from the accelerometer.

If you really need it to play audio then you will need some kind of audio board/shield.