Voice wake-up method and device, electronic equipment and storage medium

By identifying the user's emotional state when inputting voice and adjusting the voice assistant's wake-up threshold, the problem of low voice wake-up success rate is solved and the wake-up success rate and user experience are improved.

CN118865962APending Publication Date: 2024-10-29SHENZHEN HEYTAP TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310481687.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The success rate of voice-activated voice assistants in existing electronic devices is low, mainly because the quality of the voice input by the user is affected by emotions, resulting in inappropriate wake-up threshold settings, which affects the wake-up success rate.

Method used

By obtaining the input speech to be recognized, the parameters of the user's emotional state are identified. If the preset conditions are met, the wake-up threshold of the voice assistant is lowered, so that it is easier to wake up the voice assistant and avoid emotional interference.

Benefits of technology

It improves the wake-up success rate of voice assistants under the influence of emotions, and improves user experience and interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865962A_ABST
    Figure CN118865962A_ABST
Patent Text Reader

Abstract

The invention discloses a voice wake-up method and device, electronic equipment and a storage medium. The voice wake-up method comprises the following steps: acquiring an input to-be-recognized voice; based on the to-be-recognized voice, recognizing to obtain a parameter for representing a user emotional state; if the parameter meets a preset condition, determining a wake-up threshold value used by the voice assistant at this time as a first threshold value which is smaller than a standard wake-up threshold value; and based on the first threshold value and the to-be-recognized voice, judging whether to wake up the voice assistant or not. According to the method, the success rate of awakening the voice assistant can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a voice wake-up method, device, electronic device and storage medium. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. Most of the current electronic devices are equipped with voice assistants to assist users in using the electronic devices. Usually, before using the voice assistant, the user needs to wake up the voice assistant through a wake-up voice, but in some cases the success rate of waking up the voice assistant is low. Summary of the invention

[0003] The present application proposes a voice wake-up method, device, electronic device and storage medium, which can improve the success rate of waking up a voice assistant.

[0004] In a first aspect, an embodiment of the present application provides a voice wake-up method, the method comprising: obtaining an input voice to be recognized; based on the voice to be recognized, identifying parameters used to represent the user's emotional state; if the parameters meet preset conditions, determining the wake-up threshold used by the voice assistant this time as a first threshold, and the first threshold is less than the standard wake-up threshold; based on the first threshold and the voice to be recognized, determining whether to wake up the voice assistant.

[0005] In the second aspect, an embodiment of the present application provides a voice wake-up device, comprising: a voice acquisition module, a first recognition module, a threshold determination module and a wake-up module, wherein the voice acquisition module is used to acquire an input voice to be recognized; the first recognition module is used to identify parameters used to represent the user's emotional state based on the voice to be recognized; the threshold determination module is used to determine the wake-up threshold used by the voice assistant this time as a first threshold if the parameter meets a preset condition, and the first threshold is less than the standard wake-up threshold; based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the voice wake-up method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the voice wake-up method provided in the first aspect above.

[0008] The solution provided by the present application obtains the input speech to be recognized, and based on the speech to be recognized, identifies a parameter used to represent the user's emotional state. If the parameter meets the preset condition, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold. Based on the first threshold and the speech to be recognized, it is determined whether to wake up the voice assistant. In this way, when it is recognized that the parameter used to represent the user's emotional state when the user inputs the speech meets the preset condition, the wake-up threshold of the voice assistant can be controlled to be lower than the standard wake-up threshold, thereby avoiding the influence of the user's emotion when inputting the speech on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flow chart of a voice wake-up method according to an embodiment of the present application is shown.

[0011] Figure 2 A flow chart of a voice wake-up method according to another embodiment of the present application is shown.

[0012] Figure 3 A flow chart of a voice wake-up method according to yet another embodiment of the present application is shown.

[0013] Figure 4 A flow chart of a voice wake-up method according to another embodiment of the present application is shown.

[0014] Figure 5 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0015] Figure 6 Another interface schematic diagram provided in an embodiment of the present application is shown.

[0016] Figure 7 A flow chart of a voice wake-up method according to yet another embodiment of the present application is shown.

[0017] Figure 8 A block diagram of a voice wake-up device according to an embodiment of the present application is shown.

[0018] Fig. 9 It is a block diagram of an electronic device for executing the voice wake-up method according to an embodiment of the present application.

[0019] Fig.10 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing the voice wake-up method according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0021] Voice assistants are increasingly being used in electronic devices. When a voice assistant is installed in an electronic device, the user can first operate the electronic device to call out the voice assistant, and then use the voice assistant to call out and trigger the voice assistant to control the electronic device through voice input. For example, after the voice assistant is called out, the user inputs "start music software" through voice, then the voice assistant can control the electronic device to start the installed music software.

[0022] In the process of using the voice assistant, the user needs to wake up the voice assistant. Usually, the user can perform corresponding touch operations in the display interface of the electronic device, or long press the physical button to wake up the voice assistant, but when the user needs to use the voice assistant frequently, this method has the problem of inconvenience for the user. Of course, it is also possible to wake up the voice assistant by voice wake-up. In this method, the voice input by the user is matched with the pre-set wake-up voice, and the voice assistant is woken up when the match degree is greater than the wake-up threshold, so that the user can wake up the voice assistant conveniently. However, the success rate of waking up the voice assistant by voice wake-up is related to the voice quality input by the user, and the voice input by the user when waking up the voice assistant by voice is easily affected by emotions, which will result in a low success rate of voice wake-up.

[0023] In response to the above problems, the inventors have proposed the voice wake-up method, device, electronic device and storage medium provided in the embodiments of the present application, which can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when the parameters used to represent the emotions of the user when inputting voice meet the preset conditions, thereby avoiding the influence of the emotions of the user when inputting voice on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case. The specific voice wake-up method is described in detail in the subsequent embodiments.

