The process in which a relatively unspecialized floral cell acquires the specialized features of a sporocyte. Sporocytes are the haploid spores of angiosperms. Once formed, they undergo meiotic divisions to form microspores and megaspores.