Post circuit and datasheet of device. See attached circuit. Connect Pins 1 to 6 and 8, 9 to MCU directly and also pin 27. Pin 27 should be connected to MCU pin and also to 4.7k as shown. Remove slider switch at pin 27 and also push button switches at pins 6 to 7 and 8, 9.
Now make MCU pin connected to pin 27 high (5V) to playback messages and low to record messages. Make pins of MCU connected to pins 1 to 6 and 8. 9 low and then high to playback respective messages when pin 27 is high for playback.