A method for generating a flow profile of an inhalation device is described. The method comprises the step of measuring acoustic emissions induced by inhalation flow through the inhalation device. The method further comprises the step of detecting peak frequencies in the measured acoustic emissions and generating a flow profile based on the detected peak frequencies. A corresponding device is also described.