。
As a friend, I spoke my mind.
Literal
Friend [as-として] I [topic-は] opinion [object-を] said.
として marks a role or capacity — 'in my role as a friend.' It is a compound particle (と + the te-form of する) that has frozen into a fixed postposition. The explicit 私は is unusual in casual Japanese but here emphasizes personal responsibility for the opinion.