1. A method for optimizing a continuous density hidden Markov model (CDHMM), implemented at least in part by a computer, the method comprising: imposing a constraint for discriminative training; approximating an objective function as a smooth function of CDHMM parameters; and performing a constrained line search on the smoothed function to optimize values of the CDHMM parameters.