Drying, if you are drying your own
Updated
On this page5
Most spice businesses buy dried material. If you grow herbs, or buy fresh locally, the drying step is yours and it is the one that determines everything downstream.
When this applies to you
Realistically: culinary herbs, chilies, and anything you source from a grower rather than an importer. Whole tropical spices arrive dried and you are not going to improve on that.
It is worth saying plainly that drying your own is a choice about provenance and margin, not about quality. A well-dried commercial herb is very good.
Air drying and what it costs
Air drying is the established small-scale method and extension services publish on it in detail. It works, it needs almost no equipment, and it has one documented drawback: it significantly alters the flavor of herbs compared with the fresh material.
That is not a failure, it is what dried herbs are. But it means a dried basil is a different ingredient from a fresh one rather than a preserved version of it, and pretending otherwise sets a customer up to be disappointed.
The research direction, for context rather than for your kitchen, is toward methods that retain more of the volatile fraction. Vacuum microwave dehydration measurably increases retention of the key volatiles in basil and oregano against air drying.
Doing it properly
Warm, dark, moving air, and not much heat. Heat drives off the volatile oil you are trying to keep, so the temptation to speed it up is the temptation to make a weaker product. Darkness protects color.
Single layers rather than heaps, because a heap dries on the outside and stays damp in the middle, and the damp middle is where spoilage starts.
Knowing when it is done
Leaves should crumble rather than fold. Stems should snap rather than bend. If anything is still pliable, it holds enough water to cake the batch or spoil it once it is sealed.
Then let it sit sealed for a few days and check it again. Moisture equalizes between the dry and less-dry parts of a batch, and material that seemed done can come back to slightly damp once it is mixed together. That is the batch you would otherwise have jarred.