Patent attributes
An electronic device may have a metal housing. The metal housing may have an upper housing in which a component such as a display is mounted and a lower housing in which a component such as a keyboard is mounted. Hinges may be used to mount the upper housing to the lower housing for rotation about a rotational axis. A slot-shaped opening may separate the upper and lower housing. A flexible printed circuit with ground traces may bisect the slot-shaped opening to form first and second slots. Cavity antennas may be aligned with the slots. Each cavity antenna may include a hollow carrier with a pair of speakers. The speakers may have ports that emit sound through aligned openings in the lower housing. Conductive gaskets surrounding the ports may acoustically seal the speaker ports while shorting the cavity antenna to the lower housing.