This may only be done if the patient has expressly permitted its inclusion and use in education. This permission is always required. A patient assumes a confidential environment and in most cases the attending physician has to observe medical professional secrecy.
You should also be aware of the possibility that the interview and therefore the recording may include personal data. The personal data may be mentioned literally, or a combination of (medical) data may make it possible to establish the patient's identity. If that is the case, you are dealing with (medical) personal data, which must be handled with the utmost care. For example, the recording must not be stored for longer than necessary. You should also take a good look at the obligations imposed by the GDPR. For example, you will have to take appropriate technical and organisational measures to protect the (medical) personal data against loss and any form of unlawful processing.
Given the drastic measures to be taken for recordings containing (medical) personal data, it is advisable to ensure that the conversation does not include any personal data. You must therefore avoid any data that can be directly or indirectly traced back to the patient in question. Even then, the above-mentioned patient permission remains necessary.