A neural network approach to speech recognition