Speech processing method and related device

By using the target model to process mixed speech and reference speech in speech processing, cross-fusion of intermediate outputs is achieved, which solves the high cost problem caused by multi-model design in the existing technology and improves the accuracy and functionality of speech processing.

WO2024179503A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078946
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When the existing technology processes mixed speech, there are various neural network models designed for voiceprint segmentation and clustering and target speaker speech extraction tasks, resulting in high cost of speech processing design.

Method used

A speech processing method is proposed. By obtaining the mixed speech and the reference speech of the target object, the two branches in the target model are used to process respectively, to achieve the cross-fusion of the intermediate output, and jointly complete the voiceprint segmentation clustering and target speaker speech extraction. Task.

Benefits of technology

It reduces the design cost of speech processing, improves the accuracy of speech processing, and realizes the function of simultaneously supporting voiceprint segmentation and clustering and target speaker speech extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078946_06092024_PF_FP
    Figure CN2024078946_06092024_PF_FP
Patent Text Reader

Abstract

A speech processing method and related device, which can synchronously support two types of tasks, namely, a speaker diarization task and a target speaker extraction task, thereby facilitating a reduction in the design cost of speech processing. The method comprises: acquiring mixed speech, and reference speech of a target object, wherein the mixed speech contains speech of the target object and speech of objects other than the target object (501); performing processing on the mixed speech, the reference speech, and an intermediate output of a second model by means of a first model, so as to obtain an intermediate output of the first model and a final output of the first model, wherein the final output of the first model is used for acquiring the speech of the target object (502); and performing processing on the mixed speech and the intermediate output of the first model by means of the second model, so as to obtain the intermediate output of the second model and a final output of the second model, wherein the final output of the second model is used for determining the location of the speech of the target object in the mixed speech (503).
Need to check novelty before this filing date? Find Prior Art

Description

A voice processing method and related equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on February 28, 2023, with application number 202310228312.7 and invention name “A speech processing method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of artificial intelligence (AI) technology, and in particular to a speech processing method and related equipment. Background Art

[0003] It's common for multiple speakers in the same space to speak separately or simultaneously, generating mixed speech. Understanding the content of mixed speech and separating the speech of different speakers have always been challenging problems in the speech field. These problems are addressed by leveraging AI-based neural network models.

[0004] For example, the speaker diarization task primarily addresses the "who spoke when" problem. In this task, a neural network model processes a speech mixture to determine the position of each speaker's voice within the mixture, specifically the timestamp corresponding to each speaker's speech. Another example is the target speaker extraction task, where a neural network model processes a speech mixture to extract the target speaker's voice.

[0005] For the above two tasks, related technologies design specific neural network models for different tasks, which results in higher design costs for speech processing.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a speech processing method and related equipment, which can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0008] A first aspect of the embodiments of the present application provides a speech processing method, the method comprising:

[0009] When a user needs to perform voiceprint segmentation and clustering on a mixed speech and extract the target speaker's voice, they first obtain the mixed speech to be processed. The mixed speech contains the target subject's voice and the voices of other subjects. In other words, the mixed speech is a mixture of the target subject's voice and the voices of other subjects. After obtaining the mixed speech, they can also obtain the target subject's reference speech, so they can use the reference speech of the target subject to process the mixed speech.

[0010] After obtaining the mixed speech and the reference speech of the target object, the mixed speech and the reference speech of the target object can be input into the target model. Then, the first model in the target model processes the mixed speech, the reference speech and the intermediate output of the second model, thereby obtaining the intermediate output of the first model and the final output of the first model. Moreover, the second model in the target model can process the mixed speech and the intermediate output of the first model, thereby obtaining the intermediate output of the second model and the final output of the second model. In this way, the final output of the first model can be used to obtain the speech of the target object contained in the mixed speech, and the final output of the second model can be used to determine the position of the speech of the target object in the mixed speech, that is, the timestamp corresponding to the speech of the target object in the mixed speech. At this point, the voiceprint segmentation and clustering for the mixed speech and the target speaker speech extraction are completed.

[0011] The above method demonstrates that when processing a mixed speech, the mixed speech and a reference speech of the target subject can be obtained first. The mixed speech includes the speech of the target subject and the speech of other subjects. Next, the mixed speech and the reference speech can be input into the target model. The first model in the target model processes the mixed speech, the reference speech, and the intermediate outputs of the second model, thereby obtaining the intermediate outputs of the first model and the final output of the first model. Simultaneously, the second model in the target model processes the mixed speech and the intermediate outputs of the first model, thereby obtaining the intermediate outputs of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target subject, and the final output of the second model can be used to determine the position of the target subject's speech within the mixed speech. Based on the above process, it can be seen that the first and second models, as two branches of the target model, achieve cross-fusion of their intermediate outputs while processing the mixed speech separately, thereby jointly completing the two tasks of voiceprint segmentation and clustering for the mixed speech and target speaker voice extraction. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0012] In one possible implementation, processing the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model includes: performing a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model; and performing a second processing on the intermediate output of the first model and the intermediate output of the second model to obtain the final output of the first model. In the aforementioned implementation, after obtaining the mixed speech and the reference speech of the target object, the first model may first perform a first processing on the mixed speech and the reference speech of the target object to obtain the intermediate output of the first model, and then send the intermediate output of the first model to the second model. Thereafter, the first model may also receive the intermediate output of the second model, and then perform a second processing on the intermediate output of the first model and the intermediate output of the second model to obtain the final output of the first model.

[0013] In one possible implementation, processing the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model includes: performing a third process on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model; and performing a fourth process on the intermediate output of the second model to obtain the final output of the second model. In the aforementioned implementation, after obtaining the mixed speech and the intermediate output of the first model, the second model may first perform the third process on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model, and then send the intermediate output of the second model to the first model. Thereafter, the second model may perform the fourth process on the intermediate output of the second model to obtain the final output of the second model.

[0014] In one possible implementation, the first processing includes at least one of the following: encoding and processing based on a recurrent neural network, and the second processing includes at least one of the following: splicing, processing based on a recurrent neural network, mask prediction, and decoding. In the aforementioned implementation, the first model in the target model includes: a speaker encoder, an extraction encoder, a first dual-path recurrent neural network, a first splicing module, a second dual-path recurrent neural network, a mask module, a multiplication module, and an extraction decoder. Then, after obtaining the mixed speech, the extraction encoder can encode the mixed speech to obtain a first feature of the mixed speech, and send the first feature to the first dual-path recurrent neural network. After obtaining the reference speech of the target object, the speaker encoder can encode the reference speech of the target object to obtain the features of the reference speech of the target object, and send the features of the reference speech of the target object to the first dual-path recurrent neural network. After receiving the first feature of the mixed speech and the feature of the reference speech, the first dual-path recurrent neural network can perform a series of processing on the first feature of the mixed speech and the feature of the reference speech to obtain the second feature of the mixed speech (i.e., the intermediate output of the first model), and send the second feature of the mixed speech to the first splicing module and the second splicing module. It is worth noting that the first splicing module can also receive the seventh feature of the mixed speech from the second bidirectional long short-term memory network. After obtaining the second feature of the mixed speech and the seventh feature of the mixed speech, the first splicing module can splice the second feature of the mixed speech and the seventh feature of the mixed speech to obtain the third feature of the mixed speech, and send the third feature of the mixed speech to the second dual-path recurrent neural network. After obtaining the third feature of the mixed speech, the second dual-path recurrent neural network can perform a series of processing on the third feature of the mixed speech to obtain the fourth feature of the mixed speech, and send the fourth feature of the mixed speech to the mask module. After obtaining the fourth feature of the mixed speech, the mask module can predict the time domain mask of the mixed speech based on the fourth feature of the mixed speech and send the time domain mask to the multiplication module. After obtaining the time-domain mask, the multiplication module may multiply the first feature of the mixed speech by the time-domain mask, thereby removing the features of the speech of the remaining objects from the first feature of the mixed speech, obtaining the features of the target object's speech, and sending the features of the target object's speech to the extraction decoder. After obtaining the features of the target object's speech, the extraction decoder may decode the features of the target object's speech to obtain the target object's speech, i.e., the final output of the first model.

[0015] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: concatenation, processing based on a bidirectional long short-term memory network, and linear computation. In the aforementioned implementation, the second model in the target model includes: a first bidirectional long short-term memory network, a second concatenation module, a second bidirectional long short-term memory network, and a linear module. After obtaining the mixed speech, the first bidirectional long short-term memory network can perform a series of processing on the mixed speech to obtain a fifth feature of the mixed speech, and send the fifth feature of the mixed speech to the second concatenation module. It is worth noting that the second concatenation module can also receive the second feature of the mixed speech from the first dual-path recurrent neural network. After obtaining the second feature of the mixed speech and the fifth feature of the mixed speech, the second concatenation module can concatenate the second feature of the mixed speech and the fifth feature of the mixed speech to obtain a sixth feature of the mixed speech, and send the sixth feature of the mixed speech to the second bidirectional long short-term memory network. After obtaining the sixth feature of the mixed speech, the second bidirectional long short-term memory network can perform a series of processing on the sixth feature of the mixed speech to obtain the seventh feature of the mixed speech, and send the seventh feature of the mixed speech to the first concatenation module and the linear module. After obtaining the seventh feature of the mixed speech, the linear module can perform a linear operation on the seventh feature of the mixed speech to obtain the probability that each speech frame in the mixed speech belongs to the target object, which is the final output of the second model.

[0016] In one possible implementation, the method further includes: upsampling the intermediate output of the second model through a third model to obtain the upsampled intermediate output of the second model; processing the intermediate output of the mixed speech, reference speech, and the second model to obtain the intermediate output of the first model and the final output of the first model, which includes: processing the upsampled intermediate output of the mixed speech, reference speech, and the second model to obtain the intermediate output of the first model and the final output of the first model. In the aforementioned implementation, the target model includes a third model arranged between the first model and the second model. Then, after the second model sends its intermediate output to the third model, the third model can upsample the intermediate output of the second model to obtain the upsampled intermediate output of the second model and send it to the first model. In this way, the first model can process the intermediate output of the first model and the upsampled intermediate output of the second model to obtain the final output of the first model.

[0017] In one possible implementation, the method further includes: downsampling the intermediate output of the first model through a third model to obtain the downsampled intermediate output of the first model; processing the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. The method includes: processing the mixed speech and the downsampled intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. In the aforementioned implementation, the target model includes a third model arranged between the first model and the second model. Then, after the first model sends its intermediate output to the third model, the third model can downsample the intermediate output of the first model to obtain the downsampled intermediate output of the first model and send it to the second model. In this way, the second model can process the mixed speech and the downsampled intermediate output of the first model to obtain the intermediate output of the second model.

