Abstract This paper firstly researches the optimization of the teaching process and teaching language according to the English teaching objectives and teaching contents and summarizes the optimization strategy of university English teachers’ language so as to improve the efficiency of English teaching. Secondly, on the basis of applying the optimization theory, the formal description of English utterances and word splitting is carried out, followed by obtaining the features of English utterances through the selection function and further constructing the English utterance alignment model by using the particle swarm optimization algorithm. Then, we study the application of English utterance alignment in English teaching, which is mainly embodied in the construction of the English teaching corpus, word frequency list, and core word lexicon, followed by the analysis of the practical application in English teaching. The results show that in terms of algorithm performance, the correct rate of utterance alignment based on the particle swarm optimization algorithm is 0.82, and the correct rate of utterance alignment is also improved to a great extent. On speaking teaching, self-efficacy showed a significant correlation with cognitive strategies, metacognitive strategies, affective strategies, communicative strategies, compensatory strategies, and memory strategies, and their corresponding coefficient values were 0.652, 0.716, 0.741, 0.732, 0.718, and 0.748, which indicated that the better self-efficacy was, the higher the scores of speaking memory strategies were.