Apart from consent, such processing may be based on a demonstrated legitimate interest.
However, the subjects of personal data should be informed in advance (for example, through the voice machine) that the conversation will be recorded and that the personal data will be processed for the purpose of improving the service.