[0018] In one possible implementation, obtaining a reference speech for a target object includes: obtaining information about the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and obtaining a reference speech for the target object corresponding to the information from a pre-set speech library. In the aforementioned implementation, if a user specifies a target object, the user-entered target object information can be obtained, the target object information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object. Then, a pre-set speech library can be opened, which contains not only information about multiple objects but also the speech for each of the multiple objects registered in the library. It can be seen that there is a one-to-one correspondence between the information for the multiple objects and the multiple registered speech. Next, the speech library is traversed using the target object information as an index to find the speech corresponding to the target object information, and this speech is used as the reference speech for the target object.

[0019] In one possible implementation, obtaining the reference speech of the target object includes: dividing the mixed speech into multiple speech segments, the multiple speech segments including the target speech segment; if the target speech segments correspond to the same object, determining the object as the target object, and determining the target speech segment as the reference speech of the target object. In the aforementioned implementation, if the user does not specify the target object, the mixed speech can be first divided into multiple speech segments of the same length to form a speech segment set. For a certain speech segment in the set, the speech segment can be called a target speech segment. For the target speech segment, the target speech segment can be further divided into several sub-speech segments of the same length, and these several sub-speech segments are calculated to determine whether these several sub-speech segments belong to the same object. If so, the object is determined as the target object, and the target speech segment is determined as the reference speech of the target object.

[0020] A second aspect of an embodiment of the present application provides a model training method, which includes: obtaining a mixed speech and a reference speech of a target object, the mixed speech including the speech of the target object and the speech of other objects except the target object; processing the mixed speech, the reference speech and the intermediate output of the second model to be trained by a first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, and the final output of the first model to be trained is used to obtain the speech of the target object; processing the mixed speech and the intermediate output of the first model to be trained by a second model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, and the final output of the second model to be trained is used to determine the position of the speech of the target object in the mixed speech; training the first model to be trained and the second model to be trained based on the final output of the first model to be trained and the final output of the second model to be trained to obtain a first model and a second model.

[0021] The target model trained using the above method possesses speech processing capabilities (i.e., voiceprint segmentation and clustering, as well as target speaker voice extraction). Specifically, when processing a mixed speech, the mixed speech and a reference speech of the target subject can be obtained first. The mixed speech contains the target subject's speech and the speech of other subjects. Next, the mixed speech and the reference speech can be input into the target model. The first model in the target model processes the mixed speech, the reference speech, and the intermediate outputs of the second model, thereby obtaining the intermediate outputs of the first model and the final output of the first model. Simultaneously, the second model in the target model processes the mixed speech and the intermediate outputs of the first model, obtaining the intermediate outputs of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the target subject's speech, and the final output of the second model can be used to determine the target subject's speech position within the mixed speech. Based on the above process, it can be seen that the first and second models, as two branches of the target model, achieve cross-fusion of their intermediate outputs while processing the mixed speech, thereby jointly completing the two tasks of voiceprint segmentation and clustering, and target speaker voice extraction for the mixed speech. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0022] In one possible implementation, processing the mixed speech, reference speech, and intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained includes: performing a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model to be trained; and performing a second processing on the intermediate output of the first model to be trained and the intermediate output of the second model to be trained to obtain the final output of the first model to be trained.

[0023] In one possible implementation, processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained includes: performing a third processing on the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained; and performing a fourth processing on the intermediate output of the second model to be trained to obtain the final output of the second model to be trained.

[0024] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0025] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0026] In one possible implementation, the method further includes: upsampling the intermediate output of the second model to be trained through the third model to be trained to obtain the upsampled intermediate output of the second model to be trained; processing the mixed speech, reference speech and the intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, which includes: processing the upsampled intermediate output of the mixed speech, reference speech and the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained.

[0027] In one possible implementation, the method further includes: downsampling the intermediate output of the first model to be trained through a third model to be trained to obtain the downsampled intermediate output of the first model to be trained; processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, including: processing the mixed speech and the downsampled intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained.

[0028] In one possible implementation, obtaining a reference voice of a target object includes: obtaining information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and obtaining a reference voice of the target object corresponding to the information in a preset voice library.

[0029] In one possible implementation, obtaining a reference speech of a target object includes: dividing a mixed speech into a plurality of speech segments, wherein the plurality of speech segments include a target speech segment; if the target speech segments correspond to the same object, determining the object as the target object, and determining the target speech segment as the reference speech of the target object.

[0030] In one possible implementation, the first model to be trained and the second model to be trained are trained based on the final output of the first model to be trained and the final output of the second model to be trained to obtain the first model and the second model, including: obtaining a target loss based on the final output of the first model to be trained, the true output of the first model to be trained, the final output of the second model to be trained, and the true output of the second model to be trained, where the target loss is used to indicate the difference between the final output of the first model to be trained and the true output of the first model to be trained, and the difference between the final output of the second model to be trained and the true output of the second model to be trained; based on the target loss, updating the parameters of the first model to be trained and the parameters of the second model to be trained until the model training conditions are met, thereby obtaining the first model and the second model.

[0031] In one possible implementation, the method further includes: updating the parameters of the first model to be trained based on the target loss until the model training conditions are met, thereby obtaining a third model.

[0032] A third aspect of an embodiment of the present application provides a speech processing device, which includes: an acquisition module for acquiring a mixed speech and a reference speech of a target object, wherein the mixed speech contains a mixture of the speech of the target object and the speech of other objects except the target object; a first processing module for processing the mixed speech, the reference speech and the intermediate output of the second model through a first model to obtain the intermediate output of the first model and the final output of the first model, and the final output of the first model is used to acquire the speech of the target object; a second processing module for processing the mixed speech and the intermediate output of the first model through a second model to obtain the intermediate output of the second model and the final output of the second model, and the final output of the second model is used to determine the position of the speech of the target object in the mixed speech.

[0033] As can be seen from the above device, when processing a mixed speech, the mixed speech and a reference speech of a target subject can be obtained first. The mixed speech includes the speech of the target subject and the speech of other subjects besides the target subject. Next, the mixed speech and the reference speech can be input into the target model. The first model in the target model then processes the mixed speech, the reference speech, and the intermediate outputs of the second model to obtain the intermediate outputs of the first model and the final output of the first model. Simultaneously, the second model in the target model processes the mixed speech and the intermediate outputs of the first model to obtain the intermediate outputs of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target subject, and the final output of the second model can be used to determine the position of the speech of the target subject in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches of the target model, achieve cross-fusion of the intermediate outputs while processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering for the mixed speech and target speaker voice extraction. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0034] In one possible implementation, the first processing module is used to: perform a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model; and perform a second processing on the intermediate output of the first model and the intermediate output of the second model to obtain the final output of the first model.

[0035] In one possible implementation, the second processing module is used to: perform a third processing on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model; and perform a fourth processing on the intermediate output of the second model to obtain the final output of the second model.

[0036] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0037] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0038] In one possible implementation, the device also includes: an upsampling module, used to upsample the intermediate output of the second model through a third model to obtain the upsampled intermediate output of the second model; a first processing module, used to process the mixed speech, reference speech and the upsampled intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model.

[0039] In one possible implementation, the device also includes: a downsampling module, used to downsample the intermediate output of the first model through a third model to obtain the downsampled intermediate output of the first model; a second processing module, used to process the mixed speech and the downsampled intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model.

[0040] In one possible implementation, the acquisition module is used to: acquire information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and acquire a reference voice of the target object corresponding to the information in a preset voice library.

[0041] In one possible implementation, the acquisition module is used to: divide the mixed speech into multiple speech segments, where the multiple speech segments include a target speech segment; if the target speech segments correspond to the same object, determine the object as the target object, and determine the target speech segment as the reference speech of the target object.

[0042] The fourth aspect of an embodiment of the present application provides a model training device, which includes: an acquisition module for acquiring a mixed speech and a reference speech of a target object, wherein the mixed speech includes the speech of the target object and the speech of other objects except the target object; a first processing module for processing the mixed speech, the reference speech and the intermediate output of the second model to be trained through the first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, and the final output of the first model to be trained is used to acquire the speech of the target object; a second processing module for processing the mixed speech and the intermediate output of the first model to be trained through the second model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, and the final output of the second model to be trained is used to determine the position of the speech of the target object in the mixed speech; a training module for training the first model to be trained and the second model to be trained based on the final output of the first model to be trained and the final output of the second model to be trained to obtain a first model and a second model.

[0043] The target model trained by the above-mentioned device has speech processing functions (i.e., voiceprint segmentation and clustering functions, as well as target speaker voice extraction functions). Specifically, when mixed speech needs to be processed, the mixed speech and a reference speech of the target subject can be obtained first, where the mixed speech contains the target subject's speech and the speech of other subjects excluding the target subject. Next, the mixed speech and the reference speech can be input into the target model. The first model in the target model then processes the mixed speech, the reference speech, and the intermediate outputs of the second model to obtain the intermediate outputs of the first model and the final output of the first model. Simultaneously, the second model in the target model processes the mixed speech and the intermediate outputs of the first model to obtain the intermediate outputs of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the target subject's speech, and the final output of the second model can also be used to determine the position of the target subject's speech in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches of the target model, achieve cross-fusion of the intermediate outputs while processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering and target speaker voice extraction for the mixed speech. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0044] In one possible implementation, the first processing module is used to: perform a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model to be trained; and perform a second processing on the intermediate output of the first model to be trained and the intermediate output of the second model to be trained to obtain the final output of the first model to be trained.

[0045] In one possible implementation, the second processing module is used to: perform a third processing on the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained; and perform a fourth processing on the intermediate output of the second model to be trained to obtain the final output of the second model to be trained.

[0046] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0047] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0048] In one possible implementation, the device also includes: an upsampling module, used to upsample the intermediate output of the second model to be trained through a third model to be trained to obtain the upsampled intermediate output of the second model to be trained; a first processing module, used to process the mixed speech, reference speech and the upsampled intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained.

[0049] In one possible implementation, the device also includes: a downsampling module, used to downsample the intermediate output of the first model to be trained through a third model to be trained to obtain the downsampled intermediate output of the first model to be trained; a second processing module, used to process the mixed speech and the downsampled intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained.

[0050] In one possible implementation, the acquisition module is used to: acquire information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and acquire a reference voice of the target object corresponding to the information in a preset voice library.

