Both mean to express yourself, but the context is different.
Speak up is more personal — it's about finding the confidence to say what you think, often in a small or immediate situation like a meeting, a classroom, or a conversation.
Speak out is more public — it suggests taking a stand on a broader issue, often in front of an audience or in society generally.