A voice control method, device, chip, earphone and system
By determining whether the voice signal comes from before and after the target user in the voice control method, and stopping the recognition of voice signals from non-target users, the problem of high power consumption of the voice control method in the existing technology is solved, and the battery life and user experience of the device are improved.
Patent Information
- Application Number
- CN201980002221.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-09-20
AI Technical Summary
Existing voice control methods require a large amount of algorithm operations for keyword recognition technology, which results in high power consumption and affects the battery life and user experience of electronic products.
Before identifying whether the voice signal contains keywords or during the recognition process, determine whether the voice signal comes from the target user. If it does not come from the target user, stop the recognition and reduce power consumption.
By reducing the voice signal recognition of non-target users, the power consumption of the voice control method is reduced and the battery life of the electronic device is improved.
Smart Images

Figure CN113039601B
Abstract
Description
Technical Field
[0001] The present application relates to the field of voice processing, and in particular to a voice control method, device, chip, headset and system. Background Art
[0002] With the development of artificial intelligence, the function of controlling smart devices through voice has gradually become popular. For example, users can wake up the Siri voice assistant on their mobile phones by saying "Hey Siri" while wearing headphones. The function of controlling smart devices such as mobile phones and laptops through voice control is becoming more and more common. However, voice control through keyword recognition technology requires a large amount of algorithm calculations, resulting in high power consumption, which affects the battery life of electronic products and poor user experience. Summary of the invention
[0003] In view of the problem that the voice control method in the prior art consumes high power, the present application provides a voice control method, device, chip, headset and system.
[0004] A first aspect of an embodiment of the present application provides a voice control method, comprising:
[0005] Identify whether the voice signal contains keywords;
[0006] If the voice signal contains a keyword, the command corresponding to the keyword is executed or a command is sent;
[0007] Before starting to identify whether the voice signal contains the keyword, determining whether the voice signal comes from the target user, and if the voice signal comes from the target user, starting to identify whether the voice signal contains the keyword; or
[0008] In the process of identifying whether the voice signal contains the keyword, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the identification of whether the voice signal contains the keyword is stopped.
[0009] In addition, in combination with the first aspect, in an implementation method of the first aspect, before starting to identify whether the voice signal contains keywords, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, it is determined whether the next frame of the voice signal comes from the target user.
[0010] In addition, in combination with the first aspect and its above-mentioned implementation method, in another implementation method of the first aspect, in the process of identifying whether a voice signal contains keywords, it is determined whether the voice signal comes from a target user. If the voice signal comes from the target user, then continue to identify whether the voice signal contains keywords.
[0011] In addition, in combination with the first aspect and its above-mentioned implementation method, in another implementation method of the first aspect, before determining whether the voice signal comes from the target user, it also includes detecting whether there is a voice signal. If a voice signal is detected, determining whether the voice signal comes from the target user.
[0012] In addition, in combination with the first aspect and its above-mentioned implementation method, in another implementation method of the first aspect, if in the process of identifying whether a voice signal contains keywords, it is determined whether the voice signal comes from the target user, then before starting to identify whether the voice signal contains keywords, it is detected whether there is a voice signal; if there is a voice signal, start to identify whether the voice signal contains keywords.
[0013] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, the keyword includes N syllables, where N is an integer greater than or equal to 2; and identifying whether the speech signal includes the keyword includes:
[0014] According to the preset syllable order, identify in sequence whether the speech signal contains N syllables;
[0015] After recognizing that the speech signal includes the nth syllable in the preset syllable order, identify whether the speech signal includes the (n+1)th syllable in the preset syllable order, until N syllables are recognized, n is an integer, n is greater than 0 and less than N.
[0016] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, stopping identifying whether the voice signal contains the keyword includes:
[0017] before identifying whether the speech signal contains the (n+1)th syllable, stopping identifying whether the speech signal contains the keyword; or
[0018] In the process of identifying whether the speech signal includes the nth syllable, the identifying whether the speech signal includes the keyword is stopped.
[0019] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, identifying whether the voice signal contains the keyword includes:
[0020] Use the mth algorithm to identify for the mth time whether the voice signal contains keywords;
[0021] After using the mth algorithm to identify that the voice signal contains the keyword, use the (m+1)th algorithm to identify whether the voice signal contains the keyword, until the Mth voice signal is identified to contain the keyword;
[0022] M is an integer, M is greater than or equal to 2, the complexity of the mth algorithm increases as m increases, m is an integer and greater than 0, and m is less than M.
[0023] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, stopping identifying whether the voice signal contains the keyword includes:
[0024] Stop recognizing whether the speech signal contains keywords before using the (m+1)th algorithm to recognize whether the speech signal contains keywords or
[0025] In the process of using the mth algorithm to identify whether the speech signal contains the keyword, the identification of whether the speech signal contains the keyword is stopped.
[0026] In addition, in combination with the first aspect and the above implementation manner thereof, in another implementation manner of the first aspect, before identifying whether the voice signal contains a keyword or determining whether the voice signal comes from a target user, the method further includes:
[0027] Collecting voice signals;
[0028] The collected voice signals are cached.
[0029] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, collecting the voice signal includes:
[0030] One or both of using a vibration sensor to collect a voice signal or using a microphone to collect a voice signal.
[0031] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, determining whether the voice signal comes from the target user includes:
[0032] If the energy of the voice signal collected by the vibration sensor exceeds the threshold energy, it is determined that the voice signal comes from the target user; or
[0033] If the voice signal collected by the microphone meets the preset conditions for voiceprint recognition, it is determined that the voice signal comes from the target user.
[0034] In addition, in combination with the first aspect and the above implementation manner, in another implementation manner of the first aspect, before determining whether the voice signal comes from the target user, the collected voice signal is filtered.
[0035] In addition, in combination with the first aspect and the above-mentioned implementation method, in another implementation method of the first aspect, while the collected voice signal is cached, it is detected whether there is a voice signal. If there is a voice signal, it is determined whether the voice signal comes from the target user.
[0036] In addition, in combination with the first aspect and its above-mentioned implementation method, in another implementation method of the first aspect, the instruction includes: waking up the voice assistant, adjusting the volume, adjusting the brightness, lighting up the screen, making a call, playing music, etc. One or more of the above.
[0037] A second aspect of an embodiment of the present application provides a voice control device, including:
[0038] A keyword recognition module, used to identify whether a voice signal contains keywords;
[0039] The instruction module is connected to the keyword recognition module, and is used to execute the instruction corresponding to the keyword or send the instruction if the keyword recognition module recognizes that the voice signal contains the keyword;
[0040] A judgment module, which is connected to the keyword module and is used to judge whether the voice signal comes from the target user before the keyword module starts to recognize whether the voice signal contains the keyword. If the voice signal comes from the target user, the keyword recognition module starts to recognize whether the voice signal contains the keyword; or
[0041] In the process of the keyword module identifying whether the voice signal contains the keyword, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the keyword recognition module stops identifying whether the voice signal contains the keyword.
[0042] In addition, in combination with the second aspect, in an implementation method of the second aspect, before the keyword module starts to identify whether the voice signal contains keywords, the judgment module is used to determine whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the judgment module is also used to continue to determine whether the next frame of voice signal comes from the target user.
[0043] In addition, in combination with the second aspect and its above-mentioned implementation method, in another implementation method of the second aspect, in the process of the keyword module identifying whether the voice signal contains keywords, the judgment module is used to determine whether the voice signal comes from the target user. If the voice signal comes from the target user, the keyword recognition module continues to identify whether the voice signal contains keywords.
[0044] In addition, in combination with the second aspect and its above-mentioned implementation method, in another implementation method of the second aspect, it also includes a voice activity detection module, which is used to detect whether there is a voice signal before the judgment module determines whether the voice signal comes from the target user. If a voice signal is detected, the judgment module determines whether the voice signal comes from the target user.
[0045] In addition, in combination with the second aspect and the above implementation manner thereof, in another implementation manner of the second aspect, in the process of the keyword recognition module identifying whether the voice signal contains the keyword, the judgment module determines whether the voice signal comes from the target user, and before the keyword recognition module starts to identify whether the voice signal contains the keyword, the voice activity detection module detects whether there is a voice signal;
[0046] If there is a voice signal in the voice activity detection module, the keyword recognition module starts to recognize whether the voice signal contains keywords.
[0047] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, the keyword includes N syllables, N is an integer greater than or equal to 2; and the keyword recognition module includes:
[0048] Syllable recognition module,
[0049] Used to identify whether the speech signal contains N syllables in sequence according to a preset syllable order;
[0050] After the syllable recognition module recognizes that the voice signal includes the nth syllable in the preset syllable order, the syllable recognition module identifies whether the voice signal includes the (n+1)th syllable in the preset syllable order until N syllables are recognized, where n is an integer greater than 0 and less than N.
[0051] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, before the syllable recognition module recognizes whether the speech signal contains the (n+1)th syllable, the keyword recognition module stops recognizing whether the speech signal contains the keyword; or
[0052] During the process of the syllable recognition module recognizing whether the speech signal contains the nth syllable, the keyword recognition module stops recognizing whether the speech signal contains the keyword.
[0053] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, the keyword recognition module includes:
[0054] A hierarchical recognition module, used for using an mth algorithm to perform an mth recognition on whether a speech signal contains a keyword;
[0055] After the hierarchical recognition module uses the mth algorithm to recognize that the voice signal contains the keyword, the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the voice signal contains the keyword, until it recognizes whether the voice signal contains the keyword M times;
[0056] M is an integer, M is greater than or equal to 2, the complexity of the mth algorithm increases as m increases, m is an integer and greater than 0, and m is less than M.
[0057] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, before the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the voice signal contains the keyword, the keyword recognition module stops recognizing whether the voice signal contains the keyword; or
[0058] In the process of the hierarchical recognition module using the mth algorithm to recognize whether the speech signal contains the keyword, the keyword recognition module stops recognizing whether the speech signal contains the keyword.
[0059] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, the following is further included:
[0060] A collection module, used for collecting voice signals;
[0061] The cache module is used to cache the collected voice signal before the keyword recognition module recognizes whether the voice signal contains a keyword or before the judgment module determines whether the voice signal comes from a target user.
[0062] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, the acquisition module includes one or both of a vibration sensor module or a microphone module;
[0063] The vibration sensor module is used to collect voice signals using a vibration sensor;
[0064] The microphone module is used to collect voice signals using a microphone.
[0065] In addition, in combination with the second aspect and the above implementation manner, in another implementation manner of the second aspect, the judgment module includes:
[0066] An energy judgment module is used to judge that the voice signal comes from the target user if the energy of the voice signal collected by the vibration sensor module exceeds the threshold energy; or
[0067] The voiceprint recognition module is used to determine that the voice signal comes from the target user if the voice signal collected by the microphone module meets the preset conditions for voiceprint recognition.
[0068] In addition, in combination with the second aspect and its above-mentioned implementation method, in another implementation method of the second aspect, it also includes a filtering module, which is used to filter the voice signal collected by the collection module before the judgment module judges whether the voice signal comes from the target user.
[0069] In addition, in combination with the second aspect and its above-mentioned implementation method, in another implementation method of the second aspect, while the cache module caches the voice signal, the voice activity detection module detects whether there is a voice signal. If the voice activity detection module detects the presence of a voice signal, the judgment module begins to judge whether the voice signal comes from the target user.
[0070] A third aspect of an embodiment of the present application provides a chip, which executes the voice control method described in the first aspect above.
[0071] A fourth aspect of an embodiment of the present application provides an earphone, comprising the chip described in the third aspect.
[0072] A fifth aspect of the embodiments of the present application provides a voice control system, which executes the voice control method described in the first aspect above.
[0073] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the embodiments of the present application provide a voice control method, device, chip, headset and system, which judges whether the voice signal comes from the target user before starting to identify whether the voice signal contains keywords; or judges whether the voice signal comes from the target user during the process of identifying whether the voice signal contains keywords. If the voice signal comes from a non-target user, the recognition of whether the voice signal contains keywords is stopped, thereby reducing the power consumption of the voice control method and improving the battery life. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative labor.
[0075] Figure 1 A flow chart of a voice control method according to an embodiment of the present application;
[0076] Figure 2 A flowchart of another voice control method according to an embodiment of the present application;
[0077] Figure 3 A flowchart of another voice control method according to an embodiment of the present application;
[0078] Figure 4 A flowchart of another voice control method according to an embodiment of the present application;
[0079] Figure 5 A flowchart of another voice control method according to an embodiment of the present application;
[0080] Figure 6 A flowchart of another voice control method according to an embodiment of the present application;
[0081] Figure 7 A flowchart of another voice control method according to an embodiment of the present application;
[0082] Figure 8 A flowchart of a method for identifying whether a voice signal contains a keyword according to an embodiment of the present application;
[0083] Fig. 9 A flowchart of a method for stopping recognition of whether a voice signal contains a keyword according to an embodiment of the present application;
[0084] Fig.10 A flowchart of another method for identifying whether a voice signal contains a keyword according to an embodiment of the present application;
[0085] Fig.11 A flowchart of another method for stopping recognition of whether a voice signal contains a keyword according to an embodiment of the present application;
[0086] Fig.12 A flowchart of another voice control method according to an embodiment of the present application;
[0087] Fig.13 A flowchart of another voice control method according to an embodiment of the present application;
[0088] Fig.14 A flowchart of another voice control method according to an embodiment of the present application;
[0089] Fig.15 A flowchart of another voice control method according to an embodiment of the present application;
[0090] Fig.16 A flowchart of another voice control method according to an embodiment of the present application;
[0091] Fig.17 A flowchart of another voice control method according to an embodiment of the present application;
[0092] Fig.18 A schematic diagram of the structure of a voice control device according to an embodiment of the present application;
[0093] Fig.19 This is a schematic diagram of the structure of another voice control device according to an embodiment of the present application;
[0094] Fig. 20 A schematic diagram of the structure of a chip according to an embodiment of the present application;
[0095] Fig.21 A schematic diagram of the structure of a voice control system according to an embodiment of the present application. DETAILED DESCRIPTION
[0096] In order to make the purpose, technical scheme and advantages of the present application clearer, some embodiments of the present application will be described in detail in the following by way of example in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each example, many technical details are provided in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.
[0097] An embodiment of the present application provides a voice control method, which can be applied to electronic products with voice control functions, such as wearable devices such as headphones and smart glasses, or non-wearable devices such as smart speakers, sweeping robots, computers, mobile phones, etc. Figure 1 Flow chart of a voice control method according to an embodiment of the present application. A voice control method according to an embodiment of the present application comprises the following steps:
[0098] 001: Identify whether the voice signal contains keywords;
[0099] In step 001, the voice signal is collected by the electronic device. The voice signal can be collected through a microphone or a vibration sensor. For wearable devices such as headphones, necklaces, helmets, smart glasses, etc. that have a certain physical contact with the skull after being worn, the voice signal can be collected through the bone conduction path, or multiple voice signal collection methods can be used at the same time. This embodiment does not limit the voice signal collection method.
[0100] If the voice signal contains a keyword, then executing step 001a: executing a command corresponding to the keyword or sending a command;
[0101] Before step 001, step 002 is performed: determining whether the voice signal comes from the target user;
[0102] Before starting to identify whether the voice signal contains keywords, step 002 is executed. If the voice signal comes from the target user, then start to identify whether the voice signal contains keywords. Therefore, step 001 will be executed only after it is determined that the voice signal comes from the target user, so as to prevent the instruction corresponding to the keyword from being mistakenly executed or the instruction from being mistakenly sent after the keyword of a non-target user is identified. In addition, the keyword identification step of identifying whether the voice signal contains keywords consumes more power. Compared with determining whether the voice signal comes from the target user after keyword identification, determining whether the voice signal comes from the target user before keyword identification can reduce power consumption. In this embodiment, the target user can be set by the user himself, and the data of the target user set by the user can be saved in the electronic device for the electronic device to use at any time. It should be noted that the voice control method in this embodiment does not limit the number of electronic devices. Taking the mobile phone and the earphone as examples, the voice signal can be collected at the earphone, and the voice signal collected by the earphone is transmitted to the mobile phone to perform keyword recognition at the mobile phone. The data of the target user can be stored in the mobile phone, and the keyword recognition is performed at the mobile phone to reduce the power consumption of the earphone; in addition, if the earphone has sufficient computing and storage capabilities, the data of the target user can also be stored in the earphone, and the keyword recognition can also be performed by the earphone. If the voice signal contains a keyword, the earphone sends the instruction corresponding to the keyword to the mobile phone to realize voice control of the mobile phone. Taking a separate mobile phone as an example, the mobile phone can collect voice signals, and the data of the target user is stored in the mobile phone for keyword recognition. If the voice signal contains a keyword, the mobile phone executes the instruction corresponding to the keyword. It should be noted that the voice control method can be applied to the same device, or it can be applied to two or more devices with or without physical connection at the same time. The wearer can be set as the target user, and the non-wearer can also be set as the target user. One or more target users can be set, and this embodiment does not limit this. The target user can be a user who has registered user data in the device, and the non-target user is other users except the target user, for example, a stranger. The keyword can be set to one or more, and this embodiment does not limit this.
[0103] Alternatively, during the execution of step 001, execute step 002; Figure 2 This is a flow chart of another voice control method according to an embodiment of the present application, in the process of identifying whether a voice signal contains a keyword, determining whether the voice signal comes from a target user; Figure 2In the process of determining whether the voice signal contains keywords, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, step 003a is executed: the recognition of whether the voice signal contains keywords is stopped. Step 003a can control step 001 to stop. In the process of identifying whether the voice signal contains keywords, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the recognition of whether the voice signal contains keywords can be stopped. The process of keyword recognition is feedback-adjusted by the result of determining whether the voice signal comes from the target user. Once the voice signal is detected to be from a non-target user, the keyword recognition is stopped during the keyword recognition process. There is no need to complete the entire keyword recognition, which can reduce power consumption.
[0104] An embodiment of the present application provides a voice control method, which reduces the power consumption of voice control and improves battery life by judging whether a voice signal comes from a target user before starting to identify whether the voice signal contains keywords; or judging whether the voice signal comes from the target user during the process of identifying whether the voice signal contains keywords. If the voice signal comes from a non-target user, the recognition of whether the voice signal contains keywords is stopped, thereby reducing the power consumption of voice control and improving battery life.
[0105] Based on the contents disclosed in the above embodiments, in this embodiment, Figure 3 For a flow chart of another voice control method provided in the embodiment of the present application, please refer to Figure 3 Before starting to identify whether a voice signal contains keywords, it is determined whether the voice signal comes from a target user. If the voice signal comes from a non-target user, it is determined whether the next frame of voice signal comes from the target user. If the voice signal comes from a non-target user, it is not determined whether the voice signal contains keywords, but it is determined whether the next frame of voice signal comes from the target user. In this way, keyword recognition is performed only when the voice signal comes from the target user, which further reduces the power consumption of voice control and improves the battery life of electronic devices.
[0106] Based on the contents disclosed in the above embodiments, in this embodiment, Figure 4 For a flow chart of another voice control method provided in the embodiment of the present application, please refer to Figure 4, in the process of identifying whether the voice signal contains keywords, it is determined whether the voice signal comes from the target user, that is, while determining whether the voice signal comes from the target user, it is also determined whether the voice signal contains keywords. If the voice signal comes from the target user, step 003b is executed: continuing to identify whether the voice signal contains keywords may not affect the process of keyword recognition. The keyword recognition module continues to complete keyword recognition until it is determined whether the voice signal contains keywords. In this embodiment, step 003b may not be fed back to step 001, that is, only when the voice signal comes from a non-target user, 003a is fed back to 001. When the voice signal comes from the target user, 003b may not be fed back, so as not to interfere with the process of 001. If the voice signal contains keywords, the instruction corresponding to the keyword is executed or sent. If the voice signal does not contain keywords, the instruction corresponding to the keyword is not executed or sent. Step 003a can control step 001 to stop. If the voice signal comes from a non-target user, the step 001 is controlled to stop.
[0107] Based on the contents disclosed in the above embodiments, Figure 5 , Figure 6 For a flow chart of another voice control method provided in the embodiment of the present application, please refer to Figure 5 , Figure 6 Before determining whether the voice signal comes from the target user, step 004 may be performed: detecting whether a voice signal exists. If a voice signal is detected, determine whether the voice signal comes from the target user. Voice activity detection technology may be used to determine whether a voice signal exists, which is used to distinguish whether the collected signal is noise or a user's voice signal. If human voice activity is detected, that is, the voice signal of the target user or non-target user is detected, then determine whether the voice signal comes from the target user. The presence of a voice signal may be continuously detected until a voice signal is detected, and then determine whether the voice signal comes from the target user. The presence of a voice signal may also be detected again at intervals to further reduce power consumption.
[0108] Based on the contents disclosed in the above embodiments, Figure 7 For a flow chart of another voice control method provided in the embodiment of the present application, please refer to Figure 7If, in the process of identifying whether a voice signal contains a keyword, it is determined whether the voice signal comes from the target user, then before starting to identify whether the voice signal contains a keyword, that is, before executing step 001, step 004 can be executed: detecting whether there is a voice signal. If there is a voice signal, start identifying whether the voice signal contains a keyword; if there is no voice signal, do not execute 001. In this embodiment, keyword recognition and judging whether the voice signal comes from the target user are started only when the presence of a voice signal is detected. In this embodiment, keyword recognition and judging whether the voice signal comes from the target user are performed simultaneously.
[0109] Based on the contents disclosed in the above embodiments, in this embodiment, the keyword includes N syllables, where N is an integer greater than or equal to 2; the step of identifying whether the voice signal contains the keyword includes:
[0110] According to the preset syllable order, identify in sequence whether the speech signal contains N syllables;
[0111] After recognizing that the speech signal includes the nth syllable in the preset syllable order, identify whether the speech signal includes the (n+1)th syllable in the preset syllable order, until N syllables are recognized, n is an integer, n is greater than 0 and less than N.
[0112] In this embodiment, starting from recognizing the first syllable, keyword recognition can be performed in the following manner:
[0113] Identify whether the speech signal contains the first syllable of the keyword;
[0114] If the speech signal includes the first syllable, identifying whether the speech signal includes the second syllable in the keyword;
[0115] If the speech signal contains the nth syllable, then it is identified whether the speech signal contains the (n+1)th syllable in the keyword, until the Nth syllable is recognized.
[0116] Please refer to Figure 8 In this embodiment, a keyword containing 4 syllables is used as an example to illustrate that the step of identifying whether a speech signal contains a keyword includes:
[0117] 010: Identify whether the voice signal contains the first syllable of the keyword;
[0118] If the voice signal contains the first syllable, execute 011: identify whether the voice signal contains the second syllable of the keyword;
[0119] If the voice signal contains the second syllable, execute 012: identify whether the voice signal contains the third syllable of the keyword;
[0120] If the voice signal contains the third syllable, execute 013: identify whether the voice signal contains the fourth syllable of the keyword; so far, the recognition of the fourth syllable of the keyword is completed.
[0121] In the above process of identifying whether the voice signal contains the Nth syllable in the keyword, if the voice signal is identified as not containing any nth syllable, it is not necessary to identify the subsequent syllables to reduce power consumption. If the voice signal is identified as not containing any nth syllable, return to step 004 to continue to detect whether there is a voice signal. If the next frame of voice signal is detected, it is determined whether to execute the instruction corresponding to the keyword or whether to send the instruction based on the content disclosed in the above embodiment.
[0122] Take the keyword "Hey Siri" as an example, it can be split into three syllables, "Hey", "Si", and "Ri", and recognized syllable by syllable. The power consumption required for each syllable recognition can be calculated according to the duration of the syllable. The power consumption of each level may be approximate, depending on the duration of each syllable. When the recognized voice signal does not contain the first syllable, there is no need to recognize the subsequent two syllables to reduce power consumption.
[0123] Based on the contents disclosed in the above embodiments, in this embodiment, stopping recognizing whether the voice signal contains a keyword includes:
[0124] Stop identifying whether the speech signal contains the keyword before the (n+1)th syllable in identifying whether the speech signal contains the keyword; or
[0125] In the process of identifying whether the speech signal includes the nth syllable in the keyword, the identifying whether the speech signal includes the keyword is stopped.
[0126] Please refer to Fig. 9 In the process of identifying whether a voice signal contains a keyword, it is determined whether the voice signal comes from a target user. If the voice signal comes from a non-target user, the recognition of whether the voice signal contains a keyword is stopped. The recognition of whether the voice signal contains a keyword can be stopped in the process of identifying whether the voice signal contains the first syllable, or in the process of identifying whether the voice signal contains the second syllable. Fig. 9In the embodiment, step 003a indicates stopping the recognition of whether the voice signal contains a keyword. If step 011 is being executed at this time, step 011 is stopped. Steps 014 and 015 indicate the transmission of the instruction to stop the recognition of whether the voice signal contains a keyword. For example, in step 014, if the stop instruction is received before the second syllable in the keyword is recognized, the keyword recognition is stopped before the second syllable in the keyword is recognized; in step 015, if the stop instruction is received during the process of recognizing whether the voice signal contains the second syllable in the keyword, the keyword recognition is stopped during the process of recognizing whether the voice signal contains the second syllable in the keyword, and all subsequent syllables are not recognized, and the instruction corresponding to the keyword is not executed or the instruction corresponding to the keyword is not sent. Therefore, it is not necessary to perform the entire keyword recognition to determine whether the instruction corresponding to the keyword is executed or whether the instruction corresponding to the keyword is sent, which can reduce power consumption. After stopping the keyword recognition, it is possible to continue to detect whether there is a voice signal. If it is detected that there is a next frame of voice signal, it is determined whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword based on the content disclosed in the above embodiment. Fig. 9 The time point for stopping the recognition of whether the voice signal contains a keyword shown in is only an exemplary description. It is determined whether the voice signal comes from a target user. If it comes from a non-target user, the keyword recognition is stopped.
[0127] Keyword recognition can be stopped before or during the process of identifying whether a voice signal contains any syllables of a keyword. For example, if the step of determining whether a voice signal comes from a target user takes a short time, and it is determined that the voice signal comes from a non-target user, feedback to stop keyword recognition may be received during the process of identifying whether the voice signal contains the first syllable of the keyword. Therefore, keyword recognition is stopped during the process of identifying whether the voice signal contains the first syllable of the keyword; if the step of determining whether a voice signal comes from a target user takes a long time, and it is determined that the voice signal comes from a non-target user, feedback to stop keyword recognition may be received before or during the process of identifying whether the voice signal contains the second, third, ...N syllables of the keyword. Therefore, keyword recognition is stopped before or during the process of identifying whether the voice signal contains the second, third, ...N syllables of the keyword.
[0128] Based on the contents disclosed in the above embodiments, in this embodiment, identifying whether a voice signal contains a keyword includes:
[0129] Use the mth algorithm to identify for the mth time whether the voice signal contains keywords;
[0130] After using the mth algorithm to identify that the voice signal contains the keyword, use the (m+1)th algorithm to identify whether the voice signal contains the keyword, until identifying whether the voice signal contains the keyword M times; M is an integer, M is greater than or equal to 2, and the complexity of the mth algorithm increases as m increases, m is an integer and greater than 0, and m is less than the M.
[0131] In this embodiment, starting from using the first algorithm, keyword recognition can be performed according to the following method:
[0132] Using a first algorithm to identify whether the speech signal contains a keyword;
[0133] If the first algorithm is used to identify that the voice signal contains the keyword, then the second algorithm is used to identify whether the voice signal contains the keyword;
[0134] If the mth algorithm is used to identify that the voice signal contains the keyword, the (m+1)th algorithm is used to identify whether the voice signal contains the keyword, until the Mth algorithm is used to identify that the voice signal contains the keyword.
[0135] Please refer to Fig.10 , take M equal to 4 as an example, that is, perform 4 times of recognition of whether the voice signal contains keywords, and the recognition of whether the voice signal contains keywords includes:
[0136] 020: using the first algorithm to identify whether the voice signal contains a keyword;
[0137] If the first algorithm is used to identify that the voice signal contains the keyword, execute 021: use the second algorithm to identify whether the voice signal contains the keyword;
[0138] If the second algorithm is used to identify that the voice signal contains the keyword, execute 022: use a third algorithm to identify whether the voice signal contains the keyword;
[0139] If the third algorithm is used to identify that the voice signal contains the keyword, execute 023: use the fourth algorithm to identify whether the voice signal contains the keyword; at this point, using the fourth algorithm to identify that the voice signal contains the keyword is completed.
[0140] In this embodiment, if the mth algorithm is used to identify that the voice signal does not contain keywords, there is no need to continue to use the (m+1)th algorithm to identify whether the voice signal contains keywords, so as to reduce power consumption. If the mth algorithm is used to identify that the voice signal does not contain keywords, then return to step 004 to continue to detect whether there is a voice signal. If the next frame of voice signal is detected, then determine whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword based on the content disclosed in the above embodiment. The complexity of the mth algorithm increases with the increase of m. Therefore, the power consumption of the previous algorithm is less than that of the subsequent algorithm. The higher the complexity of the algorithm used for keyword recognition, the higher the accuracy of keyword recognition and the greater the power consumption. When the previous algorithm performs rough recognition, it recognizes that the voice signal contains keywords, and then the next algorithm is used for more accurate recognition, which can further reduce power consumption.
[0141] Based on the contents disclosed in the above embodiments, in this embodiment, stopping recognizing whether the voice signal contains a keyword includes:
[0142] Stop identifying whether the speech signal contains the keyword before using the (m+1)th algorithm to identify whether the speech signal contains the keyword; or
[0143] In the process of using the mth algorithm to identify whether the speech signal contains the keyword, the identification of whether the speech signal contains the keyword is stopped.
[0144] Please refer to Fig.11 In the process of identifying whether a voice signal contains a keyword, it is determined whether the voice signal comes from a target user. If the voice signal comes from a non-target user, the recognition of whether the voice signal contains a keyword is stopped. The recognition of whether the voice signal contains a keyword can be stopped in the process of using a first algorithm to identify whether the voice signal contains a keyword, or in the process of using a second algorithm to identify whether the voice signal contains a keyword. Fig.11 In the example, step 003a indicates stopping the recognition of whether the voice signal contains a keyword. If step 021 is being executed at this time, step 021 is stopped. Steps 014 and 015 indicate the transmission of an instruction to stop recognizing whether the voice signal contains a keyword. Fig.11 In step 014, if the stop instruction is received before the second algorithm is used to identify whether the voice signal contains the keyword, keyword recognition is stopped before the second algorithm is used to identify whether the voice signal contains the keyword; Fig.11In step 015, if the stop instruction is received during the process of using the second algorithm to identify whether the voice signal contains the keyword, the keyword recognition is stopped during the process of using the second algorithm to identify whether the voice signal contains the keyword. After the keyword recognition is stopped, the subsequent keyword recognition process is not executed, and the instruction corresponding to the keyword is not executed or the instruction corresponding to the keyword is not sent. Therefore, it is not necessary to perform the entire keyword recognition to determine whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword, which can reduce power consumption. After stopping keyword recognition, it is possible to continue to detect whether there is a voice signal. If it is detected that there is a next frame of voice signal, it is determined whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword based on the content disclosed in the above embodiment. Fig.11 The time point for stopping the recognition of whether the voice signal contains a keyword shown in is only an exemplary description. It is determined whether the voice signal comes from a target user. If it comes from a non-target user, the keyword recognition is stopped.
[0145] In this embodiment, keyword recognition can be stopped before or during the process of using the mth algorithm to identify whether the voice signal contains keywords. For example, if it is determined that the voice signal comes from a non-target user, and the step of determining whether the voice signal comes from the target user takes a short time, feedback of stopping keyword recognition may be received during the process of using the first algorithm to identify whether the voice signal contains keywords. Therefore, keyword recognition may be stopped during the process of using the first algorithm to identify whether the voice signal contains keywords; if it is determined that the voice signal comes from a non-target user, and the step of determining whether the voice signal comes from the target user takes a long time, feedback of stopping keyword recognition may be received before or during the process of using the 2nd, 3rd...M algorithm to identify whether the voice signal contains keywords. Therefore, keyword recognition may be stopped before or during the process of using the 2nd, 3rd...M algorithm to identify whether the voice signal contains keywords. In addition, the user can also set it to stop keyword recognition before or during the 2nd, 3rd...M algorithm recognition until the voice signal is determined to come from the target user and then continue keyword recognition. This embodiment does not limit the specific algorithm for identifying keywords, and can be implemented based on deep learning algorithms such as convolutional neural networks.
[0146] Based on the contents disclosed in the above embodiments, in this embodiment, before identifying whether a voice signal contains a keyword or determining whether a voice signal comes from a target user, the following steps are further included:
[0147] 032: Collect voice signals;
[0148] 033: Cache the collected voice signal.
[0149] Before step 001, steps 032 and 033 are also included. Before keyword recognition or before determining whether the voice comes from the target user, the voice signal can be cached for later processing. Keyword recognition requires a complete data packet. Caching the voice signal before keyword recognition can ensure the integrity of the data packet content. Please refer to Fig.14 , 15 Before keyword recognition and before judging whether the voice comes from the target user, the collected voice signal can be cached. If different devices are used to collect voice signals, they can be cached separately to align the occurrence time of the voice signal collected by the vibration sensor and the voice signal collected by the microphone. If only one device is used to collect voice signals, there is no need to cache them separately. Fig.15 In the example, the voice signal collected by the microphone is used for keyword recognition, and the voice signal collected by the vibration sensor is used to determine whether the voice signal comes from the target user. Fig.15 In step 033 on the right, the caching time length of the voice signal collected by the microphone can be greater than or equal to the sum of the time length required to detect whether there is a voice signal, the filtering time length and the time length to determine whether the voice signal comes from the target user, so that the signal collected by the microphone is used for keyword recognition only after the voice signal is determined to be from the target user.
[0150] Based on the contents disclosed in the above embodiments, in this embodiment, collecting voice signals may include the following two methods, and one or both of the two methods can be selected. Method one is step 0321: using a vibration sensor to collect voice signals. The vibration sensor may be an accelerometer, or vibration detection may be achieved through other methods such as capacitance, optics, or ultrasound. For example, voice signals may be collected through a bone conduction path. This collection method is suitable for wearable devices such as headphones, necklaces, helmets, and smart glasses that have a certain physical contact with the skull after being worn; Method two is step 0322: using a microphone to collect voice signals. This method is applicable to wearable devices or non-wearable devices. In the same device, these two voice signal collection methods may also exist at the same time. For example, please refer to Fig.16 , 17The voice signal collected in step 0322 is used for keyword recognition, and the voice signal collected in step 0321 is used to determine whether the voice comes from the target user. The vibration sensor can detect whether the vocal cords of the target user vibrate through bone conduction to determine whether the voice comes from the target user. When the vibration sensor is used to collect voice signals, the voice signal collected by the vibration sensor can be used to determine whether the voice signal comes from the target user, and there is no need to use the voice signal collected by the microphone to determine whether the voice signal comes from the target user. The speed of using the vibration sensor to determine whether the voice signal comes from the target user is relatively fast and time-consuming. When using the voice signal collected by the microphone to determine whether the voice signal comes from the target user, voiceprint extraction and recognition are required, which takes a long time. Therefore, you can choose to use the voice signal collected by the vibration sensor to determine whether the voice signal comes from the target user, and choose to use the voice signal collected by the microphone to determine whether the voice signal contains keywords.
[0151] When using a voice signal collection method, if only a microphone is used to collect voice signals, the voice signals collected by the microphone can be used for keyword recognition, and the voice signals collected by the microphone can also be used to determine whether the voice signals come from the target user. Subsequent steps that require voice signals can also use the voice signals collected by the microphone; if only a vibration sensor is used to collect voice signals, the voice signals collected by the vibration sensor can be used for keyword recognition, and the voice signals collected by the vibration sensor can also be used to determine whether the voice signals come from the target user. Subsequent steps that require voice signals can also use the voice signals collected by the vibration sensor.
[0152] If the pronunciation of a syllable can obviously cause the vibration of the vocal cords, such as voiced consonants and vowels, the vibration sensor is more sensitive to these syllables that easily cause the vibration of the vocal cords and are easier to be detected by the vibration sensor. If the keyword is a syllable similar to voiced consonants and vowels that easily cause the vibration of the vocal cords, you can choose to use the vibration sensor to collect the voice signal. The voice signal can be used to determine whether the voice signal comes from the target user. In addition, the voice signal collected by the vibration sensor can also be used to perform keyword recognition on the syllable.
[0153] Based on the contents disclosed in the above embodiments, in this embodiment, judging whether the voice signal comes from the target user includes the following two methods: Method 1: If the energy of the voice signal collected by the vibration sensor exceeds the threshold energy, the voice signal is judged to be from the target user. When the vibration sensor uses a three-axis acceleration sensor and uses multiple axis data, some weighting and correlation operations can also be performed on the multiple axis data to more accurately judge whether the voice signal comes from the target user. This method is suitable for electronic devices that use vibration sensors to collect voice signals; Method 2: If the voice signal collected by the microphone meets the preset conditions for voiceprint recognition, the voice signal is judged to be from the target user. This method is suitable for electronic devices that use microphones to collect voice signals.
[0154] Based on the contents disclosed in the above embodiments, in this embodiment, please refer to Fig.12 , 13 Before determining whether the voice signal comes from the target user, execute step 031: filtering the collected voice signal can improve the accuracy of determining whether the voice signal comes from the target user. When the voice signal is collected by the vibration sensor, the filtering operation can filter out the interference caused by the target user's actions, such as low-frequency interference such as walking and running. The collected voice signal can be filtered using a filter. For example, for noise signals in different frequency bands, one or more high-pass, low-pass or band-pass filters can be selected. This embodiment does not limit the type of filter.
[0155] Based on the content disclosed in the above embodiments, in this embodiment, while caching the voice signal, it is detected whether there is a voice signal. If there is a voice signal, it is determined whether the voice signal comes from the target user. Fig.14 , 15 , while caching the voice signal, detecting whether there is a voice signal can save processing time. After caching a frame of voice signal, identifying whether the voice signal contains keywords. In this embodiment, after detecting the presence of the voice signal, it starts to determine whether the voice signal comes from the target user. In addition, please refer to Fig.16 , 17 , after collecting the voice signal, step 034 may be performed: amplifying the voice signal, and step 035: performing digital-to-analog conversion on the amplified voice signal; Fig.16 , 17Taking the amplification and digital-to-analog conversion of the collected voice signal as an example, if there is only one voice signal collection method in the electronic device, only one amplification and one digital-to-analog conversion are required. In this embodiment, the amplifier and the digital-to-analog converter can be integrated in the microphone or arranged outside the microphone, and this embodiment does not limit this; in addition, an analog-to-digital converter can be used to perform analog-to-digital conversion, and a buffer can be used to perform caching. The buffer, analog-to-digital converter and filter in this embodiment are integrated into a chip, such as a voice processing chip, or the buffer, analog-to-digital converter and filter can be integrated into the same or different other chips, and this embodiment does not limit this.
[0156] In this embodiment, wearing detection can also be performed before collecting voice signals. If a wearing state is detected, a voice signal is collected, and the voice control method provided in the above embodiment is used to determine whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword. Adding a wearing detection module can further reduce power consumption. Only when the wearable device is in a wearing state, it is determined whether to execute the instruction corresponding to the keyword or whether to send the instruction corresponding to the keyword. In addition, multiple microphones can also be used, one microphone to collect voice signals, and one microphone to collect ambient noise for noise reduction processing. Adding a voice noise reduction module can improve the accuracy of keyword recognition, the accuracy of detecting whether there is a voice signal, and the accuracy of whether the voice signal comes from the target user, so as to improve the performance of the voice control method.
[0157] Based on the contents disclosed in the above embodiments, in this embodiment, the instructions corresponding to the keywords include: waking up the voice assistant, adjusting the volume, adjusting the brightness, lighting up the screen, making a call, playing music, etc. One or more of the above. The instructions in this embodiment can be set according to user needs. For example, the user can set the keyword to "turn up the volume", which corresponds to the instruction for increasing the volume. When the voice signal contains "turn up the volume", the instruction for increasing the volume is executed. In addition, the user can set the keyword to "turn up the brightness and make a call", which corresponds to two instructions. When the voice signal contains "turn up the brightness and make a call", the screen brightness is increased and the interface for making a call is entered. In this embodiment, the instructions corresponding to the keywords can be configured by the user according to the keywords, and are not limited to the above instructions mentioned in this embodiment.
[0158] The present application embodiment may also provide a voice control device for executing a voice control method proposed in the above embodiment. Fig.18 , 19 This is a schematic diagram of the structure of the voice control device provided in this embodiment. The device can perform the above Figures 1 to 17 The method shown, such as Fig.18 , 19 As shown, the voice control device 100 includes:
[0159] A keyword recognition module 200, used to recognize whether a speech signal contains a keyword;
[0160] The instruction module 300 is connected to the keyword recognition module 200, and is used to execute the instruction corresponding to the keyword or send the instruction if the keyword recognition module 200 recognizes that the voice signal contains the keyword;
[0161] A judgment module 400, which is connected to the keyword module 200 and is used to judge whether the voice signal comes from the target user before the keyword module 200 starts to recognize whether the voice signal contains the keyword. If the voice signal comes from the target user, the keyword recognition module 200 starts to recognize whether the voice signal contains the keyword; or
[0162] In the process of the keyword module 200 identifying whether the voice signal contains the keyword, it is determined whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the keyword recognition module 200 stops identifying whether the voice signal contains the keyword.
[0163] Optionally, before the keyword module starts to identify whether the voice signal contains keywords, the judgment module is used to judge whether the voice signal comes from the target user. If the voice signal comes from a non-target user, the judgment module is also used to continue to judge whether the next frame of voice signal comes from the target user.
[0164] Optionally, during the process of the keyword module identifying whether the voice signal contains the keyword, the judgment module is used to determine whether the voice signal comes from the target user. If the voice signal comes from the target user, the keyword recognition module continues to identify whether the voice signal contains the keyword.
[0165] Optionally, the device further includes: a voice activity detection module, which is used to detect whether there is a voice signal before the judgment module determines whether the voice signal comes from the target user. If a voice signal is detected, the judgment module determines whether the voice signal comes from the target user.
[0166] Optionally, in the process of the keyword recognition module identifying whether the voice signal contains the keyword, the judgment module determines whether the voice signal comes from the target user, and before the keyword recognition module starts to identify whether the voice signal contains the keyword, the voice activity detection module detects whether there is a voice signal;
[0167] If there is a voice signal in the voice activity detection module, the keyword recognition module starts to recognize whether the voice signal contains keywords.
[0168] Optionally, the keyword includes N syllables, where N is an integer greater than or equal to 2; and the keyword recognition module includes:
[0169] A syllable recognition module, which sequentially recognizes whether the speech signal contains the N syllables according to a preset syllable order;
[0170] After the syllable recognition module recognizes that the speech signal includes the nth syllable in the preset syllable order, the syllable recognition module identifies whether the speech signal includes the (n+1)th syllable in the preset syllable order until the recognition of the N syllables is completed, where n is an integer greater than 0 and less than N.
[0171] Optionally, before the syllable recognition module recognizes whether the speech signal contains the (n+1)th syllable, the keyword recognition module stops recognizing whether the speech signal contains the keyword; or
[0172] During the process of the syllable recognition module recognizing whether the speech signal contains the nth syllable, the keyword recognition module stops recognizing whether the speech signal contains the keyword.
[0173] Optionally, the keyword identification module includes:
[0174] a hierarchical recognition module, configured to use an mth algorithm to perform an mth recognition on whether the voice signal contains the keyword;
[0175] After the hierarchical recognition module uses the mth algorithm to recognize that the voice signal contains the keyword, the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the voice signal contains the keyword, until it recognizes whether the voice signal contains the keyword M times;
[0176] M is an integer, M is greater than or equal to 2, the complexity of the mth algorithm increases as m increases, m is an integer and greater than 0, and m is less than M.
[0177] Optionally, before the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the voice signal contains the keyword, the keyword recognition module stops recognizing whether the voice signal contains the keyword; or
[0178] In the process of the hierarchical recognition module using the mth algorithm to recognize whether the speech signal contains the keyword, the keyword recognition module stops recognizing whether the speech signal contains the keyword.
[0179] Optionally, the device further comprises:
[0180] A collection module, used for collecting voice signals;
[0181] The cache module is used to cache the collected voice signal before the keyword recognition module recognizes whether the voice signal contains a keyword or before the judgment module determines whether the voice signal comes from a target user.
[0182] Optionally, the acquisition module includes one or both of a vibration sensor module and a microphone module;
[0183] The vibration sensor module is used to collect voice signals using a vibration sensor;
[0184] The microphone module is used to collect voice signals using a microphone.
[0185] Optionally, the judgment module includes:
[0186] An energy judgment module is used to judge that the voice signal comes from the target user if the energy of the voice signal collected by the vibration sensor module exceeds the threshold energy; or
[0187] The voiceprint recognition module is used to determine that the voice signal comes from the target user if the voice signal collected by the microphone module meets the preset conditions for voiceprint recognition.
[0188] Optionally, the device further comprises:
[0189] The filtering module is used to filter the voice signal collected by the collection module before the judgment module judges whether the voice signal comes from the target user.
[0190] Optionally, while the buffer module buffers the voice signal, the voice activity detection module detects whether there is a voice signal. If the voice activity detection module detects that there is a voice signal, the judgment module starts to judge whether the voice signal comes from the target user.
[0191] Optionally, the command module includes one or more of a voice wake-up module, a volume adjustment module, a brightness adjustment module, a screen light module, a call module, and a music module; the voice wake-up module is used to wake up the voice assistant; the volume adjustment module is used to adjust the volume; the brightness adjustment module is used to adjust the brightness; the screen light module is used to light up the screen; the call module is used to make calls; and the music module is used to play music.
[0192] An embodiment of the present application provides a voice control device, which reduces the power consumption of voice control and improves battery life by judging whether a voice signal comes from a target user before starting to identify whether the voice signal contains keywords; or judging whether the voice signal comes from the target user during the process of identifying whether the voice signal contains keywords. If the voice signal comes from a non-target user, the device stops identifying whether the voice signal contains keywords.
[0193] The present application embodiment may also provide a chip for executing a voice control method proposed in the embodiment. Fig. 20 As shown, the chip 20 may include: a memory 21 and a processor 22;
[0194] The memory 21 is coupled to the processor 22;
[0195] A memory 21, used for storing program instructions;
[0196] The processor 22 is used to call the program instructions stored in the memory so that the chip executes the voice control method.
[0197] The chip provided in the embodiments of the present application can execute the voice control method provided in any of the above embodiments. The specific implementation process and beneficial effects thereof are as mentioned above and will not be repeated here.
[0198] The embodiment of the present application may also provide a headset, including the chip provided by the aforementioned embodiment. The specific implementation process and beneficial effects thereof are as mentioned above and will not be repeated here.
[0199] The present application embodiment may also provide a voice control system for executing the voice control method provided in any of the above embodiments. Fig.21 A voice control system 500 is shown as an example for explanation. 501 is an earphone with a microphone 503 and a vibration sensor 504. The positions of the microphone and the vibration sensor in the figure are only for exemplary explanation and can also be placed in other positions. The earphone 501 is worn in the concha cavity 505, and the earphone is in physical contact with the skull 506. When the target user speaks, the target user's voice signal can be collected by the microphone 503 through the air transmission path 509. At the same time, the vibration of the vocal cord 508 can be transmitted to the vibration sensor 504 through the skull 506 and the bone conduction path 510. The keyword recognition algorithm can be used to determine whether the voice signal collected by the microphone 503 contains keywords, and the voice signal collected by the vibration sensor 503 can be used to confirm whether the voice signal is spoken by the target user. After confirming that the target user has spoken the keyword, the headset 501 will transmit the instruction corresponding to the keyword to the mobile phone 502, and the mobile phone 502 enters the instruction execution mode; in this embodiment, the voice signal collected by the vibration sensor 503 can be transmitted to the mobile phone, and the operation of confirming whether the keyword is spoken by the target user is executed in the mobile phone, and the headset can also determine whether the voice signal collected by the microphone 503 contains the keyword. This embodiment does not limit this.
[0200] Fig.21 The voice control system in is only an exemplary description. Its specific implementation process and beneficial effects are mentioned above and will not be repeated here. In this embodiment, the two terminals of headphones and mobile phones are used as examples for description. It can also be other terminals, such as smart speakers, tablets or computers. The data communication method between the headphones and the terminals includes but is not limited to wireless transmission methods such as Bluetooth, Wi-Fi, LTE, NFC, NB-IoT and wired transmission methods such as USB, Type C interface, 3.5mm audio interface, etc.
[0201] It should be noted that the above method embodiments of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0202] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0203] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0204] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0205] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0206] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0207] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0208] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0209] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0210] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0211] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A voice control method, characterized in that: include: Identify whether the voice signal contains keywords; If the voice signal contains the keyword, executing the instruction corresponding to the keyword or sending the instruction; In the process of identifying whether the voice signal contains the keyword, determining whether the voice signal comes from a target user, and if the voice signal comes from a non-target user, stopping identifying whether the voice signal contains the keyword; The identifying whether the voice signal contains the keyword comprises: Using an mth algorithm to identify for the mth time whether the voice signal contains the keyword; After using the mth algorithm to identify that the voice signal contains the keyword, using the (m+1)th algorithm to identify whether the voice signal contains the keyword, until identifying whether the voice signal contains the keyword M times; The M is an integer, the M is greater than or equal to 2, the complexity of the mth algorithm increases as m increases, the m is an integer and greater than 0, and the m is less than the M.
2. The voice control method according to claim 1, characterized in that: In the process of identifying whether the voice signal contains the keyword, determining whether the voice signal comes from the target user, and if the voice signal comes from the target user, continuing to identify whether the voice signal contains the keyword; The determining whether the voice signal comes from the target user comprises: If the energy of the voice signal collected by the vibration sensor exceeds the threshold energy, it is determined that the voice signal comes from the target user; or If the voice signal collected by the microphone meets the preset conditions for voiceprint recognition, it is determined that the voice signal comes from the target user.
3. The voice control method according to claim 1 or 2, characterized in that: Before determining whether the voice signal comes from the target user, the method further includes detecting whether the voice signal exists. If the voice signal exists, determining whether the voice signal comes from the target user.
4. The voice control method according to claim 3, characterized in that: If, in the process of identifying whether the voice signal contains the keyword, it is determined whether the voice signal comes from the target user, detecting whether the voice signal exists before starting to identify whether the voice signal contains the keyword; If the voice signal exists, it starts to identify whether the voice signal contains the keyword.
5. The voice control method according to claim 1 or 2, characterized in that: The keyword includes N syllables, where N is an integer and is greater than or equal to 2; and the step of identifying whether the voice signal includes the keyword further includes: According to a preset syllable order, identifying in sequence whether the speech signal contains the N syllables; After identifying that the speech signal includes the nth syllable in the preset syllable order, identify whether the speech signal includes the (n+1)th syllable in the preset syllable order, until the recognition of the N syllables is completed, where n is an integer, and the n is greater than 0 and less than N.
6. The voice control method according to claim 5, characterized in that: The stopping of identifying whether the voice signal contains the keyword comprises: before identifying whether the speech signal contains the (n+1)th syllable, stopping identifying whether the speech signal contains the keyword; or In the process of identifying whether the speech signal includes the nth syllable, identifying whether the speech signal includes the keyword is stopped.
7. The voice control method according to claim 1 or 2, characterized in that: The stopping of identifying whether the voice signal contains the keyword comprises: before using the (m+1)th algorithm to identify whether the speech signal contains the keyword, stop identifying whether the speech signal contains the keyword; or In the process of using the mth algorithm to identify whether the speech signal includes the keyword, the identifying of whether the speech signal includes the keyword is stopped.
8. The voice control method according to claim 1 or 2, characterized in that: Before the identifying whether the voice signal contains a keyword or before determining whether the voice signal comes from the target user, the method further includes: collecting the voice signal; Buffering the collected voice signal; While the voice signal collected in the buffer is being stored, it is detected whether the voice signal exists. If the voice signal exists, it is determined whether the voice signal comes from the target user.
9. The voice control method according to claim 1 or 2, characterized in that: The instructions include: waking up the voice assistant, adjusting the volume, adjusting the brightness, lighting up the screen, making a call, and playing music.
10. A voice control device, characterized in that: include: A keyword recognition module, used to identify whether a voice signal contains keywords; an instruction module, the instruction module being connected to the keyword recognition module and being used for executing an instruction corresponding to the keyword or sending the instruction if the keyword recognition module recognizes that the voice signal contains the keyword; a judgment module, the judgment module being connected to the keyword recognition module and being used for judging whether the voice signal comes from a target user during the process of the keyword recognition module recognizing whether the voice signal contains the keyword, and if the voice signal comes from a non-target user, the keyword recognition module stops recognizing whether the voice signal contains the keyword; The keyword recognition module includes: a hierarchical recognition module, configured to use an mth algorithm to perform an mth recognition on whether the voice signal contains the keyword; After the hierarchical recognition module uses the mth algorithm to recognize that the voice signal contains the keyword, the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the voice signal contains the keyword, until it recognizes whether the voice signal contains the keyword M times; The M is an integer, the M is greater than or equal to 2, the complexity of the mth algorithm increases as m increases, the m is an integer and greater than 0, and the m is less than the M.
11. The voice control device according to claim 10, characterized in that: In the process of the keyword recognition module identifying whether the voice signal contains the keyword, the judgment module is used to judge whether the voice signal comes from the target user, and if the voice signal comes from the target user, the keyword recognition module continues to identify whether the voice signal contains the keyword; The judging module comprises: an energy judgment module, for judging that the voice signal comes from the target user if the energy of the voice signal collected by the vibration sensor module exceeds a threshold energy; or The voiceprint recognition module is used to determine that the voice signal comes from the target user if the voice signal collected by the microphone module meets the preset conditions for voiceprint recognition.
12. The voice control device according to claim 10 or 11, characterized in that: It also includes a voice activity detection module, which is used to detect whether the voice signal exists before the judgment module determines whether the voice signal comes from the target user. If the voice signal is detected to exist, the judgment module determines whether the voice signal comes from the target user.
13. The voice control device according to claim 12, characterized in that: In the process of the keyword recognition module identifying whether the voice signal contains the keyword, the judgment module determines whether the voice signal comes from the target user, and before the keyword recognition module starts to identify whether the voice signal contains the keyword, the voice activity detection module detects whether the voice signal exists; If the voice activity detection module has the voice signal, the keyword recognition module starts to recognize whether the voice signal contains the keyword.
14. The voice control device according to claim 10 or 11, characterized in that: The keyword includes N syllables, where N is an integer and is greater than or equal to 2; the keyword recognition module also includes: A syllable recognition module, used to sequentially recognize whether the speech signal contains the N syllables according to a preset syllable order; After the syllable recognition module recognizes that the speech signal includes the nth syllable in the preset syllable order, the syllable recognition module identifies whether the speech signal includes the (n+1)th syllable in the preset syllable order until the recognition of the N syllables is completed, where n is an integer greater than 0 and less than N.
15. The voice control device according to claim 14, characterized in that: Before the syllable recognition module recognizes whether the speech signal contains the (n+1)th syllable, the keyword recognition module stops recognizing whether the speech signal contains the keyword; or During the process in which the syllable recognition module recognizes whether the speech signal includes the nth syllable, the keyword recognition module stops recognizing whether the speech signal includes the keyword.
16. The voice control device according to claim 10 or 11, characterized in that: Before the hierarchical recognition module uses the (m+1)th algorithm to recognize whether the speech signal contains the keyword, the keyword recognition module stops recognizing whether the speech signal contains the keyword; or In the process of the hierarchical recognition module using the mth algorithm to recognize whether the speech signal contains the keyword, the keyword recognition module stops recognizing whether the speech signal contains the keyword.
17. A chip, characterized in that: Used to execute the voice control method described in any one of claims 1 to 9.
18. An earphone, characterized in that: Comprising the chip as claimed in claim 17.
19. A voice control system, characterized in that: Used to execute the voice control method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Intelligent terminal
CN101826324A
Terminal, unlocking method, and program
CN104937603A
Voice recognition method, terminal and server
CN107464558A
Entrance guard control method and device
CN109671185A
Voice control method, device, equipment and storage medium
CN109754788A
