The effect of preparation conditions and annealing treatment on Si-rich-SiOx layers was investigated. It was observed that oxygen plays important role in the creation of light-emitting centres. It was found that the emission in the green-orange spectral range is connected with silicon oxide defects which contain dangling bonds. At the same time PL band in the infrared spectral range is caused by recombination of carriers in amorphous silicon or nanocrystalline one. It is shown that modification of defect content under various treatments gives the possibility to control the emission properties of the layers.