The invention discloses a voiceprint recognition method and a device, computer equipment and a storage medium, and belongs to the technical field of artificial intelligence, and the method comprises the steps: obtaining a to-be-recognized voice, carrying out the framing of the to-be-recognized voice, and obtaining an audio frame set; performing Fourier transform on the audio frame to obtain sequence information of the voice data; inputting the sequence information into a pre-trained self-attention voiceprint recognition model, and obtaining a voiceprint feature matrix of the audio frame; and splicing the voiceprint feature matrixes to obtain a voiceprint recognition result of the to-be-recognized voice. In addition, the invention also relates to a blockchain technology, and the to-be-recognized voice can be stored in a blockchain. According to the method, training and prediction of the voiceprint recognition model are carried out by adopting the neural network, the voice features are mapped to the hidden spaces by adopting the self-attention mechanism to be processed respectively, and finally the processing results of all the audio frames are spliced to obtain the recognition result of the to-be-recognized voice, so that parallel operation can be realized, and the identification precision is considered while the identification efficiency is ensured.