It is legal to record a conversation, even without notifying other people, as long as we participate in the conversation. This is because if other people voluntarily agree to talk to us, they are responsible for everything they say.
It is not legal record a conversation in which we did not participate without consent of those people we are recording.
*According to Spanish Regulations