[0051] In one possible implementation, the acquisition module is used to: divide the mixed speech into multiple speech segments, where the multiple speech segments include a target speech segment; if the target speech segments correspond to the same object, determine the object as the target object, and determine the target speech segment as the reference speech of the target object.

[0052] In one possible implementation, the training module is used to: obtain a target loss based on the final output of the first model to be trained (i.e., the first predicted processing result of the mixed speech mentioned above), the true output of the first model to be trained (i.e., the first true processing result of the mixed speech mentioned above), the final output of the second model to be trained (i.e., the second predicted processing result of the mixed speech mentioned above), and the true output of the second model to be trained (i.e., the second true processing result of the mixed speech mentioned above), the target loss is used to indicate the difference between the final output of the first model to be trained and the true output of the first model to be trained, and the difference between the final output of the second model to be trained and the true output of the second model to be trained; based on the target loss, update the parameters of the first model to be trained and the parameters of the second model to be trained until the model training conditions are met, thereby obtaining the first model and the second model.

[0053] In one possible implementation, the training module is further used to update the parameters of the first model to be trained based on the target loss until the model training conditions are met to obtain a third model.

[0054] A fifth aspect of an embodiment of the present application provides a speech processing device, which includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the speech processing device performs the method described in the first aspect or any possible implementation method of the first aspect.

[0055] A sixth aspect of an embodiment of the present application provides a model training device, which includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the model training device executes the method described in the second aspect or any possible implementation method of the second aspect.

[0056] A seventh aspect of an embodiment of the present application provides a circuit system, which includes a processing circuit, and the processing circuit is configured to execute the method described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.

[0057] An eighth aspect of an embodiment of the present application provides a chip system, which includes a processor for calling a computer program or computer instructions stored in a memory so that the processor executes a method as described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.

[0058] In a possible implementation, the processor is coupled to the memory through an interface.

[0059] In one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored.

[0060] A ninth aspect of an embodiment of the present application provides a computer storage medium storing a computer program, which, when executed by a computer, enables the computer to implement the method described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.

[0061] A tenth aspect of an embodiment of the present application provides a computer program product, which stores instructions that, when executed by a computer, enable the computer to implement the method described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.

[0062] In an embodiment of the present application, when it is necessary to process the mixed speech, the mixed speech and the reference speech of the target object can be obtained first, wherein the mixed speech contains the speech of the target object and the speech of other objects except the target object. Then, the mixed speech and the reference speech can be input into the target model. Then, the first model in the target model can process the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model. At the same time, the second model in the target model can process the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target object, and the final output of the second model can be used to determine the position of the speech of the target object in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches in the target model, realize the cross-fusion of the intermediate outputs in the process of processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering for the mixed speech and target speaker speech extraction. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 is a schematic diagram of the structure of the artificial intelligence main framework;

[0064] FIG2a is a schematic structural diagram of a speech processing system provided in an embodiment of the present application;

[0065] FIG2 b is another structural diagram of the speech processing system provided in an embodiment of the present application;

[0066] FIG2c is a schematic diagram of a speech processing device according to an embodiment of the present application;

[0067] FIG3 is a schematic diagram of the architecture of the system 100 provided in an embodiment of the present application;

[0068] FIG4 is a schematic diagram of a structure of a target model provided in an embodiment of the present application;

[0069] FIG5 is a flow chart of a speech processing method according to an embodiment of the present application;

[0070] FIG6 is another schematic diagram of the structure of the target model provided in an embodiment of the present application;

[0071] FIG7 is another schematic diagram of the structure of the target model provided in an embodiment of the present application;

[0072] FIG8 is a flow chart of a model training method provided in an embodiment of the present application;

[0073] FIG9 is a structural diagram of a speech processing device provided in an embodiment of the present application;

[0074] FIG10 is a schematic diagram of the structure of a model training device provided in an embodiment of the present application;

[0075] FIG11 is a schematic diagram of the structure of an execution device provided in an embodiment of the present application;

[0076] FIG12 is a schematic structural diagram of a training device provided in an embodiment of the present application;

[0077] FIG13 is a schematic structural diagram of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The embodiments of the present application provide a speech processing method and related equipment, which can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0079] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0080] Multiple speakers speaking separately or simultaneously in the same space, generating mixed speech, is a common scenario. For example, in a voice conference, different speakers may speak at different times or simultaneously. Understanding the content of mixed speech and separating the speech of different speakers have always been challenging problems in the speech field. Neural network models in AI technology are used to address these challenges.

[0081] For example, the speaker diarization task primarily addresses the "who spoke when" problem. For example, in a voice conference, it's necessary to determine which speaker spoke at which time in order to generate meeting minutes. In this task, a neural network model processes mixed speech to determine the position of each speaker's voice in the mixture, specifically the timestamp corresponding to each speaker's speech.

[0082] For example, the target speaker extraction task primarily addresses how to extract the target speaker's voice. For example, in a voice conference, the voice of a specific speaker needs to be extracted to identify the content of that speaker's speech. In this task, a neural network model is used to process mixed speech to extract the target speaker's voice from the mixed speech.

[0083] For the above two tasks, related technologies design specific neural network models for different tasks, which results in higher design costs for speech processing.

[0084] In order to solve the above problems, an embodiment of the present application provides an image processing method, which can be implemented in combination with artificial intelligence (AI) technology. AI technology is a technical discipline that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence. AI technology obtains the best results by perceiving the environment, acquiring knowledge and using knowledge. In other words, artificial intelligence technology is a branch of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Using artificial intelligence for data processing is a common application of artificial intelligence.

[0085] First, we will describe the overall workflow of an AI system. See Figure 1, which illustrates a schematic diagram of the AI ​​framework. This framework will be explained from two perspectives: the "intelligent information chain" (horizontal axis) and the "IT value chain" (vertical axis). The "intelligent information chain" reflects the entire process from data acquisition to processing. For example, it could be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, and intelligent execution and output. Throughout this process, data undergoes a condensed journey from "data-information-knowledge-wisdom." The "IT value chain," spanning the underlying infrastructure of human intelligence, information (provided and processed by technology), and the system's industrial ecosystem, reflects the value that AI brings to the information technology industry.

[0086] (1) Infrastructure

[0087] Infrastructure provides computing power for AI systems, enabling communication with the outside world and supporting this through a foundational platform. External communication occurs through sensors; computing power is provided by intelligent chips (CPUs, NPUs, GPUs, ASICs, FPGAs, and other hardware accelerators). The foundational platform includes a distributed computing framework and network-related platform guarantees and support, including cloud storage and computing, and interconnected networks. For example, sensors communicate with the outside world to acquire data, which is then fed into the intelligent chips within the distributed computing system provided by the foundational platform for computation.

[0088] (2) Data

[0089] Data above the infrastructure layer represents data sources for AI. This data includes graphics, images, voice, and text, as well as IoT data from traditional devices. This includes business data from existing systems and sensor data such as force, displacement, liquid level, temperature, and humidity.

[0090] (3) Data processing

[0091] Data processing generally includes data training, machine learning, deep learning, search, reasoning, decision-making, etc.

[0092] Among them, machine learning and deep learning can symbolize and formalize data for intelligent information modeling, extraction, preprocessing, and training.

[0093] Reasoning refers to the process of simulating human intelligent reasoning in computers or intelligent systems, using formalized information to perform machine thinking and solve problems based on reasoning control strategies. Typical functions are search and matching.

[0094] Decision-making refers to the process of making decisions after intelligent information is reasoned, and usually provides functions such as classification, sorting, and prediction.

[0095] (4) General ability

[0096] After the data has undergone the data processing mentioned above, some general capabilities can be further formed based on the results of the data processing, such as algorithms or a general system, for example, translation, text analysis, computer vision processing, speech recognition, image recognition, etc.

[0097] (5) Smart products and industry applications

[0098] Smart products and industry applications refer to the products and applications of artificial intelligence systems in various fields. They are the encapsulation of the overall artificial intelligence solution, which productizes intelligent information decision-making and realizes practical application. Its application areas mainly include: smart terminals, smart transportation, smart medical care, autonomous driving, smart cities, etc.

[0099] Next, several application scenarios of this application are introduced.

[0100] Figure 2a is a schematic diagram of the structure of a speech processing system provided in an embodiment of the present application. The speech processing system includes a user device and a data processing device. The user device includes an intelligent terminal such as a mobile phone, a personal computer, or an information processing center. The user device is the initiator of speech processing and, as the initiator of a speech processing request, is typically initiated by a user through the user device.

[0101] The aforementioned data processing device can be a device or server with data processing capabilities, such as a cloud server, network server, application server, or management server. The data processing device receives text processing requests from smart terminals via an interactive interface and then performs text processing using memory for data storage and a data processing processor, including machine learning, deep learning, search, reasoning, and decision-making. The memory in the data processing device is a general term that includes local storage and a database for storing historical data. The database can be located on the data processing device or on other network servers.

[0102] In the speech processing system shown in FIG2a, a user device can receive user instructions. For example, the user device can obtain a speech input / selected by the user and then initiate a request to a data processing device, causing the data processing device to execute a speech processing application on the image obtained by the user device, thereby obtaining a corresponding processing result for the speech. For example, the user device can obtain a mixed speech input by the user and then initiate a mixed speech processing request to the data processing device, causing the data processing device to perform a series of processing on the mixed image (e.g., voiceprint segmentation and clustering, and target speaker voice extraction, etc.), thereby obtaining a mixed speech processing result. The mixed speech processing result can be used to obtain the target speaker's voice and determine the position of the target speaker's voice in the mixed speech.

[0103] In FIG. 2 a , the data processing device may execute the speech processing method according to the embodiment of the present application.

[0104] Figure 2b is another structural diagram of the voice processing system provided in an embodiment of the present application. In Figure 2b, the user device directly serves as a data processing device. The user device can directly obtain input from the user and directly process it by the hardware of the user device itself. The specific process is similar to that of Figure 2a. Please refer to the above description and will not be repeated here.

[0105] In the speech processing system shown in FIG2b , the user device can receive user instructions. For example, the user device can obtain a mixed speech input by the user, and then perform a series of processing on the mixed image (for example, voiceprint segmentation and clustering and target speaker speech extraction, etc.), thereby obtaining a processing result of the mixed speech. The processing result of the mixed speech can be used to obtain the speech of the target speaker and determine the position of the target speaker's speech in the mixed speech.

[0106] In FIG2b , the user equipment itself can execute the voice processing method of the embodiment of the present application.

[0107] FIG2c is a schematic diagram of a speech processing related device provided in an embodiment of the present application.

