I think this is too late to play the sound. I think the camera stops recording 500ms or more before this device storage event is sent.  I'd move this code to stopRecording() or to toggleRecording() instead.