An electronic device according to an embodiment of this document includes: a first housing; a second housing coupled to the first housing and movable relative to the first housing; a speaker disposed in the first housing and outputting an
audio signal; a
flexible display disposed at least partially in the first and second housings, wherein the size of an area visually exposed by the front surface of the electronic device can be expanded according to movement of the second housing; a first conduit formed in the first housing such that the
audio signal is output to the outside of the first housing; a second conduit formed at a position corresponding to the first conduit when the movement distance of the second housing is within a first range, and formed in the second housing such that the
audio signal is output to the outside of the electronic device via the first conduit; a third conduit connected to the first conduit when the movement distance of the second housing is within a second range, and formed in the second housing such that the audio
signal is output to the outside of the electronic device; and a processor operatively connected to the speaker and the
flexible display, wherein the processor can sense the movement distance of the second housing relative to the first housing and correct the characteristics of the audio
signal generated by the speaker based on the sensed movement distance. According to the various embodiments described herein, the shape of the conduit for
sound emission from an audio module such as a
loudspeaker changes in response to changes in the shape of the electronic device, thus providing the user with optimal acoustic service through a structure that adapts to changes in shape.