[0024] The voice wake-up method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a voice wake-up method provided by an embodiment of the present application. In a specific embodiment, the voice wake-up method is applied to Figure 8 The voice awakening device 600 and the electronic device 100 ( Fig. 9 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, a smart watch, an e-book, etc., which is not limited here. Figure 1 The process shown is described in detail, and the voice wake-up method may specifically include the following steps:

[0026] Step S110: obtaining input speech to be recognized.

[0027] In an embodiment of the present application, an application corresponding to a voice assistant is installed in the electronic device. The electronic device can detect the input voice, and when the input voice is detected, the input voice is used as the voice to be recognized. It can be understood that when the voice assistant is awakened, the user may need to wake up the voice assistant by voice awakening, so the electronic device can detect the input voice to determine whether to wake up the voice assistant according to the obtained voice.

[0028] In some embodiments, the electronic device can collect audio signals in the environment through an audio collection device (such as a microphone, etc.) when the voice assistant is turned on to obtain the above voice to be recognized. Among them, the voice assistant can be set to an on state or an off state. When the voice assistant is on, the user can wake up the voice assistant and use the voice assistant; when the voice assistant is off, the voice assistant cannot be woken up and used. Optionally, the electronic device can display a setting interface for the voice assistant, which includes a switch control for controlling the voice assistant to be on or off. The electronic device can control the voice assistant to be on or off according to the detected operation on the switch control.

[0029] In some embodiments, considering that the audio signal collected by the electronic device in its environment may not be the sound made by the user, the electronic device performs voice activity detection (VAD) on the collected audio when collecting the audio signal, and determines whether it is the voice input by the user or other sounds in the environment based on the detection result; if the voice input by the user is determined, the collected audio signal can be used as the above voice to be recognized, and subsequent steps are performed to determine whether to wake up the voice assistant.

[0030] Step S120: Based on the speech to be recognized, parameters for representing the user's emotional state are recognized.

[0031] In an embodiment of the present application, after acquiring the input voice to be recognized, when determining whether the voice to be recognized is the voice used to wake up the voice assistant, taking into account that the voice quality of the user's input voice may be affected by his or her emotions, thereby affecting the success rate of voice wake-up, the electronic device can also identify parameters used to represent the user's emotional state based on the acquired voice to be recognized, so as to determine whether the voice quality of the currently input voice to be recognized is affected by the user's emotions based on the identified parameters.

[0032] In some embodiments, the above parameters used to represent the user's emotional state may be emotion labels of different types of user emotional states. An emotion recognition model is stored in the electronic device. The emotion recognition model is trained on a second recognition model based on sample speech labeled with emotion labels. The emotion recognition model may be a neural network, a decision tree or other model, and its specific model type may not be limited. The above emotion labels are used to characterize different types of user emotional states. When determining the user's emotional state based on the obtained speech to be recognized, the speech features corresponding to the speech to be recognized may be obtained, and then the speech features may be input into the emotion recognition model to obtain the emotion labels output by the emotion recognition model. The emotion labels are used to characterize different types of user emotional states.

[0033] When training the above wake-up recognition model, the speech features of the sample speech can be input into the second recognition model to obtain the recognition result output by the second recognition model; then, according to the recognition result and the emotional label marked by the sample speech, the second loss value corresponding to the second recognition model is determined; after obtaining the above second loss value, the first recognition model can be iteratively updated according to the second loss value until the first recognition model meets the training termination condition, thereby obtaining the above emotion recognition model. It is worth noting that the training of the emotion recognition model can be performed in advance based on the obtained sample speech, and then each time the parameters corresponding to the speech to be recognized for representing the user's emotional state need to be obtained, the trained emotion recognition model can be used for it, without the need to train the emotion recognition model each time the user's emotional state corresponding to the speech to be recognized is obtained.

[0034] Step S130: If the parameter meets the preset conditions, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold.

[0035] In an embodiment of the present application, after the electronic device obtains the parameter used to represent the user's emotional state, it can match the obtained parameter with the preset condition. If the parameter meets the preset condition, it means that the voice quality of the voice to be recognized obtained above is affected by the user's emotion. Therefore, the wake-up threshold of the voice assistant can be controlled to be lower than the standard wake-up threshold, that is, the wake-up threshold corresponding to the voice assistant is determined to be a first threshold lower than the standard wake-up threshold, so that the voice to be recognized can be more easily determined as the voice used to wake up the voice assistant; if the parameter does not meet the preset condition, it means that the voice quality of the voice to be recognized obtained above is not affected by the user's emotion. In this case, the wake-up threshold of the voice assistant does not need to be adjusted.

[0036] Among them, the above preset conditions can be pre-set conditions that need to be met by parameters used to represent the user's emotional state when the wake-up threshold needs to be adjusted. The preset conditions can be parameters corresponding to the user's emotional state that will affect the voice quality when the user makes a voice, such as an emotional label that characterizes this type of user emotional state; the standard wake-up threshold can be the default wake-up threshold of the voice assistant, that is, without adjusting the wake-up threshold of the voice assistant, the standard wake-up threshold is used as the standard to determine whether the input voice to be recognized is a voice for waking up the voice assistant; the specific values ​​of the above standard wake-up threshold and the first threshold are not limited, and the standard wake-up threshold and the first threshold correspond to the quantitative standard of the wake-up score, which is used to characterize the probability that the voice to be recognized is used to wake up the voice assistant. For example, the wake-up score ranges from 0 to 1, then the first threshold can be 0.8, and the standard wake-up threshold can be 0.9.

[0037] Step S140: Based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

[0038] In an embodiment of the present application, after determining that the wake-up threshold used by the voice assistant this time is the first threshold, it can be determined whether to wake up the voice assistant based on the first threshold and the voice to be recognized. Since the wake-up threshold used by the voice assistant determined above is lower than the standard wake-up threshold, the user's emotions when inputting voice can be avoided from affecting the wake-up of the voice assistant, thereby increasing the probability of the voice assistant being successfully awakened in this case.

[0039] In some embodiments, the electronic device can obtain a wake-up score corresponding to the voice to be recognized, and the wake-up score is used to characterize the probability that the voice to be recognized is a target voice, wherein the target voice is a pre-set voice for waking up a voice assistant; after obtaining the wake-up score, the obtained wake-up score is compared with the above first threshold; according to the comparison result, if the wake-up score is greater than the first threshold, it can be determined that the above voice to be recognized is a voice for waking up the voice assistant, and thus the voice assistant can be woken up, that is, the voice assistant can be controlled to be in a wake-up state to meet the user's required voice interaction through the voice assistant; if the wake-up score is less than or equal to the first threshold, it can be determined that the above voice to be recognized is not a voice for waking up the voice assistant, and thus the voice assistant is not woken up in this case.

[0040] In some embodiments, if the parameters obtained by recognition to represent the user's emotional state do not meet the above preset conditions, the wake-up threshold corresponding to the voice assistant is not adjusted, that is, the wake-up threshold used by the voice assistant this time is determined as the standard wake-up threshold; then based on the standard wake-up threshold and the voice to be recognized, it is determined whether to wake up the voice assistant. Similarly, the electronic device can also obtain the wake-up score corresponding to the voice to be recognized, and then compare the wake-up score with the standard wake-up threshold; according to the comparison result, if the wake-up score is greater than the standard wake-up threshold, it can be determined that the above voice to be recognized is the voice used to wake up the voice assistant, so the voice assistant can be woken up, that is, the voice assistant can be controlled to be in a wake-up state to meet the user's desired voice interaction through the voice assistant.

[0041] The voice wake-up method provided in the embodiment of the present application can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when it is recognized that the parameters used to represent the user's emotional state when the user inputs voice meet the preset conditions, thereby avoiding the influence of the user's emotions when inputting voice on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case.

[0042] See also Figure 2 , Figure 2A flow chart of a voice wake-up method provided by another embodiment of the present application is shown. The voice wake-up method is applied to the above electronic device. Figure 2 The process shown is described in detail, and the voice wake-up method may specifically include the following steps:

[0043] Step S210: Obtain input speech to be recognized.

[0044] Step S220: Based on the speech to be recognized, parameters for representing the user's emotional state are recognized.

[0045] In an embodiment of the present application, the parameter used to represent the user's emotional state obtained based on the recognition of the speech to be recognized may be a parameter used to represent a positive emotional state, a negative emotional state, or a neutral emotional state.

[0046] In some embodiments, the speech to be recognized can be recognized by a pre-trained emotion recognition model to obtain a positive emotion label for characterizing the user's emotional state as a positive emotion state, a negative emotion label for characterizing a negative emotion state, or a neutral emotion label for characterizing a neutral emotion state. The emotion recognition model is obtained by training the second recognition model based on sample speech labeled with emotion labels. The emotion labels can be divided into negative emotion labels, neutral emotion labels, and positive emotion labels. The negative emotion label is used to characterize the user's emotional state as a negative emotion state, the neutral emotion label is used to characterize the user's emotional state as a neutral emotion state, and the positive emotion label is used to characterize the user's emotional state as a positive emotion state. Thus, according to the emotion label output by the trained emotion recognition model based on the input speech, it can be determined whether the user's emotional state is a positive emotion state, a negative emotion state, or a neutral emotion state.

[0047] Step S230: If the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, the wake-up threshold used by the voice assistant this time is determined as a first threshold, and the first threshold is less than the standard wake-up threshold.

[0048] In an embodiment of the present application, after obtaining the user's emotional state, it can be determined whether the obtained user's emotional state is a negative emotional state or a positive emotional state; if the obtained user's emotional state is a negative emotional state or a positive emotional state, the wake-up threshold of the voice assistant can be controlled to be lower than the standard wake-up threshold, that is, the wake-up threshold corresponding to the voice assistant is determined to be a first threshold lower than the standard wake-up threshold, so that the voice to be recognized can be more easily determined as the voice used to wake up the voice assistant; if the user's emotional state is not a negative emotional state or a positive emotional state, that is, if the user's emotional state is a neutral emotional state, the wake-up threshold of the voice assistant may not be adjusted.

[0049] It can be understood that when the user's emotional state is a negative emotional state or a positive emotional state, for example, the sound uttered by the user when he is more depressed, sad, or excited is easily affected. Therefore, the wake-up score recognized for the voice to be recognized input by him in this case is also lower than that in normal circumstances. Therefore, the wake-up threshold can be lowered to make the voice to be recognized easier to be determined as the voice used to wake up the voice assistant, thereby improving the success rate of voice wake-up; conversely, when the user's emotional state is a neutral emotional state, for example, the sound uttered by the user when he is relatively calm is not easily affected. Therefore, the wake-up score recognized for the voice to be recognized input by him in this case is not easily affected, so the wake-up threshold of the voice assistant does not need to be adjusted.

[0050] In some embodiments, if the above parameters obtained by identification indicate that the user's emotional state is a negative emotional state or a positive emotional state, when the wake-up threshold corresponding to the voice assistant is determined as the above first threshold, the product of the standard wake-up threshold and the first ratio can be obtained as the first threshold, and the first ratio is less than 1; the wake-up threshold corresponding to the voice assistant is determined as the first threshold. In other words, when the wake-up threshold corresponding to the voice assistant is determined as the above first threshold, the first ratio and the standard wake-up threshold can be used to calculate the first threshold to be used this time, and the first ratio is less than 1, thereby reducing the wake-up threshold of the voice assistant on the basis of the standard wake-up threshold. Among them, the specific value of the first ratio may not be limited, for example, it may be 0.7, 0.8, 0.9, etc.

[0051] In a possible implementation, when obtaining the product of the standard wake-up threshold and the first ratio as the first threshold, the number of times the target parameter is historically recognized as the first number, and the number of times the voice assistant is awakened when the target parameter is historically recognized as the second number, and the target parameter meets the above preset conditions; based on the first number and the second number, the first ratio is determined. In other words, the first ratio can be determined based on the number of times the electronic device historically obtains the input voice to be recognized, and the number of times the parameter representing the user's emotional state meets the above preset conditions based on the historically obtained voice to be recognized, and the number of times the voice assistant is finally awakened in this case, so that the first threshold finally obtained is more in line with the actual usage.

[0052] Optionally, the ratio of the second number to the first number can be obtained as the first ratio; if the first ratio is less than the first target threshold, it means that the proportion of voice wake-up performed when the parameters representing the user's emotional state meet the preset conditions based on the historically obtained voice to be recognized is small, and when the user inputs voice in a negative emotional state or a positive emotional state, it may be necessary to wake up the voice assistant in most cases. Therefore, the first ratio can be reduced on the basis of the first ratio used in the historical determination of the wake-up threshold; if the first ratio is greater than or equal to the first target threshold, the first ratio used in the historical determination of the wake-up threshold can be kept unchanged. Of course, the minimum value of the above first ratio can be greater than or equal to the target ratio, that is, the first ratio is not less than the target ratio. For example, the target ratio can be 0.7, that is, the first ratio cannot be less than 0.7 times the general threshold to prevent the determined first threshold from being too small, resulting in an increase in the number of false wake-ups of the voice assistant.

[0053] Step S240: Based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

[0054] In the embodiment of the present application, step S240 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0055] The voice wake-up method provided in the embodiment of the present application can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when it is recognized that the parameter representing the user's emotional state when the user inputs voice indicates a negative emotional state or a positive emotional state, thereby avoiding the negative emotion or positive emotion of the user when inputting voice from affecting the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case.

