building a API to listen for speech events