In a bowl of cold water, soak the rice for a few minutes. In a strainer, rinse the rice under cold running water. Drain.
In a saucepan, brown the onion in the oil. Add the garlic and spices and cook for 1 minute while stirring. Add the rice and stir to coat with the spice and oil mixture. Add the broth, season with salt and bring to a boil. Reduce the heat and stir. Cover and simmer over low heat for about 20 minutes (without stirring or lifting the lid). Remove from the heat and let stand for 10 minutes. Fluff the rice with a fork to blend the onions that have risen to the surface.