implement generate prediction by voice