Method for controlling an electric machine controlled by an inverter provided with several switching arms, wherein the following steps are implemented: a. a torque setpoint (Cem*) of said electric machine is acquired; b. a setpoint or a measurement of at least one operating variable of said electric machine is acquired, said operating variable being a quantity which characterizes the operation of the electric machine; notably, the operating variable is an electrical variable such as the voltage, the current, or the power of the electric machine or a mechanical variable such as the position, the speed or the acceleration of the rotor of the electric machine; c. a correction parameter (Pco) of an operating variable is determined as a function of an absolute voltage prediction which is dependent on the currents in the phases of said electric machine, and as a function of voltage setpoints V d sp and V q sp, said absolute voltage prediction being determined by means of the measurements of the currents in the phases by an estimator; d. current setpoints i d sp and i q sp of said electric machine are determined by means of a control model which connects said torque setpoint (Cem*) and said at least one operating variable, an operating variable (VAR corr) being corrected by means of said correction parameter (Pco); e. an operating mode of said electric machine is determined, and a method (1PI; 2PI) for servo-controlling said current setpoints i d sp and i q sp is determined as a function of said operating mode of said electric machine, said servo-control method connecting said voltage setpoints to said current setpoints i d sp and i q sp, said servo-control method being chosen from among a complete servo-control method, in which the servo-controlling of the "forward" and "quadrature" components of the currents is simultaneous, or a fixed-voltage servo-control method, in which only one of the components of the currents is servo-controlled, the second component then being uncontrolled; f. said determined servo-control method (1PI; 2PI) is applied to said current setpoints i d sp and i q sp in order to determine said voltage setpoints V d sp, V q sp; g. a switching control signal for said inverter is determined by means of said voltage setpoints; and h. said inverter is controlled by means of said control signal. a. a torque setpoint (Cem*) of said electric machine is acquired; b. a setpoint or a measurement of at least one operating variable of said electric machine is acquired, said operating variable being a quantity which characterizes the operation of the electric machine; notably, the operating variable is an electrical variable such as the voltage, the current, or the power of the electric machine or a mechanical variable such as the position, the speed or the acceleration of the rotor of the electric machine; c. a correction parameter (Pco) of an operating variable is determined as a function of an absolute voltage prediction which is dependent on the currents in the phases of said electric machine, and as a function of voltage setpoints V d sp and V q sp, said absolute voltage prediction being determined by means of the measurements of the currents in the phases by an estimator; d. current setpoints i d sp and i q sp of said electric machine are determined by means of a control model which connects said torque setpoint (Cem*) and said at least one operating variable, an operating variable (VAR corr) being corrected by means of said correction parameter (Pco); e. an operating mode of said electric machine is determined, and a method (1PI; 2PI) for servo-controlling said current setpoints i d sp and i q sp is determined as a function of said operating mode of said electric machine, said servo-control method connecting said voltage setpoints to said current setpoints i d sp and i q sp, said servo-control method being chosen from among a complete servo-control method, in which the servo-controlling of the "forward" and "quadrature" components of the currents is simultaneous, or a fixed-voltage servo-control method, in which only one of the components of the currents is servo-controlled, the second component then being uncontrolled; f. said determined servo-control method (1PI; 2PI) is applied to said current setpoints i d sp and i q sp in order to determine said voltage setpoints V d sp, V q sp; g. a switching control signal for said inverter is determined by means of said voltage setpoints; and h. said inverter is controlled by means of said control signal.