The speed of sound in an ideal gas depends on temperature and gas composition, but is independent of pressure at constant temperature. Humidity affects it (water vapor changes gas properties), temperature affects it directly, and 'volume' is not a property that changes the speed of sound in the physics context of this question.