Some might find it easier to remove the speaker assembly out of its housing by first disconnecting the inverter cable at this point (Step 19 below),
And when reinstalling, push the metal ears from behind to snap the connector back into the socket
Use the tip of the spudger on the plastic ear at the back of the connector (the ear is on the battery side), to push the connector out of the socket.
The ribbon connector held in the socket by a tiny square on top, which enters a square hole in the top of the socket. An xacto blade used to pry the top of the connector gently up will help release the connector.
Use the corner of the flat edge of a spudger to push alternately on the metal ears to help disconnect the cable.