Both sentences can be understood, but "while listening to the voice record" is more commonly used and sounds more natural in English. So, the better option is:
“I was sleepy while listening to the voice record.”
The word "while" indicates that the sleepiness occurred during the activity of listening.