Apple has agreed to a $95 million settlement to resolve a class action lawsuit alleging that its voice-activated assistant, Siri, recorded private conversations without users' consent.