According to Bulbapedia;
Chatter's power changed from 60 to 65. However, the move can no longer be used to record sound. Instead, the move will always confuse the target. Despite no longer being able to record sound, Chatter still cannot be copied by Sketch.
So no, it cannot be used to record sound in X&Y.