[0056] See also Figure 3 , Figure 3 A flow chart of a voice wake-up method provided by another embodiment of the present application is shown. The voice wake-up method is applied to the above electronic device. Figure 3 The process shown is described in detail, and the voice wake-up method may specifically include the following steps:

[0057] Step S310: Obtain input speech to be recognized.

[0058] Step S320: Based on the speech to be recognized, parameters for representing the user's emotional state are recognized, and the parameters include an emotional score.

[0059] In an embodiment of the present application, the parameter representing the user's emotional state obtained based on the recognition of the speech to be recognized may include an emotional score, and the higher the emotional score, the better the user's emotion corresponding to the speech to be recognized. That is, the user's emotional state can be quantified as an emotional score, and the size of the emotional score can reflect the user's emotion. Exemplarily, the emotional score can range from 0 to 1. When the absolute value of the difference between the emotional score and the middle value (0.5) is less than or equal to the first score (for example, 0.15, 0.2, etc.), that is, when it is close to the middle value, it indicates that the user's emotional state is a neutral emotional state; when the absolute value of the difference between the emotional score and the middle value (0.5) is greater than the first score (for example, 0.15, 0.2, etc.), it indicates that the user's emotional state is a positive emotional state or a negative emotional state. Specifically, if the emotional score is higher than the first score, it indicates that the user's emotional state is a positive emotional state, and if the emotional score is lower than the second score, it indicates that the user's emotional state is a negative emotional state, wherein the first score can be a score higher than the above middle value, such as 0.3, 0.35, etc., and the second score can be a score less than the above middle value, such as 0.65, 0.7, etc.

