An audio output device and an electronic device are provided. The audio output device includes a plurality of speakers, a terminal connected with a sound source providing device, and a cable connecting the plurality of speakers and the terminal. The cable includes a wire, a flexible element arranged surrounding a portion of the wire, and an insulation member forming an outer sheath of the cable. The flexible element includes a first flexible electrode and a second flexible electrode, and a capacitance of the flexible element changes as the flexible element is deformed.