What do you mean by 'flavor.' Most cannabis herbal material doesn't 'taste' all that good when eaten, chewed, etc. on its own. With the product usually ingested in vapor/aerosol (including smoke) state, I presume what most people might call 'flavor' is really much more the scent, from sense of smell, not what they taste in their mouth (which is generally over-powered by scent/smell if present).
Do you really mean a pleasant olfactory or odor-based sensation likely mostly related to terpene profiles? Or are you referring to actual buds' taste for some edibles applications?