International audienceThe Spectrometer on INTEGRAL (SPI) instrument has observed the hard X-ray sky from 20 keV up to a few MeV for more than 15 yr. In this energy domain, the main emitters are compact objects for which SPI provides spectral information of prime interest. Recently, two transient sources reached very unusual flux levels and have been detected up to a few hundreds of keV with a high significance level. A drastic reduction of the systematic errors is thus required to obtain reliable spectra. This objective is achieved through an analysis including a detailed understanding of the instrument behavior. This paper presents both aspects of the data analysis: we first give a basic description of the instrumental issues, then we pres...