Respiratory assistance device that includes an assistance tube (2) intended to be introduced into the trachea of a patient, a circuit (3, 4, 5) for generating a flow of respiratory gas (G) that selectively feeds the said tube (2) and an electronic control logic (8), the circuit (3, 4, 5) generating a flow being piloted by the electronic logic (8), including the apparatus (1) in addition a ball (6) selectively Inflatable by electronic logic (8), the balloon (6) being mounted around the tube (2) to ensure the maintenance of the tube (2) in the trachea and prevent a return of gas from the trachea, including the apparatus (1) a pressure sensor (17) connected to the electronic logic (8) to selectively measure the pressure in the balloon (6) and a command and control interface (9) for a user, characterized in that the electronic logic (8) is configured to selectively perform a pre-extubation test as responses To an action through the command and control interface (9), including the pre-extubation test, the following sequence: - an order to deflate the balloon (6) below the determined inflation threshold, - then a measurement or a determination of a possible gas leak by comparing the volumes of incoming and outgoing gas from the tube (2), - a generation of an alarm if the measured or determined leak is below a certain threshold when the balloon (6) is deflated .Aparato de asistencia respiratoria que incluye un tubo (2) de asistencia destinado a ser introducido en la tráquea de un paciente, un circuito (3, 4, 5) de generación de un flujo de gas (G) respiratorio que alimenta selectivamente al citado tubo (2) y una lógica (8) electrónica de control, estando pilotado el circuito (3, 4, 5) de generación de un flujo por la lógicas (8) electrónica, incluyendo el aparato (1) además un balón (6) selectivamente inflable por la lógica (8) electrónica, estando montado el balón (6) alrededor del tubo (2) para asegurar el mantenimiento del tubo (2) en la tráquea e impedir un retorno del