refactor speech to text to put handler specific code in its own file.