1. A speech recognition method, comprising: acquiring a text file specified by a user, and extracting a command word from the text file according to a predetermined rule, to obtain a command word list; comparing the command word list with a command word library, to confirm whether the command word list comprises a new command word, wherein the new command word is a command word that is comprised in the command word list but not comprised in the command word library; if the command word list comprises the new command word, generating a corresponding new pronunciation dictionary according to the new command word and performing training to obtain a new language model; merging the new language model into a language model library corresponding to the command word library; and receiving speech, and performing speech recognition on the speech according to an acoustic model, a phonation dictionary, and the language model library that are corresponding to the command word library.