[0060] In some embodiments, the speech to be recognized can be recognized by a pre-trained emotion recognition model to obtain the above emotion score. The emotion recognition model is trained on the second recognition model based on the sample speech labeled with the emotion score, so that the emotion score corresponding to the speech to be recognized can be obtained according to the recognition result output by the trained emotion recognition model based on the input speech.

[0061] It should be noted that the method of obtaining the emotional score when determining the user's emotional state in the embodiment of the present application can also be used in the previous embodiment. Specifically, when the parameters are determined in the previous embodiment to indicate that the user's emotional state is a negative emotional state, a positive emotional state, or a neutral emotional state, the above emotional score can be obtained, and then based on the emotional score, it is determined whether the user's emotional state represented by the emotional score is a negative emotional state, a positive emotional state, or a neutral emotional state.

[0062] Step S330: If the emotion score is higher than the first score or the emotion score is lower than the second score, the wake-up threshold used by the voice assistant this time is determined as the first threshold, wherein the first score is higher than the second score and the first threshold is lower than the standard wake-up threshold.

[0063] In the embodiment of the present application, after obtaining the above emotion score, it can be determined whether the obtained emotion score is higher than the first score or lower than the second score; if the emotion score is higher than the first score, or the emotion score is lower than the second score, it can be determined that the parameter representing the user's emotional state meets the preset conditions, so the wake-up threshold used by the voice assistant this time can be controlled to be lower than the standard wake-up threshold, that is, the wake-up threshold used by the voice assistant this time is determined to be a first threshold lower than the standard wake-up threshold, so that the voice to be recognized is more easily determined as the voice used to wake up the voice assistant; if the emotion score is not lower than the second score and not higher than the first score, it can be determined that the parameter representing the user's emotional state does not meet the preset conditions, so the wake-up threshold used by the voice assistant this time can be adjusted. Among them, the above first score is higher than the second score, the first score can be higher than the middle value of the value range of the emotion score, and the second score can be lower than the middle value.

[0064] It can be understood that when the emotion score is higher than the above first score, the user's emotional state can be considered to be a positive emotional state, and when the emotion score is lower than the above second score, the user's emotional state can be considered to be a negative emotional state. When the user's emotional state is a negative emotional state or a positive emotional state, for example, the sound emitted by the user when he is more depressed, sad, or excited is easily affected. Therefore, in this case, the wake-up score recognized for the voice to be recognized input by him is also lower than that under normal circumstances. Therefore, the wake-up threshold can be lowered to make the voice to be recognized easier to be determined as the voice used to wake up the voice assistant, thereby improving the success rate of voice wake-up; conversely, when the emotion score is not lower than the second score and not higher than the first score, the user's emotional state can be considered to be a neutral emotional state. For example, the sound emitted by the user when he is relatively calm is not easily affected. Therefore, in this case, the wake-up score recognized for the voice to be recognized input by him is not easily affected, so the wake-up threshold of the voice assistant does not need to be adjusted.

[0065] In some embodiments, when it is determined that the emotion score is higher than the first score or the emotion score is lower than the second score, when the wake-up threshold of the voice assistant is determined to be the first threshold, the first threshold can be determined according to the emotion score. The electronic device can obtain the absolute value of the difference between the emotion score and the third score; then determine the first threshold based on the absolute value and the standard wake-up threshold, the first threshold is less than the standard wake-up threshold, and the first threshold is negatively correlated with the absolute value; and then determine the wake-up threshold used by the voice assistant this time as the first threshold. Among them, the above third score can be the middle value of the value range of the emotion score, that is, when it is determined that the above emotion score is lower than the second score, the more the emotion score deviates from the middle value, the more negative the user's emotional state is; when it is determined that the above emotion score is higher than the first score, the more the emotion score deviates from the middle value, the more positive the user's emotional state is, and the more negative or positive the user is, the lower the voice quality of the sound he emits will be. Therefore, the first threshold is determined according to the above absolute value, so that the first threshold is negatively correlated with the absolute value, so that when the wake-up threshold corresponding to the voice assistant is lowered, the reduction in the wake-up threshold corresponds to the actual emotional state of the user, thereby ensuring the success rate of voice wake-up, and when the user's emotional state is not very negative or very positive, the first threshold will not be too low, thereby avoiding an increase in the number of false wake-ups of the voice assistant.

