The whistle sound produced by a whistling teapot is based on the same mechanism as that of an organ pipe or flute. The length of the spout determines the pitch of the sound; a shorter spout produces a higher pitch and a longer spout makes a lower pitched whistle.