The speed of a mechanical wave, such as sound (in some gas) or a vibrating string, is determined by the material condition of the medium. For sound, the temperature and molecular mass of the gas determine the speed of the wave, $C$. The particular source (vocal folds or a loudspeaker cone) will determine the frequency mixture of the compression wave, and the wavelength or waveform in the gas will conform to
$$\lambda = \frac{C}{f}$$ for each frequency component ( see Fourier series)
For a string, the material density, diameter, and tension will determine the speed, and again, the source will determine the frequency (not discussing resonant frequencies in this answer). Again, the wavelength will obey the previous equation.
If you have two different media conditions (two layers of a gas at two different temperatures) one could have two different frequency sources which would produce equal wavelengths in those two media. If one has a single homogeneous medium, however, it's not possible to have a common wavelength with two different frequencies.