The phrase "to toast the spices" means to heat them gently in a dry frying pan or oven to enhance their flavors and aromas.