abstract |
An electronic device and a method of controlling the electronic device are provided. The electronic device includes a main body configured to provide an accommodation space, a speaker module configured to output sound, and an accessory device configured to be accommodated in the accommodation space. In a state where the accessory device is accommodated in the accommodation space, the accessory device is configured to provide a passage that transmits the sound output from the speaker module, and in a state where the accessory device is separated from the accommodation space, the accommodation space provides the passage that transmits the sound output from the speaker module. |