A device for controlling a loudspeaker in an enclosure, the loudspeaker comprising a diaphragm, the loudspeaker comprises at least one coil, the enclosure having a structure, the device comprising: - an input for an audio signal (S audio_ref) to be reproduced, - an output for supplying a control signal (S commande) of the loudspeaker, - a unit for determining a desired dynamic signal (S dyn), representative of a desired dynamic property (A ref) of the diaphragm of the loudspeaker, as a function of the audio signal (S audio_ref) to be reproduced and the structure of the enclosure, - a unit for duplicating the desired dynamic signal (S dyn) to obtain two identical desired dynamic signals (S dyn1, S dyn2), - a first processing unit configured to process the first desired dynamic signal (S dyn1) to obtain a first processed signal (S dyn1 ') whereof the frequencies are less than or equal to a predetermined frequency, the first processing unit comprising: - an excursion limiter configured to: - determine an excursion signal (S exc), representative of the excursion of the diaphragm of the loudspeaker, as a function of the desired first dynamic signal (S dyn1), - determine the maximum excursion of the excursion signal (S exc), and - when the determined maximum excursion is strictly greater than an acceptable maximum excursion, apply a first attenuation gain to the excursion signal to obtain an attenuated excursion signal (S exc_att), - a module for filtering frequencies of the attenuated excursion signal (S exc_att) strictly higher than the predetermined frequency to obtain a filtered excursion signal (S exc_filt), - a module for determining a first intensity signal (S int1), representative of the intensity of the current suitable for circulating in the coil of the loudspeaker, as a function of the filtered excursion signal (S exc_filt) and an electromechanical model of the loudspeaker, and - a current limiter configured to set at a predetermined intensity value, all of the values of the first intensity signal (S int1) strictly higher than the predetermined intensity value and thus to obtain an attenuated first intensity signal (S int1_att), the first processed signal (S dyn1 ') being obtained as a function of the attenuated first intensity signal (S int1_att), - a second processing unit configured to process the second desired dynamic signal (S dyn2) to obtain a second processed signal (S dyn2 ') whereof the frequencies are strictly greater than the predetermined frequency, and - a unit for combining the processed first and second signals (S dyn1 ', S dyn2 ') to obtain the control signal (S commande) of the loudspeaker. - an input for an audio signal (S audio_ref) to be reproduced, - an output for supplying a control signal (S commande) of the loudspeaker, - a unit for determining a desired dynamic signal (S dyn), representative of a desired dynamic property (A ref) of the diaphragm of the loudspeaker, as a function of the audio signal (S audio_ref) to be reproduced and the structure of the enclosure, - a unit for duplicating the desired dynamic signal (S dyn) to obtain two identical desired dynamic signals (S dyn1, S dyn2), - a first processing unit configured to process the first desired dynamic signal (S dyn1) to obtain a first processed signal (S dyn1 ') whereof the frequencies are less than or equal to a predetermined frequency, the first processing unit comprising: - an excursion limiter configured to: - determine an excursion signal (S exc), representative of the excursion of the diaphragm of the loudspeaker, as a function of the desired first dynamic signal (S dyn1), - determine the maximum excursion of the excursion signal (S exc), and - when the determined maximum excursion is strictly greater than an acceptable maximum excursion, apply a first attenuation gain to the excursion signal to obtain an attenuated excursion signal (S exc_att), - determine an excursion signal (S exc), representative of the excursion of the diaphragm of the loudspeaker, as a function of the desired first dynamic signal (S dyn1), - determine the maximum excursion of the excursion signal (S exc), and - when the determined maximum excursion is strictly greater than an acceptable maximum excursion, apply a first attenuation gain to the excursion signal to obtain an attenuated excursion signal (S exc_att), - a module for filtering frequencies of the attenuated excursion signal (S exc_att) strictly higher than the predetermined frequency to obtain a filtered excursion signal (S exc_filt), - a module for determining a first intensity signal (S int1), representative of the intensity of the current suitable for circulating in the coil of the loudspeaker, as a function of the filtered excursion signal (S exc_filt) and an electromechanical model of the loudspeaker, and - a current limiter configured to set at a predetermined intensity value, all of the values of the first intensity signal (S int1) strictly higher than the predetermined intensity value and thus to obtain an attenuated first intensity signal (S int1_att), the first processed signal (S dyn1 ') being obtained as a function of the attenuated first intensity signal (S int1_att), - a second processing unit configured to process the second desired dynamic signal (S dyn2) to obtain a second processed signal (S dyn2 ') whereof the frequencies are strictly greater than the predetermined frequency, and - a unit for combining the processed first and second signals (S dyn1 ', S dyn2 ') to obtain the control signal (S commande) of the loudspeaker.