10. An electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit; wherein the circuit board is enclosed by the housing; the processor and the memory are positioned on the circuit board; the power supply circuit is configured to provide power for respective circuits or components of the electronic device; the memory is configured to store executable program codes; and the processor is configured to run a program corresponding to the executable program codes by reading the executable program codes stored in the memory, to perform a method for processing a video, the method comprising: performing a target recognition to A first video segments and B first speech segments to obtain M second video segments and N second speech segments, wherein the A first video segments and the B first speech segments are obtained by dividing an inputted video, the M second video segments comprise a first face image of a target character, the N second speech segments comprise a first sound of the target character, A is an integer greater than 1, B is a positive integer, M is a positive integer less than or equal to A, and N is a positive integer less than or equal to B; performing a speech processing to the N second speech segments to obtain N target speech text files, wherein the N second speech segments correspond to the N target speech text files one by one; extracting first representation information of the first face image from the M second video segments to obtain Q pieces of first representation information, wherein Q is an integer greater than or equal to M; determining a second sound matched with the target character according to the Q pieces of first representation information; and merging the second sound with the N target speech text files to obtain N target speech segments, wherein the N target speech text files correspond to the N target speech segments one by one.
10. An electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit; wherein the circuit board is enclosed by the housing; the processor and the memory are positioned on the circuit board; the power supply circuit is configured to provide power for respective circuits or components of the electronic device; the memory is configured to store executable program codes; and the processor is configured to run a program corresponding to the executable program codes by reading the executable program codes stored in the memory, to perform a method for processing a video, the method comprising: performing a target recognition to A first video segments and B first speech segments to obtain M second video segments and N second speech segments, wherein the A first video segments and the B first speech segments are obtained by dividing an inputted video, the M second video segments comprise a first face image of a target character, the N second speech segments comprise a first sound of the target character, A is an integer greater than 1, B is a positive integer, M is a positive integer less than or equal to A, and N is a positive integer less than or equal to B; performing a speech processing to the N second speech segments to obtain N target speech text files, wherein the N second speech segments correspond to the N target speech text files one by one; extracting first representation information of the first face image from the M second video segments to obtain Q pieces of first representation information, wherein Q is an integer greater than or equal to M; determining a second sound matched with the target character according to the Q pieces of first representation information; and merging the second sound with the N target speech text files to obtain N target speech segments, wherein the N target speech text files correspond to the N target speech segments one by one. 13. The electronic device according to claim 10 , wherein the processor is configured to determine a second sound matched with the target character according to the Q pieces of first representation information by acts of: classifying the Q pieces of first representation information to obtain P classes of first representation information, wherein P is a positive integer less than or equal to Q; and determining the second sound according to one of the P classes with a longest playing period among the inputted video.