[0066] In a possible implementation, when determining the first threshold based on the absolute value and the standard wake-up threshold, the second ratio corresponding to the absolute value can be determined according to the corresponding relationship between the absolute value and the second ratio, and the second ratio is less than 1, and the size of the second ratio is negatively correlated with the absolute value. For example, when the first value is greater than the second value, the second ratio corresponding to the absolute value of the first value is less than the second ratio corresponding to the absolute value of the second value; then the product of the standard wake-up threshold and the determined second ratio is obtained, and the product is used as the first threshold. Optionally, the minimum value of the second ratio can be greater than or equal to the target ratio, that is, the second ratio is not less than the target ratio. For example, the target ratio can be 0.7, that is, the second ratio cannot be less than 0.7 times the standard wake-up threshold, so as to prevent the first threshold from being determined to be too small, resulting in an increase in the number of false wake-ups of the voice assistant.

[0067] Step S340: Based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

[0068] In the embodiment of the present application, step S340 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0069] The voice wake-up method provided in the embodiment of the present application can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when the emotion score of the user's input voice is recognized to be higher than the first score or lower than the second score, thereby avoiding the negative emotion or positive emotion of the user when inputting voice from affecting the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case.

[0070] See also Figure 4 , Figure 4 A flow chart of a voice wake-up method provided by another embodiment of the present application is shown. The voice wake-up method is applied to the above electronic device. Figure 4 The process shown is described in detail, and the voice wake-up method may specifically include the following steps:

[0071] Step S410: Obtain input speech to be recognized.

[0072] Step S420: Based on the speech to be recognized, parameters for representing the user's emotional state are recognized.

[0073] Step S430: If the parameter meets the preset conditions, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold.

[0074] In the embodiment of the present application, steps S410 to S430 can refer to the contents of the aforementioned embodiment and will not be described in detail here.

[0075] Step S440: Obtain a wake-up score corresponding to the speech to be recognized, where the wake-up score is used to represent the probability that the speech to be recognized is the target speech.

[0076] In an embodiment of the present application, when the electronic device determines whether to wake up the voice assistant based on the voice to be recognized and the wake-up threshold used by the above voice assistant this time, it can determine whether the voice to be recognized is a voice for waking up the voice assistant. The electronic device can obtain the wake-up score corresponding to the voice to be recognized, and the wake-up score is used to characterize the probability that the voice to be recognized is the target voice. The higher the wake-up score, the greater the probability that the voice to be recognized is the target voice. Conversely, the lower the wake-up score, the smaller the probability that the voice to be recognized is the target voice. Among them, the target voice is a pre-set voice for waking up the voice assistant. Optionally, the target voice can be a pre-determined voice for waking up the voice assistant. The target voice may include a target wake-up word, and the target wake-up word may be, for example, "hi, Xiao A", "Hello, Xiao B", etc. The specific target wake-up word may not be limited. It can be understood that when the electronic device determines whether the voice to be recognized is a voice for waking up the voice assistant, it is necessary to determine whether the voice to be recognized matches the above target voice. Therefore, by determining the probability that the voice to be recognized is the target voice (i.e., the above wake-up score), it can be further determined according to the wake-up score whether to wake up the voice assistant.

[0077] In some embodiments, the electronic device may match the speech to be recognized with the above target speech to obtain the matching degree (or similarity) between the speech to be recognized and the above target speech, and the matching degree may indicate the probability that the speech to be recognized is the target speech, so that the above wake-up score may be determined according to the matching degree. Among them, the obtained matching degree may be used as the above wake-up score; the obtained matching degree may also be converted into a wake-up score according to the target conversion method, for example, the matching degree ranges from 0 to 1, and the product of the obtained matching degree and 100 may be obtained, and the product may be used as the wake-up score.

[0078] In other embodiments, a pre-trained wake-up recognition model may be stored in the electronic device. The wake-up recognition model may be a neural network, a decision tree, etc., and the specific model type of the wake-up recognition model may not be limited; the wake-up recognition model is pre-trained based on a sample voice labeled with a first label or a second label, wherein the first label is used to characterize the sample voice as a voice for waking up a voice assistant, and the second label is used to characterize the sample voice as not being a voice for waking up a voice assistant. When determining the wake-up score corresponding to the voice to be recognized, the electronic device may obtain the voice features corresponding to the voice to be recognized, and then input the voice features into the wake-up recognition model to obtain a probability value output by the wake-up recognition model, which is the probability that the voice to be recognized is the target voice; then based on the obtained probability value, the wake-up score corresponding to the voice to be recognized may be determined.

[0079] When training the above wake-up recognition model, the speech features of the sample speech can be input into the first recognition model to obtain the recognition result output by the first recognition model; then, according to the recognition result and the label marked by the sample speech, the first loss value corresponding to the first recognition model is determined; after obtaining the above first loss value, the first recognition model can be iteratively updated according to the first loss value until the first recognition model meets the training termination condition, thereby obtaining the above wake-up recognition model. It is worth noting that the training of the wake-up recognition model can be performed in advance based on the obtained sample speech, and then each time the wake-up score corresponding to the speech to be recognized needs to be obtained, the trained wake-up recognition model can be used for it, without the need to train the wake-up recognition model each time the wake-up score corresponding to the speech to be recognized is obtained.

[0080] In a possible implementation, the first recognition model can be iteratively trained using the Adam optimizer according to the first loss value obtained, until the first loss value determined according to the output result of the first recognition model converges, and the model at this time is saved to obtain a trained wake-up recognition model. Among them, the Adam optimizer combines the advantages of the two optimization algorithms AdaGra (Adaptive Gradient) and RMSProp, comprehensively considers the first moment estimation (First Moment Estimation, i.e. the mean of the gradient) and the second moment estimation (Second Moment Estimation, i.e. the uncentered variance of the gradient), and calculates the update step size.

[0081] In a possible implementation, the training termination condition may include: the number of iterative training reaches the target number; or the first loss value determined according to the output result of the first recognition model satisfies the set condition. Optionally, the convergence condition is to make the first loss value as small as possible, use the initial learning rate 1e-3, the learning rate decays with the cosine of the step number, batch_size=8, and after training 16 epochs, the convergence is considered complete. Among them, batch_size can be understood as a batch processing parameter, and its limit value is the total number of samples in the training set. Epoch refers to the number of times all the samples in the training set are used for training. In layman's terms, the value of epoch is the number of times the entire data set is rounded, and 1 epoch is equal to using all the samples in the training set for training once. Optionally, the first loss value satisfying the set condition may include: the first loss value is less than a set threshold. Of course, the specific setting conditions may not be used as a limitation.

