A version of a scheme of speckle intefferometry is considered, which is intended for the analysis of the distribution of refractive-index gradients in optically transparent media. The application of this approach to problems of hydrodynamics and gas dynamics makes it possible to determine the structure of the distribution of optical inhomogeneities in liquid and gaseous flows. The method is based on the recording of patterns of two speckle structures obtained in the plane of spatial frequencies by using illumination with an auxiliary speckle structure. One speckle structure is formed in the absence of an object, and the other one is formed by transilluminating an object. In comparison with other known phase methods, the speckle-interferometry methods make it possible to change the measurement sensitivity in a wide range and substantially simplify the interpretation of the results obtained.