The mechanisms that give rise to the broadening and the shifts of the Raman peaks of titanium dioxide and lead titanate nanocrystals prepared by sol-gel are discussed. Phonon confinement and oxygen deficiency are competitive mechanisms in TiO2 obtained by different sol-gel preparations whereas pressure effects on the nanocrystals predominate in ferroelectric PbTiO3.