[0108] The user device in the above Figures 2a and 2b can specifically be the local device 301 or the local device 302 in Figure 2c, and the data processing device in Figure 2a can specifically be the execution device 210 in Figure 2c, wherein the data storage system 250 can store the data to be processed of the execution device 210, and the data storage system 250 can be integrated on the execution device 210, or it can be set on the cloud or other network servers.

[0109] The processors in Figures 2a and 2b can perform data training / machine learning / deep learning through a neural network model or other models (for example, a model based on a support vector machine), and use the model finally trained or learned from the data to perform speech processing applications on the image, thereby obtaining corresponding processing results.

[0110] Figure 3 is a schematic diagram of the system 100 architecture provided in an embodiment of the present application. In Figure 3, the execution device 110 is configured with an input / output (I / O) interface 112 for data interaction with an external device. The user can input data to the I / O interface 112 through the client device 140. The input data can include: various tasks to be scheduled, callable resources and other parameters in the embodiment of the present application.

[0111] When the execution device 110 preprocesses the input data, or when the computing module 111 of the execution device 110 performs calculations and other related processing (such as implementing the functions of the neural network in this application), the execution device 110 can call the data, code, etc. in the data storage system 150 for the corresponding processing, and can also store the data, instructions, etc. obtained from the corresponding processing in the data storage system 150.

[0112] Finally, the I / O interface 112 returns the processing result to the client device 140 so as to provide it to the user.

[0113] It is worth noting that the training device 120 can generate corresponding target models / rules based on different training data for different goals or tasks. The corresponding target models / rules can be used to achieve the above goals or complete the above tasks, thereby providing the user with the desired results. The training data can be stored in the database 130 and come from training samples collected by the data collection device 160.

[0114] In the scenario shown in FIG3 , the user can manually input data, which can be performed through the interface provided by I / O interface 112. Alternatively, client device 140 can automatically send input data to I / O interface 112. If user authorization is required for client device 140 to automatically send input data, the user can set the corresponding permissions in client device 140. The user can view the output of execution device 110 on client device 140, which can be presented in a display, sound, action, or other specific form. Client device 140 can also serve as a data acquisition terminal, collecting input data and output results from I / O interface 112 as new sample data and storing them in database 130. Of course, collection can also be performed without client device 140, with I / O interface 112 directly storing the input data and output results from I / O interface 112 as new sample data in database 130.

[0115] It is worth noting that FIG3 is only a schematic diagram of a system architecture provided by an embodiment of the present application, and the positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation. For example, in FIG3, the data storage system 150 is an external memory relative to the execution device 110. In other cases, the data storage system 150 can also be placed in the execution device 110. As shown in FIG3, a neural network can be trained according to the training device 120.

[0116] The present application also provides a chip including a neural network processor (NPU). The chip can be provided in the execution device 110 shown in FIG3 to complete the computational work of the computation module 111. The chip can also be provided in the training device 120 shown in FIG3 to complete the training work of the training device 120 and output the target model / rule.

[0117] The neural network processor (NPU) is a coprocessor mounted on the host central processing unit (CPU), which assigns tasks to it. The core of the NPU is the arithmetic circuit, which is controlled by a controller to extract data from memory (weight memory or input memory) and perform calculations.

[0118] In some implementations, the arithmetic circuit includes multiple processing engines (PEs). In some implementations, the arithmetic circuit is a two-dimensional systolic array. The arithmetic circuit can also be a one-dimensional systolic array or other electronic circuit capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit is a general-purpose matrix processor.

[0119] For example, consider an input matrix A, a weight matrix B, and an output matrix C. The computational circuit retrieves the corresponding data for matrix B from the weight memory and caches it on each PE within the computational circuit. The computational circuit then performs a matrix operation on the matrix A data from the input memory and matrix B, storing the partial or final matrix results in the accumulator.

[0120] The vector computation unit can further process the output of the arithmetic circuit, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. For example, the vector computation unit can be used for network calculations in non-convolutional / non-FC layers in neural networks, such as pooling, batch normalization, and local response normalization.

[0121] In some implementations, the vector computation unit can store the processed output vectors in a unified buffer. For example, the vector computation unit can apply a nonlinear function to the output of the computation circuit, such as a vector of accumulated values, to generate activation values. In some implementations, the vector computation unit generates normalized values, merged values, or both. In some implementations, the processed output vectors can be used as activation inputs to the computation circuit, such as for use in subsequent layers in a neural network.

[0122] The unified memory is used to store input data and output data.

[0123] The weight data is directly transferred from the external memory to the input memory and / or unified memory through the direct memory access controller (DMAC), the weight data in the external memory is stored in the weight memory, and the data in the unified memory is stored in the external memory.

[0124] The bus interface unit (BIU) is used to implement interaction between the main CPU, DMAC and instruction fetch memory through the bus.

[0125] An instruction fetch buffer connected to the controller, used to store instructions used by the controller;

[0126] The controller is used to call the instructions cached in the memory to control the working process of the computing accelerator.

[0127] Generally, unified memory, input memory, weight memory and instruction fetch memory are all on-chip memories, and external memory is memory outside the NPU, which can be double data rate synchronous dynamic random access memory (DDR SDRAM), high bandwidth memory (HBM) or other readable and writable memory.

[0128] Since the embodiments of the present application involve the application of a large number of neural networks, in order to facilitate understanding, the relevant terms and related concepts such as neural networks involved in the embodiments of the present application are first introduced below.

[0129] (1) Neural Network

[0130] A neural network can be composed of neural units. A neural unit can refer to an operation unit with xs and intercept 1 as input. The output of the operation unit can be:

[0131] Where s = 1, 2, ... n, n is a natural number greater than 1, Ws is the weight of xs, and b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.

[0132] The operation of each layer in a neural network can be described by the mathematical expression y = a(Wx + b). From a physical perspective, the operation of each layer in a neural network can be understood as transforming the input space (a set of input vectors) into the output space (i.e., from the row space to the column space of a matrix) through five operations. These operations include: 1. Dimensionality increase / decrease; 2. Scaling / reduction; 3. Rotation; 4. Translation; and 5. "Bending." Operations 1, 2, and 3 are performed by Wx, 4 by +b, and 5 by a(). The word "space" is used here because the objects being classified are not individual things, but rather a class of things, and space refers to the collection of all individuals within that class. W is the weight vector, each value in which represents the weight of a neuron in that layer of the neural network. This vector W determines the spatial transformation from input space to output space described above. That is, the weights W of each layer control how the space is transformed. The goal of training a neural network is to ultimately obtain the weight matrix for all layers of the trained neural network (a weight matrix formed by the vectors W of many layers). Therefore, the training process of a neural network is essentially about learning how to control spatial transformations, and more specifically, about learning the weight matrix.

[0133] Because we want the output of the neural network to be as close as possible to the value we really want to predict, we can compare the current network's predicted value with the desired target value, and then update the weight vector of each layer of the neural network based on the difference between the two (of course, there is usually an initialization process before the first update, which is to pre-configure the parameters for each layer in the neural network). For example, if the network's predicted value is too high, the weight vector is adjusted to make it predict a lower value, and this adjustment is continued until the neural network can predict the desired target value. Therefore, it is necessary to pre-define "how to compare the difference between the predicted value and the target value." This is the loss function or objective function, which is an important equation used to measure the difference between the predicted value and the target value. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference, so the training of the neural network becomes a process of minimizing this loss as much as possible.

[0134] (2) Backpropagation algorithm

[0135] Neural networks can use the back propagation (BP) algorithm to correct the size of the parameters in the initial neural network model during training, reducing the reconstruction error loss of the neural network model. Specifically, the forward propagation of the input signal to the output generates error loss. This error loss information is then backpropagated to update the parameters in the initial neural network model, thereby converging the error loss. The BP algorithm is a backward propagation movement dominated by error loss, aiming to obtain the optimal parameters of the neural network model, such as the weight matrix.

[0136] The method provided in this application is described below from the training side of the neural network and the application side of the neural network.

[0137] The model training method provided in the embodiment of the present application involves the processing of data sequences, and can be specifically applied to methods such as data training, machine learning, and deep learning. The training data (for example, the mixed speech in the model training method provided in the embodiment of the present application and the reference speech of the target object, etc.) is symbolized and formalized for intelligent information modeling, extraction, preprocessing, training, etc., and finally a trained neural network is obtained (for example, the first model, the second model, and the third model in the model training method provided in the embodiment of the present application, etc.); and the speech processing method provided in the embodiment of the present application can use the above-mentioned trained neural network to input the input data (for example, the mixed speech in the speech processing method provided in the embodiment of the present application and the reference speech of the target object) into the trained neural network to obtain output data (for example, the final output of the first model and the final output of the second model in the speech processing method provided in the embodiment of the present application, etc.). It should be noted that the model training method and speech processing method provided in the embodiment of the present application are inventions based on the same concept, and can also be understood as two parts in a system, or two stages of an overall process: such as the model training stage and the model application stage.

[0138] The speech processing method provided in the embodiment of the present application can be implemented through a target model. FIG4 is a structural diagram of the target model provided in the embodiment of the present application. As shown in FIG4 , the target model includes a first model and a second model. The first input end of the first model and the first input end of the second model serve as the input end of the entire target model. The first output end of the first model and the first output end of the second model serve as the output end of the entire target model. Inside the target model, the second input end of the first model is connected to the second output end of the second model, and the second input end of the second model is connected to the second output end of the first model. In order to understand the workflow of the target model, the workflow of the target model is introduced below in conjunction with FIG5 . FIG5 is a flow diagram of the speech processing method provided in the embodiment of the present application. As shown in FIG5 , the method includes:

[0139] 501. Obtain a mixed speech and a reference speech of a target object, where the mixed speech includes the speech of the target object and the speech of other objects except the target object.

[0140] In this embodiment, when the user needs to perform voiceprint segmentation and clustering on the mixed speech and extract the target speaker's voice, the mixed speech to be processed input by the user can be obtained first. The mixed speech contains the voice of the target object (also referred to as the target speaker) and the voices of the remaining objects other than the target object (also referred to as the remaining speakers). That is to say, the mixed speech is the speech formed by the overlapping of the speech corresponding to the target and the speech of the remaining objects.

[0141] After obtaining the mixed speech, we can also obtain the reference speech of the target subject. Therefore, we can use the reference speech corresponding to the target subject to process the mixed speech. It should be noted that the speech of the target subject included in the mixed speech can also be understood as the real-time speech of the target subject. Similarly, the speech of the remaining subjects can also be understood as the real-time speech of the remaining subjects.

