Changing smoke alarm battery

Smoke alarms will beep when the battery is close to dead, replacements can be bought at walmart, home depot, lowes, etc. Please check the battery type in advance for a smooth process