Voice information processing method and device
By dynamically adjusting the judgment conditions of voice information based on environmental conditions and historical information, the problem of low speech recognition accuracy and false triggering of invalid speech in different scenarios is solved, improving the reliability and user experience of voice interaction.
Patent Information
- Application Number
- CN202180001492.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-04-20
AI Technical Summary
The existing technology cannot effectively identify the validity of voice information in different usage environments and scenarios, resulting in low voice recognition accuracy and a high false trigger rate of invalid voice.
By adjusting the judgment conditions and combining the environmental conditions where the voice information is generated, the continuous listening time of the device and historical voice information, the validity judgment of the voice information is dynamically adjusted to improve the accuracy of speech recognition in different environments and reduce the false trigger rate of invalid speech.
It improves the effective recognition accuracy of voice information, reduces the false trigger rate of invalid speech, and enhances the reliability and user experience of intelligent voice interaction.
Smart Images

Figure CN113330513B
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech processing technology, and in particular to a speech information processing method and device. Background Art
[0002] In intelligent voice interaction scenarios, there are two common modes for smart devices to listen to user voices, namely continuous listening mode and full-time wake-up-free mode. The full-time wake-up-free mode can also be called full-time listening mode. In the continuous listening or full-time listening state, the smart device needs to distinguish whether the user content is a valid instruction for it, that is, it needs to distinguish the content of the conversation between people and machines and the content of the conversation between people.
[0003] Specifically, in the listening state, the voice information collected by the device includes chat data. In order to prevent the smart device from being mistakenly triggered by the chat content, a rule matching module or an inference module (such as a neural network inference module) is often used to determine whether the acquired voice information is a valid voice control instruction. However, due to different usage environments and scenarios, the validity of the same voice information or voice information with the same semantics may be different. For example, a certain sentence is a valid voice control instruction in the current scenario, but in another scenario it is just chat information and is invalid information. The existing voice information validity judgment scheme cannot adapt to the recognition of voice information validity in such different usage environments and scenarios, which can easily lead to low recognition accuracy and false triggering of invalid voices.
[0004] In summary, how to improve the accuracy of effective voice recognition and reduce the false trigger rate of invalid voice in different intelligent voice interaction scenarios is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The present application provides a voice information processing method and device, which can improve the accuracy of effective voice recognition and reduce the false trigger rate of invalid voice in different intelligent voice interaction scenarios.
[0006] In a first aspect, the present application provides a method for processing speech information, the method comprising:
[0007] Acquire first voice information; and when it is determined based on a decision condition that the first voice information is a valid voice control instruction, execute the operation indicated by the first voice information, wherein the decision condition is adjusted based on the environmental conditions when the first voice information is generated.
[0008] Since the environmental conditions in which the voice information is generated will have a great impact on whether the voice information is a valid voice control instruction, the same or similar voice information may be a valid instruction in one environmental condition, but may not be a valid instruction in another environmental condition. Therefore, the present application adaptively adjusts the judgment conditions for judging the validity of voice information for voice information received in different environmental conditions, and can better judge the validity of voice information in different environmental conditions, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0009] In one possible implementation, the environmental conditions in which the first voice information is generated include one or more of the following: the number of people speaking within a second preset time period until the device acquires the first voice information, the number of people within a preset range when the first voice information is generated, the confidence level of the first voice information, or the signal-to-noise ratio of the first voice information.
[0010] The more people speak within a period of time, and / or the more people are around when the voice information is generated, the greater the probability that the voice information received by the device is idle chat, that is, invalid voice. In addition, the higher the confidence and / or signal-to-noise ratio of the voice information, the greater the probability that the device can correctly identify the sentences in the voice information, which will also affect the recognition of the effectiveness of the voice information. Therefore, adaptively adjusting the judgment conditions for judging the effectiveness of the voice information based on one or more of these items can better judge the effectiveness of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0011] In a possible implementation, the decision condition is adjusted based on the environmental conditions when the first voice information is generated, including: the decision condition is adjusted based on the environmental conditions and the continuous listening time of the device.
[0012] Since the longer the device continuously listens to the voice, the greater the probability that the voice information heard is invalid voice, therefore, in this application, the judgment conditions for judging the validity of the voice information are adaptively adjusted in combination with the environmental conditions when the voice information is generated and the continuous listening time of the device, which can further better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0013] In a possible implementation, the decision condition is adjusted based on the environmental conditions and the continuous listening time of the device, including: the decision condition is adjusted based on the environmental conditions, the continuous listening time and historical voice information.
[0014] Based on historical voice information, it can also help judge the validity of the currently acquired voice information. For example, if the currently acquired voice information is highly similar to the historically acquired valid voice information, then the probability that the currently acquired voice information is a valid voice command is high. On the contrary, if the currently acquired voice information is highly similar to the historically acquired invalid voice information, then the probability that the currently acquired voice information is an invalid voice command is high. Therefore, in addition to the environmental conditions and device listening time of the voice information described above, the present application also combines historical voice information to adaptively adjust the judgment conditions for judging the validity of voice information, which can further better judge the validity of voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0015] In a possible implementation, the decision condition is adjusted based on the environmental situation when the first voice information is generated, including: the decision condition is adjusted based on the environmental situation and the situation of historical voice information.
[0016] Based on the previous description, the present application combines the environmental conditions in which the voice information is generated and the historical voice information to adaptively adjust the judgment conditions for judging the validity of the voice information, which can also further better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0017] In a possible implementation manner, the historical voice information includes one or more of the following:
[0018] a first time interval between when the first voice information is acquired and when the last valid voice information is acquired;
[0019] a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently;
[0020] The ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained;
[0021] A first semantic correlation between the first voice information and the most recently acquired valid voice information;
[0022] A second semantic correlation between the first voice information and the invalid voice information acquired most recently;
[0023] a third correlation between the first voice information and the valid voice information most recently acquired by the device;
[0024] The state of the voice dialogue between the device and the user up to the time when the first voice information is acquired;
[0025] a first similarity between the acoustic features of the first voice information and historical valid voice information;
[0026] A second similarity between the acoustic features of the first voice information and historical invalid voice information.
[0027] In the present application, the historical voice information that can be used to help determine the validity of the currently acquired voice information includes one or more of the above-mentioned items. Adaptively adjusting the judgment conditions for determining the validity of the voice information based on the one or more items can better determine the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0028] In a possible implementation manner, when the environmental condition indicates that the probability that the first voice information is valid is greater than the probability that it is invalid, the sensitivity of the decision condition is increased;
[0029] In the case where the environmental condition indicates that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered.
[0030] In an embodiment of the present application, if the probability that the received voice information is valid is high, then the judgment threshold of the validity can be lowered, that is, the sensitivity of the judgment condition can be increased; if the probability of validity is low, then the threshold of the validity judgment can be increased, that is, the sensitivity of the judgment condition can be lowered. In this way, the validity of the voice information received in different environmental situations can be flexibly identified, thereby improving the recognition accuracy, rather than using fixed judgment conditions to judge the validity of the voice information in each scenario.
[0031] In a possible implementation manner, the longer the continuous listening time of the device is, the lower the sensitivity of the decision condition is adjusted.
[0032] Since the longer the device continues to listen to the voice, the greater the probability that the voice information heard is invalid voice, therefore, in this application, the threshold for validity judgment can be raised, that is, the sensitivity of the judgment condition can be reduced, so that whether the voice information is valid can be more accurately identified.
[0033] In a possible implementation manner, the historical voice information includes a first time interval between when the first voice information is obtained and when valid voice information is most recently obtained; the longer the first time interval is, the lower the sensitivity of the decision condition is adjusted.
[0034] Since the longer the interval between the time of acquiring the current voice signal and the time of acquiring the most recent valid voice information, the greater the probability that the current voice signal acquired is an invalid voice command, therefore, in the present application, the threshold of the validity judgment can be raised, that is, the sensitivity of the judgment condition can be reduced, so that it is possible to more accurately identify whether the voice information is valid.
[0035] In a possible implementation, the historical voice information includes a second time interval between when the first voice information is obtained and when invalid voice information is most recently obtained; the longer the second time interval is, the lower the sensitivity of the decision condition is adjusted.
[0036] Since the longer the interval between the time of obtaining the current voice signal and the time of obtaining the most recently invalid voice information, the greater the probability that the current voice signal obtained is an invalid voice command, therefore, in the present application, the threshold of validity judgment can be raised, that is, the sensitivity of the judgment condition can be lowered, so as to more accurately identify whether the voice information is valid.
[0037] In one possible implementation, the historical voice information includes a first time interval between obtaining the first voice information and the last time valid voice information was obtained, and a second time interval between obtaining the first voice information and the last time invalid voice information was obtained; when the first time interval is less than the second time interval, the sensitivity of the judgment condition is increased.
[0038] In the present application, the first time interval is smaller than the second time interval, indicating that the time interval between the first voice information obtained and the most recently obtained historical valid voice information is not long. Therefore, the probability that the first voice information is a valid voice command is relatively large. Therefore, the judgment threshold of validity can be lowered, that is, the sensitivity of the judgment condition can be increased, so that it is possible to more accurately identify whether the voice information is valid.
[0039] In a possible implementation manner, the historical voice information includes the ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained;
[0040] When the proportion of the valid voice information is greater than the proportion of the invalid voice information, the sensitivity of the decision condition is increased;
[0041] When the proportion of valid voice information is less than the proportion of invalid voice information, the proportion of valid voice information shows an upward trend, and the sensitivity of the judgment condition is increased; when the proportion of valid voice information shows a downward trend, the sensitivity of the judgment condition is lowered.
[0042] In the present application, if the proportion of valid voice information is relatively large within the above-mentioned first preset time period, then the probability that the first voice information currently obtained is a valid instruction is relatively large. Therefore, the judgment threshold of effectiveness can be lowered and the sensitivity of the judgment condition can be increased; in addition, if the proportion of valid voice information is smaller than the proportion of invalid voice information, but the proportion of valid voice information shows an upward trend, indicating that there is more and more valid voice information, then the probability that the first voice signal is a valid instruction is relatively large. Therefore, the judgment threshold of effectiveness can be lowered and the sensitivity of the judgment condition can be increased, so that it is possible to more accurately identify whether the voice information is valid.
[0043] In a possible implementation, the historical voice information includes the state of the voice dialogue between the device and the user up to the time when the first voice information is acquired; when the state of the voice dialogue between the device and the user exists, the sensitivity of the decision condition is increased.
[0044] The state of the voice dialogue between the device and the user refers to the state of the device and the user communicating in voice. The device can track it through the dialogue state tracking function. If this state currently exists, it indicates that the above-mentioned first voice information is very likely to be a valid voice command. Therefore, the judgment threshold of validity can be lowered and the sensitivity of the judgment condition can be increased, so that it can be more accurately identified whether the voice information is valid.
[0045] In a possible implementation, the device may receive a sensitivity of a specified decision condition, adjust the decision condition based on the sensitivity, and then use the adjusted decision condition to determine whether the first voice information is valid.
[0046] In the present application, the above-specified sensitivity is the sensitivity input by the user. The device can more flexibly adjust the sensitivity of the decision condition based on the user's needs, thereby better meeting the user's needs.
[0047] In a possible implementation, the present application provides another voice information processing method, which includes: obtaining first voice information; and executing the operation indicated by the first voice information when it is determined that the first voice information is a valid voice control instruction based on a judgment condition, wherein the judgment condition is adjusted based on the continuous listening time of the device.
[0048] In the present application, since the longer the device continuously listens to the voice, the greater the probability that the voice information heard is invalid voice, therefore, the judgment conditions for judging the validity of the voice information can be adaptively adjusted according to the continuous listening time of the device, which can better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0049] In a possible implementation, the present application provides another voice information processing method, the method comprising: obtaining first voice information; and executing the operation indicated by the first voice information when it is determined that the first voice information is a valid voice control instruction based on a decision condition, wherein the decision condition is adjusted based on historical voice information.
[0050] Based on historical voice information, it can also help judge the validity of the currently acquired voice information. For example, if the currently acquired voice information is similar to the historically acquired valid voice information, then the probability that the currently acquired voice information is a valid voice command is high. On the contrary, if the currently acquired voice information is similar to the historically acquired invalid voice information, then the probability that the currently acquired voice information is an invalid voice command is high. Therefore, in this application, by adaptively adjusting the judgment conditions for judging the validity of voice information through historical voice information, the validity of voice information can be better judged, the accuracy of effective judgment can be improved, and the false trigger rate of invalid signals can be reduced.
[0051] In a second aspect, the present application provides a speech information processing device, the device comprising:
[0052] An acquiring unit, configured to acquire first voice information;
[0053] An execution unit is used to execute the operation indicated by the first voice information when it is determined that the first voice information is a valid voice control instruction based on a judgment condition, wherein the judgment condition is adjusted based on the environmental conditions when the first voice information is generated.
[0054] In one possible implementation, the environmental conditions in which the first voice information is generated include one or more of the following: the number of people speaking within a second preset time period until the device acquires the first voice information, the number of people within a preset range when the first voice information is generated, the confidence level of the first voice information, or the signal-to-noise ratio of the first voice information.
[0055] In a possible implementation, the decision condition is adjusted based on the environmental conditions when the first voice information is generated, including: the decision condition is adjusted based on the environmental conditions and the continuous listening time of the device.
[0056] In a possible implementation, the decision condition is adjusted based on the environmental conditions and the continuous listening time of the device, including: the decision condition is adjusted based on the environmental conditions, the continuous listening time and historical voice information.
[0057] In a possible implementation, the decision condition is adjusted based on the environmental situation when the first voice information is generated, including: the decision condition is adjusted based on the environmental situation and the situation of historical voice information.
[0058] In a possible implementation manner, the historical voice information includes one or more of the following:
[0059] a first time interval between when the first voice information is acquired and when the last valid voice information is acquired;
[0060] a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently;
[0061] The ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained;
[0062] A first semantic correlation between the first voice information and the most recently acquired valid voice information;
[0063] A second semantic correlation between the first voice information and the invalid voice information acquired most recently;
[0064] a third correlation between the first voice information and the valid voice information most recently acquired by the device;
[0065] The state of the voice dialogue between the device and the user up to the time when the first voice information is acquired;
[0066] a first similarity between the acoustic features of the first voice information and historical valid voice information;
[0067] A second similarity between the acoustic features of the first voice information and historical invalid voice information.
[0068] In a possible implementation manner, when the environmental condition indicates that the probability that the first voice information is valid is greater than the probability that it is invalid, the sensitivity of the decision condition is increased;
[0069] In the case where the environmental condition indicates that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered.
[0070] In a possible implementation manner, the longer the continuous listening time of the device is, the lower the sensitivity of the decision condition is adjusted.
[0071] In a possible implementation manner, the historical voice information includes a first time interval between when the first voice information is obtained and when valid voice information is most recently obtained; the longer the first time interval is, the lower the sensitivity of the decision condition is adjusted.
[0072] In a possible implementation, the historical voice information includes a second time interval between when the first voice information is obtained and when invalid voice information is most recently obtained; the longer the second time interval is, the lower the sensitivity of the decision condition is adjusted.
[0073] In one possible implementation, the historical voice information includes a first time interval between obtaining the first voice information and the last time valid voice information was obtained, and a second time interval between obtaining the first voice information and the last time invalid voice information was obtained; when the first time interval is less than the second time interval, the sensitivity of the judgment condition is increased.
[0074] In a possible implementation manner, the historical voice information includes the ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained;
[0075] When the proportion of the valid voice information is greater than the proportion of the invalid voice information, the sensitivity of the decision condition is increased;
[0076] When the proportion of valid voice information is less than the proportion of invalid voice information, the proportion of valid voice information shows an upward trend, and the sensitivity of the judgment condition is increased; when the proportion of valid voice information shows a downward trend, the sensitivity of the judgment condition is lowered.
[0077] In a possible implementation, the historical voice information includes the state of the voice dialogue between the device and the user up to the time when the first voice information is acquired; when the state of the voice dialogue between the device and the user exists, the sensitivity of the decision condition is increased.
[0078] In a third aspect, the present application provides a device, which may include a processor and a memory, for implementing the voice information processing method described in the first aspect above. The memory is coupled to the processor, and when the processor executes the computer program stored in the memory, the method described in the first aspect or any possible implementation of the first aspect may be implemented. The device may also include a communication interface, which is used for the device to communicate with other devices. Exemplarily, the communication interface may be a transceiver, circuit, bus, module or other type of communication interface.
[0079] In one possible implementation, the device may include:
[0080] Memory for storing computer programs;
[0081] A processor is used to obtain first voice information; when it is determined that the first voice information is a valid voice control instruction based on a judgment condition, execute the operation indicated by the first voice information, wherein the judgment condition is adjusted based on the environmental conditions when the first voice information is generated.
[0082] It should be noted that the computer program in the memory in the present application can be pre-stored or downloaded from the Internet and stored when the device is used. The present application does not specifically limit the source of the computer program in the memory. The coupling in the embodiments of the present application is an indirect coupling or connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
[0083] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from a memory of the electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the method described in the first aspect above and any possible implementation method thereof.
[0084] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method described in the first aspect or any possible implementation method of the first aspect.
[0085] In a sixth aspect, the present application provides a computer program product. When the computer program product is executed by a processor, the method described in the first aspect or any possible implementation of the first aspect will be executed.
[0086] The solutions provided in the second to sixth aspects are used to implement or cooperate with the corresponding methods provided in the first aspect, and therefore can achieve the same or corresponding beneficial effects as the corresponding methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 The figure shows a schematic diagram of a system architecture applicable to the voice information processing method provided by the present application;
[0088] Figure 2 The figure shows a flow chart of the voice information processing method provided by the present application;
[0089] Figure 3 Shown is a schematic diagram of the structure of an invalid rejection model provided by the present application;
[0090] Figure 4 and Figure 5 Shown is a sensitivity diagram of adjusting decision conditions based on influencing factors provided by the present application;
[0091] Fig. 6A and Figure 6B Shown is a sensitivity diagram of adjusting decision conditions based on influencing factors provided by the present application;
[0092] Figure 6C and Fig.6D The figure shows the change of the proportion of voice information in this application;
[0093] Figure 7 Shown is a sensitivity diagram of adjusting decision conditions based on influencing factors provided by the present application;
[0094] Fig. 8A and Figure 8B Shown is a schematic diagram of voice information relevance judgment in this application;
[0095] Fig. 9 Shown is a sensitivity diagram of adjusting decision conditions based on influencing factors provided by the present application;
[0096] Fig.10 Shown is a flow chart of another voice information processing method provided by the present application;
[0097] Fig.11 The figure shows a flow chart of voice information validity recognition provided by the present application;
[0098] Fig.12 A schematic diagram of the logical structure of a device provided in an embodiment of the present application;
[0099] Fig.13 A schematic diagram of the logical structure of another device provided in an embodiment of the present application;
[0100] Fig.14 A schematic diagram of the hardware structure of the device provided in the embodiment of the present application;
[0101] Fig.15 A schematic diagram of the hardware structure of another device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0102] To facilitate understanding, the technical terms involved in the embodiments of the present application are first introduced below.
[0103] 1. Automatic speech recognition (ASR) generally refers to a technology that uses speech as the research object, and allows machines to automatically recognize and understand human spoken speech through speech signal processing and pattern recognition. It is a technology that allows machines to convert speech signals into corresponding text or commands through the recognition and understanding process.
[0104] The overall process of building a speech recognition system includes two parts: training and recognition. Training is usually completed offline, and the pre-collected massive speech and language database is subjected to signal processing and knowledge mining to obtain the acoustic model (acoustic model is a knowledge representation of differences in acoustics, phonetics, environmental variables, speaker gender, accent, etc.) and language model (language model is a knowledge representation of a set of word sequences) required by the speech recognition system. The recognition process is usually completed online, and the user's real-time speech is automatically recognized. The recognition process can usually be divided into two major modules: the front-end and the back-end. The main function of the front-end module is to perform endpoint detection (remove redundant silence and non-speech sounds), noise reduction, feature extraction, etc.; the function of the back-end module is to use the trained acoustic model and language model to perform statistical pattern recognition (also known as decoding) on the feature vector of the user's speech to obtain the text information it contains. In addition, the back-end module also has an adaptive feedback module that can self-learn the user's speech, thereby making necessary corrections to the acoustic model and speech model to further improve the recognition accuracy.
[0105] 2. Voiceprint recognition (VR)
[0106] Voiceprint recognition is a type of biometric technology, also known as speaker identification, which is a technology that identifies the speaker's identity through voice. There are two types of voiceprint recognition technology, namely speaker identification and speaker confirmation. Different tasks and applications will use different voiceprint recognition technologies. For example, identification technology may be needed to narrow the scope of criminal investigation, while confirmation technology may be needed for bank transactions.
[0107] 3. Speech Synthesis
[0108] Speech synthesis, also known as text to speech (TTS) technology, is a technology that converts text information generated by a computer or externally input into understandable and fluent spoken output. It is equivalent to installing an artificial mouth on a machine and allowing it to speak like a human.
[0109] 4. Task-based dialogue system
[0110] Task-based dialogue can be understood as a sequential decision-making process. During the dialogue, the machine needs to update and maintain the internal dialogue state by understanding the user's statements, and then choose the next optimal action based on the current dialogue state (such as confirming requirements, asking about restrictions, providing results, etc.) to complete the task.
[0111] The task-based dialogue system currently used in the industry is a modular system, which generally includes four key modules:
[0112] Natural language understanding (NLU): Identify and parse user text input to obtain computer-understandable semantic labels such as slot values and intents.
[0113] Dialog state tracking (DST): Maintain the current dialog state based on the dialog history. The dialog state is a cumulative semantic representation of the entire dialog history, generally in the form of slot-value pairs.
[0114] Dialogue policy (DP): Outputs the next system action based on the current dialogue state. Generally, the dialogue state tracking module and the dialogue policy module are collectively referred to as the dialogue manager (DM) module.
[0115] Natural language generation (NLG): Convert system actions into natural language output.
[0116] This modular system structure is highly interpretable and easy to implement. Most practical task-based dialogue systems in the industry adopt this structure.
[0117] 5. Computer vision (CV)
[0118] Computer vision, also known as machine vision, is a science that studies how to make machines "see". Its main task is to obtain information about the corresponding scene by processing the collected images or videos.
[0119] 6. Invalid rejection model
[0120] The invalid rejection model is used to determine the validity of the user's voice information obtained by the device. The validity can be used to indicate whether the voice information is a valid voice control instruction for the device that obtained the voice information. The voice information can be text information converted from the voice signal received by the device, etc.
[0121] The device may receive a lot of user voice information during the listening process, but some of the voice information is just the voice information of the user chatting with each other, which is invalid information for the device. The voice information that the user actually interacts with the device is the valid information for the device, and this valid information is the user's voice control command.
[0122] In the present application, the invalid rejection model may include a prediction module and a decision module for the validity of the voice information. The prediction module includes a rule matching module and a reasoning module, which are used to make a preliminary judgment on the validity of the voice information. Among them:
[0123] The rule matching module can match the input voice information through pre-set rules, such as pre-set sentences, etc. If the pre-set sentences exist and match the input voice information, the input voice information is valid. If the pre-set sentences do not match the input voice information, the input voice information is invalid.
[0124] The inference module can be a deep learning prediction model obtained through large-scale data training using neural networks or traditional machine learning (such as supervised learning models such as support vector machines (SVM)). The device inputs the acquired voice information into the inference module to predict the probability of the voice information being valid, or directly output the result of whether it is valid, etc.
[0125] The decision module can make a final judgment decision on the processing results of at least one of the rule matching module and the reasoning module through comprehensive judgment conditions to determine whether the voice information is valid, which can greatly improve the accuracy of the judgment of the validity of the voice information. The comprehensive judgment conditions will be introduced later and will not be described in detail here.
[0126] It should be noted that the above-mentioned invalid rejection model can also be called a validity judgment model, etc. The invalid rejection model is taken as an example for introduction below. The name of the model used to judge the validity of the voice information acquired by the device does not constitute a limitation to this application.
[0127] In order to better understand a voice information processing method provided in an embodiment of the present application, the system architecture applicable to the voice information processing method is exemplarily introduced below.
[0128] See also Figure 1 , Figure 1 The system architecture diagram used by the voice information processing method provided by the present application is exemplarily shown. The system architecture may include an audio manager 110 , a video manager 120 , a memory 130 and a processor 140 , and these components may be connected via a bus 150 .
[0129] The audio manager 110 may include a speaker and a microphone array. A speaker is a transducer device that converts an electrical signal into a sound signal, and is used to output the sound of the device. A microphone is an energy conversion device that converts a sound signal into an electrical signal, and is used to collect sound information such as human voice.
[0130] The video manager 120 may include a camera array that can convert optical image signals into electrical signals for storage or transmission.
[0131] The memory 130 is used to store computer programs and data. The memory 130 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM).
[0132] In the present application, the memory 130 may store computer programs or codes of models such as an automatic speech recognition model, a voiceprint recognition model, a computer vision model, an invalid rejection model, a natural language understanding model, a dialogue management model, and a speech synthesis model.
[0133] The processor 140 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The processor 140 may be used to read the computer program and data stored in the memory 130, and execute the voice information processing method provided in the embodiment of the present application.
[0134] The present application does not limit the type of bus 150. For example, bus 150 may be a desktop data bus (D-BUS), which is an inter-process communication (IPC) mechanism optimized for desktop environments and used for communication between processes or between a process and a kernel. Alternatively, bus 150 may be a data bus (DB), an address bus (AB), a control bus (CB), and the like.
[0135] For example, the above Figure 1The system architecture shown may be a system architecture of a terminal device or a server. The terminal device may include but is not limited to any device based on an intelligent operating system, which can interact with a user through input devices such as a keyboard, a virtual keyboard, a touchpad, a touch screen, and a voice control device, such as a smart phone, a tablet computer, a handheld computer, a wearable electronic device, or a vehicle-mounted device (such as a vehicle-mounted computer, etc.). The server may be an edge server or a cloud server, and the server may be a virtual server or a physical server, etc., and this application does not limit this.
[0136] Above Figure 1 The system architecture shown is only an example and does not constitute a limitation on the system architecture applicable to the embodiments of the present application.
[0137] The following describes a method for processing voice information provided by an embodiment of the present application. The method can be applied to the above Figure 1 The system architecture shown is that the method is executed by the terminal device or server or other devices described above, or the method can be executed by a processing device such as a chip or processor in the terminal device or server. The execution subject of the method is collectively referred to as a device in the following description. Optionally, if the execution subject of the method is a server or a chip or processor in the server, the terminal device may first receive the voice information, and then the terminal device sends the received voice information to the server for processing. The voice information sent by the terminal device to the server may be the original information received by the terminal device, or may be the voice information pre-processed by the terminal device.
[0138] See also Figure 2 A voice information processing method provided in the application embodiment may include but is not limited to the following steps:
[0139] S201: Acquire first voice information.
[0140] In a specific embodiment, the device may receive a user's voice signal through a microphone, and then the device may recognize the voice signal through an automatic speech recognition (ASR) model to obtain voice information corresponding to the voice signal, which may include text information and the like.
[0141] Specifically, the voice interaction function between the device and the user can be awakened by receiving a wake-up signal from the user, such as receiving a specific wake-up word from the user. After being awakened, the device can detect and receive the user's voice signal through the microphone. The process of detecting and receiving the user's voice signal can be called the listening process of the device. In order to reduce the repetitive operation of waking up the device before issuing a voice control command each time, there are currently two main listening modes: continuous listening and full-time listening.
[0142] Among them, the continuous listening mode means that after the device is awakened or the voice command operation is successful, the device does not need to be awakened again within a period of time (such as 30 seconds). During this period of time, the device can continue to listen and interact with the user by voice to execute the user's voice control commands.
[0143] The full-time listening mode means that the device only needs to be woken up once after it is started, and it can continue to listen, interact with the user by voice, and execute the user's voice control commands until the device is turned off.
[0144] The first voice information may be voice information corresponding to any voice signal received by the device during the listening phase.
[0145] S202: adjusting a decision condition based on the influencing factors of the validity of the first voice information, where the decision condition is one or more decision conditions in an invalid rejection model for determining the validity of the first voice information.
[0146] To understand the above invalid rejection model, please refer to Figure 3 . Figure 3 A processing flow diagram of the invalid rejection model is shown as an example. First, the invalid rejection model receives voice information, such as the first voice information, and selects a prediction module for judging the validity of the voice information based on the voice information and preset selection conditions, that is, selects at least one of the above-mentioned reasoning module and rule matching module to predict the validity of the voice information.
[0147] The selection condition may be a condition set based on the influencing factors of the effectiveness of the voice information. Exemplarily, for example, the selection condition may be: when the listening time of the device is greater than the first threshold, the rule matching module is selected to judge the effectiveness of the voice information; when the listening time of the device is less than the second threshold, the reasoning module is selected to judge the effectiveness of the voice information; and when the listening time of the device is between the second threshold and the first threshold, both the rule matching module and the reasoning module may be selected to judge the effectiveness of the voice information. It should be noted that the influencing factors of the effectiveness of the voice information are not limited to the listening time of the device, which will be described in detail below and will not be described in detail here.
[0148] If only the reasoning module is selected to predict the validity of the voice information, then the device inputs the acquired voice information into the reasoning module and obtains the output result after calculation. Exemplarily, the output result can be the probability of predicting the validity of the input voice information, and then the probability is compared with the preset judgment threshold to obtain the prediction result. Specifically, if the probability is greater than the judgment threshold, the prediction result is that the input voice information is valid, and if the probability is less than the judgment threshold, the prediction result is that the input voice information is invalid. For example, assuming that the judgment threshold is 70%, it is stipulated that as long as the validity probability of the voice information is greater than 70%, then the voice information can be determined to be valid. If the validity probability of the voice information predicted by the reasoning module is 80%, which is greater than 70%, then the voice information is valid information. If the validity probability of the voice information predicted by the reasoning module is 50%, which is less than 70%, then the voice information is invalid information.
[0149] It should be noted that the result output by the above-mentioned reasoning module is not limited to the effective probability of the voice information, but can also be in other data forms, such as scoring. If the score exceeds the judgment threshold, it indicates that the voice information is valid, etc. This application does not impose any restrictions on this.
[0150] If only the rule matching module is selected to predict the validity of the voice information, then the device inputs the acquired voice information into the rule matching module, and the rule matching module compares the input voice information with the information in the preset rule library to obtain the prediction result. If the information in the preset rule library matches the input voice information, then the prediction result is that the input voice information is valid. On the contrary, if the information in the preset rule library does not match the input voice information, then the prediction result is that the input voice information is invalid.
[0151] In the case where only the reasoning module or the rule matching module is selected to predict the validity of the voice information, after obtaining the prediction result of the validity of the voice information, the prediction result can be input into the decision module, and the decision module judges whether the prediction result is reasonable through the comprehensive judgment condition, thereby outputting the final indication of whether the voice information is valid. For example, the comprehensive judgment condition is: the valid voice information includes no less than 3 characters, then, if the input voice information has less than 3 characters, and the prediction result output by the reasoning module or the rule matching module is that the voice information is valid, then the prediction result is unreasonable, and then the decision module determines that the voice information is invalid, and outputs the final indication information indicating that the voice information is invalid; on the contrary, if the input voice information has no less than 3 characters, the prediction result output by the reasoning module or the rule matching module is valid, which is reasonable, and the decision module finally determines that the voice information is valid, and outputs the indication information indicating that the voice information is valid.
[0152] It should be noted that the above-mentioned comprehensive judgment conditions are not limited to the above-mentioned examples, but may also be other forms of conditions. In one possible implementation, the comprehensive judgment conditions may be a voting mechanism, that is, if the number of valid votes for the voice information is large, the voice information is determined to be valid, and if the number of invalid votes for the voice information is large, the voice information is determined to be invalid.
[0153] Alternatively, in a possible implementation, when only the reasoning module or the rule matching module is selected to predict the validity of the voice information, no comprehensive judgment is required, but the result output by the reasoning module or the rule matching module is output as the final result of the invalid rejection model.
[0154] If both the reasoning module and the rule matching module are selected to predict the validity of the voice information, then the voice information obtained above is input into the reasoning module and the rule matching module respectively, and the two modules predict the validity of the voice information according to their own processes (see the above description, which will not be repeated here), and obtain their respective validity prediction results. Then, the two prediction results are input into the decision module, and the two validity prediction results are finally judged based on the comprehensive judgment conditions in the decision module to output the final result of the invalid rejection model.
[0155] Exemplarily, the comprehensive judgment condition may be: the valid voice information includes no less than 3 characters. Then, the decision module checks the rationality of the above two prediction results based on the comprehensive judgment condition. For the specific checking process, please refer to the previous description and will not be repeated here.
[0156] Exemplarily, in a possible implementation, the comprehensive judgment condition may be a voting mechanism, that is, if the number of valid voice information votes is large, the voice information is determined to be valid, and if the number of invalid voice information votes is large, the voice information is determined to be invalid. If the above two validity prediction results of the voice information are both valid, the final judgment result of the voice information is also valid. If the two validity prediction results are both invalid, the final judgment result of the voice information is also invalid. If one of the two validity prediction results is valid and the other is invalid, then further judgment can be made, for example, based on priority. If the priority of the reasoning module is higher than that of the rule matching module, the prediction result of the reasoning module is output as the final result. If the priority of the rule matching module is higher than that of the reasoning module, the prediction result of the rule matching module is output as the final result.
[0157] It should be noted that the above-mentioned comprehensive judgment condition is only an example. Its main purpose is to more accurately judge the validity of the acquired voice information by comprehensively analyzing the prediction results of the reasoning module and / or the rule matching module. In a specific embodiment, the comprehensive judgment condition may also be other conditions that can achieve this purpose. This scheme does not impose any restrictions on this.
[0158] Based on the above Figure 3 The description of S202 above indicates that the judgment condition described in S202 above may include one or more of the selection condition in the invalid rejection model, the judgment threshold of the output result of the judgment reasoning module, and the comprehensive judgment condition. That is, in the present application, in order to improve the accuracy of effective speech recognition in different scenarios and reduce the false trigger rate of invalid speech, the above judgment condition can be flexibly adjusted based on one or more influencing factors that can affect the validity judgment of the input voice information in different voice interaction scenarios, so that the validity recognition of the voice information is more flexible and more in line with the context and scenario at the time.
[0159] In a possible implementation manner, the above-mentioned adjustment of the decision condition based on the influencing factors of the validity of the first voice information may be:
[0160] In the case where the probability that the first voice information is valid is greater than the probability that it is invalid based on one or more factors affecting the validity of voice information, the sensitivity of the decision condition is adjusted higher, and the higher the sensitivity of the decision condition, the higher the probability that the first voice information is valid is determined by the decision condition; in the case where the probability that the first voice information is valid is less than the probability that it is invalid based on one or more factors affecting the validity of voice information, the sensitivity of the decision condition is adjusted lower, and the lower the sensitivity of the decision condition, the lower the probability that the first voice information is valid is determined by the decision condition. For the sensitivity of the decision condition and the specific adjustment process, please refer to the following introduction, which will not be described in detail here.
[0161] Optionally, the above-mentioned factors that may affect the validity recognition of the input voice information may include one or more of the following:
[0162] The environment in which the voice information is generated, the continuous listening time of the device, the first time interval between the time when the device obtains the voice information and the last valid voice information obtained, the second time interval between the time when the device obtains the voice information and the last invalid voice information obtained, the ratio of valid voice information to invalid voice information within the first preset time before the device obtains the voice information, the first semantic correlation between the voice information and the last valid voice information obtained by the device, the second semantic correlation between the voice information and the last invalid voice information obtained by the device, the third correlation between the first voice information and the last valid voice information obtained by the device, the state of the voice dialogue between the device and the user as of the time when the current voice information is obtained, the first similarity between the acoustic features of the voice information and the historical valid voice information, and the second similarity between the acoustic features of the voice information and the historical invalid voice information.
[0163] In a possible implementation, after the device obtains the first voice information, it can adjust the selection condition in the invalid rejection model based on the first factor, and the first factor can include one or more of the above-mentioned influencing factors. The specific adjustment process will be introduced later and will not be described in detail here.
[0164] In a possible implementation, after the device obtains the above-mentioned first voice information, the judgment threshold of the output result of the judgment reasoning module in the above-mentioned invalid rejection model can be adjusted based on the second factor, and the second factor can include one or more of the above-mentioned influencing factors. The influencing factors included in the second factor and the above-mentioned first factor can be different, or can be partially the same, or can be completely the same, which is determined according to the actual situation, and this solution does not limit this. The specific adjustment process will be introduced later and will not be described in detail here.
[0165] In a possible implementation, after the device obtains the above-mentioned first voice information, it can adjust the comprehensive judgment condition of the decision module in the above-mentioned invalid rejection model based on a third factor, and the third factor can include one or more of the above-mentioned influencing factors. The third factor can be different from the influencing factors included in the above-mentioned first factor and the above-mentioned second factor, or can be partially the same, or can be completely the same, which is determined according to the actual situation, and this solution does not limit this. The specific adjustment process will be introduced later and will not be described in detail here.
[0166] In a specific implementation, the above-mentioned selection conditions, judgment thresholds and comprehensive judgment conditions can be adjusted together, or one or two of the selection conditions, judgment thresholds and comprehensive judgment conditions can be adjusted. The specific selection can be based on actual needs, and this solution does not impose any restrictions on this.
[0167] S203: When it is determined that the first voice information is valid based on the adjusted decision condition, semantic understanding is performed on the first voice information, and instructions of the first voice information are executed.
[0168] In a specific embodiment, after the device obtains the first voice information, it adjusts the decision conditions in the invalid rejection model based on the influencing factors, and then identifies the validity of the first voice information based on the adjusted invalid rejection model.
[0169] In a possible implementation, if the device adjusts the selection conditions in the invalid rejection model, the device may select one or more models in the rule matching module and the reasoning module based on the adjusted selection conditions to pre-judge the validity of the first voice information.
[0170] In one possible implementation, if the device adjusts the judgment threshold of the above-mentioned reasoning module, and the device selects a prediction module for judging the validity of the first voice information including the reasoning module, then after the reasoning module outputs data indicating the validity of the first voice information, the device can judge whether the first voice information is valid based on the data indicating the validity of the first voice information and the adjusted judgment threshold.
[0171] In one possible implementation, if the device adjusts the comprehensive judgment conditions of the decision module in the invalid rejection model, then after obtaining the prediction results of the rule matching module and / or reasoning module, a comprehensive judgment can be made on the prediction results of the rule matching module and / or reasoning module based on the adjusted comprehensive judgment conditions, thereby determining the validity of the first voice information.
[0172] The specific process of the validity recognition of the first voice information can be found in the Figure 3 The description is not repeated here.
[0173] When the first voice information is valid, the device starts to perform semantic understanding on the first voice information. Specifically, the processor in the device can call the natural language understanding model in the memory to perform semantic understanding on the first voice information to obtain the specific meaning of the first voice information. After the device understands the meaning of the first voice information, it performs corresponding operations based on the meaning to provide the user with the required service. The meaning of the first voice information is the control instruction for the device to perform the corresponding operation.
[0174] The following describes the adjustment process of the judgment condition in the above-mentioned first voice information validity recognition from the different influencing factors of the voice information validity. It should be noted that the judgment condition may include one or more of the selection condition, judgment threshold and comprehensive judgment condition in the above-mentioned invalid rejection model, and the adjustment process described below may be applicable to the adjustment of one or more of the selection condition, judgment threshold and comprehensive judgment condition.
[0175] Before introducing the adjustment process, let's first introduce the relevant concepts involved in the adjustment process:
[0176] Sensitivity of decision conditions: The sensitivity refers to the degree of looseness and strictness of decision conditions. The stricter the decision conditions, the lower the sensitivity, and the looser the decision conditions, the higher the sensitivity.
[0177] Exemplarily, for the selection conditions of the above-mentioned prediction model, generally, since the reasoning module predicts the possibility of the voice information being valid, it belongs to fuzzy matching, while the rule matching module is a pattern matching type of prediction, which means yes or no, which is relatively strict. Therefore, when selecting a prediction model, if the probability that the voice information obtained by the device is valid is relatively high, then the reasoning module or the rule matching module can be selected for prediction, or if the accuracy of the effective recognition of the voice information is to be improved at this time, the reasoning module can be selected for prediction. If the probability that the voice information obtained by the device is valid is relatively low, in order to effectively avoid the false triggering of invalid information, the rule matching module can be selected for prediction.
[0178] For example, suppose the selection conditions are: if the listening time of the device is less than 10 seconds, select the reasoning module to predict; if the listening time of the device is greater than 20 seconds, select the rule matching module to predict; if the listening time of the device is between 10 seconds and 20 seconds, select both the reasoning module and the rule matching module to predict. If you want to better filter invalid information and reduce false triggers, then the device can adjust the selection conditions in a more stringent direction, that is, lower the sensitivity of the selection conditions. For example, the selection conditions can be adjusted to: if the listening time of the device is less than 5 seconds, select the reasoning module to predict; if the listening time of the device is greater than 10 seconds, select the rule matching module to predict; if the listening time of the device is between 5 seconds and 10 seconds, select both the reasoning module and the rule matching module to predict. On the contrary, if you want to better identify valid voice information, the device can adjust the selection conditions in a looser direction, that is, increase the sensitivity of the selection conditions. For example, the selection conditions can be adjusted to: if the listening time of the device is less than 15 seconds, select the reasoning module to make a prediction; if the listening time of the device is greater than 25 seconds, select the rule matching module to make a prediction; if the listening time of the device is between 15 seconds and 25 seconds, select both the reasoning module and the rule matching module to make a prediction.
[0179] For example, for the judgment threshold of the above-mentioned reasoning module, assuming that the standard judgment threshold is 70%, that is, the reasoning module predicts that the probability of the voice information being valid is greater than 70%, then the voice information is determined to be valid. However, when the judgment threshold is adjusted to 80%, that is, the judgment condition is adjusted in a strict direction, in this case, the probability that the reasoning module predicts that the voice information is valid needs to be greater than 80% to determine it to be valid, which shows that the sensitivity of the judgment condition is reduced. On the other hand, if the judgment threshold is adjusted to 60%, that is, the judgment condition is adjusted in a loose direction, in this case, the probability that the reasoning module predicts that the voice information is valid only needs to be greater than 60% to determine it to be valid, which shows that the sensitivity of the judgment condition is improved.
[0180] For example, for the above comprehensive judgment condition, assuming that the comprehensive judgment condition is: the valid voice information includes no less than 3 characters, then if the comprehensive judgment condition is adjusted to: the valid voice information includes no less than 5 characters, it can be seen that the requirements for voice information are higher and more stringent, so the sensitivity of the comprehensive judgment condition is reduced. If the comprehensive judgment condition is adjusted to: the valid voice information includes no less than 2 characters, it can be seen that the requirements for voice information are lowered and more relaxed, so the sensitivity of the comprehensive judgment condition is improved.
[0181] Negative correlation adjustment sensitivity: when the value corresponding to the influencing factor increases, the sensitivity is lowered, and the more it increases, the lower the sensitivity is adjusted; when the value corresponding to the influencing factor decreases, the sensitivity is increased, and the more it decreases, the higher the sensitivity is adjusted.
[0182] Positive correlation adjustment sensitivity: when the value corresponding to the influencing factor increases, the sensitivity is increased, and the more it increases, the higher the sensitivity is adjusted; when the value corresponding to the influencing factor decreases, the sensitivity is decreased, and the more it decreases, the lower the sensitivity is adjusted.
[0183] It should be noted that the specific adjustment of the sensitivity increase or decrease described in this application can be set according to the actual situation, and this application does not limit this. In addition, the adjustment of the sensitivity of the above-mentioned judgment condition has a range. For example, for the adjustment of the above-mentioned judgment threshold, the highest is 100% and the lowest is 0, etc. The adjustment range of the sensitivity of the judgment condition is determined according to the actual situation, and this solution does not limit this.
[0184] First, the adjustment process of the above-mentioned judgment conditions is introduced based on the influencing factor of the environmental situation when the above-mentioned first voice information is generated. Exemplarily, the environmental situation when the first voice information is generated includes one or more of the following: the number of speakers within the second preset time period until the device obtains the first voice information (hereinafter referred to as the number of speakers), the number of people within the preset range when the first voice information is generated (hereinafter referred to as the number of surrounding people), the confidence of the first voice information, and the signal-to-noise ratio of the first voice information, etc. The number of speakers specifically refers to the number of different voiceprints included in the first voice information. Because each person's voiceprint is different, the number of speakers of the first voice information can be represented by the number of voiceprints.
[0185] See also Figure 4 , Figure 4 Taking the several environmental influencing factors listed above as examples, it is introduced how to adjust the above judgment conditions based on environmental influencing factors.
[0186] In the process of the device acquiring the above-mentioned first voice information, the number of people around and the number of people speaking of the first voice information can be acquired. Specifically, the device can drive the camera to take pictures or videos of the surrounding environment by calling the computer vision model in the memory, and then analyze the captured pictures and videos to know the number of people around and the number of people speaking. The number of people speaking can be obtained by analyzing which people's mouths are moving in the video within the above-mentioned second preset time length. The number of people around includes the number of people speaking. The second preset time length can be, for example, 5 seconds, 10 seconds or 1 minute, etc., and this application does not limit this.
[0187] Alternatively, the device can identify the voiceprint features in the voice signal received by the device within the second preset time by calling the voiceprint recognition model in the memory, and the number of different voiceprint features identified is the number of speakers. Optionally, the voiceprint recognition model can be a dynamic monitoring model to flexibly adapt to voiceprint recognition in different situations.
[0188] After the above-mentioned device obtains the number of people around (assuming that there are m people, m is a positive integer) and the number of people speaking (assuming that there are n people, n is a positive integer), it first determines whether the number of speakers n is 0. If it is 0, it indicates that the above-mentioned first voice information does not include human voice information, and there is no need to adjust the corresponding judgment conditions.
[0189] If the number of speakers n is not 0, it indicates that the first voice information includes human voice information. Further, it is determined whether the number of surrounding people m is greater than 1. If m is not greater than 1, it is determined whether m is 1.
[0190] If m is 1, it indicates that there is only one person in the surrounding environment, and the first voice information sent by the person is very likely to be a voice control instruction issued to the device. In this case, the sensitivity of the decision condition can be increased to better identify the validity of the first voice information.
[0191] Alternatively, if m is 1, it is assumed that the first voice information currently obtained is a voice control instruction for the device, that is, valid information. Then, the sensitivity of the judgment condition can be adjusted to the highest, or the invalid rejection model does not further perform validity judgment and directly outputs an indication that the first voice information is valid.
[0192] If m is not 1, the detection may be incorrect, and the sensitivity of the decision condition cannot be adjusted based on this information, so no adjustment is made.
[0193] When the number of speakers n is not 0, and the number of people around m is greater than 1, the first voice message is very likely to be idle chat content, which may be invalid voice message for the device. Then, the device can lower the sensitivity of the judgment condition based on the number of people around, and the larger the number of people around m, the lower the sensitivity of the judgment condition. Because the more people around, the greater the probability that the first voice message belongs to idle chat voice, therefore, it is necessary to set a more stringent judgment condition to identify the validity of the first voice message, so as to avoid invalid voice messages from mistakenly triggering related service operations and wasting device resources.
[0194] In addition, after the device obtains the first voice information, it can call the automatic speech recognition model in the memory to calculate the confidence of the first voice information, or use the vocal tract information to calculate the signal-to-noise ratio of the first voice information, or calculate both the confidence and the signal-to-noise ratio, and then adjust the sensitivity of the decision condition based on the confidence and / or the signal-to-noise ratio.
[0195] Specifically, the sensitivity of the decision condition can be adjusted based on the negative correlation between the confidence level and / or the signal-to-noise ratio. This is because the higher the confidence level, the greater the probability that the first voice information is correctly recognized, and the higher the signal-to-noise ratio, the better the quality of the collected first voice information. At this time, even if the sensitivity of the decision condition is stringent, the validity of the first voice information can be better identified, and invalid voice of idle chat can be effectively filtered out.
[0196] On the contrary, if the confidence is lower, it means that the probability of the first voice information being correctly recognized is smaller, and the signal-to-noise ratio is lower, it means that the quality of the collected first voice information is worse, and the recognition of the voice content may be incorrect. In order to improve the robustness of the device voice interaction, the sensitivity of the decision condition can be appropriately increased and the decision condition can be adjusted to be looser, so that the effectiveness of the first voice information can be better identified.
[0197] Exemplarily, the device may set a confidence threshold and / or a signal-to-noise ratio threshold of the voice information. If the confidence of the first voice information is greater than the confidence threshold and / or the signal-to-noise ratio is greater than the signal-to-noise ratio threshold, then the higher the confidence and / or the signal-to-noise ratio, the lower the sensitivity of the decision condition is adjusted. If the confidence of the first voice information is less than the confidence threshold and / or the signal-to-noise ratio is less than the signal-to-noise ratio threshold, then the lower the confidence and / or the signal-to-noise ratio, the higher the sensitivity of the decision condition is adjusted. The confidence threshold may be, for example, 50% or 60%, and the signal-to-noise ratio threshold may be, for example, 50db or 60db, and the present application does not impose any restrictions on the confidence threshold and the signal-to-noise ratio threshold.
[0198] For example, in a possible implementation, the device does not need to set the confidence threshold and / or signal-to-noise ratio threshold of the voice information, but can set the corresponding adjustment of the decision conditions within each confidence and / or signal-to-noise ratio range. For example, taking the decision condition as the judgment threshold of the above-mentioned inference model as an example, assuming that the initial judgment threshold is 70%, then, within the confidence range of 0 to 30%, the sensitivity can be increased, and the judgment threshold can be set to 50%; within the confidence range of 31% to 60%, the judgment threshold can be set to 60%; within the confidence range of 61% to 70%, no adjustment can be made and the original 70% threshold can be maintained; within the confidence range of 71% to 100%, the sensitivity can be lowered, and the judgment threshold can be set to 80%.
[0199] It should be noted that, for the above-mentioned influencing factors of the number of speakers n, the number of people around m, the confidence level and the signal-to-noise ratio, the device can adjust the sensitivity of the judgment condition based on any one of them. Alternatively, the device can adjust the sensitivity of the judgment condition based on any multiple influencing factors. Exemplarily, a weight can be configured for each of the multiple influencing factors, and the sensitivity of the judgment condition can be adjusted in a weighted manner. For example, for the adjustment of the above-mentioned judgment threshold, it is assumed that the three influencing factors of the number of people around m, the confidence level and the signal-to-noise ratio are adjusted comprehensively, and the weights set corresponding to the three factors are w1, w2 and w3, and the adjusted judgment thresholds calculated corresponding to the three factors are a1, a2 and a3, then, the adjusted judgment threshold determined by the three factors is (a1*w1+a2*w2+a3*w3). It should be noted that this weighted comprehensive method is only an example. In actual implementation, the most or least adjusted of the multiple influencing factors can also be taken as the final adjustment result, etc. This solution does not limit the specific comprehensive calculation process.
[0200] See also Figure 5 , Figure 5The diagram exemplifies the sensitivity of adjusting the decision conditions based on three influencing factors: the continuous listening time before the device acquires the first voice information (hereinafter referred to as t1), the first time interval between the device acquiring the first voice information and the last acquisition of valid voice information (hereinafter referred to as △t1), and the second time interval between the device acquiring the first voice information and the last acquisition of invalid voice information (hereinafter referred to as △t2).
[0201] Specifically, after the device obtains the first voice information, it can obtain the duration t1 of the device's continuous listening until the first voice information is obtained, the first time interval △t1 between obtaining the first voice information and the last valid voice information obtained, and the second time interval △t2 between obtaining the first voice information and the last invalid voice information obtained. Exemplarily, the acquisition of t1, △t1 and △t2 can be obtained by timing and calculating with a timer.
[0202] After obtaining the t1, the device can adjust the sensitivity of the above judgment condition based on the negative correlation of the t1, that is, the longer the continuous listening time t1 is, the lower the sensitivity of the judgment condition is adjusted. This is because when the device is awakened, it begins to enter a new round of continuous listening stage. Generally, in the early stage of the continuous listening stage, the user's voice information obtained by the device is more likely to be valid, so a high sensitivity must be maintained. As time goes by, the voice information obtained by the device is more likely to be conversation information between users. In order to reduce false triggering, the sensitivity needs to be reduced. Therefore, the device can adjust the sensitivity of the above judgment condition based on the negative correlation of the continuous listening time length.
[0203] In order to facilitate understanding of the sensitivity of the judgment condition based on the negative correlation adjustment of t1, an example is given. For example, assuming that the judgment condition is the judgment threshold of the output result of the above-mentioned reasoning module, at the beginning of continuous listening, the judgment threshold can be 60%, the condition is relatively loose, and the sensitivity is high, but as t1 gradually increases, for each unit interval (for example, an interval of 5 seconds) that t1 increases, the judgment threshold increases by a preset incremental value, such as an increase of 1%, etc., that is, as t1 increases, the judgment threshold becomes larger and larger, the conditions become more and more harsh, and the sensitivity gradually decreases. It should be noted that this is only an example, and the present application does not limit the specific negative correlation adjustment method.
[0204] After obtaining the first time interval △t1, the device can determine whether △t1 is greater than the first time interval threshold T1. If △t1 is greater than T1, the sensitivity of the decision condition is not adjusted. This is because when △t1 is greater than T1, it can be considered that the time length included in the first time interval △t1 overlaps with the continuous listening time length t1, and the sensitivity of the decision condition can be adjusted by t1, without adjusting the sensitivity of the decision condition according to △t1.
[0205] If △t1 is less than T1, the sensitivity of the judgment condition is adjusted negatively. This is because, after the device obtains valid voice information, i.e., within the time length T1, the longer the interval, the greater the probability that the voice information obtained by the device is invalid voice information such as idle chat. Therefore, in order to reduce false triggering, the device can adjust the sensitivity of the judgment condition negatively.
[0206] After obtaining the second time interval △t2, the device can determine whether △t2 is greater than the second time interval threshold value T2. If △t2 is greater than T2, the sensitivity of the decision condition is not adjusted. This is because, when △t2 is greater than T2, it can be considered that the time length included in the second time interval △t2 overlaps with the continuous listening time length t1, and the sensitivity of the decision condition can be adjusted according to t1, without adjusting the sensitivity of the decision condition according to △t2.
[0207] If △t2 is less than T2, the sensitivity of the judgment condition is adjusted negatively. This is because, after the device obtains invalid voice information, i.e., within the time length T2, the longer the interval, the greater the probability that the voice information obtained by the device is invalid voice information such as idle chat. Therefore, in order to reduce false triggering, the device can adjust the sensitivity of the judgment condition negatively.
[0208] In addition, for the first time interval △t1 and the second time interval △t2 obtained above, the device can compare whether △t1 is less than △t2, and if so, the sensitivity of the judgment condition is adjusted higher. This is because, when the previous voice information before the first voice information is obtained is valid voice information, it is more likely that the first voice information is an addition or modification of the previous voice information, that is, it is more likely that the first voice information is valid voice information. Therefore, in order to better identify the validity of the first voice information, the device can adjust the judgment condition in a loose direction, that is, increase the sensitivity.
[0209] Above Figure 5The adjustment process shown is an implementation example of the present application. By taking into account the length of continuous listening time and the time interval between valid voice information and invalid voice information, the sensitivity of the judgment conditions is adjusted dynamically in real time. This allows the device to obtain voice information at different listening time stages, even if the voice information has the same content, and the threshold for judging it as valid is different. This allows better identification of valid voices, and reduces false triggering of invalid voices, thereby improving the user's voice interaction experience.
[0210] It should be noted that for Figure 5 The device can adjust the sensitivity of the decision condition based on any one of the several influencing factors shown, or the device can adjust the sensitivity of the decision condition based on any multiple of the influencing factors.
[0211] See also Fig. 6A and Figure 6B , Fig. 6A and Figure 6B The schematic diagram exemplarily shows the sensitivity of adjusting the decision condition based on the influencing factor of the ratio of valid voice information to invalid voice information within a first preset time period before the device acquires the above-mentioned first voice information.
[0212] Exemplarily, the first preset time length may be the time length during which the device continuously listens before acquiring the first voice information, or the first preset time length may be any time length before the device acquires the first voice information, and the arbitrary time length may be pre-configured, and this application does not impose any restrictions on this.
[0213] The ratio of valid voice information within the first preset time period refers to the ratio of valid voice information acquired by the device to all voice information acquired by the device within the first preset time period. Alternatively, the ratio is the reciprocal of the number of invalid voice information acquired between the time point when the last valid voice control command was received and the time when the first voice information was acquired. If the number of invalid voice information acquired during the period is 0, then the ratio of valid voice information is 1.
[0214] The proportion of invalid voice information within the first preset time period refers to the proportion of invalid voice information acquired by the device to all voice information acquired by the device within the first preset time period. Alternatively, the proportion is the reciprocal of the number of valid voice information acquired between the time point when the invalid voice control command was last received and the time point when the first voice information was acquired. If the number of valid voice information acquired during the period is 0, then the proportion of invalid voice information is 1.
[0215] In a specific embodiment, after the device obtains the first voice information, it obtains the proportion of valid voice information (referred to as f1) and the proportion of invalid voice information (referred to as f2) within the first preset time period. The device can compare the sizes of f1 and f2 (see Fig. 6A ). If f1 is greater than f2, it means that more valid voice information is obtained within the first preset time, and the user frequently interacts with the device by voice. Then, the sensitivity of the above judgment condition can be adjusted according to the positive correlation of the parameter (f1-f2). That is, the greater the proportion of valid voice information, the greater the probability that the first voice information is valid. Then, the higher the sensitivity of the judgment condition is adjusted, so that the validity of the obtained voice information can be better identified and the possibility of missing the recognition of valid voice information can be reduced.
[0216] In a possible implementation, the device may adjust the sensitivity of the above decision condition based on f1 and f2. For example, the greater the proportion of f1, the higher the sensitivity is adjusted, and the smaller the proportion of f2, the lower the sensitivity is adjusted, and so on.
[0217] exist Fig. 6A If f1 is not greater than f2, the device can adjust the sensitivity of the decision condition according to the change rate of f1 and the change rate of f2.
[0218] For example, a coordinate system is constructed with the number of times voice information is obtained as the horizontal axis (or the continuous listening time as the horizontal axis) and f1 as the vertical axis. In this coordinate system, the slope of the line connecting f1 when valid voice information is obtained the most recently and f1 when valid voice information is obtained the most recently is the rate of change of f1. For ease of understanding, please refer to Figure 6C .exist Figure 6C In the example, it is assumed that six voice messages have been received before the first voice message is obtained. Figure 6C The figure shows the percentage of valid voice information after each acquisition of voice information and the validity judgment. Figure 6C In the example, after the device obtains the first voice information, the change rate of f1 obtained is k=-10%.
[0219] Similarly, for example, a coordinate system is constructed with the number of times the voice information is obtained as the horizontal axis (or the continuous listening time as the horizontal axis) and f2 as the vertical axis. In this coordinate system, the slope of the line connecting f2 when the invalid voice information is obtained the most recently and f2 when the invalid voice information is obtained the most recently is the rate of change of f2. For ease of understanding, please refer to Fig.6D .exist Fig.6D In the example, it is assumed that six voice messages have been received before the first voice message is obtained. Fig.6DThe figure shows the proportion of invalid voice information after each acquisition of voice information and the validity judgment. Fig.6D In the example, after the device obtains the first voice information, the change rate of f2 obtained is k=10%.
[0220] Based on the above description, when f1 is not greater than f2, it indicates that the voice interaction between the user and the device is reduced. Then, in order to reduce the false triggering of invalid voices, the device can adjust the sensitivity of the judgment condition in a positive correlation with the change rate of f1. That is, the greater the change rate of f1, the greater the probability that the first voice information is valid, the higher the sensitivity is adjusted, and the looser the judgment condition; and the smaller the change rate of f1, the smaller the probability that the first voice information is valid, the lower the sensitivity is adjusted, and the more stringent the judgment condition. For example, see the above Figure 6C , Figure 6C Several f1 change rates are given as examples: k = -50%, k = 16.6%, k = 8.3%, k = -15% and k = -10%, which are arranged from small to large as follows: -50% < -15% < -10% < 8.3% < 16.6%. Assuming that the adjusted judgment condition is the judgment threshold of the output result of the above-mentioned reasoning module, and assuming that the judgment threshold before adjustment is 70%, then the adjusted judgment thresholds corresponding to the 5 f1 change rates arranged from small to large are 85%, 80%, 78%, 68% and 65%. It should be noted that the lower the judgment threshold, the higher the sensitivity, that is, here, increasing the sensitivity is to lower the judgment threshold, and lowering the sensitivity is to increase the judgment threshold.
[0221] When f1 is not greater than f2, the device can adjust the sensitivity of the judgment condition in a negative correlation with the change rate of f2. That is, the smaller the change rate of f2, the greater the proportion of valid voice information is, that is, the greater the probability that the first voice information is valid. Therefore, the higher the sensitivity is, the looser the judgment condition is; and the greater the change rate of f2, the greater the proportion of valid voice information is, that is, the smaller the probability that the first voice information is valid. Therefore, the lower the sensitivity is, the stricter the judgment condition is. For example, see the above Fig.6D , Fig.6D Several f2 change rates are given as examples: k = 50%, k = -16.6%, k = -8.3%, k = 15% and k = 10%, which are arranged from small to large as follows: -16.6% < -8.3% < 10% < 15% < 50%. Assuming that the adjusted judgment condition is the judgment threshold of the output result of the above-mentioned reasoning module, and assuming that the judgment threshold before adjustment is 70%, then the corresponding adjusted judgment thresholds of the five f2 change rates arranged from small to large are 65%, 68%, 78%, 80% and 85%.
[0222] Alternatively, after the device obtains the first voice information, it obtains the proportion of valid voice information (referred to as f1) and the proportion of invalid voice information (referred to as f2) within the first preset time period. The device does not need to compare the sizes of f1 and f2, and can also adjust the sensitivity of the above-mentioned decision condition in a positive correlation according to the parameter (f1-f2), adjust the sensitivity of the decision condition in a positive correlation according to the change rate of f1, and / or adjust the sensitivity of the decision condition in a negative correlation according to the change rate of f2 (see Figure 6B ). For the specific adjustment process, please refer to the above Fig. 6A The description is not repeated here.
[0223] It should be noted that for Fig. 6A or Figure 6B The device can adjust the sensitivity of the decision condition based on any one of the several influencing factors shown, or the device can adjust the sensitivity of the decision condition based on any multiple of the influencing factors.
[0224] See also Figure 7 , Figure 7 An exemplary diagram shows the sensitivity of adjusting the decision conditions based on three influencing factors: a first semantic correlation between the first voice information and the most recent valid voice information acquired by the device, a second semantic correlation between the first voice information and the most recent invalid voice information acquired by the device, a third semantic correlation between the first voice information and the most recent valid voice information acquired by the device, and the state of the voice conversation between the device and the user until the first voice information is acquired.
[0225] In a specific embodiment, after the device obtains the first voice information, it can obtain the valid voice information obtained most recently (referred to as the most recent historical valid voice information), and analyze the correlation between the first voice information and the most recent historical valid voice information based on the semantics of the two voice information (referred to as the first correlation). Specifically, the first voice information can be semantically understood by calling a natural language understanding model in a memory.
[0226] If the semantics of the two voice information are not related, that is, the first correlation is zero, then the sensitivity of the decision condition is not adjusted. If the semantics of the two voice information are related, for example, the semantics of the two voice information are the same, there is an inheritance relationship (for example, the semantics of the most recent valid voice information is "turn on the air conditioner", and the semantics of the first voice information is "the temperature is a little higher"), there is a progressive relationship (for example, the semantics of the most recent valid voice information is "the temperature is a little higher", and the semantics of the first voice information is "a little higher"), or there is an opposition relationship (for example, the semantics of the most recent valid voice information is "turn on the air conditioner", and the semantics of the first voice information is "turn off"), etc., then the device can calculate the specific first correlation, and then positively adjust the sensitivity of the decision condition based on the calculated first correlation.
[0227] Exemplarily, if the first correlation degree is greater than a certain threshold value, indicating that the probability that the first voice information is valid voice information is relatively high, then the greater the first correlation degree, the higher the sensitivity is adjusted; conversely, if the first correlation degree is less than a certain threshold value, indicating that the probability that the first voice information is valid voice information is relatively low, then the smaller the first correlation degree, the lower the sensitivity is adjusted.
[0228] Exemplarily, in a possible implementation, the device does not need to set a threshold value of the first correlation degree, but can set the corresponding adjustment conditions in each range of the first correlation degree. For example, taking the judgment condition as the judgment threshold value of the above-mentioned inference model as an example, assuming that the initial judgment threshold value is 70%, then, within the range of the first correlation degree of 0 to 30%, the sensitivity can be lowered, and the judgment threshold value can be set to 80%; within the range of the first correlation degree of 31% to 60%, the judgment threshold value can be set to 75%; within the range of the first correlation degree of 61% to 70%, no adjustment can be made and the original threshold value of 70% can be maintained; within the range of the first correlation degree of 71% to 100%, the sensitivity can be increased, and the judgment threshold value can be set to 60%.
[0229] In a possible implementation, when it is determined that the first correlation degree is 100% correlated, the sensitivity may be adjusted to the highest, or the invalid rejection model does not further perform validity judgment and directly outputs an indication that the first voice information is valid.
[0230] In a specific embodiment, after the device obtains the above-mentioned first voice information, it can obtain the invalid voice information obtained the most recently (referred to as the recent historical invalid voice information), and analyze the correlation between the two voice information (referred to as the second correlation) based on the semantics of the first voice information and the recent historical invalid voice information obtained by parsing. If the semantics of the two voice information are not related, that is, the second correlation is zero, then the sensitivity of the decision condition is not adjusted. If the semantics of the two voice information are related, for example, the semantics of the two voice information are the same, there is an inheritance relationship (for example, the semantics of the recent historical invalid voice information is "we can go to Shenzhen on Sunday", and the semantics of the first voice information is "we can go on Saturday"), there is a progressive relationship (for example, the semantics of the recent historical invalid voice information is "getting up at six in the morning is very early", and the semantics of the first voice information is "I can get up earlier") or there is an opposition relationship (for example, the semantics of the recent historical invalid voice information is "let's go to Shenzhen", and the semantics of the first voice information is "don't go"), etc., then the device can calculate the specific second correlation, and then adjust the sensitivity of the decision condition based on the calculated second correlation negative correlation.
[0231] Exemplarily, if the second correlation degree is greater than a certain threshold value, indicating that the probability that the first voice information is invalid voice information is relatively high, the larger the second correlation degree is, the lower the sensitivity is adjusted; conversely, if the second correlation degree is less than a certain threshold value, indicating that the probability that the first voice information is invalid voice information is relatively low, the smaller the second correlation degree is, the higher the sensitivity is adjusted.
[0232] Exemplarily, in a possible implementation, the device does not need to set a threshold value for the second correlation degree, but can set the corresponding adjustment conditions within each range of the second correlation degree. For example, taking the judgment condition as the judgment threshold value of the above-mentioned inference model as an example, assuming that the initial judgment threshold value is 70%, then, within the range of the second correlation degree of 0 to 30%, the sensitivity can be increased, and the judgment threshold value can be set to 60%; within the range of the second correlation degree of 31% to 60%, the judgment threshold value can be set to 65%; within the range of the second correlation degree of 61% to 70%, no adjustment can be made and the original threshold value of 70% can be maintained; within the range of the second correlation degree of 71% to 100%, the sensitivity can be lowered, and the judgment threshold value can be set to 80%.
[0233] In a possible implementation, when it is determined that the second correlation degree is 100% correlated, the sensitivity may be adjusted to the lowest, or the invalid rejection model does not further perform validity judgment and directly outputs an indication that the first voice information is invalid.
[0234] In a specific embodiment, in addition to adjusting the correlation of the decision condition based on the first correlation of the semantics of the first voice information and the valid voice information most recently acquired by the device, the device can also adjust the correlation of the decision condition based on the third correlation of the first voice information and the valid voice information most recently acquired by the device. The third correlation refers to the correlation between the first voice information and the content of the valid voice information most recently acquired by the device, while the first correlation refers to the correlation between the semantics of the two voice information. For ease of understanding of the first correlation and the third correlation, please refer to Fig. 8A and Figure 8B .
[0235] See first Fig. 8A , assuming that "Help me play music" is the valid voice information most recently acquired by the device, and "I usually like to listen to the songs of singer A" is the first voice information. In order to obtain the first correlation between the two voice information, after obtaining the semantic information of the two voice information through the natural language understanding model, the two semantic information are input into the semantic correlation reasoning model for processing. After being processed by the semantic correlation reasoning model, the first correlation between the two semantic information is output. The semantic correlation reasoning model is a pre-trained neural network model or a machine learning model, etc.
[0236] See also Figure 8B Similarly, assuming that "Help me play music" is the valid voice information most recently acquired by the device, and "I usually like to listen to songs by singer A" is the above-mentioned first voice information. In order to obtain the third correlation between the two voice information, the two voice information can be structurally analyzed through a natural language understanding model. Specifically, after structurally analyzing the voice information "Help me play music", it is known that the field described by the voice information is music, and its intention is to play music. After structurally analyzing the voice information "I usually like to listen to songs by singer A", it is known that the field described by the voice information is music, and the singer is singer A. After obtaining the structured information of the two voice information, the two structured information are input into a related judgment model for processing. After being processed by the related judgment model, the third correlation between the two voice information is output. The related judgment model can be, for example, a dialogue state tracking DST model.
[0237] In the above Fig. 8A The first correlation of the two voice information "Help me play music" and "I usually like to listen to the songs of singer A" output in the above can be zero, that is, the semantics are not related; Figure 8B The third correlation degree of the two voice information "Help me play music" and "I usually like to listen to the songs of singer A" output in can be 100%, that is, the two voice information are related.
[0238] In a possible implementation manner, based on the above Figure 8B The third correlation between the first voice information obtained in the described manner and the valid voice information most recently obtained by the device can be a clear 0 or 100%, that is, if the above-mentioned correlation judgment model outputs irrelevant indication information, the third correlation is 0, and if the above-mentioned correlation judgment model outputs relevant indication information, the third correlation is 100%.
[0239] In another possible implementation manner, based on the above Figure 8B The third correlation between the first voice information obtained in the described manner and the valid voice information most recently obtained by the device can also be a specific percentage (for example, 60% or 90%, etc.) or a similarity score, etc., and then, whether it is associated can be determined by comparing with a preset threshold.
[0240] After obtaining the third correlation between the first voice information and the valid voice information most recently acquired by the device, the device can adjust the sensitivity of the decision condition based on the third correlation. The specific positive correlation adjustment method can refer to the above-mentioned positive correlation adjustment of the sensitivity of the decision condition based on the first correlation, which will not be repeated here. In addition, when the third correlation is zero, that is, the first voice information is not correlated with the valid voice information most recently acquired by the device, the sensitivity of the decision condition is not adjusted.
[0241] In a specific embodiment, after the device obtains the above-mentioned first voice information, it can obtain the state of the voice dialogue between the device and the user up to the time when the first voice information is obtained. The state can be, for example, the state of the device selecting, asking, judging or chatting based on the user's voice control instructions. Specifically, the device can obtain the state based on the dialogue state tracking DST technology. In the case of a state in which the device has a voice dialogue with the user, it indicates that the user and the device have had a long interactive dialogue, then the device can increase the sensitivity of the judgment condition according to this continuous dialogue state. If there is no state in which the device has a voice dialogue with the user, the user has not had a long interactive dialogue with the device, and the device may not adjust the sensitivity of the judgment condition based on this factor.
[0242] It should be noted that for Figure 7 The device can adjust the sensitivity of the decision condition based on any one of the several influencing factors shown, or the device can adjust the sensitivity of the decision condition based on any multiple of the influencing factors.
[0243] See also Fig. 9 , Fig. 9The schematic diagram exemplarily shows the sensitivity of adjusting the decision condition based on two influencing factors: the first similarity between the acoustic features of the first voice information and the historical valid voice information, and the second similarity between the acoustic features of the first voice information and the historical invalid voice information. Exemplarily, the acoustic features include features such as the intonation and / or speech speed of the voice.
[0244] In a specific embodiment, after the device obtains the above-mentioned first voice information, it extracts the acoustic features of the first voice information by calling the acoustic model stored in the memory, and then compares the extracted acoustic features with the acoustic features of historical valid voice information (which may be one or more historical valid voice information) to obtain the similarity between the acoustic features of the first voice information and the acoustic features of the historical valid voice information (referred to as the first similarity). If the similarity between the acoustic features of the first voice information and the acoustic features of the historical valid voice information is zero, then the device may not adjust the sensitivity of the decision condition according to the first similarity. If the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical valid voice information is not zero, then the sensitivity of the decision condition may be adjusted in a positive correlation, that is, the greater the similarity (exemplarily, the similarity may be the maximum similarity among the obtained similarities, or the average degree of the obtained similarities, etc.), the higher the sensitivity is adjusted.
[0245] In a possible implementation, when the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical valid voice information is greater than a certain threshold (the threshold can be, for example, any value between 60% and 100%), it indicates that the acoustic features of the first voice information are similar to the acoustic features of one or more historical valid voice information, and the device can adjust the sensitivity of the judgment condition to a preset value. For example, taking the above judgment threshold as an example, assuming that the original judgment threshold is 70%, as long as the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical valid voice information is greater than a certain threshold, the judgment threshold is adjusted to 60%.
[0246] In a specific embodiment, after the device obtains the above-mentioned first voice information, it extracts the acoustic features of the first voice information by calling the acoustic model stored in the memory, and then compares the extracted acoustic features with the acoustic features of historical invalid voice information (which may be one or more historical invalid voice information) to obtain the similarity between the acoustic features of the first voice information and the acoustic features of the historical invalid voice information (referred to as the second similarity). If the similarity between the acoustic features of the first voice information and the acoustic features of the historical invalid voice information is zero, then the device may not adjust the sensitivity of the decision condition according to the second similarity. If the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical invalid voice information is not zero, then the sensitivity of the decision condition may be adjusted in a negative correlation, that is, the greater the similarity (exemplarily, the similarity may be the maximum similarity among the obtained similarities, or the average degree of the obtained similarities, etc.), the lower the sensitivity is adjusted.
[0247] In a possible implementation, when the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical invalid voice information is greater than a certain threshold (the threshold can be, for example, any value between 60% and 100%), it indicates that the acoustic features of the first voice information are similar to the acoustic features of one or more historical invalid voice information, and the device can adjust the sensitivity of the judgment condition to a preset value. For example, taking the above judgment threshold as an example, assuming that the original judgment threshold is 70%, as long as the similarity between the acoustic features of the first voice information and the acoustic features of one or more historical invalid voice information is greater than a certain threshold, the judgment threshold is adjusted to 75%.
[0248] It should be noted that for Fig. 9 The device can adjust the sensitivity of the decision condition based on any one of the several influencing factors shown, or the device can adjust the sensitivity of the decision condition based on any multiple of the influencing factors.
[0249] In a possible implementation, the device may receive a command input by a user, and adaptively adjust the sensitivity of the decision condition based on the command. For example, the command may be a specific decision condition sensitivity specified by the user, or may be a command to turn off or cancel voice information validity recognition. The embodiment of the present application may adaptively adjust the sensitivity of the above decision condition according to the user's preferences, so as to better meet the user's needs and improve the user experience.
[0250] In one possible implementation, the sensitivity of the above-mentioned decision condition may be adjusted by another device or apparatus (for example, a server corresponding to the above-mentioned device, etc.) based on the above-mentioned one or more influencing factors and then sent to the above-mentioned device. After receiving the adjusted decision condition, the above-mentioned device may directly determine the validity of the above-mentioned first voice information based on the adjusted decision condition.
[0251] See also Fig.10 , Fig.10 The present invention provides a method for processing speech information, which includes but is not limited to the following steps:
[0252] S1001. Obtain first voice information.
[0253] The specific implementation of this step can be found in the above Figure 2 The description of step S201 in will not be repeated here.
[0254] S1002. When it is determined based on a decision condition that the first voice information is a valid voice control instruction, execute the operation indicated by the first voice information, wherein the decision condition is adjusted based on the environment in which the first voice information is generated.
[0255] In a specific embodiment, after the device obtains the first voice information, it can adaptively adjust the judgment condition for determining whether the first voice information is a valid voice command based on the environment in which the first voice information is generated. Specifically, the specific implementation of adjusting the judgment condition based on the environment in which the first voice information is generated can be seen in the above Figure 4 The corresponding description in will not be repeated here.
[0256] After the adjustment is completed, the device uses the adjusted judgment condition to determine whether the first voice information is valid. If the first voice information is valid, the device begins to perform semantic understanding of the first voice information. Specifically, the processor in the device can call the natural language understanding model in the memory to perform semantic understanding of the first voice information to obtain the specific meaning of the first voice information. After the device understands the meaning of the first voice information, it performs corresponding operations based on the meaning to provide the user with the required service. The meaning of the first voice information is the control instruction for the device to perform the corresponding operation.
[0257] In one possible method, the device can receive the sensitivity of the specified judgment condition input by the user, and then adaptively adjust the judgment condition for judging whether the first voice information is a valid voice instruction based on the sensitivity, so that when the adjusted judgment condition is used to judge whether the voice information is valid, the judgment sensitivity specified by the user can be achieved. After the device adjusts the judgment condition based on the sensitivity specified by the user, it uses the adjusted judgment condition to judge whether the first voice information is valid. And when the first voice information is valid, the device begins to perform semantic understanding of the first voice information to obtain the meaning of the first voice information, and performs corresponding operations based on the meaning to provide the user with the required service. The meaning of the first voice information is the control instruction for the device to perform the corresponding operation.
[0258] In a possible implementation manner, when the first voice information is determined to be a valid voice control instruction based on the judgment condition, the specific implementation of executing the operation indicated by the first voice information can be referred to the above Figure 2 The description of step S203 in will not be repeated here.
[0259] Optionally, the environmental conditions in which the first voice information is generated include one or more of the following: the number of people speaking within a second preset time period until the device acquires the first voice information, the number of people within a preset range when the first voice information is generated, the confidence level of the first voice information, or the signal-to-noise ratio of the first voice information.
[0260] The more people speak within a period of time, and / or the more people are around when the voice information is generated, the greater the probability that the voice information received by the device is idle chat, that is, invalid voice. In addition, the higher the confidence and / or signal-to-noise ratio of the voice information, the greater the probability that the device can correctly identify the sentences in the voice information, which will also affect the recognition of the effectiveness of the voice information. Therefore, adaptively adjusting the judgment conditions for judging the effectiveness of the voice information based on one or more of these items can better judge the effectiveness of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0261] In a specific embodiment, when the above environmental conditions indicate that the probability that the first voice information is valid is greater than the probability that it is invalid, the sensitivity of the above judgment condition is adjusted higher; when the above environmental conditions indicate that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the judgment condition is adjusted lower. Figure 4 The corresponding description in will not be repeated here.
[0262] Since the environmental conditions in which the voice information is generated will have a great impact on whether the voice information is a valid voice control instruction, the same or similar voice information may be a valid instruction in one environmental condition, but may not be a valid instruction in another environmental condition. Therefore, the embodiment of the present application adaptively adjusts the judgment conditions for judging the validity of voice information for voice information received in different environmental conditions, and can better judge the validity of voice information in different environmental conditions, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0263] In a possible implementation, the above-mentioned decision condition is adjusted based on the environmental conditions when the first voice information is generated, including: the decision condition is adjusted based on the environmental conditions and the continuous listening time of the device.
[0264] In a specific embodiment, the device can adaptively adjust the sensitivity of the above judgment condition based on the environment in which the first voice information is generated and the duration of the device's continuous listening to the voice information. Figure 4 The corresponding description in will not be repeated here.
[0265] Optionally, the longer the continuous listening time of the device is, the lower the sensitivity of the decision condition is adjusted. For the specific implementation of adjusting the decision condition based on the continuous listening time of the device to the voice information, please refer to the above Figure 5 The corresponding description in will not be repeated here.
[0266] Optionally, in a specific implementation, the device can configure a weight for each of the above-mentioned environmental conditions and listening time, and comprehensively adjust the sensitivity of the judgment condition in a weighted manner. For example, for the adjustment of the above-mentioned judgment threshold, it is assumed that the two influencing factors of the environmental conditions and listening time are adjusted comprehensively, and the corresponding weights set for the two factors are w4 and w5, and the adjusted judgment thresholds calculated corresponding to the two factors are a4 and a5, then, the adjusted judgment threshold determined by comprehensively considering the two factors is (a4*w4+a5*w5). It should be noted that this weighted comprehensive method is only an example. In actual implementation, the most or least adjusted of multiple influencing factors can also be taken as the final adjustment result, and so on. This scheme does not limit the specific comprehensive calculation process.
[0267] Since the longer the device continuously listens to the voice, the greater the probability that the voice information heard is invalid voice, therefore, in the embodiment of the present application, the judgment conditions for judging the validity of the voice information are adaptively adjusted in combination with the environmental conditions when the voice information is generated and the continuous listening time of the device, which can further better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0268] In a possible implementation, the above-mentioned decision condition is adjusted based on the environmental conditions and the continuous listening time of the device, including: the decision condition is adjusted based on the environmental conditions, the continuous listening time and historical voice information.
[0269] Optionally, the situation of the historical voice information includes one or more of the following: a first time interval between the acquisition of the first voice information and the last acquisition of valid voice information; a second time interval between the acquisition of the first voice information and the last acquisition of invalid voice information; the proportion of valid voice information and invalid voice information within a first preset time period before the first voice information is acquired; a first semantic correlation between the first voice information and the last valid voice information acquired; a second semantic correlation between the first voice information and the last invalid voice information acquired; a third correlation between the first voice information and the last valid voice information acquired by the device; the state of the voice dialogue between the device and the user up to the time when the first voice information is acquired; a first similarity between the acoustic features of the first voice information and the historical valid voice information; a second similarity between the acoustic features of the first voice information and the historical invalid voice information.
[0270] Optionally, the longer the first time interval is, the lower the sensitivity of the decision condition is adjusted.
[0271] Optionally, the longer the second time interval is, the lower the sensitivity of the decision condition is adjusted.
[0272] Optionally, when the first time interval is smaller than the second time interval, the sensitivity of the decision condition is increased.
[0273] Optionally, when the proportion of the valid voice information is greater than the proportion of the invalid voice information, the sensitivity of the decision condition is increased;
[0274] When the proportion of the valid voice information is less than the proportion of the invalid voice information, the proportion of the valid voice information is on an upward trend, and the sensitivity of the judgment condition is adjusted higher; when the proportion of the valid voice information is on a downward trend, the sensitivity of the judgment condition is adjusted lower.
[0275] Optionally, when a voice dialogue between the device and the user exists, the sensitivity of the decision condition is increased.
[0276] In this embodiment, the device can adaptively adjust the sensitivity of the above judgment condition based on the environment in which the first voice information is generated, the duration of the device's continuous listening to the voice information, and the historical voice information listened to by the device. Figure 4 The corresponding description in the above will not be repeated here; the specific implementation of adjusting the judgment condition based on the continuous listening time of the device to the voice information can be seen in the above Figure 5 The corresponding description in will not be repeated here; the specific implementation of adjusting the judgment condition based on the historical voice information listened to by the device can be found in the above Figure 5 , Fig. 6A , Figure 6B , Figure 7 or Fig. 9 The corresponding description in will not be repeated here.
[0277] Optionally, in this embodiment, the sensitivity of the judgment condition is adjusted in combination with the above-mentioned environmental conditions, listening time and historical voice information. The comprehensive adjustment method of weighted average introduced above may be used for comprehensive adjustment, or the most or least adjusted of multiple influencing factors may be taken as the final adjustment result, etc. This scheme does not limit the specific comprehensive calculation process.
[0278] Based on historical voice information, it can also help judge the validity of the currently acquired voice information. For example, if the currently acquired voice information is highly similar to the historically acquired valid voice information, then the probability that the currently acquired voice information is a valid voice command is high. On the contrary, if the currently acquired voice information is highly similar to the historically acquired invalid voice information, then the probability that the currently acquired voice information is an invalid voice command is high. Therefore, in addition to the environmental conditions and device listening time of the voice information described above, the embodiments of the present application also combine historical voice information to adaptively adjust the judgment conditions for judging the validity of the voice information, which can further better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0279] In a possible implementation, the above-mentioned decision condition is adjusted based on the environmental situation when the first voice information is generated, including: the decision condition is adjusted based on the environmental situation and the situation of historical voice information.
[0280] In this embodiment, the device can adaptively adjust the sensitivity of the above judgment condition based on the environment in which the first voice information is generated and the historical voice information listened to by the device. Figure 4The corresponding description in will not be repeated here; the specific implementation of adjusting the judgment condition based on the historical voice information listened to by the device can be found in the above Figure 5 , Fig. 6A , Figure 6B , Figure 7 or Fig. 9 The corresponding description in will not be repeated here.
[0281] Optionally, in this embodiment, the sensitivity of the judgment condition is adjusted in combination with the above-mentioned environmental conditions and historical voice information. The comprehensive adjustment method of weighted average introduced above may be used for comprehensive adjustment, or the most or least adjusted of multiple influencing factors may be taken as the final adjustment result, etc. This scheme does not limit the specific comprehensive calculation process.
[0282] Based on the foregoing description, the embodiments of the present application combine the environmental conditions in which the voice information is generated and the historical voice information to adaptively adjust the judgment conditions for judging the validity of the voice information, and can also further better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0283] In a possible implementation, the present application provides another voice information processing method, which includes: obtaining first voice information; and executing the operation indicated by the first voice information when it is determined that the first voice information is a valid voice control instruction based on a judgment condition, wherein the judgment condition is adjusted based on the continuous listening time of the device.
[0284] In a specific embodiment, the specific implementation of obtaining the first voice information can refer to the above Figure 2 The description of step S201 in the above is not repeated here. The specific implementation of executing the operation indicated by the first voice information when the first voice information is determined to be a valid voice control instruction based on the judgment condition can be referred to the above Figure 2 The description of step S203 in the above is not repeated here. The specific implementation of the above-mentioned adjustment of the judgment condition based on the continuous listening time of the device to the voice information can be referred to the above Figure 5 The corresponding description in will not be repeated here.
[0285] In the present application, since the longer the device continuously listens to the voice, the greater the probability that the voice information heard is invalid voice, therefore, the judgment conditions for judging the validity of the voice information can be adaptively adjusted according to the continuous listening time of the device, which can better judge the validity of the voice information, improve the accuracy of effective judgment, and reduce the false trigger rate of invalid signals.
[0286] In a possible implementation, the present application provides another voice information processing method, the method comprising: obtaining first voice information; and executing the operation indicated by the first voice information when it is determined that the first voice information is a valid voice control instruction based on a decision condition, wherein the decision condition is adjusted based on historical voice information.
[0287] In a specific embodiment, the specific implementation of obtaining the first voice information can refer to the above Figure 2 The description of step S201 in the above is not repeated here. The specific implementation of executing the operation indicated by the first voice information when the first voice information is determined to be a valid voice control instruction based on the judgment condition can be referred to the above Figure 2 The description of step S203 in the above will not be repeated here. The specific implementation of adjusting the decision condition based on the historical voice information listened to by the device can be found in the above Figure 5 , Fig. 6A , Figure 6B , Figure 7 or Fig. 9 The corresponding description in will not be repeated here.
[0288] Based on historical voice information, it can also help judge the validity of the currently acquired voice information. For example, if the currently acquired voice information is similar to the historically acquired valid voice information, then the probability that the currently acquired voice information is a valid voice command is high. On the contrary, if the currently acquired voice information is similar to the historically acquired invalid voice information, then the probability that the currently acquired voice information is an invalid voice command is high. Therefore, in this application, by adaptively adjusting the judgment conditions for judging the validity of voice information through historical voice information, the validity of voice information can be better judged, the accuracy of effective judgment can be improved, and the false trigger rate of invalid signals can be reduced.
[0289] In order to facilitate the overall understanding of the voice information processing method provided by the present application, for example, reference may be made to Fig.11 The flowchart shown in Fig.11 In the process, first, the voice interaction system of the device is awakened, and then the system starts to listen to the user's voice. After the system obtains the user's voice information, it inputs the voice information into the above-mentioned invalid rejection model to identify the validity of the voice information. If the voice information is recognized as valid, the voice information is semantically understood, and the command is parsed and executed based on the understood semantics.
[0290] After semantic understanding, the voice interaction system will determine whether to continue listening to the user's voice. If so, the voice listening operation will be performed. If it is determined not to continue listening, the listening operation will be terminated. For example, the determination of whether to continue listening can be based on a preset listening time. If the current listening time does not exceed the preset listening time range, the listening can be continued, otherwise the listening will be terminated.
[0291] If the voice information identified by the invalid rejection model is invalid, the system determines whether to continue listening to the user's voice, and if so, performs the operation of listening to the voice. If it is determined not to continue listening, the operation of ending listening is performed.
[0292] In a possible implementation manner, the above Fig.11 In the process shown, after determining that the voice information is valid, the two steps of determining whether to continue listening to the user's voice and semantic understanding can also be performed simultaneously, or first determine whether to continue listening to the user's voice, and then perform semantic understanding. This application does not limit the order in which the two operations are executed.
[0293] In addition, after the semantic understanding of the voice information, the semantics of the understood voice information can be returned to the process of voice information validity recognition, for example, input into the invalid rejection model for adjusting the sensitivity of the above-mentioned decision conditions.
[0294] In addition, it should be noted that the above-mentioned embodiments of the speech information processing method provided by the present application are mainly introduced by taking the decision conditions in the invalid rejection model as an example, but in actual applications, the decision conditions for the validity of speech information may not be limited to the decision conditions in the invalid rejection model. As long as the decision conditions for the validity of speech information are adjusted based on one or more of the influencing factors of the validity recognition of the above-mentioned speech information, they are within the protection scope of the present application.
[0295] To sum up, the voice information processing method provided by the present application starts from one or more influencing factors that affect the judgment of the validity of voice information, and adjusts in real time the sensitivity of the judgment conditions of the validity of the voice information obtained by the device, so that the device can flexibly and effectively judge the validity of voice information based on different scenarios and different user states, which can improve the accuracy of voice information validity recognition and reduce the false trigger rate of invalid voice information. At the same time, it saves computing resources wasted by the device due to false triggering, etc., and can also improve the user's physical examination during voice interaction.
[0296] The above mainly introduces the data communication processing method provided by the embodiment of the present application. It is understandable that, in order to realize the corresponding functions mentioned above, each device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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.
[0297] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0298] In the case of dividing each functional module into corresponding functional modules, Fig.12 A possible logical structure diagram of a device is shown, and the device may be the above-mentioned device, or may be a chip in the device, or may be a processing system in the device, etc. The device 1200 includes an acquisition unit 1201, an adjustment unit 1202, a semantic understanding unit 1203, and an execution unit 1204. Among them:
[0299] The acquisition unit 1201 is used to acquire the first voice information. The acquisition unit 1201 can be implemented by a communication interface or a transceiver, and can execute Figure 2 The operation described in step 201 shown.
[0300] The adjustment unit 1202 is used to adjust the judgment condition based on the influencing factors of the validity of the first voice information, and the judgment condition is one or more judgment conditions in the validity judgment model of the first voice information, and the validity is used to indicate whether the first voice information is a valid voice control instruction for the device that obtains the first voice information. The adjustment unit 1202 can be implemented by a processor and can execute Figure 2 The operations described in step 202 are shown.
[0301] The semantic understanding unit 1203 is used to perform semantic understanding on the first voice information when the first voice information is determined to be valid based on the adjusted decision condition. The semantic understanding unit 1203 can be implemented by a processor and can execute Figure 2The semantic understanding operation described in step 203 is shown.
[0302] The execution unit 1204 is used to execute the instruction of the first voice information. The execution unit 1204 can be implemented by a processor and can execute Figure 2 The execution operation described in step 203 is shown.
[0303] In a possible implementation manner, the adjusting unit 1202 is specifically configured to:
[0304] In the case where the probability that the first voice information is valid is greater than the probability that it is invalid based on the analysis of the influencing factors, the sensitivity of the decision condition is increased, and the higher the sensitivity of the decision condition, the higher the probability that the first voice information is determined to be valid through the decision condition;
[0305] When it is analyzed based on the influencing factors that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered. The lower the sensitivity of the decision condition, the lower the probability that the first voice information is determined to be valid through the decision condition.
[0306] In a possible implementation, the judgment condition includes a selection condition of a prediction module for the validity of the first voice information in the validity judgment model, and the prediction module includes a rule matching module and an inference module.
[0307] In a possible implementation, the decision condition includes a decision threshold of a reasoning module in the validity judgment model for predicting the validity of the first voice information.
[0308] In one possible implementation, the judgment condition includes a comprehensive judgment condition of a decision module in the validity judgment model; the comprehensive judgment condition is a judgment condition for determining whether the first voice signal is valid based on a prediction result; and the prediction result is a prediction result of the prediction module in the validity judgment model on the validity of the first voice information.
[0309] In a possible implementation manner, the influencing factor is one or more of the following:
[0310] The environment in which the first voice information is generated;
[0311] the continuous listening time of the device 1200;
[0312] a first time interval between when the first voice information is obtained and when valid voice information is most recently obtained;
[0313] a second time interval between when the first voice information is obtained and when invalid voice information is most recently obtained;
[0314] The ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained;
[0315] A first semantic correlation between the first voice information and the valid voice information acquired most recently;
[0316] A second semantic correlation between the first voice information and the invalid voice information acquired most recently;
[0317] a third correlation between the first voice information and the valid voice information most recently acquired by the device 1200;
[0318] The state of the voice dialogue between the device 1200 and the user up to the time when the first voice information is acquired;
[0319] A first similarity between the acoustic features of the first voice information and historical valid voice information;
[0320] The second similarity between the acoustic features of the first voice information and the historical invalid voice information.
[0321] In a possible implementation manner, the environment in which the first voice information is generated includes one or more of the following:
[0322] The number of speakers within the second preset time period until the device 1200 obtains the first voice information, the number of people within a preset range when the first voice information is generated, the confidence of the first voice information, or the signal-to-noise ratio of the first voice information.
[0323] Fig.12 The specific operations and beneficial effects of each unit in the illustrated device 1200 can be found in the corresponding description in the above method embodiment, which will not be repeated here.
[0324] In the case of dividing each functional module into corresponding functional modules, Fig.13 A possible logical structure diagram of a device is shown, and the device may be the above-mentioned device, or may be a chip in the device, or may be a processing system in the device, etc. The device 1300 includes an acquisition unit 1301 and an execution unit 1302. Among them:
[0325] The acquisition unit 1301 is used to acquire the first voice information. The acquisition unit 1301 can be implemented by a communication interface or a transceiver, and can execute Fig.10 The operation described in step S1001 shown.
[0326] The execution unit 1302 is used to execute the operation indicated by the first voice information when the first voice information is determined to be a valid voice control instruction based on the judgment condition, wherein the judgment condition is adjusted based on the environment in which the first voice information is generated. The execution unit 1302 can be implemented by a processor and can execute Fig.10 The operation described in step S1002 shown.
[0327] Fig.13 The specific operations and beneficial effects of each unit in the illustrated device 1300 can be found in the corresponding description in the above method embodiment, which will not be repeated here.
[0328] Fig.14 The figure shows a possible hardware structure diagram of the device provided by the present application, and the device may be the device in the method described in the above embodiment. The device 1400 includes: a processor 1401, a memory 1402, and a communication interface 1403. The processor 1401, the communication interface 1403, and the memory 1402 may be connected to each other or connected to each other through a bus 1404.
[0329] Exemplarily, the memory 1402 is used to store computer programs and data of the device 1400. The memory 1402 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read-only memory (CD-ROM).
[0330] In realization Fig.14 In the case of the embodiment shown, execution Fig.14 The software or program code required for the functions of all or part of the units in the EM2000 are stored in the memory 1402 .
[0331] In realization Fig.14 In the embodiment, if the software or program code required for the functions of some units is stored in the memory 1402, the processor 1401 can cooperate with other components (such as the communication interface 1403) to complete the functions in addition to calling the program code in the memory 1402 to implement some functions. Fig.14 Other functions described in the embodiment (such as the function of receiving or sending data).
[0332] There may be multiple communication interfaces 1403 for supporting the device 1400 to communicate, such as receiving or sending data or signals.
[0333] Exemplarily, the processor 1401 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The processor 1401 may be used to read the program stored in the memory 1402 and perform the following operations:
[0334] Acquire first voice information; adjust the judgment condition based on the influencing factors of the validity of the first voice information, the judgment condition being one or more judgment conditions in the validity judgment model of the first voice information, and the validity is used to indicate whether the first voice information is a valid voice control instruction for the device 1400 that acquires the first voice information; when it is determined that the first voice information is valid based on the adjusted judgment condition, perform semantic understanding on the first voice information and execute the instruction of the first voice information.
[0335] In a possible implementation manner, the adjusting the decision condition based on the influencing factor of the validity of the first voice information includes:
[0336] In the case where the probability that the first voice information is valid is greater than the probability that it is invalid based on the analysis of the influencing factors, the sensitivity of the decision condition is increased, and the higher the sensitivity of the decision condition, the higher the probability that the first voice information is determined to be valid through the decision condition;
[0337] When it is analyzed based on the influencing factors that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered. The lower the sensitivity of the decision condition, the lower the probability that the first voice information is determined to be valid through the decision condition.
[0338] Fig.14 The specific operations and beneficial effects of each unit in the device 1400 shown can be found in the corresponding description in the above method embodiment, which will not be repeated here.
[0339] Fig.15 This is a schematic diagram of the structure of another voice information processing device provided in an embodiment of the present application. The device may be the device in the above embodiment, or may be a chip in the device, or may be a processing system in the device, etc., and may implement the voice information processing method provided in the present application and its various optional embodiments. Fig.15 As shown, the speech information processing device 1500 includes: a processor 1501, and an interface circuit 1502 coupled to the processor 1501. It should be understood that although Fig.15Only one processor and one interface circuit are shown in the figure. The speech information processing apparatus 1500 may include other numbers of processors and interface circuits.
[0340] The interface circuit 1502 is used to communicate with other components of the device 1500, such as a memory or another processor. The processor 1501 is used to perform signal interaction with other components through the interface circuit 1502. The interface circuit 1502 may be an input / output interface of the processor 1501.
[0341] For example, the processor 1501 reads a computer program or instruction in a memory coupled thereto through the interface circuit 1502, and decodes and executes these computer programs or instructions. It should be understood that these computer programs or instructions may include various functional programs in the above method. When the corresponding functional program is decoded and executed by the processor 1501, the speech information processing device 1500 can implement the solution in the speech information processing method provided in the embodiment of the present application.
[0342] Optionally, these function programs are stored in a memory outside the speech information processing device 1500. When the function program is decoded and executed by the processor 1501, part or all of the content of the function program is temporarily stored in the internal memory.
[0343] Optionally, these function programs are stored in a memory inside the speech information processing device 1500. When the function programs are stored in the memory inside the speech information processing device 1500, the speech information processing device 1500 can be set in the device of the embodiment of the present application.
[0344] Optionally, part of the content of these functional programs is stored in a memory outside the voice information processing device 1500, and other part of the content of these functional programs is stored in a memory inside the voice information processing device 1500.
[0345] It should be understood that Figure 1 , Fig.12 or Fig.13 , Fig.14 and Fig.15 Any of the devices or apparatuses shown can be combined with each other. Figure 1 , Fig.12 or Fig.13 , Fig.14 and Fig.15 Any of the devices or apparatuses shown and the design details of the various optional embodiments can be referenced to each other, or to Figure 2 or Fig.10 Any of the voice information processing methods shown and the design details of each optional embodiment will not be repeated here.
[0346] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the operations performed by the server in any one of the above-mentioned embodiments and possible embodiments thereof.
[0347] The embodiment of the present application also provides a computer program product. When the computer program product is read and executed by a computer, the operations performed by the server in any one of the above-mentioned embodiments and possible embodiments thereof will be executed.
[0348] The embodiment of the present application also provides a computer program, which, when executed on a computer, enables the computer to implement the operations performed by the server in any one of the above-mentioned embodiments and possible embodiments thereof.
[0349] In summary, the present application provides a voice information processing method and device, which can improve the accuracy of effective voice recognition and reduce the false trigger rate of invalid voice in different intelligent voice interaction scenarios.
[0350] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various described examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. Both the first image and the second image may be images, and in some cases, may be separate and different images.
[0351] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0352] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0353] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0354] 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing speech information, characterized in that: The method comprises: Acquiring first voice information; In the case where the first voice information is determined to be a valid voice control instruction based on a decision condition, executing the operation indicated by the first voice information, wherein the decision condition is adjusted based on the environment in which the first voice information is generated and the situation of historical voice information; The historical voice information includes one or more of the following: a first time interval between when the first voice information is acquired and when the last valid voice information is acquired; a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently; The ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained; A first correlation between the first voice information and the most recently acquired valid voice information; A second semantic correlation between the first voice information and the invalid voice information acquired most recently; Until the first voice information is acquired, there is a state of voice dialogue between the device and the user.
2. The method according to claim 1, characterized in that: The environment in which the first voice information is generated includes one or more of the following: The number of speakers within a second preset time period up to the time when the first voice information is acquired, the number of people within a preset range when the first voice information is generated, the confidence level of the first voice information, or the signal-to-noise ratio of the first voice information.
3. The method according to claim 1, characterized in that The decision condition is adjusted based on the environmental conditions when the first voice information is generated and the historical voice information, including: the decision condition is adjusted based on the environmental conditions, the continuous listening time and the historical voice information.
4. The method according to claim 1, characterized in that: In the case where the environmental condition indicates that the probability that the first voice information is valid is greater than the probability that it is invalid, the sensitivity of the decision condition is increased; In the case where the environmental condition indicates that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered.
5. The method according to claim 3, characterized in that: The longer the continuous listening time is, the lower the sensitivity of the decision condition is adjusted.
6. The method according to any one of claims 1 to 5, characterized in that: The historical voice information includes a first time interval between when the first voice information is acquired and when the last valid voice information is acquired; The longer the first time interval is, the lower the sensitivity of the decision condition is adjusted.
7. The method according to any one of claims 1 to 5, characterized in that: The historical voice information includes a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently; The longer the second time interval is, the lower the sensitivity of the decision condition is adjusted.
8. The method according to any one of claims 1 to 5, characterized in that: The historical voice information includes a first time interval between when the first voice information is obtained and when valid voice information is last obtained, and a second time interval between when the first voice information is obtained and when invalid voice information is last obtained; When the first time interval is smaller than the second time interval, the sensitivity of the decision condition is increased.
9. The method according to any one of claims 1 to 5, characterized in that: The historical voice information includes the ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained; When the proportion of the valid voice information is greater than the proportion of the invalid voice information, the sensitivity of the decision condition is increased; When the proportion of valid voice information is less than the proportion of invalid voice information, the proportion of valid voice information shows an upward trend, and the sensitivity of the judgment condition is increased; when the proportion of valid voice information shows a downward trend, the sensitivity of the judgment condition is lowered.
10. The method according to any one of claims 1 to 5, characterized in that: The historical voice information includes the state of the voice dialogue between the device and the user up to the time when the first voice information is acquired; In the case where the device is in a voice dialogue with the user, the sensitivity of the decision condition is increased.
11. A voice information processing device, characterized in that: The device comprises: An acquiring unit, configured to acquire first voice information; an execution unit, configured to execute the operation indicated by the first voice information when the first voice information is determined to be a valid voice control instruction based on a decision condition, wherein the decision condition is adjusted based on the environment in which the first voice information is generated and the situation of historical voice information; The historical voice information includes one or more of the following: a first time interval between when the first voice information is acquired and when the last valid voice information is acquired; a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently; The ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained; A first correlation between the first voice information and the most recently acquired valid voice information; A second semantic correlation between the first voice information and the invalid voice information acquired most recently; Until the first voice information is acquired, there is a state of voice dialogue between the device and the user.
12. The device according to claim 11, characterized in that The environment in which the first voice information is generated includes one or more of the following: The number of speakers within a second preset time period up to the time when the first voice information is acquired, the number of people within a preset range when the first voice information is generated, the confidence level of the first voice information, or the signal-to-noise ratio of the first voice information.
13. The device according to claim 11, characterized in that The decision condition is adjusted based on the environmental conditions when the first voice information is generated and the historical voice information, including: the decision condition is adjusted based on the environmental conditions, the continuous listening time and the historical voice information.
14. The device according to claim 11, characterized in that In the case where the environmental condition indicates that the probability that the first voice information is valid is greater than the probability that it is invalid, the sensitivity of the decision condition is increased; In the case where the environmental condition indicates that the probability that the first voice information is valid is less than the probability that it is invalid, the sensitivity of the decision condition is lowered.
15. The device according to claim 13, characterized in that The longer the continuous listening time is, the lower the sensitivity of the decision condition is adjusted.
16. The device according to any one of claims 11 to 15, characterized in that The historical voice information includes a first time interval between when the first voice information is acquired and when the last valid voice information is acquired; The longer the first time interval is, the lower the sensitivity of the decision condition is adjusted.
17. The device according to any one of claims 11 to 15, characterized in that The historical voice information includes a second time interval between when the first voice information is acquired and when invalid voice information is acquired most recently; The longer the second time interval is, the lower the sensitivity of the decision condition is adjusted.
18. The device according to any one of claims 11 to 15, characterized in that The historical voice information includes a first time interval between when the first voice information is obtained and when valid voice information is last obtained, and a second time interval between when the first voice information is obtained and when invalid voice information is last obtained; When the first time interval is smaller than the second time interval, the sensitivity of the decision condition is increased.
19. The device according to any one of claims 11 to 15, characterized in that The historical voice information includes the ratio of valid voice information to invalid voice information within a first preset time period before the first voice information is obtained; When the proportion of the valid voice information is greater than the proportion of the invalid voice information, the sensitivity of the decision condition is increased; When the proportion of valid voice information is less than the proportion of invalid voice information, the proportion of valid voice information shows an upward trend, and the sensitivity of the judgment condition is increased; when the proportion of valid voice information shows a downward trend, the sensitivity of the judgment condition is lowered.
20. The device according to any one of claims 11 to 15, characterized in that The historical voice information includes the state of the voice dialogue between the device and the user up to the time when the first voice information is acquired; In the case where the device is in a voice dialogue with the user, the sensitivity of the decision condition is increased.
21. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 10.
22. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from a memory of the electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the method described in any one of claims 1 to 10.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 10.
24. A computer program product, characterized in that When the computer program product is executed by a processor, the method according to any one of claims 1 to 10 will be performed.
