There are phone apps that are designed for this, they record sound and will detect snoring. My neighbor used it to see if she needed to get a sleep study, as she was concerned she may have sleep apnea and lived alone. There are several of them...
This site is run by Ivar at in Santiago de Compostela.
This site participates in the Amazon Affiliate program, designed to provide a means for Ivar to earn fees by linking to Amazon