HMM methods in speech recognition