Hypnagogia. It happens during sleep onset, though sometimes you might be more aware of it than at other times. It can consist of audio hallucinations like yours, visual hallucinations including shadowy figures or pets in your bed or all the such.

So, aye, hypnagogia is curious. And it's all the more curious as to what influences awareness of it.