The capability will be offered as part of an AirPods software upgrade due later this year, sources say.