Temperature. In general, the cooler the medium is, the slower the speed of sound. Particles of cool materials move more slowly and transmit energy more slowly than particles do in warmer materials.
*A medium is a substance through which a wave can travel/a physical environment in which phenomena can occur. Most of the sounds that you hear travel through air at least part of the time- but sound waves can also travel through other materials, such as water, glass, and metal.*