[0142] Specifically, the reference speech of the target object can be obtained through the following methods:

[0143] (1) If the user specifies a target object, the target object information input by the user can be obtained, and the target object information includes at least one of the following: a certain speech segment of the target object (this speech segment is different from the speech of the target object contained in the mixed speech), an image of the target object (for example, a portrait of the target object, etc.), a text of the target object (for example, some words and articles describing the target object, etc.), and an identifier of the target object (for example, an identity document (ID) number of the target object, etc.).

[0144] If the information of the target object is a certain speech segment of the target object, the speech segment can be directly used as the reference speech segment of the target object.

[0145] If the target object information includes an image, text, or logo, a pre-set voice database can be opened. This database contains not only information about multiple objects but also the registered voices of these objects. Therefore, there is a one-to-one correspondence between the information about the multiple objects and the registered voices. Next, the database is traversed using the target object information as an index to find the voice corresponding to the target object information and use this voice as the reference voice for the target object.

[0146] (2) If the user does not specify a target object, the mixed speech can be divided into multiple speech segments of the same length to form a speech segment set. For a certain speech segment in the set, the speech segment can be called a target speech segment. For the target speech segment, the target speech segment can be further divided into several sub-speech segments of the same length, and the speaker verification algorithm is used to calculate these sub-speech segments to determine whether these sub-speech segments belong to the same object. If so, the object is determined as the target object, and the target speech segment is determined as the reference speech of the target object.

[0147] For example, a mixed speech can be divided into small blocks of length L, A1, A2, A3, ..., AM, according to the temporal relationship. These small blocks of length L constitute the set A. For block A1, A1 can be further divided into the front, middle, and back thirds, namely A11, A12, and A13. A speaker verification model can then be used to determine whether {A11, A12, A13} belong to the same speaker. If so, the speaker can be determined to be the target speaker, and A1 can be designated as the reference speech of the target speaker.

[0148] It should be understood that in this embodiment, the number of the remaining objects can be one or more, and the number of the remaining objects is not limited here.

[0149] It should also be understood that in this embodiment, the information directly used as an index can be the image, text, and logo of the target object. Of course, the information directly used as an index can be only the logo of the target object. Then, if the information of the target object input by the user is the image and text of the target object, the image and text of the target object can be converted into the logo of the target object first, and then the logo of the target object can be used to index the reference voice of the target object.

[0150] 502. Process the mixed speech, the reference speech, and the intermediate output of the second model through the first model to obtain the intermediate output of the first model and the final output of the first model. The final output of the first model is used to obtain the speech of the target object.

[0151] 503. Process the mixed speech and the intermediate output of the first model through the second model to obtain the intermediate output of the second model and the final output of the second model. The final output of the second model is used to determine the position of the target object's speech in the mixed speech.

[0152] After obtaining the mixed speech and the reference speech of the target object, the mixed speech and the reference speech of the target object can be input into the target model. Then, the first model in the target model processes the mixed speech, the reference speech, and the intermediate output of the second model, thereby obtaining the intermediate output of the first model and the final output of the first model. In addition, the second model in the target model can process the mixed speech and the intermediate output of the first model, thereby obtaining the intermediate output of the second model and the final output of the second model. It should be noted that the final output of the first model can also be called the first processing result of the mixed speech, and the first processing result of the mixed speech can be used to obtain the speech of the target object contained in the mixed speech. The final output of the second model can also be called the second processing result of the mixed speech, and the second processing result of the mixed speech can be used to determine the position of the target object's speech in the mixed speech, that is, the timestamp corresponding to the target object's speech in the mixed speech. At this point, the voiceprint segmentation and clustering for the mixed speech and the target speaker's speech extraction are completed.

[0153] Specifically, the first model and the second model can obtain intermediate output and final output in the following ways:

[0154] After obtaining the mixed speech and the reference speech of the target subject, the first model may first perform a first processing on the mixed speech and the reference speech of the target subject to obtain an intermediate output of the first model, and then send the intermediate output of the first model to the second model. Thereafter, the first model may also receive the intermediate output of the second model and perform a second processing on the intermediate output of the first model and the intermediate output of the second model to obtain the final output of the first model.

[0155] After obtaining the mixed speech and the intermediate output of the first model, the second model may first perform a third process on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model, and then send the intermediate output of the second model to the first model. Thereafter, the second model may perform a fourth process on the intermediate output of the second model to obtain the final output of the second model.

[0156] More specifically, the first model and the second model can also obtain intermediate output and final output in the following manner:

[0157] As shown in Figure 6 (Figure 6 is another structural diagram of the target model provided in an embodiment of the present application), the first model in the target model includes: a speaker encoder, an extraction encoder, a first dual path recurrent neural network (DPRNN), a first splicing module, a second dual path recurrent neural network, a mask module, a multiplication module, and an extraction decoder. The second model in the target model includes: a first bidirectional long short term memory network (bi long short term memory), a second splicing module, a second bidirectional long short term memory network, and a linear module.

[0158] After obtaining the mixed speech, the extraction encoder can encode the mixed speech to obtain the first feature of the mixed speech, and send the first feature to the first dual-path recurrent neural network. After obtaining the reference speech of the target object, the speaker encoder can encode the reference speech of the target object to obtain the features of the reference speech of the target object, and send the features of the reference speech of the target object to the first dual-path recurrent neural network. After receiving the first feature of the mixed speech and the features of the reference speech, the first dual-path recurrent neural network can perform a series of processing (e.g., feature extraction, etc.) on the first feature of the mixed speech and the features of the reference speech to obtain the second feature of the mixed speech (i.e., the intermediate output of the first model), and send the second feature of the mixed speech to the first splicing module and the second splicing module. It is worth noting that the first splicing module can also receive the seventh feature of the mixed speech from the second bidirectional long short-term memory network. After obtaining the second feature of the mixed speech and the seventh feature of the mixed speech, the first splicing module can splice the second feature of the mixed speech and the seventh feature of the mixed speech to obtain the third feature of the mixed speech, and send the third feature of the mixed speech to the second dual-path recurrent neural network. After obtaining the third feature of the mixed speech, the second dual-path recurrent neural network can perform a series of processing on the third feature of the mixed speech to obtain the fourth feature of the mixed speech, and send the fourth feature of the mixed speech to the mask module. After obtaining the fourth feature of the mixed speech, the mask module can predict the time domain mask of the mixed speech based on the fourth feature of the mixed speech, and send the time domain mask to the multiplication module. After obtaining the time domain mask, the multiplication module can multiply the first feature of the mixed speech with the time domain mask, thereby eliminating the features of the speech of the remaining objects in the first feature of the mixed speech, obtaining the features of the speech of the target object, and sending the features of the speech of the target object to the extraction decoder. After obtaining the features of the speech of the target object, the extraction decoder can decode the features of the speech of the target object to obtain the speech of the target object, that is, the final output of the first model.

[0159] After obtaining the mixed speech, the first bidirectional long short-term memory network can perform a series of processing (e.g., feature extraction, etc.) on the mixed speech to obtain the fifth feature of the mixed speech, and send the fifth feature of the mixed speech to the second splicing module. Notably, the second splicing module can also receive the second feature of the mixed speech from the first dual-path recurrent neural network. After obtaining the second and fifth features of the mixed speech, the second splicing module can splice the second and fifth features of the mixed speech to obtain the sixth feature of the mixed speech, and send the sixth feature of the mixed speech to the second bidirectional long short-term memory network. After obtaining the sixth feature of the mixed speech, the second bidirectional long short-term memory network can perform a series of processing on the sixth feature of the mixed speech to obtain the seventh feature of the mixed speech, and send the seventh feature of the mixed speech to the first splicing module and the linear module. After obtaining the seventh feature of the mixed speech, the linear module can perform a linear operation on the seventh feature of the mixed speech to obtain the probability that each speech frame in the mixed speech belongs to the target object, which is the final output of the second model.

[0160] Thus, the first model ultimately outputs the target object's speech, and the second module ultimately outputs the probability that each speech frame in the mixed speech belongs to the target object. Based on these probabilities, several speech frames belonging to the target object can be determined (these several speech frames are the target object's speech). Since each speech frame corresponds to a timestamp in the mixed speech (because all speech frames are sorted by time to form a mixed speech), the timestamps corresponding to these several speech frames in the mixed speech can be obtained, that is, the timestamps corresponding to the target object's speech in the mixed speech (which can also be called the position of the target object's speech in the mixed speech). For example, suppose the first speech frame of the mixed speech corresponds to the first moment, the second speech frame corresponds to the second moment,..., the 1000th speech frame corresponds to the 1000th moment, where the first to 200th speech frames all belong to the target object, so the timestamp corresponding to the target object's speech in the mixed speech is the period between the first and 200th moments.

[0161] More specifically, if the frame sampling rate of the mixed speech in the time domain of the first model is different from the frame sampling rate of the mixed speech in the time domain of the second model, the following processing may be performed:

[0162] As shown in Figure 7 (Figure 7 is another structural diagram of the target model provided in an embodiment of the present application, and Figure 7 is drawn based on Figure 6), the target model may also include a third model, and the third model includes a down sample module and an up sample module. The down sample module is arranged between the first dual-path recurrent neural network and the second splicing module, and the up sample module is arranged between the second bidirectional long short-term memory network and the first splicing module.

[0163] Based on Figure 7, it can be seen that the second bidirectional long short-term memory network can send the seventh feature of the mixed speech to the upsampling module, so the upsampling module upsamples the seventh feature of the mixed speech to obtain the upsampled seventh feature of the mixed speech (that is, the upsampled intermediate output of the second model), and sends the upsampled seventh feature of the mixed speech to the first splicing module, so that the first splicing module splices the second feature of the mixed speech and the upsampled seventh feature of the mixed speech to obtain the third feature of the mixed speech.

[0164] Correspondingly, the first dual-path recurrent neural network can send the second feature of the mixed speech to the downsampling module, so the downsampling module downsamples the second feature of the mixed speech to obtain the downsampled second feature of the mixed speech (that is, the downsampled intermediate output of the first model), and sends the downsampled second feature of the mixed speech to the second splicing module, so that the second splicing module splices the downsampled second feature of the mixed speech and the fifth feature of the mixed speech to obtain the sixth feature of the mixed speech.

[0165] It should be understood that in this embodiment, the number of layers included in the first dual-path recurrent neural network and the number of layers included in the second dual-path recurrent neural network can be the same or different. Similarly, the number of layers included in the first bidirectional long short-term memory network and the number of layers included in the second bidirectional long short-term memory network can be the same or different.

