Great idea that can't happen. Publishers won't allow it. By adding a feature like this to ebooks--in their minds--you're cutting into their audio book profits.
Kindle had a function like you refer to and they were forced to remove it.
(But forgive me if my information is out of date.)