The commitment of cells to pacemaker cell fates and their capacity to differentiate into pacemaker cells. Pacemaker cells are specialized cardiomyocytes that are responsible for regulating the timing of heart contractions.