[0166] It should also be understood that in this embodiment, if the user does not specify a target object, after determining the position of the target object's voice in the mixed voice, all voice segments (including the aforementioned target voice segments) that constitute the target object's voice can be found in the voice segment set based on this position, and these voice segments are removed from the voice segment set. In this way, the reference voice of the next object can be selected from the remaining voice segments, and this and the mixed voice are input into the target model again to obtain the voice of the next object and the position of the next object's voice in the mixed voice. This process will not be repeated here. Still taking the above example, suppose that the timestamp corresponding to small block A1 in the mixed speech is the period between the 1st moment and the 100th moment, and the timestamp corresponding to small block A2 in the mixed speech is the period between the 100th moment and the 200th moment. Since the timestamp corresponding to the speech of the target object in the mixed speech is the period between the 1st moment and the 200th moment, then small blocks A1 and small blocks A2 can be removed from set A, and the reference speech of the next object can be selected from the remaining small blocks, so as to continue to obtain the speech of the next object contained in the mixed speech and the timestamp corresponding to the speech of the next object in the mixed speech.

[0167] In an embodiment of the present application, when it is necessary to process the mixed speech, the mixed speech and the reference speech of the target object can be obtained first, wherein the mixed speech contains the speech of the target object and the speech of other objects except the target object. Then, the mixed speech and the reference speech can be input into the target model. Then, the first model in the target model can process the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model. At the same time, the second model in the target model can process the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target object, and the final output of the second model can be used to determine the position of the speech of the target object in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches in the target model, realize the cross-fusion of the intermediate outputs in the process of processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering for the mixed speech and target speaker speech extraction. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0168] Furthermore, in an embodiment of the present application, the target model has a multi-task learning mechanism, that is, in the process of performing target speaker speech extraction and voiceprint segmentation and clustering for mixed speech respectively, the two branches in the target model (the first model and the second model) are fully dependent on each other, which can effectively improve the performance of the entire target model in these two types of tasks, that is, improve the accuracy of speech processing.

[0169] Furthermore, in an embodiment of the present application, a multimodal fusion approach can be used to model the target speaker, allowing the user to specify the target speaker using information in different modalities such as the target speaker's image, voice, text, and ID, so that the target model can be flexibly applied in many scenarios.

[0170] The above is a detailed description of the speech processing method provided by the embodiment of the present application. The following is an introduction to the model training method provided by the embodiment of the present application. Figure 8 is a flow chart of the model training method provided by the embodiment of the present application. As shown in Figure 8, the method includes:

[0171] 801. Acquire a mixed speech and a reference speech of a target object, where the mixed speech includes the speech of the target object and the speech of other objects except the target object.

[0172] In this embodiment, when it is necessary to train the first model to be trained, the second model to be trained, and the third model to be trained, a batch of training data can be first obtained. This batch of training data includes mixed speech and reference speech of the target object, and the mixed speech includes the speech of the target object and the speech of other objects except the target object. It should be noted that, for the mixed speech, the first true processing result of the mixed speech (i.e., the true speech of the target object in the mixed speech) and the second true processing result of the mixed speech (i.e., the true probability of each speech frame in the mixed speech belonging to the target object) are known.

[0173] 802. Process the mixed speech, the reference speech, and the intermediate output of the second model to be trained through the first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained. The final output of the first model to be trained is used to obtain the speech of the target object.

[0174] 803. Process the mixed speech and the intermediate output of the first model to be trained through the second model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained. The final output of the second model to be trained is used to determine the position of the target object's speech in the mixed speech.

[0175] After obtaining the mixed speech and the reference speech of the target object, the mixed speech and the reference speech of the target object can be input into the target model. Then, the first model to be trained in the target model processes the mixed speech, the reference speech, and the intermediate output of the second model to be trained, thereby obtaining the intermediate output of the first model to be trained and the final output of the first model to be trained. Furthermore, the second model to be trained in the target model to be trained can process the mixed speech and the intermediate output of the first model to be trained, thereby obtaining the intermediate output of the second model to be trained and the final output of the second model to be trained. It should be noted that the final output of the first model to be trained can also be referred to as the first prediction processing result of the mixed speech (i.e., the speech of the target object predicted from the mixed speech), and the first prediction processing result of the mixed speech can be used to obtain the predicted speech of the target object contained in the mixed speech. The final output of the second model to be trained can also be referred to as the second prediction processing result of the mixed speech (i.e., the predicted probability that each speech frame in the mixed speech belongs to the target object), and the second prediction processing result of the mixed speech can be used to determine the predicted position of the target object's speech in the mixed speech, that is, the predicted timestamp corresponding to the target object's speech in the mixed speech.

[0176] In one possible implementation, processing the mixed speech, reference speech, and intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained includes: performing a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model to be trained; and performing a second processing on the intermediate output of the first model to be trained and the intermediate output of the second model to be trained to obtain the final output of the first model to be trained.

[0177] In one possible implementation, processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained includes: performing a third processing on the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained; and performing a fourth processing on the intermediate output of the second model to be trained to obtain the final output of the second model to be trained.

[0178] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0179] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0180] In one possible implementation, the method further includes: upsampling the intermediate output of the second model to be trained through the third model to be trained to obtain the upsampled intermediate output of the second model to be trained; processing the mixed speech, reference speech and the intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, which includes: processing the upsampled intermediate output of the mixed speech, reference speech and the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained.

[0181] In one possible implementation, the method further includes: downsampling the intermediate output of the first model to be trained through a third model to be trained to obtain the downsampled intermediate output of the first model to be trained; processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, including: processing the mixed speech and the downsampled intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained.

[0182] In one possible implementation, obtaining a reference voice of a target object includes: obtaining information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and obtaining a reference voice of the target object corresponding to the information in a preset voice library.

[0183] In one possible implementation, obtaining a reference speech of a target object includes: dividing a mixed speech into a plurality of speech segments, wherein the plurality of speech segments include a target speech segment; if the target speech segments correspond to the same object, determining the object as the target object, and determining the target speech segment as the reference speech of the target object.

[0184] It should be noted that, for the introduction of step 802 and step 803, reference may be made to the relevant description of step 502 and step 503 in the embodiment shown in FIG5 , which will not be repeated here.

[0185] 804. Based on the final output of the first model to be trained and the final output of the second model to be trained, train the first model to be trained and the second model to be trained to obtain a first model and a second model.

[0186] After obtaining the first prediction processing result of the mixed speech and the second prediction processing result of the mixed speech, the first model to be trained, the second model to be trained and the third model to be trained can be trained based on the first prediction processing result of the mixed speech and the second prediction processing result of the mixed speech to obtain the first model, the second model and the third model.

[0187] Specifically, the first model, the second model, and the third model can be trained in the following manner:

[0188] Since the first true processing result of the mixed speech is known, the first predicted processing result of the mixed speech and the first true processing result of the mixed speech can be calculated using a first loss function to obtain a first loss. The first loss is used to indicate the difference between the first predicted processing result of the mixed speech and the first true processing result of the mixed speech. The first loss function is shown in the following formula:

[0189] In the above formula, L SE For the first loss, is the first predicted processing result of the mixed speech (ie, the predicted speech of the target object), s is the first real processing result of the mixed speech (ie, the real speech of the target object), and ε is the offset parameter.

[0190] (2) Since the second true processing result of the mixed speech is known, the second predicted processing result of the mixed speech and the second true processing result of the mixed speech can be calculated using a second loss function to obtain a second loss. The second loss is used to indicate the difference between the second predicted processing result of the mixed speech and the second true processing result of the mixed speech. The second loss function is shown in the following formula:

[0191] In the above formula, L SD is the second loss, y t is the second true processing result of the mixed speech (i.e., the true probability that each speech frame in the mixed speech belongs to the target object), is the second prediction processing result of the mixed speech (ie, the prediction probability that each speech frame in the mixed speech belongs to the target object).

[0192] (3) The features of the reference speech of the target object (derived from the speaker encoder in the first model) and the features of the predicted speech of the target object (derived from the multiplication module in the first model) are calculated by the third loss function to obtain a third loss. The third loss is used to indicate the difference between the features of the reference speech of the target object and the features of the predicted speech of the target object. The third loss function is similar to the second loss function and can be expressed as L spk .

[0193] (4) The first loss, the second loss, and the third loss are superimposed to obtain the target loss, namely: L = λ1L SE +λ2L SD +λ3L spk (4)

[0194] In the above formula, L is the target loss.

[0195] (5) After obtaining the target loss, the parameters of the first model to be trained, the model parameters of the second model to be trained, and the model parameters of the third model to be trained can be updated based on the target loss to obtain the updated first model to be trained, the updated second model to be trained, and the updated third model to be trained. The updated first model to be trained, the updated second model to be trained, and the updated third model to be trained can be continued to be trained using the next batch of training data (i.e., re-execute steps 801 to 804) until the model training conditions are met (for example, the target loss reaches convergence, etc.), and the first model, the second model, and the third model shown in Figure 4 or Figure 7, that is, the target model, can be obtained.

[0196] The target model obtained by training in the embodiment of the present application has a speech processing function (i.e., voiceprint segmentation and clustering function and target speaker voice extraction function). Specifically, when it is necessary to process the mixed speech, the mixed speech and the reference speech of the target object can be obtained first, wherein the mixed speech contains the speech of the target object and the speech of the remaining objects except the target object. Then, the mixed speech and the reference speech can be input into the target model. Then, the first model in the target model can process the intermediate output of the mixed speech, the reference speech, and the second model, thereby obtaining the intermediate output of the first model and the final output of the first model. At the same time, the second model in the target model can process the mixed speech and the intermediate output of the first model, thereby obtaining the intermediate output of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target object, and the final output of the second model can also be used to determine the position of the target object's speech in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches in the target model, realize the cross-fusion of the intermediate outputs in the process of processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering and target speaker voice extraction for the mixed speech. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0197] The above is a detailed description of the speech processing method and model training method provided in the embodiment of the present application. The following will introduce the speech processing device and model training device provided in the embodiment of the present application. Figure 9 is a structural diagram of the speech processing device provided in the embodiment of the present application. As shown in Figure 9, the device includes:

[0198] An acquisition module 901 is configured to acquire a mixed speech and a reference speech of a target object, wherein the mixed speech includes a mixture of the speech of the target object and the speech of other objects except the target object;

[0199] A first processing module 902 is configured to process the mixed speech, the reference speech, and the intermediate output of the second model using the first model to obtain the intermediate output of the first model and the final output of the first model, wherein the final output of the first model is used to obtain the speech of the target subject;

