Voiceprint recognition method and device
Through emotion recognition and matching voiceprint templates under the same emotion, the problem of user emotional fluctuations affecting the accuracy of voiceprint recognition is solved, and stable recognition results under different emotions are achieved.
Patent Information
- Application Number
- CN202010132716.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-02-29
AI Technical Summary
The accuracy of existing voiceprint recognition technology decreases when users' emotions fluctuate, making it difficult to effectively reduce the impact of emotional factors on voiceprint recognition.
By obtaining the emotion recognition of the speech signal to be recognized and matching the voiceprint template under the same emotion, the impact of emotional fluctuations on voiceprint recognition is reduced and the robustness is enhanced.
Provide a consistent voiceprint recognition user experience under different emotions and improve the accuracy and robustness of voiceprint recognition.
Smart Images

Figure CN113327620B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of biometrics, and more specifically, to a method and device for voiceprint recognition. Background Art
[0002] Voiceprint recognition is a technology that analyzes the characteristics of one or more voice signals to identify unknown voices. Simply put, it is a technology that identifies whether a sentence is spoken by a certain person. The theoretical basis of voiceprint recognition is that each person's voice has unique characteristics, and the voices of different people can be effectively distinguished through these characteristics. The basic principle of voiceprint recognition is to achieve the purpose of voiceprint recognition by analyzing the similarity between the spectra of sound signals. The characteristics of the spectra directly affect the results of voiceprint recognition. Usually, users are relatively calm when registering voiceprint templates.
[0003] In actual use, users have various emotions. Sometimes they are anxious, and sometimes they are happy and excited. These emotions will affect the characteristics of the speech spectrum, so that the fluctuation of emotions will have a negative impact on the accuracy of voiceprint recognition. In an existing voiceprint recognition scheme, the degree of deformation of emotional language is detected by the emotion detection method to calculate the emotional factor, and the language changes caused by emotions are compensated at the model layer and feature layer in the training and recognition stages. However, on the one hand, this scheme relies on the accuracy of emotion detection when determining the emotion factor, and inaccurate emotion detection will reduce the accuracy of voiceprint recognition. On the other hand, compensation for speech features will further affect the accuracy of voiceprint recognition.
[0004] Therefore, when users' emotions fluctuate, how to improve the accuracy of voiceprint recognition is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a method and device for voiceprint recognition, which can help reduce the impact of user's emotional fluctuations on voiceprint recognition by matching the voice signal to be recognized with the voiceprint template under the same emotion, thereby enhancing the robustness of voiceprint recognition.
[0006] In a first aspect, a method for voiceprint recognition is provided, the method comprising:
[0007] Acquire a voice signal to be recognized from a user to be recognized;
[0008] Performing emotion recognition on the voice signal to be recognized to obtain a first emotion corresponding to the voice signal to be recognized;
[0009] Acquire a voiceprint template corresponding to the first emotion of the registered user, when the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different;
[0010] According to the voice signal to be identified and the voiceprint template, it is determined whether the user to be identified is the registered user.
[0011] Therefore, the embodiment of the present application performs emotion recognition on the voice signal to be recognized of the user to be recognized, obtains the first emotion of the voice signal to be recognized, obtains the voiceprint template of the registered user under the first emotion, and performs voiceprint matching based on the voice signal to be recognized and the voiceprint template to determine whether the user to be recognized is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be recognized with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0012] Exemplarily, the first emotion includes at least one of calm, joy, anger, sadness, eagerness, fear, and surprise. That is to say, the first emotion can be a single emotion among multiple emotions, such as calm, joy, anger, sadness, eagerness, fear, or surprise, etc. The first emotion can also be a mixed emotion composed of multiple emotions, such as a mixed emotion of calm and joy, a mixed emotion of anger, eagerness, and sadness, etc., which is not limited in this embodiment of the present application. In the embodiment of the present application, when the first emotion is different emotions, the corresponding voiceprint templates are different.
[0013] In combination with the first aspect, in some implementations of the first aspect, obtaining the voiceprint template of the registered user under the first emotion includes:
[0014] The voiceprint template corresponding to the first emotion is obtained from the voiceprint templates of the registered user under multiple different emotions, wherein the multiple different emotions include the first emotion.
[0015] That is to say, at this time, the first emotion is a single emotion among multiple emotions, and at this time, voiceprint recognition can be performed by calling the voiceprint template under the emotion.
[0016] Therefore, the embodiment of the present application identifies the emotion of the voice signal to be identified of the user to be identified, calls the voiceprint template of the registered user under the emotion, matches the voice signal to be identified with the voiceprint template of the registered user under the emotion, and determines whether the user to be identified is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be identified with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0017] In combination with the first aspect, in some implementations of the first aspect, the first emotion is represented by a weight coefficient of each of at least two emotions.
[0018] The step of obtaining the voiceprint template of the registered user under the first emotion includes:
[0019] Determine, from the voiceprint templates of the registered user under a plurality of different emotions, a voiceprint template corresponding to each of the at least two emotions in the first emotion;
[0020] According to the voiceprint template of each emotion and the weight coefficient of each emotion, the voiceprint template corresponding to the first emotion is obtained.
[0021] That is to say, at this time, the first emotion is a mixed emotion composed of multiple emotions. At this time, a mixed voiceprint template corresponding to the first emotion can be generated according to the voiceprint templates corresponding to the multiple emotions of the registered user, and then voiceprint matching can be performed according to the mixed voiceprint template.
[0022] Therefore, the embodiment of the present application identifies the weight coefficients of each emotion contained in the user's current emotion, and according to the weight coefficients of each emotion in the emotion, performs weighted summation on each emotion in the voiceprint template set of registered users to obtain a mixed voiceprint template, matches the voice signal to be recognized with the mixed voiceprint template, and determines whether the user to be recognized is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be recognized with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0023] In combination with the first aspect, in certain implementations of the first aspect, the first emotion may also be displayed through a display interface, so that the user is informed of the emotion corresponding to the current voice signal to be recognized.
[0024] In combination with the first aspect, in certain implementations of the first aspect, when the first emotion is represented by a weight coefficient of each of at least two emotions, the first emotion is displayed through a display interface, and each emotion and the weight coefficient of each emotion may be displayed through the display interface.
[0025] In some possible implementations, when the user is not satisfied with the type of the first emotion or the weight coefficient of each emotion in the first emotion, a first operation of the user may be obtained, wherein the first operation is used to modify the type of the first emotion or the weight coefficient of each emotion in at least two emotions in the first emotion. Then, in response to the first operation, the first emotion is updated.
[0026] Therefore, the embodiment of the present application displays the first emotion to the user, and when the user is dissatisfied with the type of the first emotion or the weight coefficient of each emotion in the first emotion, the first emotion can be updated with reference to the user's judgment of his or her true emotion, thereby helping to accurately identify the user's current emotional state, helping to reduce the impact of the user's emotional fluctuations on voiceprint recognition, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0027] In combination with the first aspect, in some implementations of the first aspect, before obtaining the voiceprint template of the registered user under the first emotion, the method further includes:
[0028] Obtain registered speech signals under various emotions;
[0029] According to the registered voice signals of the multiple different emotions, a voiceprint template of each emotion of the registered user is obtained.
[0030] Therefore, compared with the prior art which only generates voiceprint templates for users in a calm state, the embodiment of the present application can generate voiceprint templates for users in different emotions, and the voiceprint templates for different emotions are different. Therefore, the embodiment of the present application can adapt to different emotional changes of users during voiceprint recognition, which helps to improve the accuracy of voiceprint recognition.
[0031] As an implementation method, the registered voices of the user under different emotions may be directly collected to obtain the registered voice signals of the user under different emotions.
[0032] In combination with the first aspect, in some implementations of the first aspect, at least two preset emotions may be displayed to the user through a display interface; then, a second operation of the user is obtained, and the second operation is used to record the user's voice under the at least two preset emotions. In response to the second operation, registered voice signals under the at least two preset emotions are obtained, wherein the registered voice signals under the multiple different emotions include the registered voice signals under the at least two preset emotions.
[0033] Exemplarily, the preset emotion may be calmness, joy, anger, sadness, impatience, fear or surprise, etc., which is not limited in the embodiments of the present application.
[0034] In this way, it is possible to guide the user to record voices under at least two emotions through the interface of the terminal device, thereby obtaining registration voice signals under different emotions of the user.
[0035] In combination with the first aspect, in some implementations of the first aspect, obtaining registration voice signals under multiple different emotions includes:
[0036] Acquire a first registered voice signal;
[0037] Perform emotion conversion on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
[0038] Therefore, by collecting the user's registered voice under one emotion, obtaining the user's registered voice signal under the emotion, and performing emotion recognition on the registered voice signal, it is possible to obtain registered voice signals under a variety of different emotions.
[0039] In combination with the first aspect, in some implementations of the first aspect, performing emotion conversion on the first registration voice signal to obtain the registration voice signals under the multiple different emotions includes:
[0040] Displaying at least two preset emotions to the user through a display interface;
[0041] Acquire a third operation of the user, wherein the third operation is used to select the multiple different emotions from the at least two preset emotions;
[0042] In response to the third operation, the first registered voice signal is subjected to an emotion transformation to obtain the registered voice signals under the multiple different emotions.
[0043] In this way, it is possible to guide the user to select the emotion that needs to be converted through the interface of the terminal device, thereby converting the registered voice signal according to the emotion type selected by the user, and obtaining the registered voice signal under different emotions of the user.
[0044] In combination with the first aspect, in some implementations of the first aspect, judging whether the user to be identified is the registered user according to the voice signal to be identified and the voiceprint template includes:
[0045] Extracting voiceprint features of the voice signal to be recognized to obtain voiceprint information of the voice signal to be recognized;
[0046] According to the voiceprint information and the voiceprint template, it is determined whether the user to be identified is the registered user.
[0047] Voiceprint information can identify characteristic information of the voice signal to be identified. Therefore, by matching the voiceprint information of the voice signal to be identified with the voiceprint template of the registered user under the emotion, it can be determined whether the user to be identified is a registered user.
[0048] In a second aspect, an embodiment of the present application provides a device for voiceprint recognition, which is used to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect. Specifically, the device includes a module for executing the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0049] In a third aspect, an embodiment of the present application provides a device for voiceprint recognition, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect or any possible implementation of the first aspect.
[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
[0051] In a fifth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 is a schematic flow chart of a method for voiceprint recognition;
[0053] Figure 2 is a schematic diagram of a voiceprint recognition system provided in an embodiment of the present application;
[0054] Figure 3 This is a specific example of the voiceprint registration process provided in the embodiment of the present application;
[0055] Figure 4 This is another specific example of the voiceprint registration process provided in the embodiment of the present application;
[0056] Figure 5 This is a specific example of the voiceprint recognition process provided in the embodiment of the present application;
[0057] Figure 6 This is another specific example of the voiceprint recognition process provided in the embodiment of the present application;
[0058] Figure 7 It is an example of a display interface of a terminal device provided in an embodiment of the present application;
[0059] Figure 8 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0060] Fig. 9is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0061] Fig.10 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0062] Fig.11 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0063] Fig.12 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0064] Fig.13 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0065] Fig.14 is another example of a display interface of a terminal device provided in an embodiment of the present application;
[0066] Fig.15 is a schematic flow chart of a voiceprint recognition method provided in an embodiment of the present application;
[0067] Fig.16 is a schematic block diagram of a voiceprint recognition device provided in an embodiment of the present application;
[0068] Fig.17 It is a schematic block diagram of another voiceprint recognition device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0070] Figure 1 FIG. 1 is a schematic flow chart of a method 100 for voiceprint recognition. Figure 1 As shown, voiceprint recognition mainly includes two processes: voiceprint registration and voiceprint confirmation / identification. In the voiceprint registration stage (including steps 101, 102, 103 and 105), voiceprint templates of one or more users can be obtained. In the voiceprint confirmation / identification stage (including steps 101, 102, 103, 106 and 107), voice feature information of unknown speakers can be obtained, and then the voice feature information is matched with the known voiceprint template obtained in the voiceprint registration stage to perform voiceprint confirmation / identification. The voiceprint confirmation / identification stage can also be called the voiceprint recognition stage.
[0071] Among them, voiceprint confirmation is speaker confirmation, which is used to determine whether the unknown speaker is a designated person. Exemplarily, when performing voiceprint confirmation, the acquired voice feature information of the unknown speaker can be matched with the voiceprint template of the designated person to confirm whether the unknown speaker is the designated person.
[0072] Voiceprint recognition is speaker recognition, which is used to determine which of the known recorded speakers the unknown speaker is. When performing voiceprint recognition, the acquired voice characteristics of the unknown speaker can be matched with the voiceprint templates of multiple known recorded speakers to determine which of the known recorded speakers the speaker at that position is.
[0073] Please continue to refer to Figure 1 In the voiceprint registration stage, the collected user's voice signal (also referred to as the registration voice signal) can be subjected to signal processing, such as executing step 101 (i.e., voice detection) and step 102 (voice enhancement), etc., to obtain the processed registration voice signal. As an example, step 101, i.e., voice detection, can include, for example, voice activation detection, and step 102, i.e., voice enhancement, can include, for example, voice noise reduction processing, dereverberation processing, etc. Then, step 103 is executed on the processed registration voice signal, i.e., feature extraction is performed to obtain feature information of the registration voice signal. Then, step 104 is executed, i.e., the feature information of the registration voice signal is trained through the voiceprint model to obtain the voiceprint template of the user.
[0074] After the user completes voiceprint registration, the user's voiceprint template can be obtained. At this time, the user can be called a "registered user".
[0075] In addition, the voiceprint template of at least one user can be obtained in the above manner, that is, the voiceprint template of at least one registered user can be obtained. In some embodiments, a voiceprint template library can be established through the above voiceprint registration process, and the voiceprint template library can include multiple voiceprint templates of different registered users.
[0076] In the voiceprint confirmation / recognition stage, the collected user's voice signal (also referred to as the voice signal to be recognized) can also be subjected to signal processing, such as executing step 101 (i.e., voice detection) and step 102 (voice enhancement) to obtain the processed voice signal to be recognized. Then, execute step 103, i.e., extract features from the processed voice signal to be recognized to obtain feature information of the voice signal to be recognized. Then, execute step 105, i.e., perform voiceprint matching between the feature information of the voice signal to be recognized and the voiceprint template of a registered user. As an example, the feature information of the voice signal to be recognized and the similarity score of the voiceprint template can be obtained. Then, execute step 106, i.e., confirm whether the user to be recognized is a registered user based on the similarity score.
[0077] In some embodiments, the voiceprint template of a user includes the spectral features of the user's voice signal. Specifically, the spectrum of a sound signal is a graphical representation of the sound signal, which can represent the change of the frequency amplitude of each frequency point of the sound signal over time. As an example, the amplitude of the sound signal at each frequency point can be distinguished by color. Among them, the fundamental frequency and harmonic frequency of the speaker's voice are displayed as bright lines on the spectrum. When matching the voiceprint, the user's voice signal can be processed to obtain the spectrum of the sound signal, and then the similarity between the spectrum and the spectrum in the voiceprint template is compared to finally achieve the purpose of voiceprint recognition.
[0078] During the voiceprint recognition process, the user's emotions can be varied, and these emotions will affect the spectral characteristics of the user's voice. This may cause the same user to have different spectral characteristics of the voice under different emotions, which may affect the accuracy of voiceprint recognition. For example, the user registered the voiceprint when he was calm, and the voiceprint template obtained at this time contains the spectral characteristics of the user's sound signal in a calm state. When the user is in a state of joy, the difference between the spectral characteristics of the extracted voice signal to be recognized and the spectral characteristics in the voiceprint template may be relatively large, which may lead to a low voiceprint match and affect the accuracy of voiceprint recognition.
[0079] In view of this, an embodiment of the present application provides an emotion-adaptive voiceprint recognition method, which achieves emotion-adaptive voiceprint recognition by generating voiceprint templates (or voiceprint template sets) of multiple emotions and performing voiceprint matching based on the voiceprint templates (or voiceprint template sets) of multiple emotions.
[0080] As an example, in the embodiment of the present application, the emotion may include at least one of calmness, joy, anger, sadness, eagerness, fear, and surprise, etc. That is, the emotion may be a single emotion in the situations of calmness, joy, anger, sadness, eagerness, fear, and surprise, or a combination of two or more of them, or a mixed emotion, etc., which is not limited in the embodiment of the present application.
[0081] Generating voiceprint templates (or voiceprint template sets) for multiple emotions is completed during the voiceprint registration stage. For example, you can record the user's registered voice signals under different emotions, or you can make emotional changes to the registered voice signals under one emotion to generate registered voice signals under different emotions. Then, train the registered voice signals under different emotions to generate voiceprint templates for multiple different emotions.
[0082] As an implementation method, emotions can be preset in the terminal device, such as calm, joy, anger, sadness, fear, eagerness, surprise and other preset emotions. In the voiceprint registration stage, voiceprint templates for each of the multiple preset emotions can be generated respectively, such as a voiceprint template for calm emotion, a voiceprint template for joy emotion, a voiceprint template for anger emotion, a voiceprint template for sadness emotion, a voiceprint template for fear emotion, a voiceprint template for eagerness emotion and a voiceprint template for surprise emotion, which is not limited in the embodiment of the present application. Among them, the voiceprint templates corresponding to different emotions are different.
[0083] Voiceprint matching based on voiceprint templates (or voiceprint template sets) of multiple emotions is completed in the voiceprint recognition stage. Exemplarily, emotion recognition can be performed on the speech to be recognized, and based on the result of emotion recognition, a corresponding voiceprint template is obtained, and then voiceprint matching is performed based on the voiceprint template. The result of emotion recognition, that is, the emotion obtained by performing emotion recognition on the speech signal to be recognized, can be called the first emotion. When the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different.
[0084] As an implementation method, the first emotion can be one of a plurality of preset different emotions, that is, a single emotion, such as calm, joy, anger, sadness, fear, eagerness or surprise. At this time, a voiceprint template corresponding to the emotion can be selected from the voiceprint templates of the plurality of preset emotions, and then voiceprint matching is performed based on the selected voiceprint template and the voiceprint feature of the speech signal to be recognized. As a specific example, when the first emotion is joy, the voiceprint template under the joy emotion can be determined as the voiceprint template under the first emotion.
[0085] As another implementation, the first emotion may be a mixed emotion composed of multiple preset emotions, such as a mixed emotion of calm and sadness, a mixed emotion of joy and impatience, a mixed emotion of anger, sadness and impatience, etc. In this case, the mixed voiceprint template of the first emotion may be generated using the voiceprint templates of the multiple preset emotions, and voiceprint matching is performed based on the mixed voiceprint template and the voiceprint features of the speech signal to be recognized. As a specific example, when the first emotion is a mixed emotion of calm and sadness, the mixed voiceprint template under the first emotion may be generated based on the voiceprint template under the calm emotion and the voiceprint template under the sad emotion.
[0086] Since the embodiment of the present application matches the speech signal to be recognized under the same emotion with the voiceprint template, the embodiment of the present application can help reduce the impact of emotional fluctuations on voiceprint recognition, thereby helping users to obtain a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0087] Figure 2A schematic diagram of a voiceprint recognition system 200 provided in an embodiment of the present application is shown. Exemplarily, the system 200 can be applied to various terminal devices, such as mobile phones, smart speakers, vehicle-mounted electronic devices and other smart devices, and is used for the terminal device to confirm the user's identity in order to realize functions such as waking up the device and starting the smart assistant, which is not limited in the embodiment of the present application.
[0088] like Figure 2 As shown, the system 200 may include a signal processing module 201, an emotion change module 202, a voiceprint template generation module 203, a feature extraction module 204, an emotion recognition module 205, a voiceprint template acquisition module 206 and a voiceprint matching module 207. Figure 2 The arrows in the figure can be used to indicate the transmission direction of the signal flow.
[0089] Among them, the signal processing module 201, the emotion recognition module 205, the voiceprint template acquisition module 206, the feature extraction module 204 and the voiceprint matching module 207 can be used in the voiceprint confirmation / recognition process, and the signal processing module 201, the emotion change module 202 and the voiceprint template generation module 203 can be used in the voiceprint registration process. Usually, voiceprint registration is required before voiceprint confirmation / recognition.
[0090] The signal processing module 201 is used to perform signal processing on the acquired speech signal. As an example, the signal is processed such as voice activation detection, noise reduction, dereverberation, etc. to obtain a processed speech signal.
[0091] As an example, in the voiceprint registration stage, the signal processing module 201 is used to perform signal processing on the registration voice signal to obtain the processed registration voice signal; in the voiceprint confirmation / recognition stage, the signal processing module 201 is used to perform signal processing on the voice signal to be recognized to obtain the processed registration voice signal.
[0092] In the embodiment of the present application, the system 200 may include one or more signal processing modules 201, which is not limited in the embodiment of the present application. In a specific embodiment, the signal processing module for signal processing the registered voice signal and the signal processing module for signal processing the recognized voice signal may be the same module or different modules, both of which are within the protection scope of the embodiment of the present application.
[0093] The emotion change module 202 is used to perform emotion change processing on the registered voice signal during the voiceprint registration stage to obtain the registered voice signal under different emotions. As an example, the emotion change module 202 can perform emotion change processing on the registered voice signal after being processed by the signal processing module 201 to obtain the registered voice signal under different emotions. Specifically, the different emotions can be referred to in the description above, and for the sake of brevity, it will not be repeated here.
[0094] The voiceprint template generation module 203 is used to perform voiceprint template training according to the registered speech signals corresponding to different emotions, and obtain voiceprint templates corresponding to different emotions, that is, voiceprint templates for multiple emotions.
[0095] As an example, the voiceprint template generation module 203 can extract feature information of the voice signal to be recognized, and perform voiceprint template training on the feature information to generate a voiceprint template corresponding to the voice signal to be recognized. In some embodiments, voiceprint template training can be performed on registered voice signals under multiple different emotions to obtain voiceprint templates of users under different emotions.
[0096] The feature extraction module 204 is used to extract features of the speech signal to be recognized during the voiceprint registration phase to obtain feature information of the speech signal to be recognized, namely, voiceprint information.
[0097] The emotion recognition module 205 is used to perform emotion recognition on the voice signal to be recognized by the user to be recognized during the voiceprint confirmation / recognition stage, and determine the emotion corresponding to the voice signal to be recognized.
[0098] Specifically, the fluctuation of the user's emotions will affect the characteristics of the spectrum of the user's voice. The emotion recognition module 205 can identify the user's emotions based on the characteristics of the spectrum in the acquired voice signal. For example, if the user is anxious when recording the voice, it can be identified that the emotion corresponding to the voice signal to be recognized is anxious. For another example, if the user is happy when recording the voice, it can be identified that the emotion corresponding to the voice signal to be recognized is happy. For another example, if the user is angry when recording the voice, it can be identified that the emotion corresponding to the voice signal to be recognized is angry.
[0099] Exemplarily, the emotion recognition module 205 may be a discrete speech emotion classifier, or a dimensional speech emotion predictor, etc., which is not limited in the embodiments of the present application.
[0100] The voiceprint template acquisition module 206 is used to determine the voiceprint template used in voiceprint matching according to the emotion recognition result and the voiceprint templates of multiple emotions in the voiceprint confirmation / recognition stage. Exemplarily, the voiceprint template acquisition module 206 can obtain the voiceprint template of the emotion corresponding to the voice signal to be recognized from the voiceprint template library, or generate a mixed voiceprint template of the emotion corresponding to the voice signal to be recognized according to the voiceprint template in the voiceprint template library.
[0101] The voiceprint matching module 207 is used to perform voiceprint matching according to the voiceprint template and the characteristic information of the voice signal to be identified during the voiceprint confirmation / recognition stage, and determine whether the user to be identified is a registered user.
[0102] It should be understood that Figure 2 The modules or units of the voiceprint recognition system 200 are shown, but these modules or units are only examples. The voiceprint recognition device of the embodiment of the present application may also include other modules or units, or include Figure 2 In addition, Figure 2 The image acquisition device may not include Figure 2 All modules or units in.
[0103] Next, combine Figure 2 The voiceprint recognition system 200 shown in FIG. Figures 3 to 6 , describes in detail the process of voiceprint registration and voiceprint confirmation / identification provided by the embodiments of the present application.
[0104] In the voiceprint registration stage, the user's registered voice signals under different emotions can be obtained, and the voiceprint templates under the corresponding emotions can be generated according to the registered voice signals under different emotions. Figure 3 and Figure 4 Two methods of generating voiceprint templates under different emotions provided in the embodiments of the present application are described.
[0105] Figure 3 A specific example of the voiceprint registration process provided by the embodiment of the present application is shown, wherein different emotional changes can be made according to the user's voice, the user's voice under different emotions can be obtained, and then a voiceprint module corresponding to the emotion can be generated.
[0106] like Figure 3 As shown, in the voiceprint registration stage, the registration voice signal input by the user can first be obtained through step 301. Exemplarily, the user can input a voice through the voice acquisition module of the device to obtain the registration voice signal corresponding to the voice. The registration voice signal can be called the registration voice signal input by the user.
[0107] Optionally, you can Figure 2The signal processing module 201 in the processing module processes the registration voice signal to obtain the processed registration voice signal. Specifically, the processing process can refer to the description above, and for the sake of brevity, it will not be repeated here.
[0108] It should be noted that the user can input the voice in a calm mood, or input the voice in a situation of emotional fluctuations such as sadness, anger, joy, etc., and the embodiments of the present application do not limit this.
[0109] It should also be noted that, in the embodiment of the present application, the voice input by the user may be text-related or text-independent, and the embodiment of the present application does not limit this.
[0110] Then, step 302 may be performed to transform the user's registered voice signal into different emotions. For example, Figure 2 The emotion change module 202 performs emotion change on the registered voice signal input by the user to obtain the registered voice signal of the user under various emotions.
[0111] The emotion change is to directly convert the user's registered voice signal. As an example, the emotion change can change the user's registered voice signal into a registered voice signal under a sad mood, a registered voice under an angry mood, a registered voice under a joyful mode, etc., which is not limited in the present embodiment of the application.
[0112] As an example, the user's registered voice signal may be a voice signal of the user collected by a device, or may be a time domain signal that has been processed by endpoint detection, noise reduction, dereverberation, and the like.
[0113] Exemplarily, the emotion conversion can be realized by adopting a speech emotion conversion algorithm of spectral-prosodic dual transformation, or by adopting a sparse constrained emotion speech conversion algorithm, which is not limited in the embodiments of the present application.
[0114] In some embodiments, the types of emotions can be preset. As an example, the emotion change module 202 can preset (i.e., preset) four emotions: sadness, anger, joy, and impatience. At this time, when the emotion change module 202 obtains the registered voice signal input by the user, the registered voice signal input by the user can be emotionally converted to obtain the user's registered voice signal under the emotion of sadness, the registered voice signal under the emotion of anger, the registered voice signal under the emotion of joy, and the registered voice signal under the emotion of impatience. Optionally, the preset types of emotions can also be added, changed, or deleted according to the needs of the user.
[0115] Then, step 303 may be performed to generate voiceprint templates under different emotions according to the registered voice signals of the user under different emotions. Figure 2The voiceprint module generation module 203 generates a voiceprint template of the user under the emotion.
[0116] In some embodiments, the voiceprint templates of users under different emotions may form a set, which may be called a voiceprint template set of multiple emotions. Exemplarily, the voiceprint template library may contain voiceprint template sets of multiple emotions of multiple registered users.
[0117] Therefore, through the above steps 301 to 303, the voiceprint registration of the user can be completed, and the user can be called a registered user. In addition, compared with the prior art that only generates a voiceprint template of the user in a calm state, the embodiment of the present application can generate voiceprint templates of the user under different emotions, and the voiceprint templates under different emotions are different. Therefore, during the voiceprint recognition process, the embodiment of the present application can adapt to the different emotional changes of the user, which helps to improve the accuracy of voiceprint recognition.
[0118] Figure 4 Another specific example of the voiceprint registration process provided by the embodiment of the present application is shown, wherein the user's registered voice signals under different emotions can be directly collected, and then the corresponding voiceprint templates can be trained according to the registered voices under different emotions.
[0119] like Figure 4 As shown, in the voiceprint registration stage, at least one registration voice signal input by the user can be first obtained through step 401, wherein the at least one registration voice signal includes at least one registration voice signal of the user under at least one emotion. In other words, the registration voice of the user under different emotions can be directly collected to obtain the registration voice signals of the user under different emotions.
[0120] As some possible implementation methods, when a user registers a voiceprint, the user can be prompted to record voices with different emotions through the interface of the terminal device, or the user can be prompted to record voices with different emotions through voice, which is not limited in the embodiments of the present application.
[0121] Then, step 402 may be performed, that is, generating voiceprint templates under corresponding emotions according to the registered voice signals under different emotions. Specifically, step 402 is similar to step 303, and the description above may be referred to, and will not be repeated here for the sake of brevity.
[0122] Therefore, through the above steps 401 to 402, the voiceprint registration of the user can be completed, and the user can be called a registered user. Moreover, compared with the prior art that only generates a voiceprint template of the user in a calm state, the embodiment of the present application can generate a voiceprint template of the user under different emotions. Therefore, during the voiceprint recognition process, the embodiment of the present application can adapt to the different emotional changes of the user, which helps to improve the accuracy of voiceprint recognition.
[0123] It should be noted that in the embodiment of the present application, when the system architecture 200 includes the emotion change module 202 and the voiceprint template generation module 203, the system 200 can complete the voiceprint registration process and the voiceprint confirmation / identification process. When the system 200 does not include the emotion change module 202 and the voiceprint template generation module 203, the terminal device including the system 200 can send the acquired registration voice signal to other devices, such as a cloud server, and the other device trains and generates the user's voiceprint template based on the received user's registration voice signal, and then sends the voiceprint template to the terminal device. Specifically, the process of generating a voiceprint template by a cloud server is similar to the process of generating a voiceprint template by a terminal device, and can refer to the description above. For the sake of brevity, it will not be repeated here.
[0124] In the voiceprint confirmation / recognition stage, the voiceprint template of the registered user under the emotion of the voice signal to be recognized can be obtained according to the emotion of the recognized user, and then the characteristic information of the voice signal to be recognized is matched with the voiceprint template of the registered user under the emotion to obtain the voiceprint confirmation / recognition result. Figures 5 and 6 Description The present application embodiment provides two different voiceprint recognition methods.
[0125] Figure 5 A specific example of the voiceprint recognition process provided by the embodiment of the present application is shown. Among them, through emotion recognition, it can be determined that the user's current emotional state is a single emotion among multiple preset emotions, and at this time, voiceprint recognition can be performed by calling the voiceprint template under the emotion.
[0126] like Figure 5 As shown, in the voiceprint confirmation / recognition stage, firstly, the voice signal to be recognized input by the user can be obtained through step 501. Exemplarily, the user can input a voice through the voice acquisition module of the device to obtain the voice signal to be recognized corresponding to the voice. Here, the user is the user to be recognized.
[0127] Optionally, you can Figure 2 The signal processing module 201 in the embodiment processes the speech signal to be recognized to obtain the processed speech signal to be recognized. Specifically, the processing process can be referred to the description above, and will not be described here for brevity.
[0128] Here, the user can input the voice in a calm mood, or input the voice in a state of emotional fluctuation such as sadness, anger, joy, etc., and the embodiments of the present application do not limit this.
[0129] Then, step 502 may be executed to perform emotion recognition on the speech signal to be recognized to obtain the first emotion of the current user. Here, the first emotion may be one of the preset emotions, such as sadness, anger, joy, etc. Exemplarily, step 502 may be performed by Figure 2 The emotion recognition module 205 is executed.
[0130] Then, step 503 may be executed to extract voiceprint features of the speech signal to be recognized, so as to obtain voiceprint information of the speech signal to be recognized. Figure 2 The feature extraction module 204 in is executed.
[0131] As an example, the user's voice signal to be recognized may be the user's voice signal to be recognized collected by the device, or may be a time domain signal that has been processed by endpoint detection, noise reduction, dereverberation, etc.
[0132] As a possible implementation method, the feature extraction algorithm used for voiceprint feature extraction in the voiceprint confirmation / recognition stage is the same as the feature extraction algorithm used when training and generating voiceprint templates in the voiceprint registration stage.
[0133] Then, step 504 may be executed to retrieve the voiceprint template of the first emotion of the registered user according to the recognition result of the emotion recognition, and perform voiceprint judgment on the speech signal to be recognized, so as to determine the identity of the user. As an example, the voiceprint information obtained in step 503 may be matched with the voiceprint template of the first emotion of the registered user to determine whether the user to be recognized is the registered user.
[0134] Exemplarily, step 504 may be performed by Figure 2 The voiceprint template acquisition module 206 and the voiceprint matching module 207 in step 503 are executed. The voiceprint template acquisition module 206 can obtain the voiceprint template of the first emotion from the voiceprint template set of the registered user according to the first emotion identified in step 502. Then, the voiceprint matching module 207 matches the voiceprint information obtained in step 503 with the voiceprint template under the first emotion to determine whether the user to be identified is the registered user.
[0135] Therefore, the embodiment of the present application identifies the emotion of the voice signal to be identified of the user to be identified, calls the voiceprint template of the registered user under the emotion, matches the characteristic information of the voice signal to be identified with the voiceprint template of the registered user under the emotion, and determines whether the user to be identified is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be identified with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0136] Figure 6 Another specific example of the voiceprint recognition process provided by the embodiment of the present application is shown. In which, through emotion recognition, it is determined that the user's current emotional state is a mixed emotion composed of multiple preset emotions. At this time, a mixed voiceprint template of the user's current emotion can be generated based on the voiceprint templates corresponding to the multiple preset emotions, and then voiceprint recognition is performed based on the mixed voiceprint template.
[0137] like Figure 6 As shown, in the voiceprint confirmation / recognition stage, firstly, the voice signal to be recognized input by the user can be obtained through step 601. Specifically, step 601 can refer to the description of step 501, and for the sake of brevity, it will not be repeated here.
[0138] Then, step 602 may be performed to perform emotion recognition on the speech signal to be recognized to obtain the first emotion of the current user. Here, the first emotion is a mixed emotion composed of multiple preset emotions, that is, the first emotion is a combination of two or more emotions in the preset emotions.
[0139] In some scenarios, the voice of the user to be recognized often contains multiple emotional factors, such as anger and impatience, or joy and excitement, etc. However, in emotion recognition, it is difficult to define which emotion the current emotion belongs to. In this case, a combination of multiple emotions can be used to describe the current emotional state of the user.
[0140] As a possible implementation, the first emotion can be represented by a weight coefficient of each of at least two emotions. Exemplarily, an emotion recognition module can be used to perform emotion recognition on a voice signal of a user to be recognized, and obtain a weight coefficient of each emotion in the user's current first emotion. Here, the weight coefficient of each emotion can represent the proportion of each emotion in the first emotion. That is, the first emotion can be obtained by multiplying each of the at least two emotions by the weight coefficient of each emotion, and then summing the at least two products.
[0141] In some embodiments, the weight coefficient of each of the at least two emotions included in the first emotion may constitute a weight coefficient vector of the first emotion.
[0142] Exemplarily, the weight coefficient vector of the first emotion can be obtained through step 602, which can be expressed as [W 1 …W i …W N ], where W iis the weight coefficient corresponding to the i-th emotion, which represents the probability of the i-th emotion occurring in the speech signal to be recognized, and N represents the total number of emotion types contained in the first emotion. In a specific example, N can be the number of voiceprint templates of different emotions contained in the voiceprint template set of multiple emotions, or N can be the type of emotion set in advance. Wherein, N is a positive integer greater than 1.
[0143] For example, the emotion recognition module 205 can recognize that in the first emotion, the probability of anger is 60%, the probability of impatience is 30%, and the probability of sadness is 10%. Then the weight coefficient of anger can be recorded as 0.6, the weight coefficient of impatience can be recorded as 0.3, and the weight coefficient of sadness can be recorded as 0.1.
[0144] Then, step 603 may be executed to extract voiceprint features from the speech signal to be recognized to obtain voiceprint information of the speech signal to be recognized. Specifically, step 603 may refer to the description of step 503, which will not be repeated here for brevity.
[0145] Then, step 604 may be performed to generate a mixed voiceprint template. Here, the mixed voiceprint template is a voiceprint template under the first emotion. Exemplarily, a voiceprint template corresponding to each of at least two emotions in the first emotion may be determined from voiceprint templates under multiple different emotions of the registered user, and then a voiceprint template corresponding to the first emotion may be obtained based on the voiceprint template of each emotion and the weight coefficient of each emotion.
[0146] Exemplarily, step 604 may be performed by Figure 2 The voiceprint template acquisition module 206 in the voiceprint template acquisition module 206 can obtain the voiceprint template set of the registered user, and then perform weighted averaging of the voiceprint templates of each emotion in the first emotion in the voiceprint template set according to the weight coefficient of each emotion in the first emotion, that is, the weight coefficient vector of the first emotion, to obtain a mixed voiceprint template. In one example, the mixed voiceprint template can satisfy the following formula (1):
[0147]
[0148] Among them, x represents the mixed voiceprint template, x i represents the voiceprint template corresponding to the i-th emotion, W i , N can refer to the description above.
[0149] Then, step 605 may be executed to perform voiceprint determination on the speech signal to be recognized according to the mixed voiceprint template obtained in step 604. Figure 2The voiceprint matching module 207 in step 600 performs the matching. The voiceprint matching module 207 can match the voiceprint information obtained in step 603 with the mixed voiceprint template to determine whether the user to be identified is the registered user.
[0150] Therefore, the embodiment of the present application identifies the weight coefficients of each emotion contained in the user's current emotion, and according to the weight coefficients of each emotion in the emotion, performs weighted summation on each emotion in the voiceprint template set of registered users to obtain a mixed voiceprint template, matches the feature information of the voice signal to be recognized with the mixed voiceprint template, and determines whether the user to be recognized is a registered user. Therefore, the embodiment of the present application matches the voice signal to be recognized under the same emotion with the voiceprint template, which can help reduce the impact of the user's emotional fluctuations on voiceprint recognition, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0151] The following, combined Figures 7 to 14 From the perspective of a user using a terminal device, the method for voiceprint recognition provided by an embodiment of the present application is described.
[0152] First, voiceprint registration is performed to generate the user's voiceprint model.
[0153] For example, when a user uses the voiceprint recognition function of a terminal device for the first time, the terminal device can prompt the user whether to register the voiceprint. For a specific example, please refer to Figure 7 , shows an example of a terminal device display interface. Figure 7 As shown, the display interface of the terminal device may display "whether to register voiceprint template". Optionally, the terminal device may also display two virtual buttons "yes" and "no" for obtaining the user's operation. When the user inputs the "yes" operation, in response to the operation, the terminal device may enter the interface for recording the user's voice. When the user inputs the "no" operation, in response to the operation, the terminal device exits the interface.
[0154] In some embodiments, the terminal device can also obtain the user's operation through physical buttons. For example, when the user selects the "Confirm" button, the user can enter the interface for recording the user's registered voice, and when the user selects the "Return" button, the user can exit. Figure 7 The interface shown.
[0155] When the terminal device does not have a display interface, or when the terminal device displays Figure 7 At the same time as the interface shown, the terminal device can give a voice prompt to the user, for example, playing "Do you want to register the voiceprint template" or other voice through an audio player, which is not limited to this embodiment of the present application.
[0156] As another example, users can also choose to add a new voiceprint template for voiceprint recognition in the security settings. As a specific example, please refer to Figure 8 , shows an example of a terminal device. Figure 8 As shown, users can Figure 8 In the security and privacy display interface on the left side of the screen, enter the "Voiceprint" operation. In response to this operation, the display interface can be presented as follows: Figure 8 The interface shown on the right side of the figure. At this time, the user can enter the operation of "create a new voiceprint template". In response to this operation, the terminal-side interactive device can enter the interface for recording user voice.
[0157] In the embodiment of the present application, two methods can be used to obtain the user's registered voice signals under multiple different emotions. As a specific example, please refer to Fig. 9 , shows an example of a terminal device display interface. Fig. 9 As shown, the display interface of the terminal device may display "Please select a method for recording voice" and the two methods for recording voice, namely "recording voices of multiple emotions" and "recording voices of one emotion". When the user performs an operation of selecting "recording voices of multiple emotions", in response to the operation, the terminal device may enter an interface for recording multiple voices. When the user inputs an operation of "recording voices of one emotion", in response to the operation, the terminal device enters an interface for recording voices of one emotion.
[0158] Fig.10 An example of an interface for recording user voice is shown. Fig.10 As shown in Figure (a), after selecting to record voices with multiple emotions, the display interface may display "Please select the emotion when recording voice" and display the emotions preset in the terminal device, such as calm, sadness, joy, fear, anger, and eagerness, etc., but the embodiment of the present application is not limited to this. Correspondingly, after the user sees the display interface, he can perform an operation of selecting an emotion, for example, the user selects the emotion of "fear". Exemplarily, the user can select the emotion he wants to record voice according to his mood.
[0159] In response to the user performing an operation of selecting an emotion, the user may be displayed Fig.10The interface shown in Figure (b) in the figure. Taking the user selecting the emotion of "fear" as an example, a prompt "Please record the voice under the emotion of fear" and a virtual button of "Start recording" can be displayed in the interface. At this time, the user can perform the operation of recording the voice under the emotion of fear. For example, the user can long press the "Start recording" virtual button and input a voice under the emotion of fear at the same time. In response to the user performing the operation of recording the voice under the emotion of fear, the terminal device can obtain the registered voice signal of the user recorded under the emotion of fear through a voice acquisition module (such as a microphone component).
[0160] It should be noted that the above description is based on the example of a user recording a voice under the emotion of fear. The user can also use the same method to record voices under other emotions, and the present embodiment of the application does not limit this. In addition, the present embodiment of the application does not limit the time and sequence of the user recording a voice under a certain emotion. For example, the user can record voices under different emotions at different times, which are all within the protection scope of the present embodiment of the application.
[0161] exist Fig.10 In the embodiment, the operation performed by the user to select a preset emotion and record the voice under the preset emotion can be called operation #1, that is, operation #1 is used to record the user's voice under the preset emotion, but the embodiments of the present application are not limited to this.
[0162] In some embodiments, the terminal device does not display an interface, or the terminal device displays Fig.10 At the same time as the interface shown, voice prompts can also be given to the user, for example, through an audio player playing "Please select the emotion when recording the voice", "Please record the voice under the emotion of fear", etc., or other voices, which are not limited to this embodiment of the present application.
[0163] After obtaining the registered voice signals of the user under different emotions, the terminal device can perform signal processing on the registered voice signals under different emotions, such as voice activation detection, voice noise reduction processing, dereverberation processing, etc., which is not limited to the embodiments of the present application.
[0164] Fig.11 Another example of an interface for recording user voice is shown. Fig.11 As shown in Figure (a), after selecting to record a voice of an emotion, the display interface may display "Please select the emotion to be converted" and display the preset emotions in the terminal device, such as calm, sad, happy, fear, anger, and eagerness, etc., but the embodiment of the present application is not limited to this. Correspondingly, after the user sees the display interface, the user may perform operation #2 of selecting a plurality of different emotions from the at least two preset emotions, for example, the user selects emotions such as "calm", "happy", and "fear".
[0165] In response to the user performing operation #2 of selecting an emotion, the user may be presented with Fig.11 The interface shown in (b) in FIG. At this time, a prompt of "Please record the voice" and a virtual button of "Start recording" may be displayed in the interface. At this time, the user can perform the operation of recording the voice. For example, the user can long press the "Start recording" virtual button and input a voice at the same time. In response to the user performing the operation of recording the voice, the terminal device can obtain the user's recorded registered voice signal through a voice acquisition module (such as a microphone component). It should be noted that there is no limitation on the type of emotion of the user recording the voice.
[0166] Optionally, after acquiring the registration voice signal, the terminal device may perform signal processing on the registration voice signal, such as voice activation detection, voice noise reduction processing, dereverberation processing, etc., which is not limited in the embodiments of the present application.
[0167] Then, the terminal device can perform emotion conversion on the registration voice signal and transform the registration voice signal into Fig.11 The registered voice signals under at least two emotions selected in the above method are obtained, that is, the registered voice signals under multiple emotions of the user are obtained. As an example, the registered voice signals under at least two emotions selected in the above method can be obtained by Figure 2 The emotion change template 202 in the example performs emotion change on the registered speech signal.
[0168] Then, voiceprint templates of various emotions of the user can be generated according to the registered voice signals of the user under various emotions. Figure 2 The voiceprint template generation module 203 generates voiceprint templates under various emotions.
[0169] Specifically, the process of emotion changes and generating voiceprint templates can be found in the description above, and for the sake of brevity, it will not be repeated here.
[0170] After voiceprint registration is completed, voiceprint recognition can be performed on the user to be identified.
[0171] For example, when a user turns on a terminal device or enables certain functions of the terminal device that require security verification, the terminal device may prompt the user to perform voiceprint verification. As an example, the terminal device may enter an interface for entering the tester's test voice. Fig.12 Another example of an interface for recording user voice is shown. Fig.12As shown, “Please record your voice for voiceprint verification” may be displayed on the display interface. Optionally, the terminal device may also display a virtual button of “Start recording” in the interface. When the user chooses to record voice, the user may click or long press the virtual button of “Start recording”, and input a voice to be recognized after clicking the button of “Start recording”, or while long pressing the button of “Start recording”. In response to the user inputting voice, the terminal device may obtain the user’s voice signal to be recognized through a voice acquisition module (e.g., a microphone component).
[0172] In some embodiments, the terminal device does not display an interface, or the terminal device displays Fig.12 At the same time as the interface shown, the terminal device can also provide voice prompts to the user, for example, playing "Please record a voice for voiceprint verification" or other voices through an audio player, which is not limited to this embodiment of the present application.
[0173] After obtaining the user's voice signal to be recognized, the terminal device can perform signal processing on the voice signal to be recognized, such as voice activation detection, voice noise reduction processing, dereverberation processing, etc., which is not limited in this embodiment of the present application.
[0174] After obtaining the voice signal to be recognized, the terminal device can extract features of the voice signal to be recognized and obtain the voiceprint information of the voice signal to be recognized. Figure 2 The feature extraction module 204 in the to-be-recognized speech signal extracts features. On the other hand, the to-be-recognized speech signal can be subjected to emotion recognition to obtain the first emotion corresponding to the to-be-recognized speech signal. As an example, Figure 2 The emotion recognition module 205 performs emotion recognition on the speech signal to be recognized.
[0175] In some embodiments, the first emotion, ie, the detected emotion of the user, may be displayed to the user through a display interface. Fig.13 Figure (a) in FIG. 1 shows an example of an interface displaying a first emotion. The first emotion is one of the preset emotions. Fig.14 FIG. (a) in FIG. 1 shows another example of an interface for displaying a first emotion, wherein the first emotion is determined by a weight coefficient of each of at least two emotions, and each of the at least two preset emotions and the weight coefficient of each preset emotion can be displayed through the display interface. Fig.14 As shown in Figure (a), the weight coefficient of anger in the first emotion is 0.6, the weight coefficient of anxiety is 0.3, the weight coefficient of sadness is 0.1, and the weight coefficients of the remaining emotions are 0.
[0176] In some optional embodiments, when the user is not satisfied with the type of the first emotion displayed in the display interface, or is not satisfied with the weight coefficient of each of at least two emotions in the first emotion, operation #3 may be performed, i.e., correcting the type of the first emotion, or modifying the weight coefficient of each of at least two emotions in the first emotion. After obtaining the user's operation #3, the terminal device may update the first emotion according to the operation #3.
[0177] As a specific example, in Fig.13 In the , when the user performs an edit operation, the Fig.13 In the interface shown in Figure (b), the user can be provided with optional emotion types, such as anxious or calm, for the user to choose. As a possible implementation method, Fig.13 The emotion selected by the user in (b) may be a type of emotion that may be obtained when performing emotion recognition on the speech signal to be recognized.
[0178] As another specific example, in Fig.14 In the , when the user performs an edit operation, the Fig.14 The interface shown in Figure (b) shows that the user can choose to change the weight coefficient of each emotion.
[0179] When the first emotion is one of the preset emotions, the voiceprint template of the registered user under the first emotion can be directly called, and the voiceprint template is matched with the voiceprint information of the voice signal to be identified to determine whether the user to be identified is a registered user.
[0180] As an example, you can Figure 2 The voiceprint acquisition module 206 in the voiceprint module obtains the voiceprint template of the registered user under the first emotion, and matches the voiceprint template with the voiceprint information of the voice signal to be recognized through the voiceprint matching module 207 to obtain a matching result.
[0181] When the first emotion is a combination of multiple pre-set emotions, a weight coefficient vector corresponding to the first emotion can be determined, and the registered voiceprint templates of different emotions of the registered user are weighted by the weight coefficient vector to obtain a mixed voiceprint template. Then, the mixed voiceprint template is matched with the voiceprint information of the voice signal to be identified to determine whether the user to be identified is a registered user.
[0182] As an example, you can Figure 2 The voiceprint module acquisition module 206 acquires the mixed voiceprint template, and matches the mixed voiceprint template with the voiceprint information of the speech signal to be recognized through the voiceprint matching module 207 to obtain a matching result.
[0183] Specifically, the process of voiceprint recognition can be found in the description above, and for the sake of brevity, it will not be repeated here.
[0184] Since the embodiment of the present application matches the characteristic information of the speech signal to be recognized under the same emotion with the voiceprint template, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition, thereby helping the user to obtain a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0185] Fig.15 A schematic flow chart of a voiceprint recognition method provided by an embodiment of the present application is shown. The method can be Figure 2 The method comprises steps 710 to 740.
[0186] Step 710: Acquire a voice signal of a user to be identified.
[0187] Step 720: Perform emotion recognition on the speech signal to be recognized to obtain a first emotion corresponding to the speech signal to be recognized.
[0188] Step 730: Obtain the voiceprint template corresponding to the first emotion of the registered user. When the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different.
[0189] Step 740: Determine whether the user to be identified is the registered user based on the voice signal to be identified and the voiceprint template.
[0190] Therefore, the embodiment of the present application performs emotion recognition on the voice signal to be recognized of the user to be recognized, obtains the first emotion of the voice signal to be recognized, obtains the voiceprint template of the registered user under the first emotion, and performs voiceprint matching based on the voice signal to be recognized and the voiceprint template to determine whether the user to be recognized is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be recognized with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0191] In some possible implementations, the step of obtaining a voiceprint template of a registered user under the first emotion includes:
[0192] The voiceprint template corresponding to the first emotion is obtained from the voiceprint templates of the registered user under multiple different emotions, wherein the multiple different emotions include the first emotion.
[0193] That is to say, the first emotion can be a single emotion among the preset multiple emotions, and the voiceprint recognition can be performed by calling the voiceprint template under the emotion. Figure 5 For the sake of brevity, the description in is not repeated here.
[0194] Therefore, the embodiment of the present application identifies the emotion of the voice signal to be identified of the user to be identified, calls the voiceprint template of the registered user under the emotion, matches the voice signal to be identified with the voiceprint template of the registered user under the emotion, and determines whether the user to be identified is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be identified with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0195] In some possible implementations, the first emotion is represented by a weight coefficient of each of at least two emotions.
[0196] The step of obtaining the voiceprint template of the registered user under the first emotion includes:
[0197] Determine, from the voiceprint templates of the registered user under a plurality of different emotions, a voiceprint template corresponding to each of the at least two emotions in the first emotion;
[0198] According to the voiceprint template of each emotion and the weight coefficient of each emotion, the voiceprint template corresponding to the first emotion is obtained.
[0199] That is to say, the first emotion can be a mixed emotion composed of multiple preset emotions. At this time, a mixed voiceprint template corresponding to the first emotion can be generated according to the voiceprint templates corresponding to the multiple preset emotions of the registered user, and then voiceprint matching can be performed according to the mixed voiceprint template. Figure 6 For the sake of brevity, the description is not repeated here.
[0200] Therefore, the embodiment of the present application identifies the weight coefficients of each emotion contained in the user's current emotion, and according to the weight coefficients of each emotion in the emotion, performs weighted summation on each emotion in the voiceprint template set of registered users to obtain a mixed voiceprint template, matches the voice signal to be recognized with the mixed voiceprint template, and determines whether the user to be recognized is a registered user. Therefore, the embodiment of the present application can help reduce the impact of the user's emotional fluctuations on voiceprint recognition by matching the voice signal to be recognized with the voiceprint template under the same emotion, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0201] In some possible implementations, the first emotion may also be displayed through a display interface.
[0202] In some possible implementations, when the first emotion is represented by a weight coefficient of each of at least two emotions, the first emotion may be displayed through a display interface, and each emotion and the weight coefficient of each emotion may be displayed through the display interface.
[0203] In some possible implementations, when the user is not satisfied with the type of the first emotion or the weight coefficient of each emotion in the first emotion, a first operation of the user may be obtained, wherein the first operation is used to modify the type of the first emotion or the weight coefficient of each emotion in at least two emotions in the first emotion. Then, in response to the first operation, the first emotion is updated.
[0204] Specifically, displaying the first emotion and updating the first emotion can be seen above. Fig.13 and Fig.14 For the sake of brevity, the description in is not repeated here.
[0205] Therefore, the embodiment of the present application displays the first emotion to the user, and when the user is dissatisfied with the type of the first emotion or the weight coefficient of each emotion in the first emotion, the first emotion can be updated with reference to the user's judgment of his or her true emotion, thereby helping to accurately identify the user's current emotional state, helping to reduce the impact of the user's emotional fluctuations on voiceprint recognition, thereby helping to achieve a consistent user experience of voiceprint recognition under different emotions, thereby enhancing the robustness of voiceprint recognition.
[0206] In some possible implementations, before obtaining the voiceprint template of the registered user under the first emotion, the method further includes:
[0207] Obtain registered speech signals under various emotions;
[0208] According to the registered voice signals of the multiple different emotions, a voiceprint template of each emotion of the registered user is obtained.
[0209] Therefore, compared with the prior art which only generates voiceprint templates for users in a calm state, the embodiment of the present application can generate voiceprint templates for users in different emotions, and the voiceprint templates for different emotions are different. Therefore, the embodiment of the present application can adapt to different emotional changes of users during voiceprint recognition, which helps to improve the accuracy of voiceprint recognition.
[0210] As an implementation method, the user's registered voice under different emotions can be directly collected to obtain the user's registered voice signals under different emotions. Figure 4 For the sake of brevity, the description in is not repeated here.
[0211] In some possible implementations, the step of obtaining registration voice signals under multiple different emotions includes:
[0212] Displaying at least two preset emotions to the user through a display interface;
[0213] Acquire a second operation of the user, where the second operation is used to record the user's voice under the at least two preset emotions;
[0214] In response to the second operation, the registration voice signals under the at least two preset emotions are acquired, wherein the registration voice signals under the plurality of different emotions include the registration voice signals under the at least two preset emotions.
[0215] For details, please refer to the above Fig.10 For the sake of brevity, the description in is not repeated here.
[0216] In some possible implementations, the step of obtaining registration voice signals under multiple different emotions includes:
[0217] Acquire a first registered voice signal;
[0218] Perform emotion conversion on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
[0219] For details, please refer to the above Figure 3 For the sake of brevity, the description in is not repeated here.
[0220] In some possible implementations, performing emotion conversion on the first registration voice signal to obtain registration voice signals under the multiple different emotions includes:
[0221] Displaying at least two preset emotions to the user through a display interface;
[0222] Acquire a third operation of the user, wherein the third operation is used to select the multiple different emotions from the at least two preset emotions;
[0223] In response to the third operation, the first registered voice signal is subjected to an emotion transformation to obtain the registered voice signals under the multiple different emotions.
[0224] For details, please refer to the above Fig.11 For the sake of brevity, the description in is not repeated here.
[0225] In some possible implementations, judging whether the user to be identified is the registered user according to the voice signal to be identified and the voiceprint template includes:
[0226] Extracting voiceprint features of the voice signal to be recognized to obtain voiceprint information of the voice signal to be recognized;
[0227] According to the voiceprint information and the voiceprint template, it is determined whether the user to be identified is the registered user.
[0228] In some possible implementations, the first emotion includes at least one of calmness, joy, anger, sadness, anxiety, fear, and surprise.
[0229] Combination of the above Figures 1 to 15 The voiceprint recognition method provided in the embodiment of the present application is described in detail below. Fig.16 and Fig.17 The device for voiceprint recognition in the embodiment of the present application is introduced. It should be understood that Fig.16 and Fig.17 The voiceprint recognition device in the embodiment of the present application can perform each step of the voiceprint recognition method. To avoid repetition, the following is an introduction Fig.16 and Fig.17 When describing the voiceprint recognition device, repeated descriptions are appropriately omitted.
[0230] Fig.16 It is a schematic block diagram of a device for voiceprint recognition according to an embodiment of the present application. Fig.16 The voiceprint recognition device 800 includes a first acquisition unit 810, an emotion recognition unit 820, a second acquisition unit 830 and a judgment unit 840.
[0231] Specifically, when the voiceprint recognition device 800 executes the voiceprint recognition method, the first acquisition unit 810 is used to obtain the voice signal to be recognized of the user to be recognized; the emotion recognition unit 820 is used to perform emotion recognition on the voice signal to be recognized, and obtain the first emotion corresponding to the voice signal to be recognized; the second acquisition unit 830 is used to obtain the voiceprint template of a registered user under the first emotion, wherein, when the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different; the judgment unit 840 is used to judge whether the user to be recognized is the registered user according to the voice signal to be recognized and the voiceprint template.
[0232] In some possible implementations, the second acquisition unit 860 is specifically configured to acquire the voiceprint template corresponding to the first emotion from the voiceprint templates of the registered user under a plurality of different emotions, wherein the plurality of different emotions include the first emotion.
[0233] In some possible implementations, the first emotion is represented by a weight coefficient of each of at least two emotions. In this case, the second acquisition unit 830 is specifically configured to determine a voiceprint template corresponding to each of the at least two emotions in the first emotion from the voiceprint templates under multiple different emotions of the registered user, and then acquire the voiceprint template corresponding to the first emotion based on the voiceprint template of each emotion and the weight coefficient of each emotion.
[0234] In some possible implementations, the device 800 further includes a display interface for displaying the first emotion.
[0235] In some possible implementations, when the first emotion is represented by a weight coefficient of each of at least two emotions, the display interface is specifically used to display each emotion and the weight coefficient of each emotion.
[0236] In some possible implementations, the device 800 further includes a third acquisition unit, configured to acquire a first operation of the user, wherein the first operation is used to modify the type of the first emotion, or to modify the weight coefficient of each of at least two emotions in the first emotion. The emotion recognition unit 820 is further configured to update the first emotion in response to the first operation.
[0237] In some possible implementations, the device 800 further includes a fourth acquisition unit, configured to acquire registered voice signals under multiple different emotions. And, it may further include a fifth acquisition unit, configured to acquire a voiceprint template of each emotion of the registered user in the multiple different emotions according to the registered voice signals of the multiple different emotions.
[0238] In a possible implementation manner, the fourth acquisition unit may be the same unit as the first acquisition unit, but this is not limited in the embodiment of the present application.
[0239] In some possible implementations, the fourth acquisition unit is specifically used to display at least two preset emotions to the user through a display interface; then obtain the user's second operation, the second operation is used to record the user's voice under the at least two preset emotions; in response to the second operation, obtain the registered voice signals under the at least two preset emotions, wherein the registered voice signals under the multiple different emotions include the registered voice signals under the at least two preset emotions.
[0240] In some possible implementations, the fourth acquisition unit is specifically configured to acquire a first registration voice signal, and then perform emotion conversion on the first registration voice signal to acquire registration voice signals under the multiple different emotions.
[0241] In some possible implementations, the fourth acquisition unit is specifically used to display at least two preset emotions to the user through a display interface; then obtain the user's third operation, wherein the third operation is used to select the multiple different emotions from the at least two preset emotions; in response to the third operation, perform an emotion transformation on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
[0242] In some possible implementations, the judgment unit 840 is specifically configured to extract voiceprint features from the voice signal to be recognized to obtain voiceprint information of the voice signal to be recognized. Then, the judgment unit 840 judges whether the user to be recognized is the registered user based on the voiceprint information and the voiceprint template.
[0243] In some possible implementations, the first emotion includes at least one of calmness, joy, anger, sadness, anxiety, fear, and surprise.
[0244] Fig.17 is a schematic diagram of the structure of a voiceprint recognition device in an embodiment of the present application. As an example, the voiceprint recognition device may be a terminal device. Fig.17 As shown, the voiceprint recognition device includes a communication module 910, a sensor 920, a user input module 930, an output module 940, a processor 950, an audio and video input module 960, a memory 970 and a power supply 980.
[0245] The communication module 910 may include at least one module that enables the computer system to communicate with a communication system or other computer systems. For example, the communication module 910 may include one or more of a wired network interface, a broadcast receiving module, a mobile communication module, a wireless Internet module, a local area communication module, and a position (or positioning) information module. These various modules are all implemented in various ways in the prior art, and this application will not describe them one by one.
[0246] The sensor 920 may sense the current state of the system, such as an open / closed state, a position, whether there is contact with a user, a direction, and acceleration / deceleration, and the sensor 920 may generate a sensing signal for controlling the operation of the system.
[0247] The user input module 930 is used to receive input digital information, character information or contact touch operation / contactless gesture, and receive signal input related to user settings and function control of the system, etc. The user input module 930 includes a touch panel and / or other input devices.
[0248] For example, the user input module 930 may be used to obtain a first operation input by the user, wherein the first operation is used to modify the type of the first emotion, or to modify the weight coefficient of each of at least two emotions in the first emotion.
[0249] For another example, the user input module 930 may be used to obtain a second operation of the user input, wherein the second operation is used to record the user's voice under the at least two preset emotions.
[0250] For another example, the user input module 930 may be used to obtain a third operation input by the user, where the third operation is used to select the multiple different emotions from at least two preset emotions.
[0251] The output module 940 includes a display panel for displaying information input by the user, information provided to the user, or various menu interfaces of the system. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED). In some other embodiments, the touch panel can cover the display panel to form a touch display screen. In addition, the output module 940 can also include an audio output module, an alarm, and a tactile module.
[0252] For example, the output module 940 is used to display the first emotion to the user through a display screen, for example, display the type of the first emotion, or the weight coefficient of each of at least two emotions in the first emotion.
[0253] For another example, the output module 940 can be used to display or prompt the user through a display screen whether to register a voiceprint template, or prompt the user to select an emotion when recording voice, or prompt the user to select an emotion for emotional conversion, etc., which is not limited to this embodiment of the present application.
[0254] The audio and video input module 960 is used to input audio signals or video signals. The audio and video input module 960 may include a camera and a microphone.
[0255] The power supply 980 may receive external power and internal power under the control of the processor 950 and provide power required for the operation of various components of the system.
[0256] The processor 950 may indicate one or more processors. For example, the processor 950 may include one or more central processing units, or include a central processing unit and a graphics processor, or include an application processor and a coprocessor (such as a microcontroller unit). When the processor 950 includes multiple processors, the multiple processors may be integrated on the same chip or may be independent chips. A processor may include one or more physical cores, where a physical core is the smallest processing module.
[0257] For example, the processor 950 is used to obtain a voice signal to be identified of a user to be identified, and perform emotion recognition on the voice signal to be identified to obtain a first emotion corresponding to the voice signal to be identified. Then, the processor 950 obtains a voiceprint template of a registered user under the first emotion, wherein when the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different. Then, the processor 950 determines whether the user to be identified is the registered user based on the voice signal to be identified and the voiceprint template.
[0258] For another example, the processor 930 is further configured to obtain registered voice signals under a plurality of different emotions, and then obtain the voiceprint template of each emotion of the registered user according to the registered voice signals of the plurality of different emotions.
[0259] For another example, the processor 930 is further configured to update the first emotion in response to a first operation of the user. Alternatively, in response to a second operation of the user, obtain the registered voice signals under the at least two preset emotions. Alternatively, in response to a third operation of the user, perform an emotion transformation on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
[0260] The memory 970 stores computer programs, including an operating system program 972 and an application program 971. Typical operating systems include Microsoft's Windows, Apple's MacOS, and other systems for desktops or notebooks, and Google's Android The method provided in the above-mentioned embodiment can be implemented by software, which can be regarded as a specific implementation of the application program 971.
[0261] The memory 970 may be one or more of the following types: flash memory, hard disk type memory, micro multimedia card type memory, card memory (such as SD or XD memory), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable ROM (PROM), magnetic memory, magnetic disk or optical disk. In some other embodiments, the memory 970 may also be a network storage device on the Internet, and the system may perform operations such as updating or reading the memory 970 on the Internet.
[0262] The processor 950 is used to read the computer program in the memory 970 and then execute the method defined by the computer program. For example, the processor 950 reads the operating system program 972 to run the operating system on the system and implement various functions of the operating system, or reads one or more application programs 971 to run applications on the system.
[0263] The memory 970 also stores other data 973 besides the computer program, such as the voiceprint template involved in this application, the voice signal to be recognized, the registered voice signal, etc.
[0264] Fig.16 The connection relationship between the various modules is only an example. The method provided in any embodiment of the present application can also be applied to voiceprint recognition devices with other connection methods, such as all modules connected through a bus.
[0265] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0266] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0267] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0268] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0269] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0270] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0271] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for voiceprint recognition, It is characterized in that include: Acquire a voice signal to be recognized from a user to be recognized; Performing emotion recognition on the voice signal to be recognized to obtain a first emotion corresponding to the voice signal to be recognized; Acquire a voiceprint template of a registered user under the first emotion, wherein when the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different; Determining whether the user to be identified is the registered user according to the voice signal to be identified and the voiceprint template; The first emotion is characterized by a weight coefficient of each of at least two emotions; The step of obtaining the voiceprint template of the registered user under the first emotion includes: Determine, from the voiceprint templates of the registered user under a plurality of different emotions, a voiceprint template corresponding to each of the at least two emotions in the first emotion; According to the voiceprint template of each emotion and the weight coefficient of each emotion, the voiceprint template corresponding to the first emotion is obtained.
2. The method according to claim 1, It is characterized in that The step of obtaining the voiceprint template of the registered user under the first emotion further includes: The voiceprint template corresponding to the first emotion is obtained from the voiceprint templates of the registered user under multiple different emotions, wherein the multiple different emotions include the first emotion.
3. The method according to any one of claims 1 to 2, It is characterized in that The method further comprises: The first emotion is displayed through a display interface.
4. The method according to claim 3, It is characterized in that When the first emotion is represented by a weight coefficient of each of at least two emotions, displaying the first emotion through a display interface includes: Each emotion and the weight coefficient of each emotion are displayed through the display interface.
5. The method according to claim 4, It is characterized in that Also includes: Acquire a first operation of a user, wherein the first operation is used to modify the type of the first emotion, or to modify a weight coefficient of each of at least two emotions in the first emotion; In response to the first operation, the first emotion is updated.
6. The method according to any one of claims 1-2, 4-5, It is characterized in that Before obtaining the voiceprint template of the registered user under the first emotion, the method further includes: Obtain registered speech signals under various emotions; According to the registered voice signals of the multiple different emotions, a voiceprint template of each emotion of the registered user is obtained.
7. The method according to claim 6, It is characterized in that The method of obtaining registered voice signals under various emotions includes: Displaying at least two preset emotions to the user through a display interface; Acquire a second operation of the user, where the second operation is used to record the user's voice under the at least two preset emotions; In response to the second operation, the registration voice signals under the at least two preset emotions are acquired, wherein the registration voice signals under the plurality of different emotions include the registration voice signals under the at least two preset emotions.
8. The method according to claim 6, It is characterized in that The method of obtaining registered voice signals under various emotions includes: Acquire a first registered voice signal; Perform emotion conversion on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
9. The method according to claim 8, It is characterized in that The performing emotion conversion on the first registered voice signal to obtain the registered voice signals under the multiple different emotions includes: Displaying at least two preset emotions to the user through a display interface; Acquire a third operation of the user, wherein the third operation is used to select the multiple different emotions from the at least two preset emotions; In response to the third operation, the first registered voice signal is subjected to an emotion transformation to obtain the registered voice signals under the multiple different emotions.
10. The method according to any one of claims 1-2, 4-5, 7-9, It is characterized in that The determining, based on the voice signal to be identified and the voiceprint template, whether the user to be identified is the registered user includes: Extracting voiceprint features of the voice signal to be recognized to obtain voiceprint information of the voice signal to be recognized; According to the voiceprint information and the voiceprint template, it is determined whether the user to be identified is the registered user.
11. The method according to any one of claims 1-2, 4-5, 7-9, It is characterized in that The first emotion includes at least one of calmness, joy, anger, sadness, anxiety, fear and surprise.
12. A device for voiceprint recognition, It is characterized in that include: A first acquisition unit, used to acquire a voice signal to be recognized by a user to be recognized; An emotion recognition unit, used to perform emotion recognition on the voice signal to be recognized, and obtain a first emotion corresponding to the voice signal to be recognized; A second acquiring unit is configured to acquire a voiceprint template of a registered user under the first emotion, wherein when the first emotion corresponds to different emotions, the voiceprint templates corresponding to the different emotions are different; A judging unit, configured to judge whether the user to be identified is the registered user according to the voice signal to be identified and the voiceprint template; The first emotion is characterized by a weight coefficient of each of at least two emotions; Wherein, the second acquisition unit is specifically used for: Determine, from the voiceprint templates of the registered user under a plurality of different emotions, a voiceprint template corresponding to each of the at least two emotions in the first emotion; According to the voiceprint template of each emotion and the weight coefficient of each emotion, the voiceprint template corresponding to the first emotion is obtained.
13. The device according to claim 12, It is characterized in that The second acquisition unit is further specifically configured to: The voiceprint template corresponding to the first emotion is obtained from the voiceprint templates of the registered user under multiple different emotions, wherein the multiple different emotions include the first emotion.
14. The device according to any one of claims 12 to 13, It is characterized in that Also includes: A display interface is used to display the first emotion.
15. The device according to claim 14, It is characterized in that When the first emotion is represented by a weight coefficient of each of at least two emotions, the display interface is specifically used to display each emotion and the weight coefficient of each emotion.
16. The device according to claim 15, It is characterized in that Also includes: A third acquisition unit, configured to acquire a first operation of the user, wherein the first operation is used to modify the type of the first emotion, or to modify a weight coefficient of each of at least two emotions in the first emotion; The emotion recognition unit is further configured to update the first emotion in response to the first operation.
17. The device according to any one of claims 12-13, 15-16, It is characterized in that Also includes: A fourth acquisition unit, used to acquire registration voice signals under a plurality of different emotions; The fifth acquisition unit is used to acquire the voiceprint template of each emotion of the registered user according to the registered voice signals of the multiple different emotions.
18. The device according to claim 17, It is characterized in that The fourth acquisition unit is specifically used for: Displaying at least two preset emotions to the user through a display interface; Acquire a second operation of the user, where the second operation is used to record the user's voice under the at least two preset emotions; In response to the second operation, the registration voice signals under the at least two preset emotions are acquired, wherein the registration voice signals under the plurality of different emotions include the registration voice signals under the at least two preset emotions.
19. The device according to claim 17, It is characterized in that The fourth acquisition unit is specifically used for: Acquire a first registered voice signal; Perform emotion conversion on the first registered voice signal to obtain the registered voice signals under the multiple different emotions.
20. The device according to claim 19, It is characterized in that The fourth acquisition unit is specifically used for: Displaying at least two preset emotions to the user through a display interface; Acquire a third operation of the user, wherein the third operation is used to select the multiple different emotions from the at least two preset emotions; In response to the third operation, the first registered voice signal is subjected to an emotion transformation to obtain the registered voice signals under the multiple different emotions.
21. The device according to any one of claims 12-13, 15-16, 18-20, It is characterized in that The judging unit is specifically used for: Extracting voiceprint features of the voice signal to be recognized to obtain voiceprint information of the voice signal to be recognized; According to the voiceprint information and the voiceprint template, it is determined whether the user to be identified is the registered user.
22. The device according to any one of claims 12-13, 15-16, 18-20, It is characterized in that The first emotion includes at least one of calmness, joy, anger, sadness, anxiety, fear and surprise.
23. A terminal device, It is characterized in that include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 11.
