First of all, rinse rice and cook it with 400 ml water, salt and turmeric powder until al dente.
Now drain your rice and keep aside.
Heat ghee in a pan and splutter whole spices in it.
Then cook vegetables in this ghee on medium flame until al dente.
Finally, add half cooked rice in this vegetable mixture. Cover a lid and cook rice and vegetables together on low flame for 5 minutes.
When we will cook rice on low flame with vegetables, then rice and vegetables will cook completely and rice will absorb flavors of vegetables and spices.
When rice will cook completely then switch off the flame. Mix your biryani well and serve it hot.