A portable electronic device may have acoustic ports such as microphone and speaker ports. Acoustic devices such as microphones and speakers may be associated with the acoustic ports. An acoustic port may have an opening between an interior and exterior of the portable electronic device. The opening may be covered by a metal mesh. An acoustic fabric may be interposed between the metal mesh and the opening. The opening may be formed from a hole in a glass member having outer and inner chamfers. A microphone boot may be provided that forms front and rear radial seals with a housing of the device and a microphone unit respectively. The microphone boot may also form multiple face seals with the microphone unit. A speaker for the speaker port may be enclosed in a sealed speaker enclosure. The speaker enclosure may have a pressure-equalizing vent slit covered with an acoustic mesh.