Voice processing method, electronic device and storage medium
By using the attention statistical pooling layer in the speech processing model to directly remove interfering sounds in multi-speaker scenarios, the problem of complexity and redundancy of existing systems in removing interfering sounds in multi-speaker scenarios is solved, and high efficiency is achieved. speech processing.
Patent Information
- Application Number
- CN202210475913.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-04-29
AI Technical Summary
Existing speech processing systems are difficult to selectively remove interfering sounds in multi-speaker scenarios, resulting in system complexity and resource waste, and the speech separation network increases system redundancy and slow operation.
Adopting a speech processing model based on the attention statistical pooling layer, by converting the hidden layer representation sequence of the registered speaker embedding and mixed audio data into a fixed-dimensional representation, the interfering vocals of non-registered speakers are directly removed without additional speech separation. network.
It reduces system redundancy, improves calculation efficiency, can effectively suppress clutter signals and audio data of other speakers, and improves the accuracy of target speaker speech recognition.
Smart Images

Figure CN114842866B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of Internet technology, and in particular relates to a voice processing method, electronic equipment and storage medium. Background Art
[0002] With the continuous development of voice technology, some manufacturers have been able to better extract the speaker's voice audio from a noisy voice environment, so as to better complete the corresponding voice task operation. At present, relevant technical researchers in the industry are committed to building a robust speaker verification system in more complex scenarios, and have studied a variety of technologies to remove interference information other than human voice, such as data enhancement, adding random perturbations to the spectrum, adversarial learning, etc.
[0003] However, these technologies are mostly used to remove interfering information other than human voice, such as environmental noise, etc. However, when the voice of the speaker is interfered by the voice of other people, the above-mentioned systems are usually unable to selectively remove such interfering voice.
[0004] In audio recognition tasks with multiple speakers, in order to achieve speech recognition of a specific target person, it is necessary to remove the interference of other voices. Many researchers have proposed speech separation technology, which introduces a speech separation network to separate the target speaker's speech in advance and input the single-person speech into the speaker recognition system.
[0005] However, using a speech separation network in speaker verification tasks makes the system particularly complex and redundant, resulting in resource waste and slow computing.
[0006] The industry has not yet provided a better solution to the above problems. Summary of the invention
[0007] The embodiments of the present invention provide a speech processing method, an electronic device and a storage medium, which are used to solve at least one of the above technical problems.
[0008] In a first aspect, an embodiment of the present invention provides a speech processing method, comprising: obtaining mixed audio data for a multi-speaker scenario; inputting the mixed audio data into a speech processing model, so that the speech processing model verifies whether the mixed audio data is audio data related to a target speaker; wherein the pooling layer of the speech processing model adopts an attention statistical pooling layer, and the attention statistical pooling layer is used to convert the registered speaker embedding and the hidden layer representation sequence corresponding to the mixed audio data into a representation of a fixed dimension, and the registered speaker embedding is identity feature information determined by the speech processing model according to the registered corpus of the target speaker.
[0009] In a second aspect, an embodiment of the present invention provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the above method.
[0010] In a third aspect, an embodiment of the present invention provides a storage medium, in which one or more programs including execution instructions are stored, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute the steps of the above-mentioned method of the present invention.
[0011] In a fourth aspect, an embodiment of the present invention further provides a computer program product, wherein the computer program product comprises a computer program stored on a storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the steps of the above method.
[0012] The beneficial effects of the embodiments of the present invention are:
[0013] For mixed audio data collected in a multi-speaker scenario, the speech processing model can be used to suppress clutter signals and audio data of other speakers in the mixed audio data, and can analyze whether the mixed audio data is related to the target speaker (for example, whether it contains the voice of the target speaker). In an embodiment of the present invention, the speech processing model uses an attention statistics pooling layer based on the registered corpus of the target speaker, which can extract specific speaker information without adding redundant speech separation networks, reducing system redundancy and improving system computing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 A flowchart showing an example of a speech processing method according to an embodiment of the present invention is shown;
[0016] Figure 2 A flow chart of a speech processing model with EA-ASP according to an embodiment of the present invention when performing a speaker verification task is shown;
[0017] Figure 3 A bottleneck dimension ablation experiment data table of the EA-SAP-M system according to an embodiment of the present invention is shown;
[0018] Figure 4 The score distribution of the r-vector baseline system on the Vox_E test set in the multi-speaker scenario and the single-speaker scenario according to the speaker verification system of the current related art is shown;
[0019] Figure 5 A performance evaluation data table of a speaker verification system according to an embodiment of the present invention is shown;
[0020] Figure 6 The score distribution of the r-vector baseline system of the EA-ASP-M system in the Vox_E test set in multi-speaker scenario and single-speaker scenario according to an embodiment of the present invention is shown;
[0021] Figure 7 It is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0024] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0025] In the present invention, "module", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, etc. In detail, for example, an element can be, but is not limited to, a process, a processor, an object, an executable element, an execution thread, a program and / or a computer running on a processor. In addition, an application program or a script program, a server running on a server can be an element. One or more elements can be in the process and / or thread of execution, and an element can be localized on a computer and / or distributed between two or more computers, and can be operated by various computer-readable media. An element can also communicate by a local and / or remote process according to a signal with one or more data packets, for example, a signal from a local system, another element interacting in a distributed system, and / or a signal of data interacting with other systems through a signal on a network of the Internet.
[0026] Finally, it should be noted that, in this article, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.
[0027] It should be noted that among the current related technologies, there are some speech processing technologies for complex speaker scenes. Currently, the main method that can be used is data enhancement method to remove interference information other than human voice. It is mainly the most effective and simplest method to improve the robustness of speaker verification system. Some scholars in the industry have proposed adding random noise and reverberation to the original audio to generate more training data, or directly randomly perturbing the spectrum to increase training data. In addition, in order to help the speaker verification system learn to explicitly remove interference information, some relevant researchers have also used adversarial technology to remove channel information to help the speaker verification system become more robust to speech variability.
[0028] However, the inventors of the present invention found in the process of practicing the present invention that the currently popular speaker verification system always assumes that there is only one speaker in the input speech and maps the input speech to a low-dimensional vector (i.e., speaker embedding) which is used to represent the identity of the speaker in the speech. As a result, when other voices appear, technologies such as data enhancement and spectrum perturbation cannot selectively perform target speaker verification. Moreover, when there are multiple speakers in the input speech, it is unknown whether the speaker embedding can still reflect the information of the speaker identity.
[0029] Speaker verification consists of two phases, enrollment and testing. During the testing phase, there are often various uncertainties in the environment, especially when people want to use voice to wake up their phones or smart speakers in a crowded environment. The difference is that during the enrollment phase, the speaker needs to record his or her own voice in a quieter environment. If the speaker verification system utilizes the enrollment information during the testing phase, the interfering speakers can be removed from the speaker mixture. However, the interfering speaker problem often occurs in speaker classification tasks, and the task of using additional enrollment speaker information in the speaker verification process is named target speaker verification (TSV).
[0030] In the case of multi-speaker speech scenarios, many researchers have borrowed the technology of speech separation to solve the problem of target speaker verification. Some scholars have proposed that the speaker information of the registered speech should be encoded first, and then the encoded information should be used to help the speech separation network separate the registered speaker's speech from the test speech. At this point, the separated speech contains only one speaker and can be used in the subsequent speaker verification system.
[0031] However, the inventors of the present invention found in the process of practicing the present invention that in order to verify the target speaker in a multi-speaker scenario, a speech separation network is used to separate the target speaker's speech from the multi-speaker speech, and then the registered and separated test speech is input into a speaker verification system based on i-vector, etc. However, adding a speech separation network makes the overall system too complex and redundant.
[0032] In speaker verification tasks, existing systems can achieve good performance in single-speaker scenarios without noise, but in scenarios with environmental noise or even multiple speakers, system performance will be significantly reduced. Speaker verification tasks in multi-speaker scenarios are more complex and place high demands on the robustness of existing systems.
[0033] Usually, researchers borrow the technology of speech separation, first encode the speaker information of the registered speech, and then use the encoded information to help the speech separation network separate the speech of the registered speaker from the test speech. The separated speech contains only one speaker and can be used for subsequent speaker verification systems, but it will also make the system too redundant and complicated.
[0034] Figure 1A flowchart of an example of a speech processing method according to an embodiment of the present invention is shown. The execution subject of the embodiment of the present invention may be various types of electronic devices with processing capabilities, such as computers, mobile phones, intelligent robots, etc. Through the speech processing method of the embodiment of the present invention, it is possible to process audio collected in a multi-speaker scene to achieve various desired speech processing goals, such as identifying whether there is audio of a specific speaker in mixed audio, and it can be used in business scenarios of various speech targets without limitation.
[0035] like Figure 1 As shown, in step 110, mixed audio data for a multi-speaker scenario is obtained.
[0036] Here, the audio data collected in a multi-speaker scenario generally has more interference items for the audio processing task, such as environmental noise and speech data of other speakers except the target speaker, and the mixed audio data needs to be analyzed.
[0037] In step 120 , the mixed audio data is input into a speech processing model so that the speech processing model verifies whether the mixed audio data is audio data related to the target speaker.
[0038] It should be noted that the pooling layer of the speech processing model adopts an attention statistics pooling (i.e., EA-ASP, Enroll-Aware Attentive Statistics Pooling, enrollment-aware attention statistics pooling) layer, and the attention statistics pooling layer is used to convert the hidden layer representation sequence corresponding to the registered speaker embedding and the mixed audio data into a fixed-dimensional representation, and the registered speaker embedding is the identity feature information determined by the speech processing model according to the enrollment corpus of the target speaker. Therefore, based on the speech processing model of the embodiment of the present invention, the information of the registered speaker is directly injected into the pooling layer, and the attention mechanism of the attention statistics pooling layer is used to remove the interfering human voices of non-registered persons in the mixed audio data, without the need to use an additional speech separation network, to achieve a more lightweight and efficient speech processing process.
[0039] The speech processing model of the embodiment of the present invention can be an overall model structure or a partial structure of the model, and can be attached with other different types of functional modules to complete a variety of speech processing tasks, such as the target speaker's speech extraction task, or the speech speaker verification task, etc., and all belong to the implementation scope of the embodiment of the present invention. Exemplarily, in the speaker verification task, the speech processing model can calculate the speaker embedding corresponding to the mixed audio data, and can be compared with the registered speaker embedding to determine whether the voice of the registered target speaker exists in the mixed audio data.
[0040] In some embodiments, the speech processing model can be configured to have multiple different processing modes to meet different business scenarios. Exemplarily, the speech processing model is a speech processing mode that can be selected, such as a registered speech perception mode and then a registered speech ignoring mode; wherein, in the registered speech perception mode, speech perception attention and extraction of the target speaker corresponding to the registered speech in the input audio can be achieved, and in the registered speech ignoring mode, the attention statistical pooling layer will degenerate into an ordinary statistical pooling layer, and will not pay attention to specific speaker information during pooling processing.
[0041] Specifically, after the mixed audio data is input into the speech processing model, the electronic device can detect the speech processing mode of the speech processing model, and when the speech processing model is in the registered speech perception mode, the attention statistical pooling layer is used to convert the hidden layer representation sequence and the registered speaker embedding information corresponding to the mixed audio data into a fixed-dimensional representation, and when the speech processing model is in the registered speech ignoring mode, the attention statistical pooling layer is used to convert only the hidden layer representation sequence into a fixed-dimensional representation. In the EI (Enroll-Ignorant) mode, the speech processing model does not use the registered speaker embedding as a priori condition, and the attention statistical pooling layer will degenerate into an ordinary statistical pooling layer.
[0042] In addition, in EA mode, the speech processing model uses the information of the registered speaker in the EA-ASP layer and can directly inject the information of the registered speaker into the pooling layer to help the attention mechanism remove interfering human voices. Compared with the method of using an additional speech separation network, the EA-ASP layer provided in the embodiment of the present invention is more lightweight and can be integrated with most mainstream speaker verification systems.
[0043] Based on the embodiments provided by the present invention, the EA-ASP layer can help the neural network remove interfering speaker information in the case of registered speaker embedding awareness, but the registered speaker embedding cannot be obtained in advance in all cases. For example, when it is necessary to extract the registered speaker embedding, the registered speaker embedding itself cannot be obtained in advance. Therefore, by dividing the use of the proposed registered speech-aware attention statistics pooling layer into two modes (EI mode and EA (Enroll-Aware, registered speech-aware) mode), it can be applied in various types of voice business scenarios. In some embodiments, the registered speaker embedding is determined by pre-training the speech processing model based on the registered corpus of the target speaker in the registered speech ignoring mode, so as to realize the extraction of the embedded information of the registered target speaker itself.
[0044] In addition, the inventors of the present invention found in the process of practicing the invention that directly embedding the registered speakers into the EA-ASP layer will cause the speaker information to be leaked during the training process, affecting the performance of the speaker verification system. To address this problem, the inventors of the present invention proposed to design a bottleneck architecture in the speech processing model, which limits the flow of speaker information through the bottleneck network, effectively solving the problem of speaker information leakage.
[0045] Figure 2 A flow chart of a speech processing model with EA-ASP according to an embodiment of the present invention when performing a speaker verification task is shown.
[0046] Reference Figure 2 As shown in the figure on the left side of the dotted line in the figure, the speaker verification system in the current related art consists of a feature extraction network, a pooling layer and an embedding conversion layer. The feature extraction network first maps the input x to the hidden layer representation sequence H = {h1,h2,...,h t}. Then, a pooling layer transforms the variable-length representation H into a fixed-dimensional representation. Finally, another transformation layer is applied to obtain the speaker embedding e.
[0047] Reference Figure 2 As shown in the legend on the right side of the dotted line in , the speech processing model provided based on the embodiment of the present invention includes a feature extraction layer, an EA-ASP (attention statistical pooling) layer and an embedding conversion layer, the feature extraction layer is used to determine the hidden layer representation sequence corresponding to the input mixed audio data, and the conversion layer is used to calculate the speaker embedding corresponding to the fixed-dimensional representation. The attention statistical pooling layer (EA-ASP) based on registered speech perception uses the registered speaker as the prior information in the pooling module, which can effectively remove the interfering speaker information.
[0048] Specifically, the hidden layer representation sequence and the registered speaker embedding are transformed and concatenated through their respective fully connected layers to obtain corresponding concatenated information. t (h t ∈R C ) and the registered speaker embedding e enroll (e enroll ∈R D ) as input, h t and e enroll First, they are transformed through their respective fully connected (FC) layers and then concatenated into o t , (o t ∈R (C+D) ).
[0049]
[0050] Then, the concatenated information is input into the preset bottleneck network to obtain the corresponding intermediate score matrix. Here, the bottleneck network includes multiple fully connected layers, and corresponding BatchNorm and ReLU functions are inserted between each fully connected layer to limit the flow of speaker information of the set speaker embedding dimension.
[0051] like Figure 2 The bottleneck network (Bottleneek Network) shown in the legend to the right of the dotted line contains three fully connected layers with dimensions of ((C+D) / 2, bottleneck / dim, C). BatchNorm and ReLU functions are inserted between different layers, so that when the bottleneck dimension is much lower than the speaker embedding dimension, the bottleneck network will limit the flow of speaker information.
[0052] Combining the examples above, o t is sent to a bottleneck network and the intermediate score S = {s1,s2,...,s t Then, based on the intermediate score S, the hidden representation sequence H is mapped to a fixed-dimensional representation. For example, the intermediate score matrix is calibrated and the calibrated intermediate score matrix is input into the attention statistical pooling layer to obtain the corresponding fixed-dimensional representation.
[0053] It should be noted that in the EI mode, since the registered speaker embedding is not used as a priori condition, the score matrix S will be directly set to an all-1 matrix. In this case, the attention statistical pooling layer will degenerate into a normal attention statistical pooling layer.
[0054] In some implementations of the embodiments of the present invention, the hidden representation sequence H can be mapped to a fixed-dimensional representation through two different mechanisms, namely EA-ASP-CW (Channel-wise Attentive statistic pooling) and EA-ASP-M (attentive statistics pooling with masking).
[0055] In the EA-ASP-CW mechanism, the attention weights of each audio channel of the input audio are calculated, and the attention weights of each audio channel and the intermediate score matrix are input into the attention statistical pooling layer to obtain the corresponding fixed-dimensional representation.
[0056] Specifically, we first calculate the channel attention weights starting from st along the time dimension:
[0057]
[0058] Where i is the channel index. Then, based on the attention weight Calculate the statistic μ i ,σ i , as shown below:
[0059]
[0060] It should be noted that the attention weight of each channel is calculated in the above formula to help the pooling layer filter out interfering vocal information when multiple voices overlap.
[0061] In addition, in the EA-ASP-M mechanism, the intermediate score matrix is mapped to the corresponding mask matrix based on the preset sigmoid function, the mask matrix is calibrated based on the preset mask calibration information, and the calibrated mask matrix is input into the attention statistical pooling layer to obtain the corresponding fixed-dimensional representation.
[0062] Specifically, the score matrix S is first mapped to a mask matrix using the sigmoid function:
[0063]
[0064] Then multiply H by M to eliminate interference information.
[0065]
[0066] It is fed into the attention statistical pooling layer to obtain a fixed-dimensional representation. Then, it passes through the embedding conversion layer to obtain the speaker embedding e.
[0067] Through the embodiments of the present invention, in the registered speech ignoring mode: the registered speaker embedding is not used to calculate the score S, and the score S can be directly set to a matrix with all 1 values. In the registered speech perception mode: the registered speaker embedding is used to calculate the score S. In the attention statistical pooling layer with mask, the attention weight is calculated in the attention statistical pooling layer, and in the channel-based attention statistical pooling layer, the attention weight α is directly fed back to the attention statistical pooling layer.
[0068] For the model training of the speech processing model of the present invention, when the speech processing model is in the registered speech ignoring mode, the attention statistical pooling layer can be degenerated into an ordinary statistical pooling layer, and the conventional model training samples and training methods can be used for training to equally extract the speaker embedding corresponding to the speech, which will not be repeated here. When the speech processing model is in the registered speech perception mode, the attention statistical pooling layer of the model will play the characteristics based on attention, and will pay more attention to the information of the specific speaker in the speech data. The training samples corresponding to it in the registered speech perception mode include forward test corpus, reverse test corpus, registered corpus and the registered speaker embedding. Specifically, the forward test corpus (i.e., mixed audio containing the registered person's speech) contains the audio information of the target speaker and at least one other speaker, and the forward test corpus has the same classification label as the registered corpus. In addition, the reverse test corpus contains the audio information of at least one other speaker other than the target speaker, and the classification label of the reverse test corpus is different from that of the forward test audio and the registered corpus.
[0069] The following is a detailed introduction to the training strategy of the speaker verification system with attention statistical pooling layer with registered speech perception, combined with examples.
[0070] Specifically, in order to simulate the scenario in the target speaker verification evaluation process, the training set is divided into two parts: registration speech and test speech. There is only one speaker (i.e., the target speaker) in the registration speech, but the number of speakers in the test speech is unknown. The number of speakers in the training set is denoted as N spk , and use y i ∈[0,N spk ) indicates registered voice The speaker identity is encoded in Y j ={y 1 , y 2 ,…}∈[0,N spk ] to indicate the test voice Speaker identity encoding in .
[0071] Here, we construct As input, we first take the enrollment corpus and test it. Feed into the system to get the registered speaker embedding And use the EA-ASP layer in the registered speech ignore mode. Then, test the corpus Together with the registered speaker embedding is fed into the system and extracted by the EA-ASP layer in a registration-aware mode to embed the test Then, using the same AAM (additive angular margin) calculation and loss.
[0072]
[0073]
[0074]
[0075] Among them, l enroll and l test is the classification label of the registration and test corpus, and the speaker code can be directly used as the classification label of the registration corpus. In an embodiment of the present invention, the classification label of the test corpus is conditional on the registration corpus, so that if the registration speaker exists in the test corpus, the classification label of the test corpus (i.e., the positive test corpus) is the same as the registration corpus. Otherwise, a unique classification label is assigned to the test corpus (i.e., the negative test corpus), which does not represent any speaker and can be used to verify that there is no target speaker of the registration voice in the mixed audio.
[0076]
[0077]
[0078] It should be noted that, as mentioned above, when Contains For the same speaker, Classify to Speaker y i However, this may cause some problems, such as the speaker information leakage problem. Specifically, since it is proposed in the embodiment of the present invention that and are fed into the model system to extract the test embedding, and the training objective guides the neural network to extract y i The speaker information of y is used to test the embedding. Obviously, y i The speaker information can come from or That is, categorical targets may result in This speaker information leakage problem may cause our EA-ASP layer to fail to learn how to remove interference information, but to better preserve Speaker information in .
[0079] In order to solve the problem of speaker information leakage, the embodiment of the present invention proposes the following Figure 2The bottleneck network shown in Figure 1. The bottleneck network consists of three fully connected layers with dimensions ((C+D) / 2, bottleneck / dim, C). By inserting BatchNorm and ReLU functions between different layers, if the bottleneck dimension is much lower than the speaker embedding dimension, the bottleneck network will limit the flow of speaker information.
[0080] In the speech processing model provided by the embodiment of the present invention, the speaker information in the registered speaker embedding may leak into the final test speaker embedding, causing the model to be optimized in the wrong direction and deteriorating the performance. In this regard, the solution provided by the embodiment of the present invention is to use a bottleneck network to limit too much registered speaker information from being input into the pooling layer.
[0081] Here, a speaker classification task is added to the statistical pooling layer result calculated using the intermediate score S, and the accuracy of this task is used to reflect the speaker information present in the score S. Since the gradient calculated by this task will not be passed back to the network, the speaker classification task will not affect other parts of the system.
[0082] like Figure 3 The bottleneck dimension of the bottleneck network is shown to evaluate the impact of information leakage. As expected, as the bottleneck dimension increases, more speaker information is leaked to the intermediate score S. Through comprehensive consideration, the bottleneck dimension can be set to 2, which can avoid excessive speaker information leakage while ensuring the performance of the speech system.
[0083] In some application scenarios of the embodiments of the present invention, the speech processing model of the embodiments of the present invention can be applied to a single speaker verification task to complete the task of identifying whether there is a specific speaker in a multi-person speech scenario.
[0084] Figure 4 The score distribution of the r-vector baseline system on the Vox_E test set in the multi-speaker scenario and the single-speaker scenario according to the speaker verification system of the current related art is shown.
[0085] It should be noted that most of the current single speaker verification systems are trained on data from a single speaker, and their performance in multi-speaker scenarios has not received much attention. In order to evaluate the performance of single speaker verification systems in multi-speaker scenarios, the inventors of the present invention conducted relevant experiments to test the performance of the r-vector baseline system in multi-speaker scenarios, and obtained the following results: Figure 4 The score distribution under different conditions is shown. Figure 4As can be seen in the figure, in the case of a single speaker, the target score distribution and the non-target score distribution are far apart, which shows that the speaker embedding has a strong ability to discriminate. When the test speech is mixed with the voices of other speakers, the target score distribution becomes closer to the non-target score distribution, but they do not overlap. This phenomenon shows that when the voices of multiple speakers are mixed together, the information of the original speaker will be masked, but its overall speaker embedding can still show the existence of the original speaker. Therefore, the original speaker information will be blurred in multi-person scenarios, which will seriously reduce the performance of the speaker verification system.
[0086] As a comparative experiment, the inventors of the present invention also evaluated the performance of the speaker verification system provided by the present invention (using the attention statistics pooling layer of the registered speech perception) in a multi-speaker scenario, and obtained the following results: Figure 5 Evaluation data table shown. Specifically, the EI mode and EA mode in the table illustrate the modes of the EA-ASP layer set by the speech processing model during the registered speaker embedding extraction process. Here, the aggregate system is obtained by maximizing the similarity scores of the systems in the EI mode and the EA mode. In this regard, it can be found that the EA-ASP-CW and EA-ASP-M systems perform comparable to the baseline system when the registered speaker embedding information is not used. When the registered speaker embedding is input into the EA-ASP system, both EA-ASP-CW and EA-ASP-M achieve significant performance improvements in multi-speaker scenario evaluation experiments, and EA-ASP-M performs better than EA-ASP-CW. EA-ASP-M even reduced the equal error rate by about 50% in three experiments. However, when the registered speaker information is added, the system has some performance degradation in the single-speaker scenario.
[0087] By calculating the average scores of the target experiment (the registered speaker and the test speaker are the same person) and the non-target experiment (the registered speaker and the test speaker are not the same person) in the single-speaker scenario, it is found that the non-target average score of EA-ASP-M (EA mode) (0.043) is slightly higher than the non-target average score of the baseline system (0.016), which may be the reason for the performance degradation and may be caused by the information leakage problem of the registered speaker.
[0088] Furthermore, to address the above issues, the systems with and without registered speaker information are aggregated by maximizing the scores, and the results are listed at the bottom of the table. After aggregation, the system with registered speech-aware attention statistics pooling layer still shows a huge advantage in multi-speaker scenarios and performs comparable to the baseline system in single-speaker scenarios.
[0089] Furthermore, the inventors of the present invention also conducted a performance experimental evaluation on the speech processing model provided by the method of the embodiment of the present invention, and performed a performance evaluation on the speech model system provided by the embodiment of the present invention in two different scenarios (single-speaker scenario and multi-speaker scenario). Specifically, the speech model system provided by the embodiment of the present invention is compared with the baseline system in two different scenarios: a single-speaker scenario and a multi-speaker scenario. In the single-speaker scenario, it is assumed that there is only one speaker in the test utterance. In the multi-speaker scenario, there are more than one speakers in the test utterance. Then, all systems are scored by calculating the cosine similarity of the embedding.
[0090] Through the embodiments of the present invention, a registration-aware attention statistics pooling layer is provided to help the speaker verification system extract the letter of a specific speaker, and multi-speaker evaluation data is simulated using Voxceleb1 data.
[0091] Simulated test data based on the Voxceleb2 development set The simulated test data can be divided into 4 different types: TYPE1: y i ∈Y i , Contains a speaker; TYPE2: y i ∈Y i , Contains two speakers; TYPE3: Contains a speaker; TYPE4: Contains two speakers.
[0092] Among them, y i yes Speaker index in Y i yes The speaker index set in . The proportions of these four types of data are set to 0.05, 0.05, 0.45, and 0.45 respectively. During the data simulation, the SNR is randomly sampled from -3 to 3, and the overlap rate between two speakers is randomly sampled from 0 to 0.5. In addition, is a randomly sampled block of data from the baseline training set, and also ensures that the simulation The duration is 2s.
[0093] For the single-speaker scenario, the system was evaluated using the Voxceleb1 dataset, and three public test sets, Vox O, Vox E, and Vox H, were used for experimental evaluation.
[0094] For the multi-speaker scenario, in order to better compare with the results in the single-speaker scenario, the evaluation dataset is also regenerated based on the public test sets Vox O, Vox E, and Vox H. For each trial pair, the registration utterance is retained and a new test utterance is simulated. When simulating a new test utterance, the speech of a person who is neither the test speaker nor the registration speaker is randomly selected as the interference speech and mixed with the original test speech. When performing data mixing, the SNR is randomly sampled from -3 to 3, and the overlap rate is randomly selected from 0 to 0.52. It should be noted that since the interference speaker has different speaker labels from the registration speech and the original test speech, the target / non-target labels for each trial pair do not change.
[0095] Evaluation of single-speaker verification systems in multi-speaker scenarios. Most speaker verification systems are trained on single-speaker data, and it is unknown how they perform in multi-speaker scenarios. Here, the r-vector baseline system is tested in multi-speaker scenarios and Figure 4 The score distribution under different conditions is plotted in . Figure 4 , we can find that in the single-speaker scenario, the target score distribution and the non-target score distribution are far apart, which means that the speaker embedding is very discriminative. In addition, when the test speech is mixed with the voice of other speakers, the target score distribution becomes closer to the non-target score distribution, but they do not overlap. This phenomenon indicates that the voice of the mixed speaker will mask the information of the original speaker, but the embedding can still show the existence of the original speaker. Specifically, you can also refer to Figure 5 The first row in the shown chart lists the numerical results, which show that the ambiguity of the original speaker information can seriously degrade the performance of the system.
[0096] Further, also refer to Figure 5 From the results shown, it can be found that the EA-ASP-CW and EA-ASP-M systems have comparable performance to the baseline system when the registration information is not used. When the registration embeddings are fed to the EA-ASP system, both EA-ASP-CW and EA-ASP-M achieve significant improvements in the multi-speaker evaluation trials, and EA-ASP-M outperforms EA-ASP-CW. EA-ASP-M even achieves a relative EER reduction of about 50% in the three evaluation trials. However, when the registration information is added, some performance degradation occurs in the single-speaker scenario. By calculating the average scores of the target and non-target trials in the single-speaker scenario, it is found that the average non-target score of EA-ASP-M (EA mode) (0.043) is slightly higher than the average non-target score baseline system score (0.016), which may be the reason for the performance degradation.
[0097] However, the leakage of registered speaker information may be a reason for the score fluctuation. To alleviate this problem, the method of the embodiment of the present invention also proposes to integrate the systems with and without registration conditions by using the decision with the higher score, and list the results as follows: Figure 5 After integration, the system with the EA-ASP layer still shows great advantages in many aspects, making it possible to achieve comparable performance with the baseline system in single-speaker scenarios.
[0098] Figure 6 The figure shows the score distribution of the r-vector baseline system in the Vox_E test set of the EA-ASP-M system in multi-speaker scenario and single-speaker scenario according to an embodiment of the present invention. Figure 6 As shown in the figure, compared with the performance of the baseline r-vector system, the multi-speaker target score distribution of the EA-ASP system provided by the embodiment of the present invention is closer to the single-speaker target score distribution, which also shows that the EA-ASP-M system can successfully extract the registered speaker information from the test corpus with interference. Specifically, based on the test results, the performance of the EA-ASP proposed in the embodiment of the present invention is much better than the baseline system (i.e., the r-vector system), and a relative EER (Equal Error Rate) reduction of about 50% is achieved.
[0099] Through the embodiment of the present invention, a registration-aware attention statistical pooling is proposed to solve the target speaker verification problem, which makes great progress in correctly verifying the identity of the speaker when facing overlapping utterances of multiple speakers. In addition, compared with the method using speech separation technology, the architecture proposed by the embodiment of the present invention is more lightweight and can be integrated with most mainstream speaker verification systems, and can be used as the first operation in the speaker verification system using the registered speaker embedding as prior information.
[0100] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of combined actions, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention. In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0101] In some embodiments, an embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores one or more programs including execution instructions, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute any of the above-mentioned speech processing methods of the present invention.
[0102] In some embodiments, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any one of the above-mentioned speech processing methods.
[0103] In some embodiments, an embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a speech processing method.
[0104] Figure 7 FIG. 1 is a schematic diagram of the hardware structure of an electronic device for executing a voice processing method provided by another embodiment of the present invention. Figure 7 As shown, the device includes:
[0105] One or more processors 710 and memory 720, Figure 7 A processor 710 is taken as an example.
[0106] The device for executing the speech processing method may further include: an input device 730 and an output device 740 .
[0107] The processor 710, the memory 720, the input device 730 and the output device 740 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0108] The memory 720 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the voice processing method in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 720, that is, the voice processing method in the above method embodiment is implemented.
[0109] The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the voice interaction device, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 720 may optionally include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the voice processing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0110] The input device 730 can receive input digital or character information and generate signals related to user settings and function control of the voice processing device. The output device 740 can include a display device such as a display screen.
[0111] The one or more modules are stored in the memory 720, and when executed by the one or more processors 710, the speech processing method in any of the above method embodiments is executed.
[0112] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0113] The electronic devices of the embodiments of the present invention exist in various forms, including but not limited to:
[0114] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.
[0115] (2) Ultra-mobile personal computer devices: These devices belong to the category of personal computers, have computing and processing functions, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, etc.
[0116] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0117] (4) Other onboard electronic devices with data interaction functions, such as on-board devices installed in vehicles.
[0118] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A speech processing method, comprising: Obtain mixed audio data for multi-speaker scenarios; Inputting the mixed audio data into a speech processing model so that the speech processing model verifies whether the mixed audio data is audio data related to a target speaker; The pooling layer of the speech processing model adopts an attention statistical pooling layer, which is used to convert the registered speaker embedding and the hidden layer representation sequence corresponding to the mixed audio data into a representation of a fixed dimension, and the registered speaker embedding is the identity feature information determined by the speech processing model according to the registered corpus of the target speaker; The speech processing model is further used to perform the following operations: The hidden layer representation sequence and the registered speaker embedding are respectively transformed and concatenated through respective fully connected layers to obtain corresponding concatenated information; Inputting the concatenated information into a preset bottleneck network to obtain a corresponding intermediate score matrix; the bottleneck network includes a plurality of fully connected layers, and corresponding BatchNorm and ReLU functions are inserted between each fully connected layer to limit the flow of speaker information of the set speaker embedding dimension; The intermediate score matrix is calibrated, and the calibrated intermediate score matrix is input into the attention statistics pooling layer to obtain a corresponding fixed-dimensional representation.
2. The method according to claim 1, wherein: The step of inputting the mixed audio data into a speech processing model so that the speech processing model verifies whether the mixed audio data is audio data related to a target speaker comprises: detecting a speech processing mode of the speech processing model; When the speech processing model is in the registered speech perception mode, the attention statistics pooling layer is used to convert the hidden layer representation sequence corresponding to the registered speaker embedding and the mixed audio data into a representation of fixed dimension; and When the speech processing model is in the registered speech ignoring mode, the attention statistics pooling layer is used to convert only the hidden layer representation sequence into a representation of fixed dimension.
3. The method according to claim 2, wherein: The registered speaker embedding is determined by pre-training the speech processing model in a registered speech ignoring mode based on the registered corpus of the target speaker.
4. The method according to claim 1, wherein: The training samples corresponding to the speech processing model in the registered speech perception mode include positive test corpus, negative test corpus, registered corpus and the registered speaker embedding; The positive test audio includes audio information of the target speaker and at least one other speaker, and the positive test corpus has the same classification label as the registration corpus; and The reverse test corpus contains audio information of at least one other speaker except the target speaker, and the classification label of the reverse test corpus is different from that of the registration corpus.
5. The method according to claim 1, wherein: The speech processing model includes a feature extraction layer, an attention statistics pooling layer and an embedding conversion layer, wherein the feature extraction layer is used to determine a hidden layer representation sequence corresponding to the input mixed audio data, and the conversion layer is used to calculate a speaker embedding corresponding to the fixed-dimensional representation.
6. The method according to claim 5, wherein: The step of calibrating the intermediate score matrix and inputting the calibrated intermediate score matrix into the attention statistics pooling layer to obtain a corresponding fixed-dimensional representation includes: Calculating attention weights for each audio channel of the input audio; The attention weights of each audio channel and the intermediate score matrix are input into the attention statistics pooling layer to obtain the corresponding fixed-dimensional representation.
7. The method according to claim 5, wherein: The step of calibrating the intermediate score matrix and inputting the calibrated intermediate score matrix into the attention statistics pooling layer to obtain a corresponding fixed-dimensional representation includes: Based on the preset sigmoid function, the intermediate score matrix is mapped to the corresponding mask matrix; Calibrate the mask matrix based on preset mask calibration information; The calibrated mask matrix is input into the attention statistical pooling layer to obtain the corresponding fixed-dimensional representation.
8. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 7.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