[0200] The second processing module 903 is used to process the mixed speech and the intermediate output of the first model through the second model to obtain the intermediate output of the second model and the final output of the second model. The final output of the second model is used to determine the position of the target object's speech in the mixed speech.

[0201] In an embodiment of the present application, when it is necessary to process the mixed speech, the mixed speech and the reference speech of the target object can be obtained first, wherein the mixed speech contains the speech of the target object and the speech of other objects except the target object. Then, the mixed speech and the reference speech can be input into the target model. Then, the first model in the target model can process the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model. At the same time, the second model in the target model can process the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the speech of the target object, and the final output of the second model can be used to determine the position of the speech of the target object in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches in the target model, realize the cross-fusion of the intermediate outputs in the process of processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering for the mixed speech and target speaker speech extraction. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0202] In one possible implementation, the first processing module 902 is used to: perform a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model; and perform a second processing on the intermediate output of the first model and the intermediate output of the second model to obtain the final output of the first model.

[0203] In one possible implementation, the second processing module 903 is used to: perform a third processing on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model; and perform a fourth processing on the intermediate output of the second model to obtain the final output of the second model.

[0204] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0205] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0206] In one possible implementation, the device also includes: an upsampling module, which is used to upsample the intermediate output of the second model through a third model to obtain the upsampled intermediate output of the second model; a first processing module 902, which is used to process the mixed speech, reference speech and the upsampled intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model.

[0207] In one possible implementation, the device also includes: a downsampling module, used to downsample the intermediate output of the first model through a third model to obtain the downsampled intermediate output of the first model; a second processing module 903, used to process the mixed speech and the downsampled intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model.

[0208] In one possible implementation, the acquisition module 901 is used to: obtain information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and obtain a reference voice of the target object corresponding to the information in a preset voice library.

[0209] In one possible implementation, the acquisition module 901 is used to: divide the mixed speech into multiple speech segments, where the multiple speech segments include a target speech segment; if the target speech segments correspond to the same object, determine the object as the target object, and determine the target speech segment as the reference speech of the target object.

[0210] FIG10 is a schematic diagram of the structure of a model training device provided in an embodiment of the present application. As shown in FIG10 , the device includes:

[0211] An acquisition module 1001 is configured to acquire a mixed speech and a reference speech of a target object, where the mixed speech includes the speech of the target object and the speech of other objects except the target object.

[0212] A first processing module 1002 is configured to process the mixed speech, the reference speech, and the intermediate output of the second model to be trained using the first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, wherein the final output of the first model to be trained is used to obtain the speech of the target subject;

[0213] A second processing module 1003 is configured to process the mixed speech and the intermediate output of the first model to be trained using a second model to be trained to obtain the intermediate output of the second model to be trained and a final output of the second model to be trained, wherein the final output of the second model to be trained is used to determine the position of the target object's speech in the mixed speech;

[0214] The training module 1004 is used to train the first model to be trained and the second model to be trained based on the final output of the first model to be trained and the final output of the second model to be trained to obtain a first model and a second model.

[0215] The target model trained in the embodiments of the present application has speech processing functions (i.e., voiceprint segmentation and clustering functions, as well as target speaker voice extraction functions). Specifically, when mixed speech needs to be processed, the mixed speech and the reference speech of the target subject can be first obtained, wherein the mixed speech contains the speech of the target subject and the speech of other subjects excluding the target subject. Next, the mixed speech and the reference speech can be input into the target model. The first model in the target model can then process the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model. Simultaneously, the second model in the target model can process the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model. Finally, the final output of the first model can be used to obtain the target subject's speech, and the final output of the second model can also be used to determine the position of the target subject's speech in the mixed speech. Based on the above process, it can be seen that the first model and the second model, as two branches of the target model, achieve cross-fusion of the intermediate outputs while processing the mixed speech respectively, thereby jointly completing the two tasks of voiceprint segmentation and clustering and target speaker voice extraction for the mixed speech. It can be seen that the new model framework provided by the embodiment of the present application, namely the target model, can simultaneously support two types of tasks: voiceprint segmentation and clustering, and target speaker voice extraction, which is conducive to reducing the design cost of speech processing.

[0216] In one possible implementation, the first processing module 1002 is used to: perform a first processing on the mixed speech and the reference speech to obtain the intermediate output of the first model to be trained; and perform a second processing on the intermediate output of the first model to be trained and the intermediate output of the second model to be trained to obtain the final output of the first model to be trained.

[0217] In one possible implementation, the second processing module 1003 is used to: perform a third processing on the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained; and perform a fourth processing on the intermediate output of the second model to be trained to obtain the final output of the second model to be trained.

[0218] In one possible implementation, the first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

[0219] In one possible implementation, the third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

[0220] In one possible implementation, the device also includes: an upsampling module, which is used to upsample the intermediate output of the second model to be trained through the third model to be trained to obtain the upsampled intermediate output of the second model to be trained; a first processing module 1002, which is used to process the mixed speech, reference speech and the upsampled intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained.

[0221] In one possible implementation, the device also includes: a downsampling module, used to downsample the intermediate output of the first model to be trained through the third model to be trained to obtain the downsampled intermediate output of the first model to be trained; a second processing module 1003, used to process the mixed speech and the downsampled intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained.

[0222] In one possible implementation, the acquisition module 1001 is used to: obtain information of the target object, the information including at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; and obtain a reference voice of the target object corresponding to the information in a preset voice library.

[0223] In one possible implementation, the acquisition module 1001 is used to: divide the mixed speech into multiple speech segments, where the multiple speech segments include a target speech segment; if the target speech segments correspond to the same object, determine the object as the target object, and determine the target speech segment as the reference speech of the target object.

[0224] In one possible implementation, the training module 1004 is used to: obtain a target loss based on the final output of the first model to be trained (i.e., the first predicted processing result of the mixed speech mentioned above), the true output of the first model to be trained (i.e., the first true processing result of the mixed speech mentioned above), the final output of the second model to be trained (i.e., the second predicted processing result of the mixed speech mentioned above), and the true output of the second model to be trained (i.e., the second true processing result of the mixed speech mentioned above), the target loss is used to indicate the difference between the final output of the first model to be trained and the true output of the first model to be trained, and the difference between the final output of the second model to be trained and the true output of the second model to be trained; based on the target loss, update the parameters of the first model to be trained and the parameters of the second model to be trained until the model training conditions are met, thereby obtaining the first model and the second model.

[0225] In one possible implementation, the training module 1004 is further configured to update the parameters of the first model to be trained based on the target loss until the model training conditions are met, thereby obtaining a third model.

[0226] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the embodiment of the present application, and no further details will be given here.

[0227] The embodiment of the present application also relates to an execution device, and Figure 11 is a structural diagram of the execution device provided by the embodiment of the present application. As shown in Figure 11, the execution device 1100 can be specifically manifested as a mobile phone, a tablet, a laptop computer, an intelligent wearable device, a server, etc., which are not limited here. Among them, the speech processing device described in the embodiment corresponding to Figure 9 can be deployed on the execution device 1100 to implement the function of speech processing in the embodiment corresponding to Figure 5. Specifically, the execution device 1100 includes: a receiver 1101, a transmitter 1102, a processor 1103 and a memory 1104 (wherein the number of processors 1103 in the execution device 1100 can be one or more, and Figure 11 takes one processor as an example), wherein the processor 1103 may include an application processor 11031 and a communication processor 11032. In some embodiments of the present application, the receiver 1101, the transmitter 1102, the processor 1103 and the memory 1104 may be connected via a bus or other means.

[0228] The memory 1104 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1103. A portion of the memory 1104 may also include non-volatile random access memory (NVRAM). The memory 1104 stores processor and operation instructions, executable modules, or data structures, or subsets or extended sets thereof. The operation instructions may include various operation instructions for implementing various operations.

[0229] Processor 1103 controls the operation of the execution device. In specific applications, the various components of the execution device are coupled together via a bus system. In addition to a data bus, the bus system may also include a power bus, a control bus, and a status signal bus. However, for clarity, all of these buses are referred to as a bus system in the figure.

[0230] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 1103. Processor 1103 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in processor 1103. The above processor 1103 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor, or a microcontroller, and can further include an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The processor 1103 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 1104, and processor 1103 reads information from memory 1104 and, in conjunction with its hardware, completes the steps of the above method.

[0231] Receiver 1101 can be used to receive input digital or character information and generate signal input related to executing device-related settings and function control. Transmitter 1102 can be used to output digital or character information through the first interface. Transmitter 1102 can also be used to send instructions to the disk pack through the first interface to modify data in the disk pack. Transmitter 1102 can also include a display device such as a display screen.

[0232] In an embodiment of the present application, in one case, the processor 1103 is configured to generate a processing result of the mixed speech using the target model in the embodiment corresponding to FIG5 .

[0233] The present application also relates to a training device. FIG12 is a schematic diagram of the structure of the training device provided by the present application. As shown in FIG12 , the training device 1200 is implemented by one or more servers. The training device 1200 may vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 1214 (e.g., one or more processors) and memory 1232, and one or more storage media 1230 (e.g., one or more mass storage devices) storing application programs 1242 or data 1244. The memory 1232 and storage medium 1230 may be either ephemeral or persistent storage. The program stored in the storage medium 1230 may include one or more modules (not shown), each of which may include a series of instruction operations in the training device. Furthermore, the CPU 1214 may be configured to communicate with the storage medium 1230 to execute the series of instruction operations in the storage medium 1230 on the training device 1200.

[0234] The training device 1200 may also include one or more power supplies 1226, one or more wired or wireless network interfaces 1250, one or more input and output interfaces 1258; or, one or more operating systems 1241, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0235] Specifically, the training device can execute the model training method in the embodiment corresponding to Figure 8.

[0236] An embodiment of the present application also relates to a computer storage medium, which stores a program for signal processing. When the computer storage medium is run on a computer, it enables the computer to execute the steps executed by the aforementioned execution device, or enables the computer to execute the steps executed by the aforementioned training device.

[0237] An embodiment of the present application also relates to a computer program product, which stores instructions that, when executed by a computer, enable the computer to execute the steps executed by the aforementioned execution device, or enable the computer to execute the steps executed by the aforementioned training device.