[0082] In some embodiments, considering that there may be noise in the environment of daily use of electronic devices, the collected speech to be recognized may contain noise and affect the recognition of the speech to be recognized. Therefore, before recognizing the parameters used to represent the user's emotional state based on the speech to be recognized and determining whether the speech to be recognized is the speech for waking up the voice assistant, that is, before executing steps S420 to S450, the speech to be recognized may also be denoised to improve the accuracy of voice wake-up.

[0083] Step S450: If the wake-up score is greater than the first threshold, wake up the voice assistant.

[0084] In an embodiment of the present application, after obtaining the above wake-up score, the wake-up score can be compared with the above first threshold; according to the comparison result, if the wake-up score is greater than the first threshold, it can be determined that the above voice to be recognized is a voice for waking up the voice assistant, so the voice assistant can be woken up, that is, the voice assistant can be controlled to be in a wake-up state to meet the user's required voice interaction through the voice assistant; if the wake-up score is less than or equal to the first threshold, it can be determined that the above voice to be recognized is not a voice for waking up the voice assistant, so the voice assistant is not woken up in this case.

[0085] Step S460: Output the target dialogue content that matches the user's emotional state represented by the parameters.

[0086] After the voice assistant is usually awakened by voice wake-up, the voice assistant will respond to the voice input to wake up the voice assistant to achieve the interactive effect of the conversation with the voice assistant. However, in the related art, fixed words are usually used to reply. For example, after the voice assistant is awakened by voice wake-up, the voice assistant always replies "Yes, what do you need?", so the user's interactive experience is not good. Therefore, in the embodiment of the present application, after waking up the voice assistant, the target conversation content matching the user's emotional state represented by the parameter obtained by recognition can be output, thereby improving the user's interactive experience.

[0087] In some embodiments, the electronic device may pre-store conversation contents corresponding to different user emotional states. After waking up the voice assistant, the conversation contents matching the user emotional states represented by the above parameters may be obtained according to the user emotional states represented by the above parameters, and the determined conversation contents may be output as target conversation contents. Optionally, the conversation contents corresponding to the negative emotional states may be conversation contents used to improve the user's negative emotions, such as "Master, you don't sound very happy, let me chat with you"; the conversation contents corresponding to the positive emotional states may be conversation contents used to further improve the user's emotional state or to maintain the user's current positive emotions, such as "Master, you sound in a good mood, do you have any good news to share with me"; the conversation contents corresponding to the neutral emotional states may be the default reply contents when the voice assistant is awakened, such as "Master, I'm here", "I'm here, how can I help you" and the like.

[0088] In some implementations, the electronic device may output the target conversation content by voice output. The electronic device may also display the target conversation content in the first interactive interface corresponding to the voice assistant, for example, Figure 5 , when the user's emotional state represented by the identified parameters is a negative emotional state, the electronic device can display the target conversation content "Master, you don't sound very happy, let me chat with you" in the first interactive interface A1; for another example, refer to Figure 6 , when the identified parameters indicate that the user's emotional state is a positive emotional state, the electronic device can display the target conversation content "Master, you sound in a good mood, do you have any good news to share with me?" in the first interactive interface A1. Of course, the above target conversation content can also be voice output and displayed in the above first interactive interface at the same time.

[0089] It should be noted that when the identified parameters do not meet the preset conditions, after waking up the voice assistant, the matching target dialogue content can also be output based on the user's emotional state represented by the identified parameters.

[0090] Step S470: If a reply content input for the target conversation content is detected, based on the user portrait data of the target user corresponding to the voice to be recognized, determine the first push content that matches the user emotional state represented by the parameter.

[0091] In the embodiment of the present application, after outputting the above target conversation content, if the user replies to the target conversation content, the electronic device can detect the reply content input by the user. In this case, it means that the user is willing that the electronic device can further interact with the voice assistant. The electronic device can also determine the first push content that matches the user emotional state represented by the above parameters based on the user portrait data of the target user corresponding to the voice to be recognized, so as to output the first push content, thereby further improving the user's interactive experience when using the voice assistant.

[0092] In some embodiments, after detecting the reply content input for the target conversation content, if the user emotional state represented by the above parameters is a negative emotional state, the user's interest field can be determined based on the user portrait data, and positive emotional content can be determined from the interest field as the first push content, so as to help improve the user's emotional state after the first push content is output. For example, if the user's interest field is basketball team A, positive news about basketball team A can be obtained as the above first push content; after detecting the reply content input for the target conversation content, if the above user emotional state is a positive emotional state, other push content matching the user's interests can be determined, such as scientific and technological knowledge, literary works, etc., as the above first push content.

[0093] Step S480: outputting the first pushed content.

[0094] In the embodiment of the present application, after the above first push content is determined, the first push content can be output to further enhance the user's interactive experience.

[0095] The voice wake-up method provided in the embodiment of the present application can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when the recognized parameters representing the user's emotional state meet the preset conditions, thereby avoiding the influence of the user's emotions when inputting voice on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case. In addition, after waking up the voice assistant, it further interacts with the user according to the user's emotional state represented by the recognized parameters, thereby further improving the user's interactive experience when using the voice assistant.

[0096] See also Figure 7 , Figure 7 A flow chart of a voice wake-up method provided by another embodiment of the present application is shown. The voice wake-up method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the voice wake-up method may specifically include the following steps:

[0097] Step S510: Obtain input speech to be recognized.

[0098] Step S520: Based on the speech to be recognized, parameters for representing the user's emotional state are recognized.

[0099] Step S530: If the parameter meets the preset conditions, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold.

[0100] Step S540: Based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

[0101] In the embodiment of the present application, steps S510 to S550 can refer to the contents of the aforementioned embodiment and will not be described in detail here.

[0102] Step S550: Based on the historically recognized parameters representing the user's emotional state, an emotional portrait of the target user corresponding to the to-be-recognized voice is generated, where the emotional portrait is used to represent the target user's preferred emotions.

[0103] In an embodiment of the present application, when the voice assistant is not awakened, the electronic device can store the identified parameters for representing the current user emotional state after detecting the user input voice to be recognized each time. The electronic device can generate an emotional portrait of the target user corresponding to the voice to be recognized based on the stored historically recognized parameters for representing the user's emotional state. The emotional portrait can represent the target user's preferred emotions, that is, represent the target user as a person with a negative emotion, or represent the target user as a person with a positive emotion, or represent the target user as a person with a neutral emotion.

