Patent attributes
A method and an apparatus for generating a g2p model based on AI are provided. The method includes: during performing a grapheme-to-phoneme conversion training by a neural network on each word in training data, screening nodes in a hidden layer of the neural network randomly according to a preset node ratio so as to obtain retaining nodes for training each word; training each word with a sub-neural network corresponding to the retaining nodes and updating a weight of each retaining node of the sub-neural network; and performing a mean processing on the weights of the retaining nodes of respective sub-neural networks, so as to generate the grapheme-to-phoneme model.