The classic technique for most spices is to roast them.
This can be done in a dry pan because the spices cotain their own oils, you just need to make sure that they don't burn.
The spices are usually used in the dish from the start so that they have time to infuse, but it is not always the case, for instance there are many dishes which add Garam Masala spice mix towards the end of the cooking although the spices have again usually been roasted before they are used.
Regarding grinding them, again it does vary.
Some spices are added whole but will then have to be removed before eating, some spice mixes are ground so they are eaten with the dish.
All spices as far as I am aware should be roasted whole though so you would usually roast them and then grind them to produce the spice mix.
cooking.stackexchange.com/users/126/Ian Turner
Most of the flavors components found in these dried spices are oil-soluble, so you will indeed extract more flavor out of them if there is at least a bit of fat in the dish.
Also, it is helpful to rub them between your fingers before adding, to release the oils.
cooking.stackexchange.com/users/1393/Michael Natkin
It really depends on the specific spice.
In my experience with Indian and Chinese cooking, ginger and cumin like oil and heat.
On the other hand, turmeric and cloves can't take that heat and are added only after the liquids.
Sometimes (I learnt this form Italian cooking)
there are spices that will work in both cases, but differently.
As an example, when I'm making lasagna, I add nutmeg in three places: When sauteeing the onions in olive oil at the start When all the tomato sauce ingredients are in
and it's got some water Rubbed in to some chilli flakes and sprinkled among the cheese on top Herbs, on the contrary, always need at least a little water to infuse into.
cooking.stackexchange.com/users/611/Carmi
It depends on what your cooking and what form the spice is in.
For example, with soups you want to add the spices to the base--often a mix of gently sauteed onion and olive oil.
Add the spices and saute until fragrant.
With cookies you'll want to add them with the dry ingredients and whisk them into the flour.
Meats and seafoods
you may coat the meat with the spice blend like a rub or mix the spices into the flour and then coat before braising or baking.
Whole spices may be added throughout the cooking period and then strained out before eating (pepper corns, bay leaves, whole cloves, star anise, etc.)
But yes...dry roasting spices really amps up the flavor.
So does grinding them fresh before using.
Or at least grind several tablespoons at time if you don't want to hassle with a spice grinder each time.
Good luck and enjoy!
cooking.stackexchange.com/users/5027/Spice Sherpa
Yes on the comments about the positive effects oil may have: make sure that you're not using more oil than you're prepared to consume, as you will throw away flavor with any oil you're not using.
So marinading in (plenty) of oil, and then discarding this oil before cooking, will paradoxically discard flavor instead of adding it.
cooking.stackexchange.com/users/8457/Tobias Op Den Brouw
If I have a group of spices, all dried and ground, say: nutmeg, clove, cinnamon, ginger, and black pepper...   I'm curious about how to maximize their flavor for a drink or dish, and in what liquids spices are ideally soluble.    Do they need or benefit from sauteeing in oil, or is simmering in water better? Does the liquid need to be hot? Should they be toasted? Or mixed in a food grinder? Or just added directly to the dish?  Gracias.
What technique best infuses spices into a dish?
cooking.stackexchange.com
<spices><flavor>
cooking.stackexchange.com/questions/3560
cooking.stackexchange.com/users/1443/Ocaasi
While it depends on the spices used, most flavours contained in dried spices are oil-soluble and can be extracted well when roasted or cooked in oil. It depends on the specific spice but most spices are either roasted or cooked in oil to maximise their flavours.
It depends on the specific spice but most spices are either roasted or cooked in oil to maximise their flavours.