[0104] In some embodiments, when the voice assistant is in an on state for a longer time than the target time, for example, longer than 30 days, longer than 6 months, etc., and the number of times the parameters used to represent the user's emotional state are recognized is greater than the target number of times, for example, greater than 50 times, greater than 100 times, etc., the electronic device may generate an emotional profile of the target user corresponding to the voice to be recognized based on the parameters representing the user's emotional state recognized in the stored history.

[0105] Step S560: Obtain second push content, where the second push content is determined based on the emotion portrait.

[0106] In an embodiment of the present application, after generating an emotional portrait of the target user, the second push content can be obtained based on the emotional portrait so that the second push content can be output to help the user better improve his emotional state.

[0107] In some embodiments, the electronic device may obtain push content that matches the emotional portrait from the server and use it as the second push content. The electronic device may upload the emotional portrait to the server; the server determines the push content that matches the emotional portrait based on the emotional portrait, and returns the push content to the electronic device. Optionally, if the emotional portrait represents that the target user's preferred emotion is a negative emotion, the server may obtain push content with positive emotions to help the user improve his or her daily emotions; if the emotional portrait represents that the target user's preferred emotion is a positive emotion or a neutral emotion, the server may obtain push content with positive emotions or neutral emotions.

[0108] In some embodiments, after obtaining the above emotional portrait, the electronic device can obtain the above first push content based on the emotional portrait at every first time interval; the electronic device can also obtain the above first push content based on the emotional portrait when detecting a user operation for obtaining push content.

[0109] Step S570: output the second pushed content.

[0110] In an embodiment of the present application, after the electronic device obtains the above second push content, it can output the second push content. In one possible implementation, the electronic device can output the second push content through the voice assistant when the voice assistant is in an awake state. For example, after the electronic device obtains the second push content, it can actively wake up the voice assistant and output the second push content through the voice assistant; for another example, after the electronic device obtains the second push content, it can output the second push content through the voice assistant after the user wakes up the voice assistant.

[0111] In some embodiments, when the voice assistant is not awakened, the electronic device will identify parameters representing the current user emotional state each time it detects a voice to be recognized input by the user, and may also upload the identified parameters representing the user emotional state to the server, thereby the server can obtain the parameters representing the user emotional state obtained by the historical recognition of the electronic device; the server can generate an emotional portrait of the target user corresponding to the voice to be recognized based on the collected parameters representing the user emotional state obtained by the historical recognition of the electronic device; after generating the emotional portrait, the server can determine the push content based on the emotional portrait at every second time interval, and send the push content to the electronic device, so that the electronic device can output the push content sent by the server.

[0112] The voice wake-up method provided in the embodiment of the present application can control the wake-up threshold of the voice assistant to be lower than the standard wake-up threshold when the parameters used to represent the user's emotional state when the user inputs voice meet the preset conditions, thereby avoiding the influence of the user's emotions when inputting voice on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case. In addition, according to the parameters used to represent the user's emotional state recognized each time, the user's emotional profile is generated, and daily push is performed based on the emotional profile, so as to help users better improve their emotional state.

[0113] See also Figure 8 , which shows a structural block diagram of a voice wake-up device 600 provided in an embodiment of the present application. The voice wake-up device 600 applies the above-mentioned electronic device, and the voice wake-up device 600 includes: a voice acquisition module 610, a first recognition module 620, a threshold determination module 630 and a wake-up module 640. Among them, the voice acquisition module 610 is used to acquire the input voice to be recognized; the first recognition module 620 is used to identify parameters used to represent the user's emotional state based on the voice to be recognized; the threshold determination module 630 is used to determine the wake-up threshold used by the voice assistant this time as the first threshold if the parameter meets the preset condition, and the first threshold is less than the standard wake-up threshold; the wake-up module 640 is used to determine whether to wake up the voice assistant based on the first threshold and the voice to be recognized.

[0114] In some embodiments, the threshold determination module 630 can be specifically used to: if the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, then the wake-up threshold used by the voice assistant this time is determined as the first threshold.

[0115] In a possible implementation, the threshold determination module 630 can also be used for: if the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, then obtaining the product of the standard wake-up threshold and the first ratio as the first threshold, and the first ratio is less than 1; and determining the wake-up threshold used by the voice assistant this time as the first threshold.

[0116] Optionally, the threshold determination module 630 can also be used to: obtain the number of times the target parameter is historically recognized as a first number, and the number of times the voice assistant is awakened when the target parameter is historically recognized as a second number, and the target parameter meets the preset condition; based on the first number and the second number, determine the first ratio.

[0117] In some embodiments, the parameter includes an emotion score, and a higher emotion score indicates a better user emotion corresponding to the to-be-recognized voice. The threshold determination module 630 may be specifically configured to: if the emotion score is higher than a first score or the emotion score is lower than a second score, determine the wake-up threshold used by the voice assistant this time as the first threshold, wherein the first score is higher than the second score.

[0118] In a possible implementation, the threshold determination module 630 can also be used to: if the emotion score is higher than the first score or the emotion score is lower than the second score, obtain the absolute value of the difference between the emotion score and the third score; determine the first threshold based on the absolute value and the standard wake-up threshold, the first threshold is less than the standard wake-up threshold, and the first threshold is negatively correlated with the absolute value; determine the wake-up threshold used by the voice assistant this time as the first threshold.

[0119] In some embodiments, the threshold determination module 630 can also be used to determine the wake-up threshold used by the voice assistant this time as the standard wake-up threshold after obtaining the parameters used to represent the user's emotional state based on the voice to be recognized, if the parameters do not meet the preset conditions; the wake-up module 640 can also be used to determine whether to wake up the voice assistant based on the standard wake-up threshold and the voice to be recognized.

[0120] In some embodiments, the wake-up module 640 can be specifically used to obtain a wake-up score corresponding to the speech to be recognized, and the wake-up score is used to characterize the probability that the speech to be recognized is the target speech; if the wake-up score is greater than the first threshold, the voice assistant is woken up.

[0121] In a possible implementation, the voice awakening device 600 may further include a first content output module. The first content output module is used to output target dialogue content matching the user emotional state represented by the parameter after awakening the voice assistant if the awakening score is greater than the first threshold.

[0122] In a possible implementation, the voice wake-up device 600 may further include a content determination module and a second content output module. The content determination module is used to determine, after outputting the target conversation content that matches the user emotional state represented by the parameter, if a reply content input for the target conversation content is detected, the first push content that matches the user emotional state represented by the parameter based on the user portrait data of the target user corresponding to the voice to be recognized; the second content output module is used to output the first push content.

