building a web app for automatic speech recognition with training features