[0238] The execution device, training device or terminal device provided in the embodiments of the present application can specifically be a chip, and the chip includes: a processing unit and a communication unit, the processing unit can be, for example, a processor, and the communication unit can be, for example, an input / output interface, a pin or a circuit, etc. The processing unit can execute the computer execution instructions stored in the storage unit, so that the chip in the execution device executes the data processing method described in the above embodiment, or so that the chip in the training device executes the data processing method described in the above embodiment. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit can also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0239] Specifically, see Figure 13 , which is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip may be a neural network processor (NPU) 1300. NPU 1300 is mounted on a host CPU (host CPU) as a coprocessor, with tasks assigned by the host CPU. The core of the NPU is arithmetic circuit 1303, which is controlled by controller 1304 to extract matrix data from memory and perform multiplication operations.

[0240] In some implementations, the arithmetic circuit 1303 includes multiple processing units (PEs). In some implementations, the arithmetic circuit 1303 is a two-dimensional systolic array. The arithmetic circuit 1303 can also be a one-dimensional systolic array or other electronic circuitry capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit 1303 is a general-purpose matrix processor.

[0241] For example, assume there are input matrix A, weight matrix B, and output matrix C. The computation circuit retrieves the corresponding data of matrix B from weight memory 1302 and caches it on each PE in the computation circuit. The computation circuit then retrieves the data of matrix A from input memory 1301 and performs a matrix operation on it with matrix B. The partial or final matrix result is stored in accumulator 1308.

[0242] Unified memory 1306 is used to store input and output data. Weight data is directly transferred to weight memory 1302 through the Direct Memory Access Controller (DMAC) 1305. Input data is also transferred to unified memory 1306 through the DMAC.

[0243] BIU stands for Bus Interface Unit 1313 , which is used for interaction between the AXI bus, DMAC, and Instruction Fetch Buffer (IFB) 1309 .

[0244] The bus interface unit 1313 (BIU) is used for the instruction fetch memory 1309 to obtain instructions from the external memory, and is also used for the storage unit access controller 1305 to obtain the original data of the input matrix A or the weight matrix B from the external memory.

[0245] DMAC is mainly used to move input data in the external memory DDR to the unified memory 1306 or to move weight data to the weight memory 1302 or to move input data to the input memory 1301.

[0246] The vector calculation unit 1307 includes multiple operation processing units. When necessary, it further processes the output of the operation circuit 1303, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as batch normalization, pixel-level summation, and upsampling of the predicted label plane.

[0247] In some implementations, the vector calculation unit 1307 can store the processed output vector to the unified memory 1306. For example, the vector calculation unit 1307 can apply a linear function or a nonlinear function to the output of the operation circuit 1303, such as linear interpolation of the predicted label plane extracted by the convolution layer, or another example of a vector of accumulated values ​​to generate an activation value. In some implementations, the vector calculation unit 1307 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 1303, for example, for use in subsequent layers in a neural network.

[0248] An instruction fetch buffer 1309 connected to the controller 1304 is used to store instructions used by the controller 1304;

[0249] Unified memory 1306, input memory 1301, weight memory 1302, and instruction fetch memory 1309 are all on-chip memories. External memories are private to the NPU hardware architecture.

[0250] The processor mentioned in any of the above places can be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the above program.

[0251] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0252] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0253] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0254] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

Claims

1. A speech processing method, characterized in that: The method comprises: Acquire a mixed speech and a reference speech of a target object, wherein the mixed speech includes the speech of the target object and the speech of other objects except the target object; Processing the mixed speech, the reference speech and the intermediate output of the second model through the first model to obtain the intermediate output of the first model and the final output of the first model, wherein the final output of the first model is used to obtain the speech of the target object; The mixed speech and the intermediate output of the first model are processed by the second model to obtain the intermediate output of the second model and the final output of the second model, and the final output of the second model is used to determine the position of the speech of the target object in the mixed speech.

2. The method according to claim 1, characterized in that The step of processing the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model comprises: Performing a first process on the mixed speech and the reference speech to obtain an intermediate output of the first model; A second process is performed on the intermediate output of the first model and the intermediate output of the second model to obtain a final output of the first model.

3. The method according to claim 1, characterized in that The step of processing the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model comprises: Performing a third process on the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model; The intermediate output of the second model is subjected to a fourth processing to obtain a final output of the second model.

4. The method according to claim 2, characterized in that: The first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

5. The method according to claim 3, characterized in that: The third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Upsampling the intermediate output of the second model by using a third model to obtain an upsampled intermediate output of the second model; The step of processing the mixed speech, the reference speech, and the intermediate output of the second model to obtain the intermediate output of the first model and the final output of the first model comprises: The mixed speech, the reference speech and the upsampled intermediate output of the second model are processed to obtain the intermediate output of the first model and the final output of the first model.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Downsampling the intermediate output of the first model by using a third model to obtain a downsampled intermediate output of the first model; The step of processing the mixed speech and the intermediate output of the first model to obtain the intermediate output of the second model and the final output of the second model comprises: The mixed speech and the downsampled intermediate output of the first model are processed to obtain the intermediate output of the second model and the final output of the second model.

8. The method according to any one of claims 1 to 7, characterized in that: The obtaining of a reference voice of the target object comprises: Acquire information of a target object, the information comprising at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; In a preset voice library, a reference voice of the target object corresponding to the information is obtained.

9. The method according to any one of claims 1 to 7, characterized in that: The obtaining of a reference voice of the target object comprises: Dividing the mixed speech into a plurality of speech segments, wherein the plurality of speech segments include a target speech segment; If the target speech segment corresponds to the same object, the object is determined as the target object, and the target speech segment is determined as the reference speech of the target object.

10. A model training method, characterized in that: The method comprises: Acquire a mixed voice and a reference voice of a target object, wherein the mixed voice includes the voice of the target object and other voices other than the target object. The voices of other objects besides Processing the mixed speech, the reference speech, and the intermediate output of the second model to be trained by the first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, wherein the final output of the first model to be trained is used to obtain the speech of the target object; Processing the mixed speech and the intermediate output of the first model to be trained by the second model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, wherein the final output of the second model to be trained is used to determine the position of the speech of the target object in the mixed speech; Based on the final output of the first model to be trained and the final output of the second model to be trained, the first model to be trained and the second model to be trained are trained to obtain a first model and a second model.

11. The method according to claim 10, characterized in that The step of processing the mixed speech, the reference speech, and the intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained includes: Performing a first process on the mixed speech and the reference speech to obtain an intermediate output of the first to-be-trained model; The intermediate output of the first model to be trained and the intermediate output of the second model to be trained are subjected to a second processing to obtain a final output of the first model to be trained.

12. The method according to claim 10, characterized in that The step of processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained includes: Performing a third process on the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained; Perform a fourth process on the intermediate output of the second model to be trained to obtain a final output of the second model to be trained.

13. The method according to claim 11, characterized in that The first processing includes at least one of the following: encoding and recurrent neural network-based processing, and the second processing includes at least one of the following: splicing, recurrent neural network-based processing, mask prediction, and decoding.

14. The method according to claim 12, characterized in that The third processing includes at least one of the following: processing based on a bidirectional long short-term memory network, and the fourth processing includes at least one of the following: splicing, processing based on a bidirectional long short-term memory network, and linear calculation.

15. The method according to any one of claims 10 to 14, characterized in that: The method further comprises: Upsampling the intermediate output of the second model to be trained by using the third model to be trained to obtain the upsampled intermediate output of the second model to be trained; The step of processing the mixed speech, the reference speech, and the intermediate output of the second model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained includes: The mixed speech, the reference speech and the upsampled intermediate output of the second model to be trained are processed to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained.

16. The method according to any one of claims 10 to 15, characterized in that: The method further comprises: Downsampling the intermediate output of the first model to be trained by using a third model to be trained to obtain the downsampled intermediate output of the first model to be trained; The step of processing the mixed speech and the intermediate output of the first model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained includes: The mixed speech and the downsampled intermediate output of the first model to be trained are processed to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained.

17. The method according to any one of claims 10 to 16, characterized in that: The obtaining of a reference voice of the target object comprises: Acquire information of a target object, the information comprising at least one of the following: an image of the target object, text of the target object, and an identifier of the target object; In a preset voice library, a reference voice of the target object corresponding to the information is obtained.

18. The method according to any one of claims 10 to 16, characterized in that: The obtaining of a reference voice of the target object comprises: Dividing the mixed speech into a plurality of speech segments, wherein the plurality of speech segments include a target speech segment; If the target speech segment corresponds to the same object, the object is determined as the target object, and the target speech segment is determined as the The reference speech of the target subject.

19. A speech processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a mixed speech and a reference speech of a target object, wherein the mixed speech includes a mixture of the speech of the target object and the speech of other objects except the target object; A first processing module, used for processing the mixed speech, the reference speech and the intermediate output of the second model through a first model to obtain the intermediate output of the first model and the final output of the first model, wherein the final output of the first model is used to obtain the speech of the target object; The second processing module is used to process the mixed speech and the intermediate output of the first model through the second model to obtain the intermediate output of the second model and the final output of the second model, and the final output of the second model is used to determine the position of the speech of the target object in the mixed speech.

20. A model training device, characterized in that: The device comprises: An acquisition module, used for acquiring a mixed speech and a reference speech of a target object, wherein the mixed speech includes the speech of the target object and the speech of other objects except the target object; A first processing module is used to process the mixed speech, the reference speech and the intermediate output of the second model to be trained through a first model to be trained to obtain the intermediate output of the first model to be trained and the final output of the first model to be trained, wherein the final output of the first model to be trained is used to obtain the speech of the target object; A second processing module, used for processing the mixed speech and the intermediate output of the first model to be trained by the second model to be trained to obtain the intermediate output of the second model to be trained and the final output of the second model to be trained, wherein the final output of the second model to be trained is used to determine the position of the speech of the target object in the mixed speech; A training module is used to train the first model to be trained and the second model to be trained based on the final output of the first model to be trained and the final output of the second model to be trained to obtain a first model and a second model.

21. A speech processing device, characterized in that: The device includes a memory and a processor; the memory stores codes, and the processor is configured to execute the codes. When the codes are executed, the speech processing device performs the method according to any one of claims 1 to 18.

22. A computer storage medium, characterized in that The computer storage medium stores one or more instructions, which, when executed by one or more computers, enable the one or more computers to implement the method of any one of claims 1 to 18.

23. A computer program product, characterized in that The computer program product stores instructions, which, when executed by a computer, cause the computer to implement the method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Voice data processing method and device, computer equipment and storage medium

    CN111613231A

  • Voice extraction method, system and device and storage medium

    CN113345464A

  • Speaker recognition method and device, computer equipment and storage medium

    CN113436633A

  • Voice verification method, terminal device and storage medium

    CN114974261A

  • Voice extraction method and device, neural network model training method and device and storage medium

    CN115116448A