Sorry. You did not say you are a noob.
If you are driving a single speaker then you should use the schematic and pcb design in the datasheet with the bridged amplifier for more output power.
Use a 6V battery and an 8 ohm speaker for an output power of 1.35W with a lot of clipping distortion or 1W with low distortion.
The TDA2822 has a 16 pins case and the TDA2822M has a smaller 8 pins case. Each one has its own datasheet to avoid confusion of the pins functions.