[0123] In some embodiments, the voice wake-up device 600 may further include a portrait generation module. The portrait generation module is used to generate an emotional portrait of the target user corresponding to the to-be-recognized voice based on historically recognized parameters representing the user's emotional state, and the emotional portrait is used to represent the target user's preferred emotions.

[0124] In a possible implementation, the voice wake-up device 600 may further include a content acquisition module and a third content output module. The content acquisition module is used to acquire a second push content after generating an emotional portrait of the target user corresponding to the to-be-recognized voice based on the parameters representing the user's emotional state that are recognized multiple times, wherein the second push content is determined based on the emotional portrait; and the third content output module is used to output the second push content.

[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0126] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0127] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0128] In summary, the solution provided by the present application obtains the input voice to be recognized, and based on the voice to be recognized, identifies a parameter used to represent the user's emotional state. If the parameter meets the preset conditions, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold. Then, based on the first threshold and the voice to be recognized, it is determined whether to wake up the voice assistant. In this way, when it is recognized that the parameter used to represent the user's emotional state when the user inputs the voice meets the preset conditions, the wake-up threshold of the voice assistant can be controlled to be lower than the standard wake-up threshold, thereby avoiding the influence of the user's emotions when inputting the voice on the wake-up of the voice assistant, and improving the probability of the voice assistant being successfully awakened in this case.

[0129] Please refer to Fig. 9, which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, a smart watch, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0130] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0131] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0132] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0133] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A voice wake-up method, characterized in that: The method comprises: Get the input speech to be recognized; Based on the to-be-recognized speech, identifying and obtaining parameters for representing the user's emotional state; If the parameter meets the preset condition, the wake-up threshold used by the voice assistant this time is determined as the first threshold, and the first threshold is less than the standard wake-up threshold; Based on the first threshold and the voice to be recognized, determine whether to wake up the voice assistant.

2. The method according to claim 1, characterized in that If the parameter satisfies the preset condition, the wake-up threshold used by the voice assistant this time is determined as the first threshold, including: If the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, the wake-up threshold used by the voice assistant this time is determined as the first threshold.

3. The method according to claim 2, characterized in that If the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, determining the wake-up threshold used by the voice assistant this time as the first threshold includes: If the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, obtaining a product of the standard awakening threshold and a first ratio as the first threshold, and the first ratio is less than 1; The wake-up threshold used by the voice assistant this time is determined as the first threshold.

4. The method according to claim 3, characterized in that Before obtaining the product of the standard awakening threshold and the first ratio as the first threshold if the parameter indicates that the user's emotional state is a negative emotional state or a positive emotional state, the method further includes: Obtaining the number of times the target parameter is historically recognized as a first number, and the number of times the voice assistant is awakened when the target parameter is historically recognized as a second number, and the target parameter satisfies the preset condition; The first ratio is determined based on the first number of times and the second number of times.

5. The method according to claim 1, characterized in that The parameter includes an emotion score, and a higher emotion score indicates that the user emotion corresponding to the to-be-recognized voice is better. If the parameter satisfies a preset condition, the wake-up threshold used by the voice assistant this time is determined as the first threshold, including: If the emotion score is higher than the first score or the emotion score is lower than the second score, the wake-up threshold used by the voice assistant this time is determined as the first threshold, wherein the first score is higher than the second score.

6. The method according to claim 5, characterized in that If the emotion score is higher than the first score or the emotion score is lower than the second score, determining the wake-up threshold used by the voice assistant this time as the first threshold, including: If the emotion score is higher than the first score or the emotion score is lower than the second score, obtaining an absolute value of a difference between the emotion score and the third score; Determine the first threshold based on the absolute value and the standard wake-up threshold, wherein the first threshold is less than the standard wake-up threshold, and the first threshold is negatively correlated with the absolute value; The wake-up threshold used by the voice assistant this time is determined as the first threshold.

7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the parameters for representing the user's emotional state based on the speech to be recognized, the method further includes: If the parameter does not meet the preset condition, the wake-up threshold used by the voice assistant this time is determined as the standard wake-up threshold; Based on the standard wake-up threshold and the voice to be recognized, determine whether to wake up the voice assistant.

8. The method according to any one of claims 1 to 6, characterized in that: The determining whether to wake up the voice assistant based on the first threshold and the voice to be recognized includes: Obtaining a wake-up score corresponding to the to-be-recognized speech, wherein the wake-up score is used to represent the probability that the to-be-recognized speech is the target speech; If the wake-up score is greater than the first threshold, the voice assistant is woken up.

9. The method according to claim 8, characterized in that After waking up the voice assistant if the wake-up score is greater than the first threshold, the method further includes: Output the target dialogue content that matches the user's emotional state represented by the parameters.

10. The method according to claim 9, characterized in that After outputting the target dialogue content matching the user emotional state represented by the parameter, the method further includes: If a reply content input to the target conversation content is detected, based on the user portrait data of the target user corresponding to the to-be-recognized voice, determining a first push content that matches the user emotional state represented by the parameter; The first pushed content is output.

11. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Based on the historically recognized parameters representing the user's emotional state, an emotional portrait of the target user corresponding to the to-be-recognized speech is generated, and the emotional portrait is used to characterize the emotion preferred by the target user.

12. The method according to claim 11, characterized in that After generating an emotional portrait of the target user corresponding to the to-be-recognized speech based on the parameters representing the user's emotional state that are recognized multiple times, the method further includes: Acquire second push content, where the second push content is determined based on the emotion portrait; The second pushed content is output.

13. A voice wake-up device, characterized in that: The device comprises: a voice acquisition module, a first recognition module, a threshold determination module and a wake-up module, wherein: The speech acquisition module is used to acquire the input speech to be recognized; The first recognition module is used to recognize and obtain parameters for representing the user's emotional state based on the speech to be recognized; The threshold determination module is used to determine the wake-up threshold used by the voice assistant this time as a first threshold if the parameter meets the preset condition, and the first threshold is less than the standard wake-up threshold; The wake-up module is used to determine whether to wake up the voice assistant based on the first threshold and the voice to be recognized.

14. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1 to 12.

Citation Information

Cited By

  • Voice wake-up threshold value self-adaption method and system, electronic equipment and storage medium

    CN121331115A