Audio wake-up method and apparatus, device, storage medium, and program product
By employing bone conduction signals for voice detection and optional fusion with air conduction signals, the method addresses algorithmic delays in conventional voice wake-up systems, improving recognition accuracy and reliability.
Patent Information
- Application Number
- JP2024513453
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-30
- Filing Date
- 2022-05-27
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Conventional voice wake-up methods using bone conduction microphones in smart devices suffer from algorithmic delays that cause truncation of voice headers in air-conducted signals, leading to low accuracy in wake-up word recognition.
Implement voice detection using bone conduction signals to ensure low power consumption and accuracy, with optional fusion of bone and air conduction signals to compensate for detection delays, utilizing acoustic models to process and recognize wake-up words.
Enhances wake-up word recognition accuracy by maintaining complete command word information through bone conduction signals, with optional signal fusion techniques to improve detection reliability.
Smart Images

Figure 2024534198000001
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202111005443.6, entitled "SPEECH WAKEUP METHOD AND APPARATUS, DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT," filed on August 30, 2021, which is incorporated by reference in its entirety herein.
[0002] TECHNICAL FIELD Embodiments of the present application relate to the field of voice recognition technology, and in particular to a voice wake-up method and apparatus, a device, a storage medium, and a program product. [Background technology]
[0003] At present, more and more smart devices complete tasks through voice control. Usually, smart devices need to be woken up by inputting a wake-up word by the user's speech to receive instructions to complete a task. In addition, with the development of bone conduction devices, a large number of bone conduction microphones are used in wearable devices, which wake up the smart devices. The wearable devices can be wireless headsets, smart glasses, smart watches, etc. The sensor in the bone conduction microphone is a non-acoustic sensor. The sensor collects the vibration signal of the vocal cords generated when the user speaks, and converts this vibration signal into an electrical signal, which is called a bone conduction signal.
[0004] In the prior art, a bone conduction microphone and an air microphone are installed in a wearable device. In order to implement a low-power wearable device, the air microphone is in a sleep state before the smart device is woken up. Since the power consumption of the bone conduction microphone is low, the bone conduction microphone can be configured to collect a bone conduction signal, and voice detection (e.g., voice activity detection (VAD)) is performed based on the bone conduction signal to control the switch of the air microphone to reduce power consumption. When the voice detection determines that there is currently a voice input, the air microphone is turned on, an air conduction signal is collected by using the air microphone, and a wake-up word is recognized based on the air conduction signal, i.e., voice wake-up is performed. Summary of the Invention
[0005] However, due to algorithm delay in voice detection, the voice header of the input command word may be truncated, i.e. the collected air-conducted signal may lose the header and not contain the complete information of the command word input by the sound source, resulting in low accuracy of recognition of wake-up word and low accuracy of voice wake-up. [Means for solving the problem]
[0006] The embodiments of the present application provide a voice wake-up method and apparatus, a device, a storage medium, and a program product to improve the accuracy of voice wake-up. The technical solutions are as follows:
[0007] According to a first aspect, there is provided a voice wake-up method, the method comprising: The method includes the steps of performing voice detection based on a bone conduction signal collected by a bone conduction microphone, the bone conduction signal including information about a command word input by a sound source, detecting a wake-up word based on the bone conduction signal when a voice input is detected, and performing a voice wake-up on the device to be woken up when it is detected that the command word includes the wake-up word.
[0008] In this embodiment of the present application, in order to ensure low power consumption, a bone conduction microphone collects the bone conduction signal for voice detection. In addition, it is believed that delay in voice detection may cause header loss in the collected air conduction signal, so that the complete information of the command word input by the sound source is not included. However, the bone conduction signal collected by the bone conduction microphone contains information about the command word input by the sound source, that is, the bone conduction signal does not lose the header. Therefore, this solution detects the wake-up word based on the bone conduction signal. In this way, the accuracy of the recognition of the wake-up word is high, and the accuracy of the voice wake-up is high.
[0009] Optionally, detecting the wake-up word based on the bone conduction signal includes determining a fusion signal based on the bone conduction signal and performing wake-up word detection on the fusion signal. Note that the fusion signal determined based on the bone conduction signal also includes information about the command word input by the sound source.
[0010] Optionally, before the step of determining the fusion signal based on the bone conduction signal, the method further includes turning on an air microphone and collecting an air conduction signal by using the air microphone. The step of determining the fusion signal based on the bone conduction signal includes the steps of fusing a start portion of the bone conduction signal and the air conduction signal to obtain a fusion signal, where the start portion of the bone conduction signal is determined based on a detection delay of the voice detection, generating an enhancement start signal based on the start portion of the bone conduction signal and fusing the enhancement start signal and the air conduction signal to obtain a fusion signal, where the start portion of the bone conduction signal is determined based on a detection delay of the voice detection, or directly fusing the bone conduction signal and the air conduction signal to obtain a fusion signal. In other words, this embodiment of the present application provides three methods for performing header loss compensation on the air conduction signal based on the bone conduction signal, i.e., three methods for directly performing header loss compensation in the air conduction signal via explicit signal fusion. Optionally, the signal fusion is performed by signal concatenation.
[0011] Optionally, the step of determining the fusion signal based on the bone conduction signal includes determining the bone conduction signal as the fusion signal. In other words, in this embodiment of the present application, the wake-up word can be directly detected based on the bone conduction signal.
[0012] Optionally, the step of performing wake-up word detection on the fusion signal includes the steps of: inputting a plurality of audio frames included in the fusion signal into a first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model, the plurality of posterior probability vectors corresponding one-to-one to the plurality of audio frames, and a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of the first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; and detecting a wake-up word based on the plurality of posterior probability vectors. In other words, the fusion signal is first processed by using the first acoustic model to obtain a plurality of posterior probability vectors respectively corresponding to a plurality of audio frames included in the fusion signal. Then, the wake-up word is detected based on the plurality of posterior probability vectors, for example, the plurality of posterior probability vectors are decoded to detect the wake-up word.
[0013] Optionally, before detecting the wake-up word based on the bone conduction signal, the method further includes turning on an air microphone and collecting an air conduction signal by using the air microphone. The detecting the wake-up word based on the bone conduction signal includes determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, the plurality of posterior probability vectors correspond one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, and a first posterior probability vector of the plurality of posterior probability vectors indicates a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes, and detecting the wake-up word based on the plurality of posterior probability vectors. In other words, in this embodiment of the present application, signal fusion may not be performed, but a posterior probability vector corresponding to each audio frame is directly determined based on the bone conduction signal and the air conduction signal, so that the obtained plurality of posterior probability vectors implicitly include information about the command word input by the sound source in a phoneme probability manner, i.e., the bone conduction signal is implicitly used to perform header loss compensation on the air conduction signal.
[0014] Optionally, the step of determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal includes the steps of inputting a start portion of the bone conduction signal and the air conduction signal into a second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by a second acoustic model, where the start portion of the bone conduction signal is determined based on a detection delay of the speech detection, the first amount of bone conduction posterior probability vector corresponds one-to-one to an audio frame included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponds one-to-one to an audio frame included in the air conduction signal; and a step of fusing one bone conduction posterior probability vector and a first air conduction posterior probability vector, where the first bone conduction posterior probability vector corresponds to a last audio frame of a beginning portion of the bone conduction signal, and the duration of the last audio frame is shorter than the duration of the frame, the first air conduction posterior probability vector corresponds to a first audio frame of the air conduction signal, and the duration of the first audio frame is shorter than the duration of the frame, and the plurality of posterior probability vectors include a second posterior probability vector, a vector of a first amount of the bone conduction posterior probability vector other than the first bone conduction posterior probability vector, and a vector of a second amount of the air conduction posterior probability vector other than the first air conduction posterior probability vector. In other words, in this embodiment of the present application, the beginning portion of the bone conduction signal and the air conduction signal can be processed separately by using the second acoustic model to obtain corresponding bone conduction posterior probability vectors and air conduction posterior probability vectors. Then, the first bone conduction posterior probability vector and the first air conduction posterior probability vector are fused to implicitly perform header loss compensation on the air conduction signal based on the bone conduction signal.
[0015] Optionally, the step of determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal includes: inputting the beginning portion of the bone conduction signal and the air conduction signal into the third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model, where the beginning portion of the bone conduction signal is determined based on the detection delay of the voice detection; or inputting the bone conduction signal and the air conduction signal into the third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model. In other words, in this embodiment of the present application, the beginning portion of the bone conduction signal and the air conduction signal are input into the third acoustic model separately, and the plurality of posterior probability vectors can be directly obtained by using the third acoustic model. In other words, in the process of processing the beginning portion of the bone conduction signal and the air conduction signal by using the third acoustic model, the two parts of the signals are implicitly fused, i.e., the header loss compensation is implicitly performed on the air conduction signal based on the bone conduction signal.
[0016] Optionally, the step of detecting the wake-up word based on the multiple posterior probability vectors includes the steps of: determining a confidence level that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the multiple posterior probability vectors and the phoneme sequence corresponding to the wake-up word; and determining that the command word is detected to include the wake-up word when the confidence level exceeds a confidence level threshold. For example, the multiple posterior probability vectors are decoded to obtain the confidence level. Then, it is determined whether the command word includes the wake-up word based on the confidence level threshold, i.e., when the confidence condition is satisfied, it is determined that the command word is detected to include the wake-up word.
[0017] Optionally, the step of detecting the wake-up word based on the multiple posterior probability vectors includes the steps of: determining a confidence level that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the multiple posterior probability vectors and the phoneme sequence corresponding to the wake-up word; and determining that the command word is detected to include the wake-up word when the confidence level exceeds a confidence threshold and the multiple posterior probability vectors and the multiple template vectors satisfy a distance condition, where the multiple template vectors indicate a probability that the phonemes of the audio signal that include the complete information of the wake-up word belong to the multiple specified phonemes. In other words, in order to avoid false wake-up as much as possible, it is determined that the command word is detected to include the wake-up word when the confidence level condition is satisfied and the templates match.
[0018] Optionally, when the multiple posterior probability vectors correspond one-to-one to the multiple template vectors, the distance condition includes that the average of the distances between the multiple posterior probability vectors and the corresponding template vectors is less than a distance threshold. In other words, whether the templates match can be determined based on the average distance between the vectors.
[0019] Optionally, the method further includes obtaining a bone conduction registration signal, the bone conduction registration signal including the complete information of the wake-up word, and determining a confidence threshold and a plurality of template vectors according to the bone conduction registration signal and the phoneme sequence corresponding to the wake-up word. In other words, in this embodiment of the present application, in the wake-up word registration process, a confidence threshold and a plurality of template vectors can be further determined based on the bone conduction registration signal including the complete information of the wake-up word, and in the subsequent voice wake-up process, the wake-up word is detected based on the obtained confidence threshold and the plurality of obtained template vectors. This can improve the accuracy of the wake-up word detection and further reduce false wake-up.
[0020] Optionally, the step of determining a confidence threshold and a plurality of template vectors based on the bone conduction registration signal and the phoneme sequence corresponding to the wake-up word includes the steps of determining a fused registration signal based on the bone conduction registration signal, and determining a confidence threshold and a plurality of template vectors based on the fused registration signal and the phoneme sequence corresponding to the wake-up word. In other words, in the process of the wake-up word registration, a fused registration signal can be first obtained through signal fusion, and the obtained fused registration signal includes information about the command word input by the sound source. Furthermore, the confidence threshold and the plurality of template vectors are determined based on the fused registration signal.
[0021] Optionally, the step of determining the confidence threshold and the plurality of template vectors based on the fused registration signal and the phoneme sequence corresponding to the wake-up word includes the steps of: inputting the plurality of enrollment audio frames included in the fused registration signal into the first acoustic model to obtain a plurality of enrollment posterior probability vectors output by the first acoustic model, the plurality of enrollment posterior probability vectors correspond one-to-one to the plurality of enrollment audio frames, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicates a probability that a phoneme of the first enrollment audio frame of the plurality of enrollment audio frames belongs to a plurality of specified phonemes; determining the plurality of enrollment posterior probability vectors as a plurality of template vectors; and determining the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word. In other words, the processing of the fused registration signal in the wake-up word registration process is similar to the processing of the fused signal in the voice wake-up process. The fused registration signal is also first processed by using the first acoustic model to obtain a plurality of enrollment posterior probability vectors respectively corresponding to the plurality of enrollment audio frames included in the fused registration signal. Then, a confidence threshold is determined based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word. For example, the plurality of enrollment posterior probability vectors are decoded to determine the confidence threshold. In addition, the plurality of enrollment posterior probability vectors can alternatively be determined as a plurality of template vectors.
[0022] Optionally, before determining the confidence threshold based on the bone conduction registration signal and the phoneme sequence corresponding to the wake-up word, the method further includes obtaining an air conduction registration signal. The step of determining the confidence threshold based on the bone conduction registration signal and the phoneme sequence corresponding to the wake-up word includes the steps of determining a plurality of registration posterior probability vectors based on the bone conduction registration signal and the air conduction registration signal, the plurality of registration posterior probability vectors corresponding one-to-one to a plurality of enrollment audio frames included in the bone conduction registration signal and the air conduction registration signal, and a first registration posterior probability vector of the plurality of enrollment posterior probability vectors indicates a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to a plurality of specified phonemes, and determining the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word. In other words, in the process of enrolling the wake-up word, signal fusion may not be performed first, and the enrollment posterior probability vector corresponding to each enrollment audio frame separately is directly determined based on the bone conduction registration signal and the air conduction registration signal.
[0023] According to a second aspect, a voice wake-up device is provided, the voice wake-up device having a function of implementing the voice wake-up method of the first aspect. The voice wake-up device includes one or more modules, the one or more modules being configured to implement the voice wake-up method of the first aspect.
[0024] In other words, a voice wake-up device is provided, the device comprising: a voice detection module configured to perform voice detection based on a bone conduction signal collected by a bone conduction microphone, the bone conduction signal including information about a command word input by a sound source; a wake-up word detection module configured to detect a wake-up word based on the bone conduction signal when a voice input is detected; a voice wake-up module configured to perform a voice wake-up on a device to be woken up when it is detected that the command word includes a wake-up word; Includes.
[0025] Optionally, the wake-up word detection module further comprises: a first determination sub-module configured to determine a fusion signal based on the bone conduction signal; and and a wake-up word detection sub-module configured to perform wake-up word detection on the fusion signal.
[0026] Optionally, the apparatus comprises: The system further includes a processing module configured to turn on the air microphone and collect an air conducted signal by using the air microphone.
[0027] The first decision submodule: fusing a beginning portion of the bone conduction signal with the air conduction signal to obtain a fused signal, the beginning portion of the bone conduction signal being determined based on a detection delay of the voice detection; generating an enhancement onset signal based on a starting portion of the bone conduction signal, and fusing the enhancement onset signal with the air conduction signal to obtain a fused signal, the starting portion of the bone conduction signal being determined based on a detection delay of the voice detection; or Directly fuse bone conduction and air conduction signals to obtain a fusion signal It is configured as follows.
[0028] Optionally, the wake-up word detection sub-module further comprises: Inputting a plurality of audio frames included in the fusion signal into a first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model, the plurality of posterior probability vectors corresponding one-to-one to the plurality of audio frames, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; Detecting the wake-up word based on multiple posterior probability vectors It is configured as follows.
[0029] Optionally, the apparatus comprises: The system further includes a processing module configured to turn on the air microphone and collect an air conducted signal by using the air microphone.
[0030] The wake-up word detection module a second determination sub-module configured to determine a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, the plurality of posterior probability vectors corresponding one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; a wake-up word detection submodule configured to detect a wake-up word based on a plurality of posterior probability vectors; Includes.
[0031] Optionally, the second determination submodule: inputting a start portion of the bone conduction signal and the air conduction signal into a second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by the second acoustic model, the start portion of the bone conduction signal being determined based on a detection delay of the voice detection, the first amount of bone conduction posterior probability vector corresponding one-to-one to an audio frame included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponding one-to-one to an audio frame included in the air conduction signal; The first bone conduction posterior probability vector and the first air conduction posterior probability vector are fused to obtain a second posterior probability vector, the first bone conduction posterior probability vector corresponds to a last audio frame of a beginning portion of the bone conduction signal, the duration of the last audio frame being shorter than a duration of the frame, the first air conduction posterior probability vector corresponds to a first audio frame of the air conduction signal, the duration of the first audio frame being shorter than a duration of the frame, and the plurality of posterior probability vectors include the second posterior probability vector, a vector of a first amount of the bone conduction posterior probability vector other than the first bone conduction posterior probability vector, and a vector of a second amount of the air conduction posterior probability vector other than the first air conduction posterior probability vector. It is configured as follows.
[0032] Optionally, the second determination submodule: inputting the beginning portion of the bone conduction signal and the air conduction signal into a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model, and the beginning portion of the bone conduction signal is determined based on a detection delay of the voice detection; or The bone conduction signal and the air conduction signal are input to a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model. It is configured as follows.
[0033] Optionally, the wake-up word detection sub-module further comprises: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; When the confidence exceeds a confidence threshold, it is determined that the command word is detected to include a wake-up word. It is configured as follows.
[0034] Optionally, the wake-up word detection sub-module further comprises: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; Determine that the command word is detected to include a wake-up word when the confidence exceeds a confidence threshold and the plurality of posterior probability vectors and the plurality of template vectors satisfy a distance condition, and the plurality of template vectors indicate a probability that a phoneme of the speech signal containing the complete information of the wake-up word belongs to the plurality of specified phonemes. It is configured as follows.
[0035] Optionally, when the multiple posterior probability vectors correspond one-to-one to the multiple template vectors, the distance condition includes that an average of the distances between the multiple posterior probability vectors and the corresponding template vectors is less than a distance threshold.
[0036] Optionally, the apparatus comprises: an acquisition module configured to acquire a bone conduction registration signal, the bone conduction registration signal including a complete information of the wake-up word; a determination module configured to determine a confidence threshold and a plurality of template vectors based on the bone conduction enrollment signal and a phoneme sequence corresponding to a wake-up word; Further includes:
[0037] Optionally, the decision module: a third determining sub-module configured to determine a fusion registration signal based on the bone conduction registration signal; and a fourth determination sub-module configured to determine a confidence threshold and a plurality of template vectors based on the fused enrollment signal and the phoneme sequence corresponding to the wake-up word; Includes.
[0038] Optionally, the fourth determination submodule: inputting the multiple enrollment audio frames included in the fused enrollment signal into a first acoustic model to obtain multiple enrollment posterior probability vectors output by the first acoustic model, the multiple enrollment posterior probability vectors corresponding one-to-one to the multiple enrollment audio frames, and a first enrollment posterior probability vector of the multiple enrollment posterior probability vectors indicating a probability that a phoneme of the first enrollment audio frame of the multiple enrollment audio frames belongs to the multiple specified phonemes; determining a plurality of enrollment posterior probability vectors as a plurality of template vectors; determining a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; It is configured as follows.
[0039] Optionally, the apparatus comprises: The system further includes an acquisition module configured to obtain an air conduction registration signal.
[0040] The decision module is a fifth determination sub-module configured to determine a plurality of enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal, the plurality of enrollment posterior probability vectors corresponding one-to-one to a plurality of enrollment audio frames included in the bone conduction enrollment signal and the air conduction enrollment signal, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to a plurality of specified phonemes; a sixth determination sub-module configured to determine a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; Includes.
[0041] According to a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory is configured to store a program for executing the voice wake-up method in the first aspect, and to store data used to implement the voice wake-up method in the first aspect. The processor is configured to execute the program stored in the memory. The operating unit of the storage device may further include a communication bus, and the communication bus is used to establish a connection between the processor and the memory.
[0042] According to a fourth aspect, there is provided a computer-readable storage medium having instructions stored thereon that, when executed on a computer, enable the computer to perform the audio wake-up method of the first aspect.
[0043] According to a fifth aspect, there is provided a computer program product comprising instructions which, when executed on a computer, enable the computer to perform the audio wake-up method in accordance with the first aspect.
[0044] The technical effects achieved in the second, third, fourth and fifth aspects are similar to those achieved by the corresponding technical means in the first aspect. Details are not described again in this specification.
[0045] The technical solutions provided in the embodiments of the present application can bring at least the following beneficial effects:
[0046] In the embodiment of the present application, in order to ensure low power consumption, a bone conduction microphone collects a bone conduction signal for voice detection. In addition, it is believed that delay in voice detection may cause header loss in the collected air conduction signal, so that the complete information of the command word input by the sound source is not included. However, the bone conduction signal collected by the bone conduction microphone contains information about the command word input by the sound source, that is, the bone conduction signal does not lose the header. Therefore, the solution detects the wake-up word based on the bone conduction signal. In this way, the accuracy of the recognition of the wake-up word is high, and the accuracy of the voice wake-up is high. [Brief description of the drawings]
[0047] [Figure 1] 2 is a schematic diagram of the structure of an acoustic model according to an embodiment of the present application; [Diagram 2] FIG. 2 is a diagram of a system architecture for a voice wake-up method according to an embodiment of the present application. [Diagram 3] 1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application. [Figure 4] 2 is a flowchart of a voice wake-up method according to an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of the principle of generating bone conduction and air conduction signals according to an embodiment of the present application. [Figure 6] 2 is a schematic diagram of a signal time series according to an embodiment of the present application; [Figure 7] 1 is a schematic diagram of a signal coupling method according to an embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram of performing downsampling on a bone conduction signal according to an embodiment of the present application; [Figure 9] FIG. 2 is a schematic diagram of performing gain adjustment on a bone conduction signal according to an embodiment of the present application. [Figure 10] 1 is a schematic diagram of a generative network model training method according to an embodiment of the present application. [Figure 11]FIG. 2 is a schematic diagram of another acoustic model structure according to an embodiment of the present application; [Figure 12] FIG. 13 is a schematic diagram of yet another acoustic model structure according to an embodiment of the present application; [Figure 13] 4 is a flowchart of another voice wake-up method according to an embodiment of the present application. [Figure 14] 4 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. [Figure 15] 4 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. [Figure 16] 4 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. [Figure 17] 4 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. [Figure 18] 4 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. [Figure 19] 2 is a flowchart of a wake-up word registration method according to an embodiment of the present application; [Figure 20] 4 is a flowchart of another wake-up word registration method according to an embodiment of the present application. [Figure 21] 4 is a flowchart of yet another wake-up word registration method according to an embodiment of the present application. [Figure 22] 4 is a flowchart of yet another wake-up word registration method according to an embodiment of the present application. [Diagram 23] 4 is a flowchart of yet another wake-up word registration method according to an embodiment of the present application. [Figure 24] 4 is a flowchart of yet another wake-up word registration method according to an embodiment of the present application. [Diagram 25] FIG. 2 is a schematic diagram of a first acoustic model training method according to an embodiment of the present application. [Figure 26]FIG. 2 is a schematic diagram of another first acoustic model training method according to an embodiment of the present application. [Figure 27] FIG. 1 is a schematic diagram of yet another first acoustic model training method according to an embodiment of the present application. [Figure 28] FIG. 1 is a schematic diagram of yet another first acoustic model training method according to an embodiment of the present application. [Figure 29] FIG. 2 is a schematic diagram of a second acoustic model training method according to an embodiment of the present application. [Diagram 30] FIG. 10 is a schematic diagram of a third acoustic model training method according to an embodiment of the present application. [Diagram 31] 1 is a schematic diagram of the structure of a voice wake-up device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0048] To clarify the objectives, technical solutions and advantages of the embodiments of the present application, the following further describes the implementation of the present application in detail with reference to the accompanying drawings.
[0049] For ease of understanding, some names or terms in the embodiments of this application are first explained.
[0050] Speech recognition, also known as automatic speech recognition (ASR), is the use of a computer to recognize the vocabulary content contained in a speech signal.
[0051] Voice wake-up is also called keyword spotting (KWS), wake-up word detection, wake-up word recognition, etc. Voice wake-up is the detection of a wake-up word in a continuous audio stream in real time, and waking up a smart device when a noun input by an audio source is detected to be the wake-up word.
[0052] Deep learning (DL) is a learning algorithm based on data representation in machine learning.
[0053] The following describes knowledge related to speech recognition in an embodiment of the present application.
[0054] Voice activity detection (VAD) The VAD is used to determine when there is voice input and when it is muted, and is further used to capture valid segments from the voice input. All subsequent voice recognition operations are performed on the valid segments captured through the VAD to reduce the error rate of noise recognition of the voice recognition system and the power consumption of the system. In a near-field environment, the signal-to-noise ratio (SNR) is high due to limited attenuation of the voice signal, and only a simple scheme (e.g., zero-crossing rate and signal energy) is required to perform voice activity detection. However, in a far-field environment, the SNR of the data collected by the microphone is low due to the long transmission distance and serious attenuation of the voice signal. In this case, the effect of a simple voice activity detection method is poor. Voice activity detection by using deep neural networks (DNN) is a common method in deep learning-based voice recognition systems. The VAD is an implementation of voice detection. In the embodiment of this application, an example in which voice detection is performed through the VAD is used for explanation. In another embodiment, voice detection can be alternatively performed in another manner.
[0055] Speech Recognition For a speech recognition system, the first step is to detect whether there is a voice input, i.e., voice activity detection (VAD). In low power design, VAD works in an always on mechanism compared to another part of speech recognition. When a voice input is detected through VAD, the subsequent recognition system is woken up through VAD. The recognition system mainly includes feature extraction, recognition modeling, and decoding to obtain recognition results. Model training includes acoustic model training, language model training, etc. Speech recognition is essentially the process of converting an audio sequence into a text sequence, i.e., searching for a text sequence with maximum probability under a given speech input. According to Bayes' principle, speech recognition can be divided into a conditional probability that a voice appears in a given text sequence and a prior probability that a text sequence appears. The model obtained by modeling the conditional probability is an acoustic model, and the model obtained by modeling the prior probability that a text sequence appears is a language model.
[0056] It should be noted that in order to analyze and recognize a speech signal, frame division needs to be performed on the speech signal, i.e., the speech signal is divided into multiple segments, and each segment is called a frame. The frame division operation is usually implemented by using a window function, rather than a simple division. After frame division, adjacent frames usually overlap. The audio frames in the embodiment of this application are audio frames obtained by frame division, and the frame division is used to enable the acoustic model to analyze the speech signal. For example, frame division is performed on the speech signal by using a window function. The window function is assumed to be performed by using a frame length of 25 ms (milliseconds) and a frame shift of 10 ms, indicating that the length of each audio frame after frame division is 25 ms, and there is an overlap of 25-10=15 ms between two adjacent frames.
[0057] In the following, two concepts are described. A phoneme forms the pronunciation of a word and is a unit of pronunciation. An English phoneme set (i.e., a pronunciation dictionary) is a phoneme set that includes, for example, 39 phonemes from Carnegie Mellon University. A Chinese phoneme set is a phoneme set that includes, for example, all initial letters and endings directly. Alternatively, a phoneme set includes more phonemes, whether with or without tones. For example, in an embodiment of the present application, the phoneme set includes 100 phonemes. A state can be considered as a unit of pronunciation that is more detailed than a phoneme. A phoneme is usually divided into three states. In an embodiment of the present application, one audio frame corresponds to one phoneme, and several phonemes form one word (character). Thus, if the phonemes corresponding to each audio frame are trained, a speech recognition result can be obtained. In some embodiments, several audio frames correspond to one state, and each of the three states is combined into one phoneme, and several phonemes are combined into one word. Thus, if the states corresponding to each audio frame are trained, a speech recognition result can be obtained.
[0058] Acoustic Models, Decoding, and Voice Wake-up In speech recognition, for example, one audio frame corresponds to one phoneme. The probability that the phoneme corresponding to each audio frame is a phoneme in the phoneme set can be learned by using an acoustic model. In other words, the probability is a posterior probability vector corresponding to the audio. In general, the acoustic model has a large number of parameters, and based on the parameters, the posterior probability vector corresponding to each audio frame can be learned. The parameters can be obtained by training the acoustic model, and training the acoustic model requires a large amount of speech data. After the posterior probability vector corresponding to each audio frame is obtained by using the acoustic model, a decoding graph (sometimes called a state network, search space, etc.) is constructed by using a language model and according to a pronunciation dictionary, etc., and the posterior probability vectors corresponding to multiple consecutive audio frames output by the acoustic model are used as inputs of the decoding graph. An optimal path is searched for in the decoding graph, and the probability that the phoneme of the corresponding speech exists in this path is the largest. When the optimal path is found, the phoneme corresponding to each audio frame can be learned, i.e., the optimal word sequence obtained by speech recognition is obtained. The process of searching the state network for the optimal path to obtain a word sequence can be thought of as decoding, which is determining the word sequence that corresponds to the speech signal.
[0059] However, in the voice wake-up decoding in the embodiment of the present application, the probability of each phoneme of the decoding path is searched in the decoding graph, and the probability of each phoneme found is added to obtain a path score. The decoding path is a phoneme sequence corresponding to the wake-up word. If the path score is large, it is detected that the command word contains the wake-up word. In other words, the decoding in the embodiment of the present application is to determine whether the word sequence corresponding to the voice signal is a wake-up word based on the decoding graph.
[0060] In order to describe the embodiment of the present application, the following will first describe the acoustic model in the embodiment of the present application. The acoustic model is a model capable of recognizing a single phoneme, and can be modeled by using a hidden Markov model (HMM). The acoustic model is a trained model, and can be trained by using the acoustic features of the speech signal and the corresponding label. In the acoustic model, a corresponding probability distribution between the acoustic signal and the modeling unit is established. The modeling unit is, for example, an HMM state, a phoneme, a syllable, or a character, and can also be referred to as a pronunciation unit. The structure of the acoustic model is, for example, GMM-HMM, DNN-HMM, or DNN-CTC. GMM (gaussian mixed model) refers to a Gaussian mixture model, DNN refers to a deep neural network, and CTC (connectionist temporal classification) refers to a time series classification based on a neural network. In the embodiment of the present application, an example in which the modeling unit is a phoneme and the acoustic model is a DNN-HMM model is used for description. It should be noted that in an embodiment of the present application, the acoustic model may perform audio processing on a frame-by-frame basis, and output the probability that the phoneme of each audio frame belongs to the plurality of designated phonemes. The plurality of designated phonemes may be determined according to a pronunciation dictionary. For example, the pronunciation dictionary includes 100 phonemes, and the plurality of designated phonemes are the 100 phonemes.
[0061] 1 is a schematic diagram of the structure of an acoustic model according to an embodiment of the present application. The acoustic model is a DNN-HMM model. The input layer of the acoustic model has a dimension of 3, the two hidden layers have a dimension of 5, and the output layer has a dimension of 3. The input layer dimension indicates the feature dimension of the input signal, and the output layer dimension indicates three state dimensions, each state dimension containing probabilities corresponding to multiple specified phonemes.
[0062] Next, the decoding is further described. The decoding in speech recognition can be divided into dynamic decoding and static decoding. During dynamic decoding, the language score is dynamically searched in the language model centered on the dictionary tree. Static decoding means that the language model is statically encoded in advance into a decoding graph, and some column optimization operations such as decision, weight order, and minimization are used to improve the decoding efficiency. For example, in the embodiment of the present application, static decoding, such as weighted finite state transducer (WFST), is used to eliminate redundant information based on the HCLG network. In the embodiment of the present application, to generate the HCLG network, the language model, the pronunciation dictionary, and the acoustic model need to be represented in the corresponding FST format, and then compiled into a large decoding graph by performing operations such as combination, decision, and minimization. The process of building the HCLG network is as follows: HCLG=ASL(min(RDS(det(H'o min(det(C o min(det(L o G))))))). ASL denotes adding a self-loop, min denotes minimization, RDS denotes removing a symbol, det denotes decision, H' denotes HMM without a self-loop, and o denotes combination.
[0063] During decoding, a Viterbi algorithm is used to search the decoded graph for the optimal path, and there are no two identical paths in the decoded graph. During decoding, cumulative beam pruning is used, i.e., the beam value is subtracted from the path score with the maximum current probability as a threshold, and paths below the threshold are pruned. In addition, a frame synchronous decoding algorithm is used to search for the start node of the decoded graph, create a token for the corresponding node, extend an empty edge (i.e., the input does not correspond to a real modeling unit) from the token corresponding to the start node, each reachable node is connected to the corresponding token, perform pruning, and retain the active token. Every time an audio frame is input, a token is extracted from the current active token, and the next non-empty edge (i.e., the input corresponds to a real physical modeling unit) is started to be extended from the corresponding node, all active tokens are traversed, pruning is performed, and the active token of the current frame is retained. These steps are repeated until all audio frames are extended, i.e., the token with the maximum score is found, and the final recognition result is obtained by backtracking.
[0064] Network Model In an embodiment of the present application, the network model is the aforementioned acoustic model. The speech signal is recognized by using a network model such as a hidden Markov model HMM, a Gaussian mixture model GMM, a deep neural network DNN, a deep belief network hidden Markov model (DBN-HMM), a recurrent neural network (RNN), a long short-term memory (LSTM) network, or a convolutional neural network (CNN). In an embodiment of the present application, a CNN and an HMM are used.
[0065] Hidden Markov model is a statistical model, which is widely used in the field of speech signal processing. In this model, whether one state in the Markov chain is transitioned to another state depends on the state transition probability, and the observation value generated by the state depends on the state generation probability. During speech recognition, HMM first establishes an acoustic model for each recognition unit, and obtains a state transition probability matrix and an output probability matrix through long-term training. During recognition, HMM makes a decision based on the maximum probability in the state transition process.
[0066] The basic structure of a convolutional neural network includes two parts. One part is a feature extraction layer. The input of each neuron unit is connected to the local receptive field of the previous layer to extract the features of the local receptive field. The other part is a feature mapping layer. Each computational layer of the network includes multiple feature mappings, each feature mapping is a plane, and all neurons in the plane have equal weights. The feature mapping structure uses a function with a small range of influence (e.g., sigmoid) as the activation function of the convolutional network so that the feature mapping has shift invariance. In addition, neurons in the map plane share weights to reduce the amount of free parameters of the network. Each convolutional layer of a convolutional neural network can be followed by a computational layer for local averaging and secondary extraction. This unique structure, in which feature extraction is performed twice, reduces the feature resolution.
[0067] Loss function is the iterative basis of network model training. Loss function is used to evaluate the difference between the predicted value of the network model and the actual value. The choice of loss function affects the performance of the network model. Different network models usually use different loss functions. Loss function can be classified into empirical risk loss function and structural risk loss function. Empirical risk loss function means the difference between the predicted result and the actual result. Structural risk loss function means the empirical risk loss function with a normal term added. In the embodiment of the present application, a cross-entropy loss function, i.e., CE loss function, is used. The cross-entropy loss function is essentially a log-likelihood function and can be used in binary and multi-class tasks. When sigmoid is used as the activation function, the cross-entropy loss function is commonly used instead of the mean squared error loss function. The cross-entropy loss function can completely solve the excessively slow weight update of the squared loss function, and has good performance of fast weight update when the error is large and slow weight update when the error is small.
[0068] In the network model, backpropagation is performed on the error, a loss function is used, and gradient descent is used to adjust the parameters of the network. Gradient descent is an optimization algorithm. The central idea is to update the parameter values in the direction of the gradient of the objective function to achieve the minimum (or maximum) objective function. Gradient descent is a common optimization algorithm in deep learning. Gradient descent is for the loss function, and the intention is to find the weights and offsets that correspond to the minimum of the loss function as quickly as possible. The core of the backpropagation algorithm is to define a special variable for the neuron error. Backpropagation is performed on the neuron error for each layer from the output layer. Then the partial derivatives of the weights and offsets are calculated according to the formula and the neuron error. Gradient descent is a method for solving the minimum, and backpropagation is a method for solving the gradient calculation.
[0069] Figure 2 is a diagram of a system architecture for a voice wake-up method according to an embodiment of the present application. Please refer to Figure 2. The system architecture can include a wearable device 201 and a smart device 202. The wearable device 201 is connected to the smart device 202 in a wired or wireless manner to perform communication. The smart device 202 is the device to be woken up in this embodiment of the present application.
[0070] In this embodiment of the present application, the wearable device 201 is configured to receive an audio signal and send an instruction to the smart device 202 based on the received audio signal. The smart device 202 is configured to receive the instruction sent by the wearable device 201 and perform a corresponding operation based on the received instruction. For example, the wearable device 201 is configured to collect an audio signal, detect a command word included in the collected audio signal, and send a wake-up instruction to the smart device 202 to wake up the smart device 202 when it is detected that the command word includes a wake-up word. The smart device 202 is configured to receive the wake-up instruction and then enter a working state from a sleep state.
[0071] The bone conduction microphone is installed in the wearable device 201. Due to the low power consumption of the bone conduction microphone, the bone conduction microphone can always be in an active state. The bone conduction microphone is configured to collect a bone conduction signal in a working state. The processor of the wearable device 201 performs voice activity detection based on the bone conduction signal to detect whether there is a voice input. When the voice input is detected, the processor detects a wake-up word based on the bone conduction signal to detect whether the command word input by the sound source includes the wake-up word. When it is detected that the command word includes the wake-up word, a voice wake-up is performed, i.e., the wearable device 201 sends a wake-up command to the smart device 202.
[0072] In this embodiment of the present application, the wearable device 201 is, for example, a wireless headset, a smart glass, a smart watch, or a smart band. The smart device 202 (i.e., the device to be woken up) is, for example, a smart speaker, a smart appliance, a smart toy, or a smart robot. Optionally, in some embodiments, the wearable device 201 and the smart device 202 are the same device.
[0073] It should be noted that the system architecture and service scenarios described in the embodiments of the present application are intended to more clearly describe the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided in the embodiments of the present application. With the evolution of system architecture and the emergence of new service scenarios, those skilled in the art will recognize that the technical solutions provided in the embodiments of the present application can also be applied to similar technical problems.
[0074] 3 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Optionally, the electronic device is the wearable device 201 shown in FIG. 2. The electronic device includes one or more processors 301, a communication bus 302, a memory 303, one or more communication interfaces 304, a bone conduction microphone 308, and an air microphone 309.
[0075] The processor 301 is a general purpose central processing unit (CPU), a network processing (NP), a microprocessor, or one or more integrated circuits configured to implement the solutions of the present application, such as an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Optionally, the PLD is a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0076] The communication bus 302 is configured to transmit information between the aforementioned components. Optionally, the communication bus 302 is classified as an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used to represent a bus in the figure, but this does not mean that there is only one bus or only one type of bus.
[0077] Optionally, the memory 303 is a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), an optical disk (including a compact disc read-only memory (CD-ROM), a compact disk, a laser disk, a digital versatile disk, or a Blu-ray disk, etc.), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be used to hold or store appropriate program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this. The memory 303 exists independently and is connected to the processor 301 via the communication bus 302, or the memory 303 is integrated with the processor 301.
[0078] The communication interface 304 is configured to communicate with another device or a communication network by using any transceiver type device. The communication interface 304 may include a wired communication interface or may optionally include a wireless communication interface. The wired communication interface is, for example, an Ethernet interface. Optionally, the Ethernet interface is an optical interface, an electrical interface, or a combination thereof. The wireless communication interface is, for example, a wireless local area networks (WLAN) interface, a cellular network communication interface, or a combination thereof.
[0079] Optionally, in some embodiments, the electronic device includes multiple processors, such as processor 301 and processor 305 shown in FIG. 2. Each of the processors is a single-core processor or a multi-core processor. Optionally, a processor herein is one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0080] In some embodiments, the electronic device further includes an output device 306 and an input device 307. The output device 306 communicates with the processor 301 and may display information in a number of ways. For example, the output device 306 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 307 communicates with the processor 301 and may receive input from a user in a number of ways. For example, the input device 307 may include one or more of a mouse, a keyboard, a touch screen device, a sensor, and the like.
[0081] In this embodiment of the present application, the input device 307 includes a bone conduction microphone 308 and an air microphone 309. The bone conduction microphone 308 and the air microphone 309 are configured to collect a bone conduction signal and an air conduction signal, respectively. The processor 301 is configured to wake up the smart device based on the bone conduction signal, or based on the bone conduction signal and the air conduction signal, by using the voice wake-up method provided in the embodiment of the present application. Optionally, after waking up the smart device, the processor 301 is further configured to control the smart device to perform a task based on the bone conduction signal, the air conduction signal, or the bone conduction signal and the air conduction signal.
[0082] In some embodiments, the memory 303 is configured to store a program code 310 for performing the solution of the present application, and the processor 301 may execute the program code 310 stored in the memory 303. The program code 310 includes one or more software modules, and the electronic device can implement the voice wake-up method provided in the following embodiment of FIG. 4 by using the processor 301 and the program code 310 of the memory 303.
[0083] 4 is a flowchart of a voice wake-up method according to an embodiment of the present application. The method is applied to a wearable device. Please refer to FIG. 4. The method includes the following steps:
[0084] Step 401: Perform voice detection based on a bone conduction signal collected by a bone conduction microphone, where the bone conduction signal contains information about a command word input by a sound source.
[0085] As can be seen from the above, in order to implement low power consumption of the wearable device, due to the low power consumption of the bone conduction microphone, before the smart device (i.e., the device to be woken up) is woken up, the bone conduction microphone may be configured to collect a bone conduction signal, and voice detection (e.g., voice activity detection VAD) is performed based on the bone conduction signal to detect whether there is voice input. When no voice input is detected, components of the wearable device other than the bone conduction microphone may be in a sleep state to reduce power consumption. When voice input is detected, another component of the wearable device is controlled to be turned on. For example, if an air microphone is further installed in the wearable device, the air microphone is controlled to be turned on and off to reduce power consumption for the portable wearable device, since the air microphone is a high power consumption device. When voice input is detected (e.g., the user is speaking), the air microphone is turned on to perform a sound collection operation (i.e., collect an air conduction signal) to reduce the power consumption of the wearable device. In other words, before the smart device is woken up, the air microphone is in a sleep state to reduce low power consumption, and the air microphone is turned on when voice input is detected.
[0086] There may be multiple implementations in which the wearable device performs voice activity detection based on the bone conduction signal collected by the bone conduction microphone. This is not limited in this embodiment of the application. In the following, some implementations of voice activity detection by using examples are described. It should be noted that voice activity detection is mainly used to detect whether a human voice signal exists in the current input signal. Voice activity detection is used to determine the input signal to distinguish voice segments from non-voice segments (e.g., segments that only have various background noise signals), so that different processing methods can be performed on the segments of the signal.
[0087] Optionally, voice activity detection is used to detect whether there is a voice input by extracting features of the input signal. For example, whether there is a voice input is detected by extracting the features of short time energy (STE) and short time zero crossing counter (ZCC) of each frame of the input signal, i.e., voice activity detection is performed based on the energy features. The short time energy is the energy of a frame of a signal, and the zero crossing rate is the number of times a frame of a time domain signal passes through 0 (time axis). As another example, for comprehensive detection, some VAD methods with high accuracy are used to extract multiple features such as energy-based features, frequency domain features, cepstral features, harmonic features, and long-term features. Optionally, in addition to feature extraction, whether a frame of an input signal is a voice signal or a non-voice signal may be further determined with reference to threshold comparison, statistical methods, or machine learning methods. Features such as energy-based features, frequency domain features, cepstral features, harmonic features, and long-term features are briefly described below.
[0088] Energy-based features: VAD is performed based on the features of STE and ZCC. When the signal-to-noise ratio (SNR) is large, the STE is large and the ZCC is small for voice segments, and the STE is small and the ZCC is large for non-voice segments. Human voice signals usually have large energy and contain more energy in the low frequency band, while noise signals usually have small energy and contain more information in the high frequency band. Therefore, by extracting the two features of the input signal, voice signals and non-voice signals can be distinguished. The calculation method of STE can be to calculate the sum of squared energy of each frame of the input signal by using the spectrum. The method for calculating the short-time zero-crossing rate can be to calculate the number of times crossing zero corresponding to each frame of the input signal in the time domain. For example, all sampling points of a frame are translated left and right at one time point in the time domain, and the amplitude value of the sampling point after the translation and the amplitude value of the sampling point before the translation are multiplied at the corresponding point. If the sign of the obtained product of two corresponding sampling points is negative, it indicates that the corresponding sampling point is a zero crossing, and the short-time zero-crossing rate is obtained by calculating the amount of negative products of the frame.
[0089] Frequency domain features: The time domain signal of the input signal is transformed into a frequency domain signal by using short-time Fourier transform or another time-frequency transform method to obtain a spectrum, and the frequency domain features are obtained based on the spectrum. For example, envelope features of frequency bands are extracted based on the spectrum. In some experiments, when the SNR is 0 dB, the long-time envelope of some frequency bands can be used to distinguish between speech segments and noise segments.
[0090] Cepstral features: Cepstral features include, for example, energy cepstral peaks. In the case of VAD, the energy cepstral peaks determine the fundamental frequency (pitch) of the speech signal. In some embodiments, Mel-frequency cepstral coefficients (MFCCs) are used as cepstral features.
[0091] Harmonic-based features: An obvious feature of a speech signal is that it contains a fundamental frequency and multiple harmonic frequencies. Even in strong noise scenarios, harmonic features are present. The fundamental frequency of a speech signal can be found by using autocorrelation techniques.
[0092] Long-term features: Speech signals are non-stationary signals. Typically, 10-15 phonemes are uttered per second at typical speaking rates. The spectral distributions between phonemes are different. As a result, the statistical features of speech change over time. Most noises are stationary, i.e., slowly varying, e.g., white noise. Taking this into account, long-term features can be extracted to determine whether the input signal is a speech signal or a non-speech signal.
[0093] It should be noted that in this embodiment of the present application, the input signal used for voice activity detection is the bone conduction signal collected by the bone conduction microphone, and the voice activity detection is performed for each frame of the received bone conduction signal to detect whether there is voice input. Since the bone conduction microphone is always in an active state, the bone conduction signal continuously collected by the bone conduction microphone contains the complete information of the command word input by the sound source, i.e., the bone conduction signal does not lose the header.
[0094] Optionally, the sampling rate of the bone conduction signal is 32kHz (kilohertz), 48kHz, etc. This is not limited in this embodiment of the application. The sensor of the bone conduction microphone is a non-acoustic sensor, which can shield the influence of noise in the surrounding environment and has strong noise resistance performance.
[0095] Step 402: When a voice input is detected, detect a wake-up word based on a bone conduction signal.
[0096] In this embodiment of the present application, when voice input is detected, the wearable device detects the wake-up word based on the bone conduction signal, and detects whether the command word includes the wake-up word. It should be noted that there are multiple implementations in which the wearable device detects the wake-up word based on the bone conduction signal. The following describes two implementations.
[0097] First implementation In this embodiment of the present application, an implementation of the wearable device detecting a wake-up word based on a bone conduction signal is to determine a fusion signal based on the bone conduction signal, and perform wake-up word detection on the fusion signal.
[0098] First, an implementation form in which the wearable device determines the fusion signal based on the bone conduction signal is described. It should be noted that there are multiple ways in which the wearable device determines the fusion signal based on the bone conduction signal. Four ways are described below.
[0099] Method 1 of determining a fusion signal based on a bone conduction signal: Before the fusion signal is determined based on the bone conduction signal, an air microphone is turned on and an air conduction signal is collected by using the air microphone. For example, when it is detected that there is a voice input, the air microphone is turned on and an air conduction signal is collected by using the air microphone. The wearable device fuses the beginning part of the bone conduction signal with the air conduction signal to obtain a fusion signal. The beginning part of the bone conduction signal is determined based on the detection delay of the voice detection (e.g., VAD). In other words, the wearable device collects the bone conduction signal and the air conduction signal, and performs header loss compensation on the air conduction signal based on the beginning part of the bone conduction signal, so that the obtained fusion signal also includes information about the command word input by the sound source. In addition, the length of the fusion signal is short, and the amount of data processing can be reduced to a certain extent. Optionally, in this embodiment of the present application, signal fusion is performed via signal concatenation. In some embodiments, signal fusion may alternatively be performed in a manner such as signal superposition. In the following embodiments, an example of performing signal fusion via signal concatenation is used for explanation.
[0100] It should be noted that the bone conduction signal and the air conduction signal are signals generated by the same sound source, but the transmission paths of the bone conduction signal and the air conduction signal are different. As shown in Figure 5, the bone conduction signal is a signal formed by transmitting a vibration signal (excitation signal) through paths such as bones and tissues inside the human body, while the air conduction signal is a signal formed by transmitting sound waves through the air.
[0101] FIG. 6 is a schematic diagram of a signal time series according to an embodiment of the present application. The signal time series diagram shows the time series relationship between the bone conduction signal, the air conduction signal, the VAD control signal, and the user voice signal. When the sound source transmits a voice signal, the bone conduction signal immediately changes to a high-level signal. After Δt time, the VAD is used to determine that there is voice input, and a VAD control signal is generated. The VAD control signal controls the air microphone to be turned on and collects the air conduction signal, i.e., the air conduction signal changes to a high-level signal. It can be seen that the bone conduction signal and the user voice signal change synchronously, and the air conduction signal has a delay of Δt time compared with the bone conduction signal. The delay is due to the detection delay of the VAD. Δt indicates the detection delay of the voice activity detection, i.e., the time difference between the moment when the voice input is detected and the actual moment when the user inputs voice.
[0102] It should be noted that in this embodiment of the present application, the VAD can be used to detect the voice segment and the non-voice segment of the bone conduction signal, and the detection of the end point can detect the voice segment and the non-voice segment of the air conduction signal. Before fusing the start part of the bone conduction signal with the air conduction signal, the wearable device captures the voice segment from the bone conduction signal based on the detection result of the VAD, captures the voice segment from the air conduction signal based on the detection result of the end point detection, and fuses the start part of the captured voice segment in the bone conduction signal with the captured voice segment in the air conduction signal to obtain a fused signal. Figure 5 is used as an example. The time range of the voice segment captured from the bone conduction signal is [0, t], the time range of the start part of the bone conduction signal (i.e., the start part of the captured voice segment) is [0, t], the time range of the voice segment captured from the air conduction signal is [Δt, t], and the duration of the obtained fused signal is t. Δt indicates the detection delay of the voice activity detection, and t indicates the total duration of the actual voice input.
[0103] 7 is a schematic diagram of a signal fusion method according to an embodiment of the present application. For example, signal fusion is performed by signal concatenation. Referring to FIG. 7, x1[n] denotes the beginning of the bone conduction signal, x2[n] denotes the air conduction signal, f(x) denotes the concatenation function, and f(x):b[n] 0,△t =concat[x1[n] 0,△t +x2[n] 0,△t ,x2[n] △t,t ] and x2[n] 0,△t is 0. In other words, the beginning part of the bone-conducted signal (i.e., the audio segment from 0 to Δt) and the air-conducted signal (i.e., the audio segment from Δt to t) are concatenated according to f(x) to obtain a fusion signal b[n].
[0104] Optionally, before the beginning portion of the bone conduction signal and the air conduction signal are fused, the wearable device pre-processes the air conduction signal, and the pre-processing includes front-end enhancement. The front-end enhancement can eliminate some noises and effects caused by different sound sources, so that the air conduction signal obtained through the front-end enhancement can better reflect the essential features of the voice, so as to improve the accuracy of the voice wake-up. It should be noted that there are multiple ways to perform front-end enhancement on the air conduction signal, such as end point detection and voice enhancement. The voice enhancement includes, for example, echo cancellation, beamforming algorithm, noise cancellation, automatic gain control, and dereverberation. The end point detection can be used to distinguish between the voice segment and the non-voice segment of the air conduction signal, i.e., to accurately determine the beginning point of the voice segment. After the end point detection, only the voice segment of the air conduction signal can be processed thereafter to improve the accuracy and recall rate of the voice recognition. The voice enhancement is used to eliminate the effect of environmental noise on the voice segment. For example, the echo cancellation is for suppressing the interference of the remote signal by using an effective echo cancellation algorithm, and mainly includes double talk detection and delay estimation. For example, the current talk mode (e.g., near talk mode, far talk mode, or double talk mode) is determined, and a corresponding policy is used to adjust the filter based on the current talk mode, the remote interference of the air-conducted signal is filtered out by using the filter, and the residual noise interference is removed by using a post-filtering algorithm. In another example, an automatic gain algorithm is used to quickly perform gain adjustment of the signal to reach a suitable volume. In this solution, every sampling point of the air-conducted signal can be multiplied by a corresponding gain coefficient through a simple gain process, and the corresponding gain coefficient is multiplied at each frequency in the frequency domain. The frequencies of the air-conducted signal can be weighted based on the equal-volume contour, and the volume gain coefficient is mapped to the equal-volume contour to determine the gain coefficient of each frequency.
[0105] Optionally, before the beginning of the bone conduction signal and the air conduction signal are fused, the wearable device pre-processes the bone conduction signal, and the pre-processing includes downsampling and / or gain adjustment. Downsampling can be used to reduce the amount of data of the bone conduction signal and improve data processing efficiency. Gain adjustment is used to increase the energy of the adjusted bone conduction signal. For example, the average energy of the bone conduction signal is matched with the average energy of the air conduction signal through gain adjustment. It should be noted that there are multiple ways to perform downsampling and / or gain adjustment on the bone conduction signal, which is not limited in this embodiment of the application. Downsampling is to reduce the sampling frequency (also called sampling rate) of a signal, and is a method of resampling a signal. The sampling frequency is the number of times samples of sound wave amplitude are extracted per second after the waveform of analog voice is digitized. In the process of downsampling an air conduction signal x[n] with a sampling frequency of Fs and containing N sampling points, one sampling point is extracted every M-1 sampling points to obtain an air conduction signal y[m] containing M sampling points. According to the Nyquist sampling theorem, downsampling may cause signal spectrum confusion. Therefore, before downsampling, a low-pass decoupling filter may be used to process the air conduction signal, i.e., perform anti-aliasing filtering to reduce the spectrum confusion caused by the subsequent downsampling. The gain adjustment is to adjust the amplitude value of the sampling point of the bone conduction signal by using a gain coefficient, or adjust the energy value of the frequency of the bone conduction signal. The gain coefficient may be determined according to a gain function, or may be determined based on the statistical information of the air conduction signal and the bone conduction signal. This is not limited in this embodiment of the present application.
[0106] FIG. 8 is a schematic diagram of performing downsampling on a bone conduction signal according to an embodiment of the present application. Please refer to FIG. 8. The sampling rate of the bone conduction signal is assumed to be 48 kHz. The collected bone conduction signal x[n] is first sent to an anti-aliasing filter H(z) to prevent signal aliasing. v[n] denotes the bone conduction signal obtained through anti-aliasing filtering, and the sampling rate remains unchanged. Three downsamplings are performed on v[n] to obtain a bone conduction signal y[m] obtained by three downsamplings, and the sampling rate is reduced to 16 kHz.
[0107] Fig. 9 is a schematic diagram of performing gain adjustment on a bone conduction signal according to an embodiment of the present application. Referring to Fig. 9, x[n] is a bone conduction signal, f(g) is a gain function, f(g):y[n]=G*x[n]. In other words, a gain adjustment is performed on x[n] by using a gain coefficient G determined according to f(g), to obtain a bone conduction signal y[n] obtained by gain adjustment.
[0108] Method 2 of determining a fusion signal based on a bone conduction signal: Before the fusion signal is determined based on the bone conduction signal, an air microphone is turned on, and an air conduction signal is collected by using the air microphone. The wearable device generates an emphasis start signal based on a start portion of the bone conduction signal, and fuses the emphasis start signal and the air conduction signal to obtain a fusion signal. The start portion of the bone conduction signal is determined based on the detection delay of the voice detection. In other words, the wearable device generates an emphasis start signal based on a start portion of the bone conduction signal, and performs header loss compensation on the collected air conduction signal based on the emphasis start signal, so that the obtained fusion signal also contains information about the command word input by the sound source. In addition, the length of the fusion signal is short, and the amount of data processing can be reduced to a certain extent.
[0109] It should be noted that the difference between the method 1 of determining the fusion signal based on the bone conduction signal and the method 2 is that in the method 2 of determining the fusion signal based on the bone conduction signal, the enhancement start signal is generated based on the start portion of the bone conduction signal, and the enhancement start signal and the air conduction signal are fused instead of the start portion of the bone conduction signal and the air conduction signal. In addition, other contents described in the method 1 are applicable to the method 2. The details of the method 2 will not be described again. For example, in the method 2, voice segment detection may be performed on the bone conduction signal and the air conduction signal to capture a voice segment, and signal coupling is performed based on the captured voice segment to reduce the amount of data processing. The wearable device can further pre-process the bone conduction signal and the air conduction signal, for example, perform downsampling and / or gain adjustment on the bone conduction signal, and perform voice enhancement on the air conduction signal.
[0110] In this embodiment of the present application, the wearable device can input the beginning part of the bone conduction signal into the generative network model to obtain the enhancement start signal output by the generative network model. The generative network model is a model obtained by training according to a deep learning algorithm. The generative network model can be considered as a signal generator, and based on the input signal, can generate a voice signal that includes information about the input signal and is close to a real voice. In this embodiment of the present application, the enhancement start signal includes signal information of the beginning part of the bone conduction signal, and the enhancement start signal is close to a real voice signal. It should be noted that the network structure, training method, training device, etc. of the generative network model are not limited in this embodiment of the present application. Hereinafter, the training method of the generative network model will be described by using an example.
[0111] In this embodiment of the present application, for example, a computer device performs training to obtain a generative network model. The computer device obtains a first training data set, and the first training data set includes a plurality of first sample signal pairs. The computer device inputs the beginning parts of bone conduction sample signals in the plurality of first sample signal pairs to the initial generative network model to obtain a plurality of emphasis start sample signals output by the initial generative network model. The computer device inputs the plurality of emphasis start sample signals and the beginning parts of air conduction sample signals in the plurality of first sample signal pairs to the initial judgment network model to obtain a judgment result output by the initial judgment network model. The computer device adjusts the network parameters of the initial generative network model based on the judgment result to obtain a trained generative network model. One first sample signal pair includes the beginning part of one bone conduction sample signal and the beginning part of one air conduction sample signal, and one first sample signal pair corresponds to one command word, and the bone conduction sample signal and the air conduction sample signal include complete information of the corresponding command word.
[0112] Optionally, the first sample signal pair obtained by the computer device includes a bone conduction sample signal and an air conduction sample signal. The computer device captures the beginning part of the bone conduction sample signal and the beginning part of the air conduction sample signal to obtain input data for the initial generative network model and the initial decision network model. In other words, the computer device first obtains a complete voice signal and then captures the beginning part to obtain training data. Alternatively, the first sample signal pair obtained by the computer device includes only the beginning part of the bone conduction sample signal and the beginning part of the air conduction sample signal.
[0113] Optionally, the first training data set includes directly collected voice data, public voice data, and / or voice data purchased from a third party. Optionally, before training, the computer device may pre-process the obtained first training data set to obtain a pre-processed first training data set. The pre-processed first training data set can be used to simulate the distribution of real voice data, so that the voice data is closer to the voice in a real scenario. This increases the diversity of the training samples. For example, the first training data set is backed up, i.e., additional data is added, and the backup data is pre-processed. Optionally, the backup data is split into multiple parts, and pre-processing is performed on each data. The pre-processing performed on each data may be different. This doubles the total training data, ensures the completeness of the data, achieves a balance between performance and training overhead, and may improve the accuracy and robustness of the speech recognition to a certain extent. Methods for pre-processing each data may include one or more of noise addition, volume enhancement, add reverb, time shifting, pitch shifting, time stretching, etc.
[0114] For example, noise addition is to mix one or more types of background noise into the speech signal, so that the training data can include more types of noise, such as office, camping, and street background noise. Noises of different signal-to-noise ratios can be further mixed. For example, the signal-to-noise ratio can be selected in a normal distribution manner so that the average of the signal-to-noise ratio is good. The average can be 10 dB, 20 dB, etc., and the signal-to-noise ratio can be in a range of 10 dB to 30 dB, etc. The computing device can select the signal energy S and the signal-to-noise ratio SNR based on the formula SNR=10*log 10 (S 2 / N 2), the noise energy N can be calculated according to: Loudness enhancement is the enhancement or attenuation of the loudness of the audio signal based on a loudness change factor, which may range from 0.5 to 1.5, or another value. Dereverberation is the process of adding reverberation to an audio signal, where reverberation is generated by the reflection of the audio signal in the spatial environment. Pitch shifting, e.g., treble correction, is the modification of the pitch of an audio signal without affecting the speed of sound. Time stretching is the modification of the speed or duration of an audio signal, i.e., the speech rate, without affecting the pitch, so that the training data can include different speech rates, and the speech rate modification range can be between 0.9 and 1.1, or another range.
[0115] FIG. 10 is a schematic diagram of a generative network model training method according to an embodiment of the present application. The generator (i.e., the initial generative network model) is a network for generating a voice signal. The beginning part of the bone conduction sample signal of the first training data set is input to the generator. Optionally, random noise is superimposed on the bone conduction sample signal before the beginning part is input to the generator. The input bone conduction sample signal is processed by the generator to generate an enhanced beginning sample signal. The decider (i.e., the initial decision network model) is a decision network, configured to determine whether the input signal is a real voice signal. The decision result output by the decider indicates whether the input signal is a real voice signal. If the output decision result is 1, it indicates that the decider has determined that the input signal is a real voice signal. If the output decision result is 0, it indicates that the decider has determined that the input signal is not a real voice signal. To train the generator and the decider, the parameters of the generator and the decider are adjusted by determining whether the decision result is accurate. In the training process, the goal of the generator is to generate a fake voice signal to deceive the classifier, and the goal of the classifier is to distinguish whether the input signal is real or generated. It can be seen that the generator and the classifier essentially play a game based on the training data. In the process of the game, the capabilities of the generator and the classifier are improved. In the ideal case, the accuracy of the trained classifier is around 0.5.
[0116] After the training is completed, the generative network model obtained by the training is deployed in the wearable device, and the wearable device inputs the start signal of the collected bone conduction signal into the generative network model to obtain the enhancement start signal output by the generative network model. It should be noted that in addition to the method of generating the enhancement start signal, the computer device can alternatively generate the enhancement start signal based on the start signal of the bone conduction signal by using other methods, which is not limited in this embodiment of the present application.
[0117] Method 3 of determining a fusion signal based on a bone conduction signal: Before the fusion signal is determined based on the bone conduction signal, an air microphone is turned on and an air conduction signal is collected by using the air microphone. The wearable device directly fuses the bone conduction signal and the air conduction signal to obtain a fusion signal. In this way, the obtained fusion signal also contains information about the command word input by the sound source. In addition, the fusion signal contains both the complete speech information of the bone conduction signal and the complete speech information of the air conduction signal, so the fusion signal contains more speech features. This improves the accuracy of speech recognition to a certain extent.
[0118] It should be noted that the difference between the method 1 of determining the fusion signal based on the bone conduction signal and the method 3 is that in the method 3 of determining the fusion signal based on the bone conduction signal, the wearable device directly fuses the bone conduction signal and the air conduction signal. In addition, other contents described in the method 1 are applicable to the method 3. The details of the method 3 will not be described again. For example, in the method 3, voice segment detection may be performed on the bone conduction signal and the air conduction signal to capture a voice segment, and the captured voice segment is fused to reduce the amount of data processing. The bone conduction signal and the air conduction signal may be further pre-processed, for example, downsampling and / or gain adjustment is performed on the bone conduction signal, and end point detection and voice enhancement are performed on the air conduction signal.
[0119] For example, it is assumed that signal fusion is performed by signal concatenation, e.g., x1[n] denotes the bone conduction signal, x2[n] denotes the air conduction signal, and f(x) denotes the concatenation function f(x):b[n] 0,2t =concat[x1[n] 0,t ,x2[n] 0,t ], and x2[n] 0,△t = 0. In other words, the bone-conducted signal (the voice segment from 0 to t) and the air-conducted signal (the signal segment from 0 to t) are concatenated according to f(x) to obtain a fusion signal b[n]. Alternatively, f(x):b[n] 0,2t-△t =concat[x1[n] 0-t ,x2[n]△t-t In other words, the bone-conducted signal (the speech segment from 0 to t) and the air-conducted signal (the signal segment from △t to t) are concatenated according to f(x) to obtain a fusion signal b[n].
[0120] Method 4 for determining the fusion signal based on the bone conduction signal: The wearable device determines the bone conduction signal as the fusion signal. In other words, the wake-up word can be detected based only on the bone conduction signal.
[0121] It should be noted that the difference between the method 1 of determining the fusion signal based on the bone conduction signal and the method 4 of determining the fusion signal based on the bone conduction signal is that in the method 4 of determining the fusion signal based on the bone conduction signal, the bone conduction signal is directly used as the fusion signal. In addition, other contents described in the method 1 are applicable to the method 4. The details of the method 4 are not described again. For example, in the method 4, voice segment detection may also be performed on the bone conduction signal to capture a voice segment, and the captured voice segment is used as the fusion signal to reduce the amount of data processing. The bone conduction signal may be further pre-processed, for example, downsampling and / or gain adjustment is performed on the bone conduction signal.
[0122] Below, we describe an implementation in which a wearable device recognizes the fused signal to detect the wake-up word.
[0123] In this embodiment of the present application, the wearable device inputs a plurality of audio frames included in the fusion signal into the first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model. The wearable device detects the wake-up word based on the plurality of posterior probability vectors. The plurality of posterior probability vectors correspond one-to-one to the plurality of audio frames included in the fusion signal, i.e., one posterior probability vector corresponds to one audio frame included in the fusion signal, and a first posterior probability vector among the plurality of posterior probability vectors indicates a probability that a phoneme of a first audio frame among the plurality of audio frames belongs to a plurality of designated phonemes, i.e., one posterior probability vector indicates a probability that a phoneme of a corresponding one audio frame belongs to a plurality of designated phonemes. In other words, the wearable device processes the fusion signal by using the first acoustic model to obtain information about the phonemes included in the fusion signal, and detects the wake-up word based on the information about the phonemes. Optionally, in this embodiment of the present application, the first acoustic model can be the above-mentioned network model, or a model of another structure. After inputting the fusion signal into the first acoustic model, the wearable device processes each audio frame included in the fusion signal by using the first acoustic model to obtain a posterior probability vector output by the first acoustic model corresponding to each audio frame.
[0124] In this embodiment of the present application, after obtaining the multiple posterior probability vectors output by the first acoustic model, the wearable device determines a confidence level that the phoneme sequence corresponding to the command word input by the sound source includes the phoneme sequence corresponding to the wake-up word based on the multiple posterior probability vectors and the phoneme sequence corresponding to the wake-up word. When the confidence level exceeds a confidence level threshold, it is determined that the command word includes the wake-up word. In other words, the wearable device decodes the multiple posterior probability vectors to determine a confidence level threshold. The phoneme sequence corresponding to the wake-up word may be referred to as a decoding path, the determined confidence level may be referred to as a path score, and the confidence level threshold may be referred to as a wake-up threshold.
[0125] For example, in this embodiment of the present application, after the posterior probability vector corresponding to each audio frame is obtained by using the first acoustic model, the multiple posterior probability vectors corresponding to multiple consecutive audio frames are input into a decoding graph (also called a state network) constructed based on a language model and a pronunciation dictionary. The probability of each phoneme in the decoding path is searched in the decoding graph, and the probability of each found phoneme is added to obtain a confidence score. The decoding path is a phoneme sequence corresponding to the wake-up word. If the confidence score is greater than a confidence score threshold, it is determined that the command word is detected to include the wake-up word.
[0126] Optionally, in order to reduce the false wake-up rate, if the confidence exceeds a confidence threshold and the multiple posterior probability vectors and the multiple template vectors satisfy a distance condition, the wearable device determines that the command word input by the sound source is detected to include a wake-up word. The multiple template vectors indicate a probability that a phoneme of the audio signal containing the complete information of the wake-up word belongs to the multiple specified phonemes. In other words, the current input voice not only needs to satisfy the confidence condition, but also needs to match the template. In this embodiment of the present application, the confidence threshold may be preset, for example, may be set based on experience, or may be determined based on a bone conduction registration signal and / or an air conduction registration signal containing the complete information of the wake-up word during the wake-up word registration. A specific implementation form is described below. The multiple template vectors are registration posterior probability vectors determined based on a bone conduction registration signal and / or an air conduction registration signal. A specific implementation form is described below.
[0127] Optionally, when the multiple posterior probability vectors correspond one-to-one to the multiple template vectors, the distance condition includes that the average of the distance between the multiple posterior probability vectors and the corresponding template vectors is less than a distance threshold. It should be noted that when the multiple posterior probability vectors correspond one-to-one to the multiple template vectors, the wearable device can directly calculate the distance between the multiple posterior probability vectors and the corresponding template vectors and calculate the average. For example, when the duration of the voice input by the current sound source matches the duration of the voice input by the user during the registration of the wake-up word, the multiple posterior probability vectors can correspond one-to-one to the multiple template vectors. However, when the duration of the voice input by the current sound source does not match the duration of the voice input by the user during the registration of the wake-up word, the multiple posterior probability vectors may not correspond one-to-one to the multiple template vectors. In this case, the wearable device may establish a mapping relationship between the multiple posterior probability vectors and the multiple template vectors by using a dynamic time warping (DTW) method, and calculate the distance between the multiple posterior probability vectors and the corresponding template vectors. In other words, the wearable device can solve the template matching problem by DTW when the data lengths are different.
[0128] Above, a first implementation form is described in which the wearable device detects a wake-up word based on a bone conduction signal. In the first implementation form, the wearable device first determines a fusion signal based on a bone conduction signal (including four modes), and then processes the fusion signal by using an acoustic model to obtain a posterior probability vector. Then, the wearable device decodes the obtained posterior probability vector based on a decoding path corresponding to the wake-up word to obtain a confidence corresponding to the command word currently input by the sound source. When the confidence is greater than a confidence threshold, the wearable device determines that the command word is detected to include a wake-up word. Alternatively, when the confidence is greater than a confidence threshold and the obtained multiple posterior probability vectors match the template vector, the wearable device determines that the command word is detected to include a wake-up word. Below, a second implementation form is described in which the wearable device detects a wake-up word based on a bone conduction signal.
[0129] Second implementation In this embodiment of the present application, before detecting the wake-up word based on the bone conduction signal, the wearable device turns on an air microphone, and collects an air-conducted signal by using the air microphone. For example, when it is detected that there is a voice input, the air microphone is turned on, and collects an air-conducted signal by using the air microphone. The wearable device determines a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, and detects the wake-up word based on the plurality of posterior probability vectors. The plurality of posterior probability vectors correspond one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, and a first posterior probability vector of the plurality of posterior probability vectors indicates a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes. It should be noted that the plurality of audio frames includes an audio frame included in the bone conduction signal and an audio frame included in the air conduction signal. In other words, each of the multiple posterior probability vectors corresponds to an audio frame included in the bone conduction signal or the air conduction signal, and each posterior probability vector indicates the probability that a phoneme in the corresponding audio frame belongs to multiple specified phonemes.
[0130] Please note that for relevant descriptions of the bone conduction signal and the air conduction signal, please refer to the contents of the first implementation form, including the generation principle of the bone conduction signal and the air conduction signal, the pre-processing of the bone conduction signal and the air conduction signal, etc. The details will not be described again in this specification.
[0131] First, the following describes an implementation form in which the wearable device determines multiple posterior probability vectors based on the bone conduction signal and the air conduction signal. It should be noted that there are multiple ways in which the wearable device determines multiple posterior probability vectors based on the bone conduction signal and the air conduction signal. Three ways are described below.
[0132] Method 1 of determining a plurality of posterior probability vectors based on a bone conduction signal and an air conduction signal: The wearable device inputs a start portion of the bone conduction signal and the air conduction signal into a second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by the second acoustic model. The start portion of the bone conduction signal is determined based on a detection delay of the voice detection, and the first amount of bone conduction posterior probability vector corresponds one-to-one to an audio frame included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponds one-to-one to an audio frame included in the air conduction signal. The wearable device fuses the first bone conduction posterior probability vector and the first air conduction posterior probability vector to obtain a second posterior probability vector. The first bone conduction posterior probability vector corresponds to the last audio frame of the start portion of the bone conduction signal, and the duration of the last audio frame is shorter than the duration of the frame, and the first air conduction posterior probability vector corresponds to the first audio frame of the air conduction signal, and the duration of the first audio frame is shorter than the duration of the frame. The plurality of posterior probability vectors finally determined by the wearable device include a second posterior probability vector, a vector in a first amount of bone conduction posterior probability vectors other than the first bone conduction posterior probability vector, and a vector in a second amount of air conduction posterior probability vectors other than the first air conduction posterior probability vector. The first amount and the second amount may be the same or different.
[0133] Please note that for the relevant description of the beginning part of the bone conduction signal, please refer to the contents of the first implementation form. The details will not be described again in this specification. In this embodiment of the present application, the last audio frame of the beginning part of the bone conduction signal may not be a complete audio frame, i.e., the duration of the last audio frame is shorter than the duration of the frame. For example, the beginning part of the bone conduction signal includes an audio frame of half a frame period. Since the air conduction signal loses a header, the first audio frame of the air conduction signal may not be a complete audio frame, i.e., the duration of the first audio frame is shorter than the duration of the frame. For example, the first audio frame of the air conduction signal includes an audio frame of half a frame period. In addition, the sum of the duration of the last audio frame of the beginning part of the bone conduction signal and the duration of the first audio frame of the air conduction signal may be equal to the duration of the frame. In short, because the beginning part of the bone conduction signal and the first frame of the air conduction signal are incomplete, which is caused by voice detection (e.g., VAD), the beginning part of the bone conduction signal and the first frame of the air conduction signal together show information about a complete audio frame. Please note that the complete audio frame is a potential audio frame, not an actual frame. Optionally, the wearable device adds the first bone conduction posterior probability vector to the first air conduction posterior probability vector to obtain a second posterior probability vector, the second posterior probability vector obtained by the wearable device indicating a probability that a phoneme of the complete audio frame belongs to the multiple specified phonemes.
[0134] In other words, when the detection delay of the voice detection is not an integer multiple of the duration of the frame, the duration of the last audio frame of the beginning part of the bone conduction signal is shorter than the duration of the frame, and the duration of the first audio frame of the air conduction signal is shorter than the duration of the frame. The wearable device needs to fuse (e.g., add) the second bone conduction posterior probability vector and the second air conduction posterior probability vector to obtain a plurality of posterior probability vectors. Optionally, when the detection delay of the voice detection is an integer multiple of the duration of the frame, the duration of the last audio frame of the beginning part of the bone conduction signal is equal to the duration of the frame, and the duration of the first audio frame of the air conduction signal is equal to the duration of the frame. The wearable device uses the obtained first amount of bone conduction posterior probability vector and the second amount of air conduction posterior probability vector as a plurality of posterior probability vectors to perform subsequent processing.
[0135] FIG. 11 is a schematic diagram of the structure of another acoustic model according to an embodiment of the present application. The acoustic model shown in FIG. 11 is the second acoustic model in this embodiment of the present application. It can be seen that the second acoustic model in this embodiment of the present application includes two input layers (not shown), one shared network layer, and two output layers. The two input layers are used to input the beginning part of the bone conduction signal and the air conduction signal separately. The shared network layer is used to process the input data separately in the two input layers and extract the features of the beginning part of the bone conduction signal and the air conduction signal separately. The two output layers are used to receive the two output data separately in the shared network layer and process the two output data separately to output a first amount of bone conduction posterior probability vector corresponding to the beginning part of the bone conduction signal and a second amount of air conduction posterior probability vector corresponding to the air conduction signal. In other words, the wearable device uses the second acoustic model to process the two parts of the signal, the beginning part of the bone conduction signal and the air conduction signal separately to obtain two groups of posterior probability vectors corresponding to the two parts of the signal. Because shared network layers exist in the acoustic model, the two parts of the signal share some network parameters.
[0136] In this embodiment of the present application, the wearable device fuses the obtained first bone conduction posterior probability vector and the first air conduction posterior probability vector to obtain a second posterior probability vector, so that the multiple bone conduction posterior probability vectors and the multiple air conduction posterior probability vectors are fused to obtain multiple posterior probability vectors. In other words, the wearable device fuses the posterior probabilities of two parts of the signal so that the obtained multiple posterior probability vectors contain information about the command word input by the sound source. This can also be considered as a method for performing header loss compensation on the air conduction signal based on the bone conduction signal, except that the compensation is not performed by directly fusing (e.g., concatenating) the signals. In addition, the solution of processing the beginning part of the bone conduction signal and the air conduction signal by using the second acoustic model can be considered as a multi-task solution. In other words, the beginning part of the bone conduction signal and the air conduction signal are used as two tasks, and the corresponding posterior probability vectors are determined separately by using a method of sharing network parameters to implicitly fuse the beginning part of the bone conduction signal and the air conduction signal.
[0137] Method 2 of determining a plurality of posterior probability vectors based on bone conduction signal and air conduction signal: The wearable device inputs the beginning part of the bone conduction signal and the air conduction signal into a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model. The beginning part of the bone conduction signal is determined based on the detection delay of the voice detection. Please note that for the relevant description of the beginning part of the bone conduction signal, please refer to the contents of the first implementation form. The details will not be described again in this specification.
[0138] In this embodiment of the present application, as shown in FIG. 12, the third acoustic model includes two input layers (e.g., one input layer includes a layer such as DNN or CNN), one concatenation layer (concat layer), one network parameter layer (e.g., includes a layer such as RNN), and one output layer (e.g., includes a layer such as softmax layer). The two input layers are used to input the bone conduction signal and the air conduction signal separately, the concatenation layer is used to concatenate the output data at the two input layers, the network parameter layer is used to process the output data at the concatenation layer, and the output layer is used to output a group of posterior probability vectors. In other words, the wearable device inputs the start part of the bone conduction signal and the air conduction signal into the third acoustic model at the same time, and implicitly fuses the start part of the bone conduction signal and the air conduction signal by using the concatenation layer of the third acoustic model to obtain a group of posterior probability vectors, so that the obtained multiple posterior probability vectors include information about the command word input by the sound source. This can also be thought of as a method for performing header loss compensation for air-conducted signals based on bone-conducted signals, except that the compensation is not performed by directly fusing the signals.
[0139] Method 3 of determining a plurality of posterior probability vectors based on bone conduction signal and air conduction signal: The wearable device inputs the bone conduction signal and the air conduction signal into a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model. In other words, the wearable device directly inputs the bone conduction signal and the air conduction signal into the third acoustic model at the same time, and outputs a group of posterior probability vectors by using the third acoustic model, so that the obtained plurality of posterior probability vectors include information about the command words input by the sound source. This can also be considered as a method for performing header loss compensation for the air conduction signal based on the bone conduction signal, except that the compensation is not performed by directly fusing the signals.
[0140] The following describes an implementation in which a wearable device detects a wake-up word based on multiple posterior probability vectors.
[0141] In this embodiment of the present application, the wearable device determines a confidence level that the phoneme sequence corresponding to the command word input by the sound source includes the phoneme sequence corresponding to the wake-up word based on a plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word. When the confidence level exceeds a confidence level threshold, it is determined that the wake-up word is detected. For a specific implementation form, please refer to the relevant description of the first implementation form. Details will not be described again in this specification.
[0142] Optionally, in order to reduce the false wake-up rate, when the confidence exceeds a confidence threshold and the plurality of posterior probability vectors and the plurality of template vectors satisfy a distance condition, the wearable device determines that the command word is detected to include a wake-up word. Optionally, when the plurality of posterior probability vectors correspond one-to-one to the plurality of template vectors, the distance condition includes that the average of the distance between the plurality of posterior probability vectors and the corresponding template vector is less than a distance threshold. For a specific implementation form, please refer to the related description of the first implementation form. Details will not be described again in this specification.
[0143] Step 403: When it is detected that the command word includes a wake-up word, perform voice wake-up on the device to be woken up.
[0144] In this embodiment of the present application, when it is detected that the command word input by the sound source includes a wake-up word, the wearable device performs voice wake-up. For example, the wearable device sends a wake-up command to the smart device (i.e., the device to be woken up) to wake up the smart device. Alternatively, if the wearable device is a smart device, the wearable device wakes up another component or module other than the bone conduction microphone so that the entire wearable device can enter into an operating state.
[0145] From the above, it can be seen that the voice wake-up method provided in this embodiment of the present application has multiple implementation forms, such as the first implementation form and the second implementation form described above. The two implementation forms further include multiple specific implementation forms. In the following, some of the specific implementation forms described above will be described again with reference to Figures 13 to 18.
[0146] FIG. 13 is a flowchart of another voice wake-up method according to an embodiment of the present application. FIG. 13 corresponds to Scheme 1 in the first implementation form. For example, the voice wake-up is performed by using multiple modules of a wearable device. The wearable device collects bone conduction signals by using a bone conduction microphone, and performs VAD on the bone conduction signals by using a VAD control module. When voice input is detected, the VAD control module outputs a high-level VAD control signal. When voice input is not detected, the VAD control module outputs a low-level VAD control signal. The VAD control module sends the VAD control signal to the air microphone control module, the front-end enhancement module, and the recognition engine, respectively. The VAD control signal is used to control the switches of the air microphone control module, the front-end enhancement module, and the recognition engine. When the VAD control signal is at a high level, the air microphone control module controls the air microphone to be turned on to collect air conduction signals, the front-end enhancement module is turned on to perform front-end enhancement on the air conduction signals, and the recognition engine is turned on to detect the wake-up word based on the bone conduction signal and the air conduction signal. The fusion module performs pre-processing, such as downsampling and / or gain adjustment, on the bone conduction signal, and performs header loss compensation on the air conduction signal obtained through front-end enhancement based on the beginning portion of the pre-processed bone conduction signal to obtain a fusion signal. The fusion module sends the fusion signal to a recognition engine, which recognizes the fusion signal by using a first acoustic model to obtain a wake-up word detection result. The recognition engine sends the obtained detection result to a processor (e.g., a micro-controller unit (MCU) shown in the drawings), and the processor decides whether to wake up the smart device based on the detection result.If the detection result indicates that the command word input by the audio source includes a wake-up word, the processor performs a voice wake-up on the smart device. If the detection result indicates that the wake-up word is not detected, the processor does not wake up the smart device.
[0147] 14-16 are flow charts of three other voice wake-up methods according to embodiments of the present application. The distinct difference between FIG. 14, FIG. 15, and FIG. 16 and FIG. 13 is that in the method shown in FIG. 14, the fusion module generates an enhancement start signal based on the beginning part of the preprocessed bone conduction signal, and performs header loss compensation on the air conduction signal obtained through front-end enhancement based on the enhancement start signal to obtain a fusion signal. In the method shown in FIG. 15, the fusion module directly concatenates the preprocessed bone conduction signal and the air conduction signal obtained by front-end enhancement to obtain a fusion signal, and performs header loss compensation on the air conduction signal. In the method shown in FIG. 16, the VAD control signal does not need to be sent to the air microphone control module, and therefore the air conduction signal does not need to be collected. In addition, the recognition engine directly determines the preprocessed bone conduction signal as the fusion signal.
[0148] Figure 17 is a flow chart of yet another voice wake-up method according to an embodiment of the present application. The difference between Figure 17 and Figure 13 is that in the method shown in Figure 17, the recognition engine inputs the beginning part of the pre-processed bone conduction signal and the air conduction signal obtained by front-end enhancement into the second acoustic model separately to obtain the bone conduction posterior probability vector and the air conduction posterior probability vector output by the two output layers of the second acoustic model respectively, to obtain a posterior probability pair. The recognition engine fuses the bone conduction posterior probability vector and the air conduction posterior probability vector to obtain multiple posterior probability vectors, and decodes the multiple posterior probability vectors to obtain the detection result of the wake-up word.
[0149] Figure 18 is a flowchart of yet another voice wake-up method according to an embodiment of the present application. The difference between Figure 18 and Figure 17 is that in the method shown in Figure 18, the recognition engine inputs the beginning part of the preprocessed bone conduction signal and the air conduction signal obtained by front-end enhancement into a third acoustic model separately, or inputs the preprocessed bone conduction signal and the air conduction signal obtained by front-end enhancement into a third acoustic model separately, to obtain multiple posterior probability vectors that are output by one output layer of the third acoustic model separately.
[0150] It can be seen that in this embodiment of the present application, in order to ensure low power consumption, a bone conduction microphone collects the bone conduction signal for voice detection. It is believed that when low power consumption is ensured, delay in voice detection may cause header loss of the collected air conduction signal, so that the complete information of the command word input from the sound source is not included. However, the bone conduction signal collected by the bone conduction microphone contains information about the command word input by the sound source, that is, the bone conduction signal does not lose the header. Therefore, this solution detects the wake-up word based on the bone conduction signal. In this way, the recognition accuracy of the wake-up word is high, and the accuracy of the voice wake-up is high. During a specific implementation, the header loss compensation can be performed directly or implicitly on the air conduction signal based on the bone conduction signal, or the wake-up word can be directly detected based on the bone conduction signal.
[0151] Above describes the implementation form in which the wearable device performs audio wake-up based on bone conduction signals. In this embodiment of the present application, the wake-up word can be further registered in the wearable device. Optionally, the confidence threshold in the above embodiment can be further determined when the wake-up word is registered, and the multiple template vectors in the above embodiment can be further determined. The following describes the wake-up word registration process.
[0152] In this embodiment of the present application, the wearable device first determines a phoneme sequence corresponding to the wake-up word. Then, the wearable device obtains a bone conduction enrollment signal, where the bone conduction enrollment signal includes complete information of the wake-up word. The wearable device determines a confidence threshold based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word. Optionally, the wearable device may further determine a plurality of template vectors based on the bone conduction signal.
[0153] Optionally, the wearable device obtains an input wake-up word, and determines a phoneme sequence corresponding to the wake-up word according to a pronunciation dictionary. For example, a user inputs a wake-up word text into the wearable device. The wearable device obtains the wake-up word text input by the user, and determines a phoneme sequence corresponding to the wake-up word according to a pronunciation dictionary. Optionally, during the wake-up word registration, after the user inputs the wake-up word text, the wearable device may further detect whether the input wake-up word text meets a text registration condition. When the text registration condition is met, the wearable device determines a phoneme sequence corresponding to the wake-up word text according to a pronunciation dictionary.
[0154] For example, the text registration conditions include text input amount requirements, character requirements, etc. For example, the text input amount requirements are that the user needs to input the wake-up word text one or more times. Each time the wearable device detects the wake-up word text input by the user, the wearable device performs text verification and analysis on the input wake-up word text to verify whether the currently input wake-up word text meets the character requirements. If the wake-up word text input by the user does not meet the character requirements, the wearable device prompts the user for the reason why the wake-up word text does not meet the requirements by using text or voice, and requests re-input. If the wake-up word text input by the user one or more times meets the character requirements and is the same, the wearable device determines the phoneme sequence corresponding to the wake-up word text according to the pronunciation dictionary.
[0155] Optionally, the wearable device detects through text verification whether the text of the currently input wake-up word meets character requirements. For example, the character requirement may include one or more of the following requirements: Chinese language is required (text that is not Chinese indicates that the character requirement is not met); 4-6 characters are required (text with fewer than 4 characters or more than 6 characters indicates that the character requirement is not met); there are no modal particles (if modal particles are present, the characteristic requirement is not met); there are no more than 3 repeated characters with the same pronunciation (if there are 4 or more repeated characters with the same pronunciation, the character requirement is not met); the text is different from all existing command words (if the text is the same as any existing command word, the character requirement is not met); the proportion of phonemes that overlap with the phonemes of existing command words does not exceed 70% (if the proportion of phonemes that overlap with the phonemes of existing command words exceeds 70%, the character requirement is not met to prevent false recognition); and the corresponding phonemes belong to the phonemes of the pronunciation lexicon (if the corresponding phonemes do not belong to the phonemes in the pronunciation lexicon, the character requirement is not met, which is an abnormal case).
[0156] The above is a text registration process, which can be used to determine a phoneme sequence corresponding to a wake-up word. After determining the phoneme sequence corresponding to the wake-up word, the wearable device can then use the phoneme sequence as a decoding path for the wake-up word, which is used to detect the wake-up word during voice wake-up.
[0157] In addition to text registration, voice registration is further required. In this embodiment of the present application, after completing text registration, the wearable device further needs to obtain a bone conduction registration signal, and the bone conduction registration signal includes the complete information of the wake-up word. Optionally, the wearable device further obtains an air conduction registration signal when obtaining the bone conduction registration signal. Optionally, during voice registration, for example, the wearable device obtains the bone conduction registration signal and the air conduction registration signal input by the user. After obtaining the input bone conduction registration signal and the input air conduction registration signal, the wearable device verifies whether the bone conduction registration signal and the air conduction registration signal meet the voice registration condition. When the voice registration condition is met, the wearable device performs subsequent processing to determine a confidence threshold.
[0158] For example, the voice registration condition includes a voice input amount requirement, a signal-to-noise ratio requirement, a path score requirement, etc. For example, the voice input amount requirement is that the user needs to input the wake-up word voice (including the bone conduction registration signal and the air conduction registration signal) three times. Every time the wearable device detects the wake-up word voice input by the user, the wearable device performs pronunciation verification and analysis on the input wake-up word voice to verify whether the currently input wake-up word voice meets the signal-to-noise ratio requirement and the path score requirement. If the wake-up word text input by the user does not meet the character requirement, the wearable device prompts the user for the reason why the wake-up word text does not meet the requirement by using text or voice, and requests re-input. If the wake-up word voice input by the user three times meets the signal-to-noise ratio requirement and the path score requirement, the wearable device determines that the wake-up word voice input by the user meets the voice registration condition, and performs subsequent processing.
[0159] Optionally, the wearable device may first detect whether the input wake-up word audio meets a signal-to-noise ratio requirement, and after determining that the input wake-up word audio meets the signal-to-noise ratio requirement, detect whether the input wake-up word audio meets a path score requirement. For example, the signal-to-noise ratio requirement includes that the signal-to-noise ratio is equal to or greater than a signal-to-noise ratio threshold (if the signal-to-noise ratio is less than the signal-to-noise ratio threshold, the signal-to-noise ratio requirement is not met). For example, the signal-to-noise ratio of the bone conduction registration signal needs to be equal to or greater than a first signal-to-noise ratio threshold, and / or the signal-to-noise ratio of the air conduction registration signal needs to be equal to or greater than a second signal-to-noise ratio threshold. Optionally, the first signal-to-noise ratio threshold is greater than the second signal-to-noise ratio threshold. If the user's input of the wake-up word audio does not meet the signal-to-noise ratio requirement, the wearable device prompts the user that the current environment is noisy and not suitable for registration, and the user needs to find a quiet environment to re-input the wake-up word audio. The path score requirements include that the path score obtained based on each wake-up word voice input is equal to or greater than a calibration threshold, the average of the three path scores obtained based on three wake-up word voice inputs is equal to or greater than a calibration threshold, and the difference between two path scores obtained based on any two wake-up word voice inputs is equal to or less than 100 points (or another value). The implementation process of obtaining a path score based on the wake-up word voice is described below and is essentially similar to the process of obtaining a confidence level based on a bone conduction signal in voice wake-up.
[0160] In the following, an implementation form is described in which the wearable device determines the confidence threshold based on the bone conduction registration signal and the phoneme sequence corresponding to the wake-up word. This implementation form is similar to the implementation form in which the confidence is obtained based on the bone conduction signal in the voice wake-up. The wearable device can determine the confidence threshold in multiple implementation forms. Two implementation forms are described below.
[0161] First implementation The wearable device determines a fusion registration signal based on the bone conduction registration signal, and determines a confidence threshold and a plurality of template vectors based on the fusion registration signal and a phoneme sequence corresponding to a wake-up word.
[0162] First, an implementation in which the wearable device determines the fusion registration signal based on the bone conduction registration signal is described. It should be noted that there are multiple ways in which the wearable device determines the fusion registration signal based on the bone conduction registration signal. Four ways are described below.
[0163] Method 1 of determining a fused registration signal based on a bone conduction registration signal: An air conduction registration signal is obtained before a fused registration signal is determined based on a bone conduction registration signal. The wearable device fuses a start portion of the bone conduction registration signal with the air conduction registration signal to obtain a fused registration signal. The start portion of the bone conduction registration signal is determined based on a detection delay of the voice detection. Optionally, the signal fusion is performed via signal coupling in this embodiment of the present application.
[0164] It should be noted that the implementation form in which the wearable device fuses the beginning part of the bone conduction registration signal with the air conduction registration signal is similar to the principle of the method 1 in which the fusion signal is determined based on the bone conduction signal in the above embodiment. Details will not be described again in this specification. In addition, the wearable device can also perform voice segment detection on the bone conduction registration signal and the air conduction registration signal to capture the voice segment, and perform signal combination based on the captured voice segment to reduce the amount of data processing. The bone conduction registration signal and the air conduction registration signal may be further pre-processed, for example, downsampling and / or gain adjustment is performed on the bone conduction registration signal, and voice enhancement is performed on the air conduction signal. The specific implementation form is similar to the principle of the relevant contents of the above embodiment. Please refer to the above embodiment. Details will not be described again in this specification.
[0165] Method 2 for determining a fused registration signal based on a bone conduction registration signal: An air conduction registration signal is obtained before a fused registration signal is determined based on the bone conduction registration signal. The wearable device generates an emphasis start registration signal based on a start portion of the bone conduction registration signal, and fuses the emphasis start registration signal and the air conduction registration signal to obtain a fused registration signal. The start portion of the bone conduction registration signal is determined based on a detection delay of voice detection.
[0166] It should be noted that the difference between the method 1 and the method 2 of determining the fused registration signal based on the bone conduction registration signal is that in the method 2, the wearable device generates an enhanced start registration signal based on the beginning part of the bone conduction registration signal, and fuses the enhanced start registration signal with the air conduction registration signal, instead of fusing the beginning part of the bone conduction registration signal with the air conduction registration signal. In addition, in the method 2, the wearable device can also perform voice segment detection on the bone conduction registration signal and the air conduction registration signal to capture the voice segment, and perform signal fusion based on the captured voice segment to reduce the amount of data processing. The wearable device can further pre-process the bone conduction registration signal and the air conduction registration signal, for example, perform downsampling and / or gain adjustment on the bone conduction registration signal, and perform voice enhancement on the air conduction signal. The specific implementation form is similar to the principle of the relevant contents of the aforementioned embodiment. Please refer to the aforementioned embodiment. The details will not be described again in this specification.
[0167] In this embodiment of the present application, the wearable device can input the beginning part of the bone conduction registration signal into the generative network model to obtain an enhanced beginning registration signal output by the generative network model. The generative network model can be the same as the generative network model described above, or can be another generative network model. This is not limited in this embodiment of the present application. The network structure, training method, training device, etc. of the generative network model are not limited in this embodiment of the present application.
[0168] Method 3 for determining a fusion registration signal based on a bone conduction registration signal: An air conduction registration signal is obtained before the fusion registration signal is determined based on the bone conduction registration signal. The wearable device directly fuses the bone conduction registration signal and the air conduction registration signal to obtain the fusion registration signal.
[0169] It should be noted that the difference between Scheme 1, which determines the fused registration signal based on the bone conduction registration signal, and Scheme 3 is that in Scheme 3, the wearable device fuses the bone conduction registration signal and the air conduction registration signal to obtain a fused registration signal. In addition, in Scheme 3, the wearable device can also perform voice segment detection on the bone conduction registration signal and the air conduction registration signal to capture the voice segment, and perform signal fusion based on the captured voice segment to reduce the amount of data processing. The wearable device can further pre-process the bone conduction registration signal and the air conduction registration signal, for example, perform downsampling and / or gain adjustment on the bone conduction registration signal, and perform voice enhancement on the air conduction signal. The specific implementation form is similar to the principle of the relevant contents of the aforementioned embodiments. Please refer to the aforementioned embodiments. The details will not be described again in this specification.
[0170] Method 4 for determining a fusion registration signal based on a bone conduction registration signal: The wearable device determines the bone conduction registration signal as the fusion registration signal.
[0171] It should be noted that the difference between Scheme 1 and Scheme 4, which determines the fusion registration signal based on the bone conduction registration signal, is that in Scheme 4, the wearable device directly uses the bone conduction registration signal as the fusion registration signal. In addition, in Scheme 4, the wearable device can also perform voice segment detection on the bone conduction registration signal to capture the voice segment, and perform subsequent processing based on the captured voice segment to reduce the amount of data processing. The wearable device can further pre-process the bone conduction registration signal, for example, perform downsampling and / or gain adjustment on the bone conduction registration signal. The specific implementation form is similar to the principle of the relevant contents of the aforementioned embodiment. Please refer to the aforementioned embodiment. The details will not be described again in this specification.
[0172] Below, we describe an implementation in which the wearable device determines a confidence threshold and multiple template vectors based on the fused enrollment signal and a phoneme sequence corresponding to a wake-up word.
[0173] Optionally, the wearable device inputs a plurality of enrollment audio frames included in the fused enrollment signal into the first acoustic model to obtain a plurality of enrollment posterior probability vectors output by the first acoustic model. The plurality of enrollment posterior probability vectors correspond one-to-one to the plurality of enrollment audio frames, and a first enrollment posterior probability vector among the plurality of enrollment posterior probability vectors indicates a probability that a phoneme of the first enrollment audio frame among the plurality of enrollment audio frames belongs to a plurality of specified phonemes. In other words, each of the plurality of enrollment posterior probability vectors corresponds to one enrollment audio frame included in the fused enrollment signal, and the one enrollment posterior probability vector indicates a probability that a phoneme of the corresponding one enrollment audio frame belongs to a plurality of specified phonemes. The wearable device determines the plurality of enrollment posterior probability vectors as a plurality of template vectors. The wearable device determines a confidence threshold based on the plurality of enrollment posterior probability vectors and a phoneme sequence corresponding to the wake-up word. In other words, the wearable device processes the fusion enrollment signal by using the first acoustic model to obtain information about the phonemes contained in the fusion signal, i.e., obtains an enrollment posterior probability vector, uses the enrollment posterior probability vector as a template vector, and stores the template vector. The wearable device further decodes the enrollment posterior probability vector based on the phoneme sequence (i.e., the decoded path) corresponding to the wake-up word to determine a path score, uses the path score as a confidence threshold, and stores the confidence threshold. For related description of the first acoustic model, please refer to the above-mentioned embodiment. Details will not be described again in this specification.
[0174] Above, a first implementation form is described in which the wearable device determines a confidence threshold based on the bone conduction registration signal and a phoneme sequence corresponding to the wake-up word. In the first implementation form, the wearable device first determines a fusion registration signal based on the bone conduction registration signal (including four modes), and then processes the fusion registration signal by using an acoustic model to obtain an enrollment posterior probability vector. Then, the wearable device decodes the obtained enrollment posterior probability vector based on a decoding path corresponding to the wake-up word to obtain a confidence threshold. Optionally, the wearable device stores the obtained enrollment posterior probability vector as a template vector. Hereinafter, a second implementation form is described in which the wearable device determines a confidence threshold based on the bone conduction registration signal and a phoneme sequence corresponding to the wake-up word.
[0175] Second implementation In this embodiment of the present application, before determining the confidence threshold based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word, the wearable device obtains an air conduction enrollment signal. The wearable device determines a plurality of enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal. The plurality of enrollment posterior probability vectors correspond one-to-one to a plurality of enrollment audio frames included in the bone conduction enrollment signal and the air conduction enrollment signal, and a first enrollment posterior probability vector among the plurality of enrollment posterior probability vectors indicates a probability that a phoneme of a first enrollment audio frame among the plurality of enrollment audio frames belongs to a plurality of specified phonemes. It should be noted that the plurality of enrollment audio frames include an enrollment audio frame included in the bone conduction enrollment signal and an enrollment audio frame included in the air conduction enrollment signal. In other words, each of the plurality of enrollment posterior probability vectors corresponds to one enrollment audio frame included in the bone conduction enrollment signal or the air conduction enrollment signal, and the one enrollment posterior probability vector indicates a probability that a phoneme of the corresponding one enrollment audio frame belongs to a plurality of specified phonemes. The wearable device determines a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word. Optionally, the wearable device determines the plurality of enrollment posterior probability vectors as a plurality of template vectors.
[0176] Please note that for relevant descriptions of the bone conduction registration signal and the air conduction registration signal, please refer to the contents of the first implementation, including the generation principle of the bone conduction registration signal and the air conduction registration signal, the pre-processing of the bone conduction registration signal and the air conduction registration signal, etc. The details will not be described again in this specification.
[0177] First, the following describes an implementation form in which the wearable device determines multiple enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal. It should be noted that there are multiple ways in which the wearable device determines multiple enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal. Three ways are described below.
[0178] Method 1 of determining a plurality of registration posterior probability vectors based on the bone conduction registration signal and the air conduction registration signal: The wearable device inputs the start portion of the bone conduction registration signal and the air conduction registration signal into a second acoustic model to obtain a third amount of bone conduction registration posterior probability vector and a fourth amount of air conduction registration posterior probability vector output by the second acoustic model. The wearable device fuses the first bone conduction registration posterior probability vector and the first air conduction registration posterior probability vector to obtain a second registration posterior probability vector. The start portion of the bone conduction registration signal is determined based on the detection delay of the voice detection, and the third amount of bone conduction registration posterior probability vector corresponds one-to-one to the registration audio frame included in the start portion of the bone conduction registration signal, and the fourth amount of air conduction registration posterior probability vector corresponds one-to-one to the registration audio frame included in the air conduction registration signal. In other words, one bone conduction registration posterior probability vector corresponds to one registration audio frame included in the start portion of the bone conduction registration signal, and one air conduction registration posterior probability vector corresponds to one registration audio frame included in the air conduction registration signal. The first bone conduction registration posterior probability vector corresponds to the last registration audio frame of the beginning part of the bone conduction registration signal, and the duration of the last registration audio frame is shorter than the duration of the frame, and the first air conduction posterior probability vector corresponds to the first registration audio frame of the air conduction registration signal, and the duration of the first registration audio frame is shorter than the duration of the frame. The multiple registration posterior probability vectors finally determined by the wearable device include a second registration posterior probability vector, a vector in the bone conduction registration posterior probability vector of a third amount other than the first bone conduction registration posterior probability vector, and a vector in the air conduction registration posterior probability vector of a fourth amount other than the first air conduction registration posterior probability vector. The third amount and the fourth amount may be the same or different, the third amount and the first amount may be the same or different, and the fourth amount and the second amount may be the same or different.
[0179] Optionally, the wearable device adds the first bone conduction enrollment posterior probability vector and the first air conduction enrollment posterior probability vector to obtain a second enrollment posterior probability vector.
[0180] Please note that for the relevant description of the beginning part of the bone conduction registration signal, please refer to the content of the first implementation. The details will not be described again in this specification. In addition, for the relevant description of the second acoustic model, please refer to the relevant content of the previous embodiment. The details will not be described again in this specification. The principle of the wearable device obtaining the third amount of bone conduction registration posterior probability vector and the fourth amount of air conduction registration posterior probability vector by using the second acoustic model is consistent with the principle of obtaining the first amount of bone conduction posterior probability vector and the second amount of air conduction posterior probability vector by using the second acoustic model in the previous embodiment. The details will not be described again in this specification.
[0181] Method 2 for determining multiple registration posterior probability vectors based on bone conduction registration signal and air conduction registration signal: The wearable device inputs the start portion of the bone conduction registration signal and the air conduction registration signal into a third acoustic model to obtain multiple registration posterior probability vectors output by the third acoustic model. The start portion of the bone conduction registration signal is determined based on the detection delay of the voice detection.
[0182] Please note that for the relevant description of the beginning part of the bone conduction registration signal, please refer to the content of the first implementation. The details will not be described again in this specification. In addition, for the relevant description of the third acoustic model, please refer to the relevant content of the previous embodiment. The details will not be described again in this specification. The principle of the wearable device obtaining multiple registration posterior probability vectors by using the third acoustic model is consistent with the principle of obtaining multiple posterior probability vectors by using the third acoustic model in the previous embodiment. The details will not be described again in this specification.
[0183] Method 3 of determining a plurality of enrollment posterior probability vectors based on bone conduction enrollment signals and air conduction enrollment signals: The wearable device inputs the bone conduction enrollment signal and the air conduction enrollment signal into a third acoustic model to obtain a plurality of enrollment posterior probability vectors output by the third acoustic model. In other words, the wearable device directly inputs the bone conduction enrollment signal and the air conduction enrollment signal into the third acoustic model at the same time, and outputs a group of enrollment posterior probability vectors by using the third acoustic model, so that the obtained plurality of enrollment posterior probability vectors contain the complete information of the wake-up word input by the sound source.
[0184] In this embodiment of the present application, after determining a plurality of enrollment posterior probability vectors, the wearable device determines a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word. The principle is similar to the above-mentioned principle in which the wearable device determines a confidence based on the plurality of posterior probability vectors and the phoneme sequence of the wake-up word. For specific implementation, please refer to the above-mentioned related description. The details will not be described again in this specification.
[0185] 19 to 24 are flowcharts of six wake-up word registration methods according to the embodiments of the present application. Hereinafter, the wake-up word registration process will be described again with reference to FIGS.
[0186] FIG. 19 corresponds to the first implementation of the wake-up word registration. The process of registering the wake-up word includes text registration and voice registration. For example, the wearable device registers the wake-up word by using multiple modules, and the wearable device first performs text registration. The text registration module of the wearable device obtains the wake-up word text input by the user, performs text verification and text analysis on the input wake-up word text, and determines the phoneme sequence corresponding to the wake-up word text that meets the text registration requirements according to the pronunciation dictionary, determines the phoneme sequence as a decoding path, and sends the decoding path to the recognition engine. The recognition engine stores the decoding path. Then, the wearable device performs voice registration. The voice registration module of the wearable device obtains a voice registration signal including a bone conduction registration signal and an air conduction registration signal. Optionally, the wearable device can obtain the bone conduction registration signal and the air conduction registration signal through a VAD, and further pre-process the obtained bone conduction registration signal and the air conduction registration signal. Then, the voice registration module performs pronunciation verification on the bone conduction registration signal and the air conduction registration signal. The fusion module fuses the bone conduction registration signal and the air conduction registration signal obtained by verification and meeting the voice registration requirement to obtain a fused registration signal. To distinguish between FIG. 19 and FIG. 22, the fused registration signal in FIG. 19 is called fused registration signal 1. The voice registration module processes the fused registration signal 1 by using a first acoustic model to obtain a plurality of registration posterior probability vectors, decodes the plurality of registration posterior probability vectors to determine a path score, and sends the path score to the recognition engine as a wake-up threshold (i.e., a confidence threshold). The recognition engine stores the wake-up threshold, and the wake-up threshold is used to suppress level 1 false wake-up in subsequent voice wake-up. Optionally, the voice registration module sends the obtained plurality of registration posterior probability vectors to the recognition engine as a plurality of template vectors.The recognition engine stores a number of template vectors, which are used to suppress level 2 false wake-ups in subsequent voice wake-ups.
[0187] FIG. 20 to FIG. 22 correspond to Scheme 2, Scheme 3, and Scheme 4 in the first implementation of the wake-up word registration. The difference between FIG. 19 and FIG. 20 is that in the method shown in FIG. 20, the voice registration module of the wearable device generates an emphasis start registration signal based on the beginning part of the bone conduction registration signal, and fuses the emphasis start registration signal and the air conduction registration signal to obtain a fused registration signal. The fused registration signal in FIG. 20 is called fused registration signal 2. In the method shown in FIG. 21, the voice registration module directly fuses the bone conduction registration signal and the air conduction registration signal to obtain a fused registration signal. The fused registration signal in FIG. 21 is called fused registration signal 3. In the method shown in FIG. 22, the voice registration module can directly determine the bone conduction registration signal as the fused registration signal without obtaining the air conduction registration signal. The fused registration signal in FIG. 22 is called fused registration signal 4.
[0188] Figure 23 corresponds to Scheme 1 in the second implementation of the wake-up word registration. The difference between Figure 19 and Figure 23 is that in the method shown in Figure 23, the voice registration module of the wearable device inputs the beginning part of the bone conduction registration signal and the air conduction registration signal into the second acoustic model separately to obtain a third amount of bone conduction registration posterior probability vector and a fourth amount of air conduction registration posterior probability vector that are output by the second acoustic model separately. The voice registration module fuses the third amount of bone conduction registration posterior probability vector and the fourth amount of air conduction registration posterior probability vector to obtain a plurality of registration posterior probability vectors.
[0189] Figure 24 corresponds to Scheme 2 and Scheme 3 in the second implementation of wake-up word registration. The difference between Figure 23 and Figure 24 is that in the method shown in Figure 24, the voice registration module of the wearable device inputs the beginning part of the bone conduction registration signal and the air conduction registration signal into the third acoustic model separately, or inputs the bone conduction registration signal and the air conduction registration signal into the third acoustic model to obtain multiple registration posterior probability vectors output by the third acoustic model.
[0190] From the above, it can be seen that the procedure of processing the bone conduction registration signal and the air conduction registration signal during wake-up word registration is similar to the procedure of processing the bone conduction signal and the air conduction registration signal during voice wake-up. However, the procedure during wake-up word registration is for obtaining the wake-up threshold and the template vector, and the procedure during voice wake-up is for detecting the wake-up word. The template vector can be used to improve the accuracy and robustness of this solution. In this solution, the header loss compensation is performed directly or implicitly on the air conduction signal based on the bone conduction signal, or the wake-up word is directly detected based on the bone conduction signal. The bone conduction signal contains the information of the command word input by the sound source, i.e., the bone conduction signal does not lose the header, has a high recognition accuracy of the wake-up word, and has a high accuracy of the voice wake-up.
[0191] In the above embodiment, the voice wake-up process and the wake-up word registration process are described. From the above, it can be seen that the acoustic model in this embodiment of the present application needs to be obtained by pre-training. For example, the first acoustic model, the second acoustic model and the third acoustic model all need to be obtained by pre-training. In the following, the training process of the acoustic model is described by using the example that the computer device trains the acoustic model.
[0192] In this embodiment of the present application, the computer device first obtains a second training data set. The second training data set includes a plurality of second sample signal pairs, one second sample signal pair includes one bone conduction sample signal and one air conduction sample signal, and one second sample signal pair corresponds to one command word. Optionally, the second training data set includes directly collected voice data, public voice data, and / or voice data purchased from a third party. Optionally, before training, the computer device may pre-process the obtained second training data set to obtain a pre-processed second training data set. The pre-processed second training data set can be used to simulate the distribution of real voice data, so that the voice data is closer to the voice in a real scenario. This increases the diversity of the training samples. For example, the second training data set is backed up, i.e., additional data is added, and the back-up data is pre-processed. Optionally, the back-up data is divided into multiple parts, and pre-processing is performed on each data. The pre-processing performed on each data may be different. This can double the total training data, ensure the completeness of the data, achieve a balance between performance and training overhead, and improve the accuracy and robustness of speech recognition to some extent. Methods for preprocessing each data can include one or more of noise addition, volume enhancement, reverberation addition, time shift, pitch shift, time stretch, etc.
[0193] For example, the first acoustic model is obtained by training. The computer device determines a plurality of fusion sample signals based on the second training data set in four ways. It should be noted that the four ways correspond one-to-one to the four ways in which the wearable device determines a fusion signal based on the bone conduction signal in the recognition process (i.e., the voice wake-up process) in the above embodiment. In other words, when the wearable device fuses the start portion of the bone conduction signal with the air conduction signal to obtain a fusion signal in the recognition process, the computer device fuses the start portion of the bone conduction sample signal included in each of the plurality of second sample signal pairs with the air conduction sample signal to obtain a plurality of fusion sample signals in the training process. When the wearable device generates an emphasis start signal based on the start portion of the bone conduction signal and fuses the emphasis start signal with the air conduction signal to obtain a fusion signal in the recognition process, the computer device generates an emphasis start sample signal based on the start portion of the bone conduction sample signal included in each of the plurality of second sample signal pairs, and fuses each emphasis start sample signal with the corresponding air conduction sample signal to obtain a plurality of fusion sample signals in the training process. When the computer device directly fuses the bone conduction signal and the air conduction signal to obtain a fusion signal in the recognition process, in the training process, the computer device directly fuses the bone conduction sample signal and the air conduction sample signal included in each of the plurality of second sample signal pairs to obtain a plurality of fusion sample signals. When the wearable device determines the bone conduction signal as the fusion signal in the recognition process, in the training process, the computer device determines the bone conduction sample signal included in the plurality of second sample signal pairs to obtain a plurality of fusion sample signals. The start portion of the bone conduction sample signal is determined based on the detection delay of the voice detection or experience. Then, the computer device trains a first initial acoustic model based on the plurality of fusion sample signals to obtain a first acoustic model in this embodiment of the present application. The network structure of the first initial acoustic model is the same as the network structure of the first acoustic model.
[0194] Optionally, before determining the plurality of fusion sample signals based on the second training data set, the computer device pre-processes the bone conduction sample signal and the air conduction sample signal included in the second training data set, for example, performs front-end enhancement on the air conduction sample signal, and performs downsampling and gain adjustment on the bone conduction sample signal. Optionally, the computer device inputs the start portion of the bone conduction sample signal included in each of the plurality of second sample signal pairs into the generative network model to obtain the enhancement start sample signal output by the generative network model. The generative network model and the generative network model in the above embodiment may be the same model or different models. This is not limited in this embodiment of the present application.
[0195] For example, Fig. 25-Fig. 28 are four schematic diagrams of separately obtaining a first acoustic model in the above four manners according to an embodiment of the present application. Please refer to Fig. 25-Fig. 28. The second training data set obtained by the computer device includes bone conduction data (bone conduction sample signal) and air conduction data (air conduction sample signal). The computer device performs downsampling and / or gain adjustment on the bone conduction data by using a fusion module, and performs front-end enhancement on the air conduction data by using a front-end enhancement module. Fig. 25-Fig. 27 correspond to the first three manners of the four manners. The fusion module separately performs header loss compensation on the air conduction signal based on the bone conduction data in a corresponding manner to obtain training input data. Fig. 28 corresponds to the fourth manner of the four manners. The fusion module directly uses the bone conduction data as training input data without obtaining air conduction data. The computing device then trains a network model (i.e., a first initial acoustic model) based on the training input data, and adjusts the network model by using a loss function, a gradient descent algorithm, and backpropagation to obtain a trained first acoustic model.
[0196] For example, a second acoustic model is trained. The training process corresponds to Scheme 1, in which the wearable device determines a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal during voice wake-up. In the training process, the computer device uses the beginning part of the bone conduction sample signal and the air conduction sample signal included in each of the plurality of second sample signal pairs as the input of the second initial acoustic model to train the second initial acoustic model to obtain the second acoustic model. The network structure of the second initial acoustic model is the same as the network structure of the second acoustic model. In other words, the second initial acoustic model also includes two input layers, one shared network layer, and two output layers.
[0197] FIG. 29 is a schematic diagram of obtaining a second acoustic model by training according to an embodiment of the present application. Please refer to FIG. 29. The second training data set obtained by the computer device includes bone conduction data (bone conduction sample signal) and air conduction data (air conduction sample signal). The computer device performs downsampling and / or gain adjustment on the bone conduction data, and performs front-end enhancement on the air conduction data. The computer device uses the bone conduction data as training input data 1, and uses the air conduction data as training input data 2. The computer device trains a network model (i.e., a second initial acoustic model) based on the training input data 1 and the training input data 2, and adjusts the network model by using a loss function, a gradient descent algorithm, and error backpropagation to obtain a trained second acoustic model. The training input data 1 and the training input data 2 can correspond to the same loss function or different loss functions. This is not limited in this embodiment of the present application.
[0198] For example, a third acoustic model is trained. The training process corresponds to Scheme 2, in which the wearable device determines a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal during the voice wake-up. In the training process, the computer device uses the beginning part of the bone conduction sample signal and the air conduction sample signal included in each of the plurality of second sample signal pairs as the input of the third initial acoustic model to train the third initial acoustic model to obtain the third acoustic model. Alternatively, the training process corresponds to Scheme 3, in which the wearable device determines a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal during the voice wake-up. In the training process, the computer device uses the bone conduction sample signal and the air conduction sample signal included in each of the plurality of second sample signal pairs as the input of the third initial acoustic model to train the third initial acoustic model to obtain the third acoustic model. The network structure of the third initial acoustic model is the same as the network structure of the third acoustic model. In other words, the third initial acoustic model also includes two input layers, one connection layer, one network parameter layer, and one output layer.
[0199] For example, FIG. 30 is a schematic diagram of obtaining a third acoustic model by training according to an embodiment of the present application. See FIG. 30. The second training data set obtained by the computer device includes bone conduction data (bone conduction sample signal) and air conduction data (air conduction sample signal). The computer device performs downsampling and / or gain adjustment on the bone conduction data, and performs front-end enhancement on the air conduction data. The computer device uses the bone conduction data or a beginning part of the bone conduction data as training input data 1, and the air conduction data as training input data 2. The computer device trains a network model (i.e., a third initial acoustic model) based on the training input data 1 and the training input data 2, and adjusts the network model by using a loss function, a gradient descent algorithm, and error backpropagation to obtain a trained third acoustic model.
[0200] In conclusion, in this embodiment of the present application, in the training process, header loss compensation is also performed directly or implicitly on the air conduction enrollment signal based on the bone conduction sample signal to construct training input data for training the initial acoustic model to obtain a trained acoustic model. During voice wake-up, header loss compensation is performed directly or implicitly on the air conduction signal based on the bone conduction signal. Because the bone conduction signal contains information about the command word input by the sound source, i.e., the bone conduction signal does not lose the header, in this solution, the recognition accuracy of detecting the wake-up word based on the bone conduction signal is high, and the accuracy of voice wake-up is high and the robustness is also improved.
[0201] Figure 31 is a schematic diagram of the structure of a voice wake-up device 3100 according to an embodiment of the present application. The voice wake-up device 3100 can be implemented as a part or a whole of an electronic device by using software, hardware, or a combination thereof. The electronic device can be a wearable device shown in Figure 2. See Figure 31. The device 3100 includes a voice detection module 3101, a wake-up word detection module 3102, and a voice wake-up module 3103.
[0202] The voice detection module 3101 is configured to perform voice detection based on a bone conduction signal collected by a bone conduction microphone, where the bone conduction signal contains information about a command word input by a sound source.
[0203] The wake-up word detection module 3102 is configured to detect a wake-up word based on the bone conduction signal when a voice input is detected.
[0204] The voice wakeup module 3103 is configured to perform a voice wakeup on the device to be woken up when the command word is detected to include a wakeup word.
[0205] Optionally, the wake-up word detection module 3102 comprises: a first determination sub-module configured to determine a fusion signal based on the bone conduction signal; and and a wake-up word detection sub-module configured to perform wake-up word detection on the fusion signal.
[0206] Optionally, the apparatus 3100 further comprises: The system further includes a processing module configured to turn on the air microphone and collect an air conducted signal by using the air microphone.
[0207] The first decision submodule: fusing a beginning portion of the bone conduction signal with the air conduction signal to obtain a fused signal, the beginning portion of the bone conduction signal being determined based on a detection delay of the voice detection; generating an enhancement onset signal based on a starting portion of the bone conduction signal, and fusing the enhancement onset signal with the air conduction signal to obtain a fused signal, the starting portion of the bone conduction signal being determined based on a detection delay of the voice detection; or Directly fuse bone conduction and air conduction signals to obtain a fusion signal It is configured as follows.
[0208] Optionally, the wake-up word detection sub-module further comprises: Inputting a plurality of audio frames included in the fusion signal into a first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model, the plurality of posterior probability vectors corresponding one-to-one to the plurality of audio frames, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; Detecting the wake-up word based on multiple posterior probability vectors It is configured as follows.
[0209] Optionally, the apparatus 3100 further comprises: The system further includes a processing module configured to turn on the air microphone and collect an air conducted signal by using the air microphone.
[0210] The wake-up word detection module 3102 includes: a second determination sub-module configured to determine a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, the plurality of posterior probability vectors corresponding one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; a wake-up word detection submodule configured to detect a wake-up word based on a plurality of posterior probability vectors; Includes.
[0211] Optionally, the second determination submodule: inputting a start portion of the bone conduction signal and the air conduction signal into a second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by the second acoustic model, the start portion of the bone conduction signal being determined based on a detection delay of the voice detection, the first amount of bone conduction posterior probability vector corresponding one-to-one to an audio frame included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponding one-to-one to an audio frame included in the air conduction signal; The first bone conduction posterior probability vector and the first air conduction posterior probability vector are fused to obtain a second posterior probability vector, the first bone conduction posterior probability vector corresponds to a last audio frame of a beginning portion of the bone conduction signal, the duration of the last audio frame being shorter than a duration of the frame, the first air conduction posterior probability vector corresponds to a first audio frame of the air conduction signal, the duration of the first audio frame being shorter than a duration of the frame, and the plurality of posterior probability vectors include the second posterior probability vector, a vector of a first amount of the bone conduction posterior probability vector other than the first bone conduction posterior probability vector, and a vector of a second amount of the air conduction posterior probability vector other than the first air conduction posterior probability vector. It is configured as follows.
[0212] Optionally, the second determination submodule: inputting the beginning portion of the bone conduction signal and the air conduction signal into a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model, and the beginning portion of the bone conduction signal is determined based on a detection delay of the voice detection; or The bone conduction signal and the air conduction signal are input to a third acoustic model to obtain a plurality of posterior probability vectors output by the third acoustic model. It is configured as follows.
[0213] Optionally, the wake-up word detection sub-module further comprises: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; When the confidence exceeds a confidence threshold, it is determined that the command word is detected to include a wake-up word. It is configured as follows.
[0214] Optionally, the wake-up word detection sub-module further comprises: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; Determine that the command word is detected to include a wake-up word when the confidence exceeds a confidence threshold and the plurality of posterior probability vectors and the plurality of template vectors satisfy a distance condition, and the plurality of template vectors indicate a probability that a phoneme of the speech signal containing the complete information of the wake-up word belongs to the plurality of specified phonemes. It is configured as follows.
[0215] Optionally, when the multiple posterior probability vectors correspond one-to-one to the multiple template vectors, the distance condition includes that an average of the distances between the multiple posterior probability vectors and the corresponding template vectors is less than a distance threshold.
[0216] Optionally, the apparatus 3100 further comprises: an acquisition module configured to acquire a bone conduction registration signal, the bone conduction registration signal including a complete information of the wake-up word; a determination module configured to determine a confidence threshold and a plurality of template vectors based on the bone conduction enrollment signal and a phoneme sequence corresponding to a wake-up word; Further includes:
[0217] Optionally, the decision module: a third determining sub-module configured to determine a fusion registration signal based on the bone conduction registration signal; and a fourth determination sub-module configured to determine a confidence threshold and a plurality of template vectors based on the fused enrollment signal and the phoneme sequence corresponding to the wake-up word; Includes.
[0218] Optionally, the fourth determination submodule: inputting the multiple enrollment audio frames included in the fused enrollment signal into a first acoustic model to obtain multiple enrollment posterior probability vectors output by the first acoustic model, the multiple enrollment posterior probability vectors corresponding one-to-one to the multiple enrollment audio frames, and a first enrollment posterior probability vector of the multiple enrollment posterior probability vectors indicating a probability that a phoneme of the first enrollment audio frame of the multiple enrollment audio frames belongs to the multiple specified phonemes; determining a plurality of enrollment posterior probability vectors as a plurality of template vectors; determining a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; It is configured as follows.
[0219] Optionally, the apparatus 3100 further comprises: The system further includes an acquisition module configured to obtain an air conduction registration signal.
[0220] The decision module is a fifth determination sub-module configured to determine a plurality of enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal, the plurality of enrollment posterior probability vectors corresponding one-to-one to a plurality of enrollment audio frames included in the bone conduction enrollment signal and the air conduction enrollment signal, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to a plurality of specified phonemes; a sixth determination sub-module configured to determine a confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; Includes.
[0221] In the embodiment of the present application, in order to ensure low power consumption, a bone conduction microphone collects a bone conduction signal for voice detection. In addition, it is believed that delay in voice detection may cause header loss in the collected air conduction signal, so that the complete information of the command word input by the sound source is not included. However, the bone conduction signal collected by the bone conduction microphone contains information about the command word input by the sound source, that is, the bone conduction signal does not lose the header. Therefore, the solution detects the wake-up word based on the bone conduction signal. In this way, the accuracy of the recognition of the wake-up word is high, and the accuracy of the voice wake-up is high.
[0222] It should be noted that when the voice wake-up device provided in the above embodiment performs voice wake-up, the division of the above functional modules is only used as an example for explanation. In actual application, the above functions can be assigned to different functional modules for implementation based on requirements. That is, the internal structure of the device is divided into different functional modules to implement all or part of the above functions. In addition, the voice wake-up device provided in the above embodiment belongs to the same concept as the embodiment of the voice wake-up method. For the process of the specific implementation form of the voice wake-up device, please refer to the method and embodiment, and the details will not be described again in this specification.
[0223] All or part of the above-mentioned embodiments may be implemented by software, hardware, firmware, or any combination thereof. When software is used for implementation, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the procedures or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device, such as a server or data center, incorporating one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), a semiconductor medium (e.g., a solid state disk (SSD)), etc. It should be noted that the computer-readable storage medium referred to in this embodiment of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0224] It should be understood that "at least one" referred to in this specification means one or more, and "multiple" means two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B. In this specification, "and / or" only describes the association relationship between associated objects and represents that three relationships may exist. For example, A and / or B represents the following three cases: when only A exists, when both A and B exist, and when only B exists. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, terms such as "first" and "second" are used in the embodiments of the present application to distinguish the same thing or similar articles having substantially the same functions and purposes. Those skilled in the art may understand that terms such as "first" and "second" do not limit the number or execution order, and terms such as "first" and "second" do not indicate clear differences.
[0225] It should be noted that the information (including but not limited to user equipment information and user personal information), data (including but not limited to data for analysis, stored data, and displayed data), and signals involved in the embodiments of the present application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of the data involved must comply with the relevant laws, regulations, and standards of the relevant countries and territories. For example, the voice signals involved in the embodiments of the present application are obtained in the case of full authorization.
[0226] The above description is the embodiment provided in this application, but is not intended to limit the application. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of this application shall be within the protection scope of this application. [Explanation of symbols]
[0227] 201 Wearable Devices 202 Smart Devices 301 Processor 302 Communication Bus 303 Memory 304 Communication Interface 305 Processor 306 Output Devices 307 Input Devices 308 Bone Conduction Microphone 309 Air Microphone 310 Program Code 3100 Voice wake-up device 3101 Voice Detection Module 3102 Wake-up Word Detection Module 3103 Voice Wake-up Module
Claims
1. 1. A voice wake-up method, the method comprising: performing voice detection based on a bone conduction signal collected by a bone conduction microphone, the bone conduction signal including information about a command word input by a sound source; detecting a wake-up word based on the bone conduction signal when a voice input is detected; performing a voice wake-up on a device to be woken up when it is detected that the command word includes the wake-up word; A voice wake-up method comprising:
2. detecting a wake-up word based on the bone conduction signal, determining a fusion signal based on the bone conduction signal; performing wake-up word detection on the fused signal; 2. The method of claim 1, comprising:
3. Prior to the step of determining a fusion signal based on the bone conduction signal, the method further includes the steps of turning on an air microphone and collecting an air conduction signal by using the air microphone; determining a fusion signal based on the bone conduction signal, fusing a beginning portion of the bone conduction signal and the air conduction signal to obtain the fused signal, the beginning portion of the bone conduction signal being determined based on a detection delay of the speech detection; generating an enhancement onset signal based on a start portion of the bone conduction signal and fusing the enhancement onset signal with the air conduction signal to obtain the fused signal, the start portion of the bone conduction signal being determined based on a detection delay of the speech detection; or The method of claim 2 , comprising directly fusing the bone conduction signal and the air conduction signal to obtain the fused signal.
4. performing wake-up word detection on the fusion signal; inputting a plurality of audio frames included in the fusion signal into a first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model, the plurality of posterior probability vectors corresponding one-to-one to the plurality of audio frames, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; detecting the wake-up word based on the plurality of posterior probability vectors; 4. The method of claim 2 or 3, comprising:
5. Before the step of detecting a wake-up word based on the bone conduction signal, the method further includes the steps of turning on an air microphone and collecting an air conduction signal by using the air microphone; detecting a wake-up word based on the bone conduction signal, determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, the plurality of posterior probability vectors corresponding one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, a first one of the plurality of posterior probability vectors indicating a probability that a phoneme of a first one of the plurality of audio frames belongs to a plurality of specified phonemes; detecting the wake-up word based on the plurality of posterior probability vectors; 2. The method of claim 1, comprising:
6. determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, inputting a start portion of the bone conduction signal and the air conduction signal into the second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by the second acoustic model, the start portion of the bone conduction signal being determined based on a detection delay of the speech detection, the first amount of bone conduction posterior probability vector corresponding one-to-one to audio frames included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponding one-to-one to audio frames included in the air conduction signal; amalgamating a first bone conduction posterior probability vector and a first air conduction posterior probability vector to obtain a second posterior probability vector, the first bone conduction posterior probability vector corresponding to a last audio frame of the start portion of the bone conduction signal, the duration of the last audio frame being shorter than a frame duration, the first air conduction posterior probability vector corresponding to a first audio frame of the air conduction signal, the duration of the first audio frame being shorter than a frame duration, and the plurality of posterior probability vectors including the second posterior probability vector, a vector of the first amount of bone conduction posterior probability vector other than the first bone conduction posterior probability vector, and a vector of the second amount of air conduction posterior probability vector other than the first air conduction posterior probability vector; 6. The method of claim 5, comprising:
7. determining a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, inputting a beginning portion of the bone conduction signal and the air conduction signal into a third acoustic model to obtain the plurality of posterior probability vectors output by the third acoustic model, the beginning portion of the bone conduction signal being determined based on a detection delay of the speech detection; or inputting the bone conduction signal and the air conduction signal into a third acoustic model to obtain the plurality of posterior probability vectors output by the third acoustic model.
6. The method of claim 5, comprising:
8. detecting the wake-up word based on the plurality of posterior probability vectors, determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; determining that the command word is detected to include the wake-up word when the confidence exceeds a confidence threshold; 8. The method according to any one of claims 4 to 7, comprising:
9. detecting the wake-up word based on the plurality of posterior probability vectors, determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; determining that the command word is detected to include the wake-up word when the confidence exceeds a confidence threshold and the plurality of posterior probability vectors and a plurality of template vectors satisfy a distance condition, the plurality of template vectors indicating a probability that a phoneme of a speech signal containing complete information of the wake-up word belongs to the plurality of specified phonemes; 8. The method according to any one of claims 4 to 7, comprising:
10. 10. The method of claim 9, wherein when the plurality of posterior probability vectors correspond one-to-one to the plurality of template vectors, the distance condition includes an average of a distance between the plurality of posterior probability vectors and the corresponding template vector being less than a distance threshold.
11. The method further comprising: obtaining a bone conduction registration signal, the bone conduction registration signal including the complete information of the wake-up word; determining the confidence threshold and the plurality of template vectors based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word; 11. The method of claim 9 or 10, further comprising:
12. determining the confidence threshold and the plurality of template vectors based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word, determining a fusion registration signal based on the bone conduction registration signal; determining the confidence threshold and the plurality of template vectors based on the fused enrollment signal and the phoneme sequence corresponding to the wake-up word; 12. The method of claim 11, comprising:
13. determining the confidence threshold and the plurality of template vectors based on the fused enrollment signal and the phoneme sequence corresponding to the wake-up word, inputting a plurality of enrollment audio frames included in the fused enrollment signal into a first acoustic model to obtain a plurality of enrollment posterior probability vectors output by the first acoustic model, the plurality of enrollment posterior probability vectors corresponding one-to-one to the plurality of enrollment audio frames, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to the plurality of specified phonemes; determining the plurality of enrollment posterior probability vectors as the plurality of template vectors; determining the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; 13. The method of claim 12, comprising:
14. Prior to the step of determining the confidence threshold based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word, the method further comprises the step of obtaining an air conduction enrollment signal; determining the confidence threshold based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word, determining a plurality of enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal, the plurality of enrollment posterior probability vectors corresponding one-to-one to a plurality of enrollment audio frames included in the bone conduction enrollment signal and the air conduction enrollment signal, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to the plurality of specified phonemes; determining the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; 12. The method of claim 11, comprising:
15. 1. A voice wake-up device, comprising: a voice detection module configured to perform voice detection based on a bone conduction signal collected by a bone conduction microphone, the bone conduction signal including information about a command word input by a sound source; a wake-up word detection module configured to detect a wake-up word based on the bone conduction signal when a voice input is detected; a voice wake-up module configured to perform a voice wake-up on a device to be woken up when the command word is detected to include the wake-up word; 23. A voice wake-up device comprising:
16. The wake-up word detection module includes: a first determination sub-module configured to determine a fusion signal based on the bone conduction signal; and a wake-up word detection sub-module configured to perform wake-up word detection on the fusion signal.
16. The apparatus of claim 15, comprising:
17. The apparatus, a processing module configured to turn on an air microphone and collect an air conducted signal by using the air microphone; The first determination submodule: fusing a beginning portion of the bone conduction signal with the air conduction signal to obtain the fused signal, the beginning portion of the bone conduction signal being determined based on a detection delay of the voice detection. generating an enhancement onset signal based on a start portion of the bone conduction signal, and fusing the enhancement onset signal and the air conduction signal to obtain the fused signal, the start portion of the bone conduction signal being determined based on a detection delay of the speech detection; or The bone conduction signal and the air conduction signal are directly fused to obtain the fused signal. The apparatus of claim 16 , configured to:
18. The wake-up word detection sub-module: inputting a plurality of audio frames included in the fusion signal into a first acoustic model to obtain a plurality of posterior probability vectors output by the first acoustic model, the plurality of posterior probability vectors corresponding one-to-one to the plurality of audio frames, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; Detecting the wake-up word based on the plurality of posterior probability vectors 18. The apparatus according to claim 16 or 17, configured to:
19. The apparatus further includes a processing module configured to turn on an air microphone and collect an air conducted signal by using the air microphone; The wake-up word detection module includes: a second determination sub-module configured to determine a plurality of posterior probability vectors based on the bone conduction signal and the air conduction signal, the plurality of posterior probability vectors corresponding one-to-one to a plurality of audio frames included in the bone conduction signal and the air conduction signal, a first posterior probability vector of the plurality of posterior probability vectors indicating a probability that a phoneme of a first audio frame of the plurality of audio frames belongs to a plurality of specified phonemes; a wake-up word detection submodule configured to detect the wake-up word based on the plurality of posterior probability vectors; 16. The apparatus of claim 15, comprising:
20. The second determination submodule: inputting a start portion of the bone conduction signal and the air conduction signal into the second acoustic model to obtain a first amount of bone conduction posterior probability vector and a second amount of air conduction posterior probability vector output by the second acoustic model, the start portion of the bone conduction signal being determined based on a detection delay of the speech detection, the first amount of bone conduction posterior probability vector corresponding one-to-one to audio frames included in the start portion of the bone conduction signal, and the second amount of air conduction posterior probability vector corresponding one-to-one to audio frames included in the air conduction signal; a first bone conduction posterior probability vector and a first air conduction posterior probability vector are merged to obtain a second posterior probability vector, the first bone conduction posterior probability vector corresponding to a last audio frame of the start portion of the bone conduction signal, the duration of the last audio frame being shorter than a frame duration, the first air conduction posterior probability vector corresponding to a first audio frame of the air conduction signal, the duration of the first audio frame being shorter than the frame duration, and the plurality of posterior probability vectors include the second posterior probability vector, a vector of the first amount of bone conduction posterior probability vector other than the first bone conduction posterior probability vector, and a vector of the second amount of air conduction posterior probability vector other than the first air conduction posterior probability vector.
20. The apparatus of claim 19, configured to:
21. The second determination submodule: inputting a beginning portion of the bone conduction signal and the air conduction signal into a third acoustic model to obtain the plurality of posterior probability vectors output by the third acoustic model, the beginning portion of the bone conduction signal being determined based on a detection delay of the speech detection; or The bone conduction signal and the air conduction signal are input to a third acoustic model to obtain the plurality of posterior probability vectors output by the third acoustic model.
20. The apparatus of claim 19, configured to:
22. The wake-up word detection sub-module: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; determining that the command word is detected to include the wake-up word when the confidence exceeds a confidence threshold; 22. Apparatus according to any one of claims 18 to 21, configured to:
23. The wake-up word detection sub-module: determining a confidence that the phoneme sequence corresponding to the command word includes the phoneme sequence corresponding to the wake-up word based on the plurality of posterior probability vectors and the phoneme sequence corresponding to the wake-up word; Determine that the command word is detected to include the wake-up word when the confidence exceeds a confidence threshold and the plurality of posterior probability vectors and the plurality of template vectors satisfy a distance condition, and the plurality of template vectors indicate a probability that a phoneme of the speech signal containing the complete information of the wake-up word belongs to the plurality of specified phonemes.
22. Apparatus according to any one of claims 18 to 21, configured to:
24. 24. The apparatus of claim 23, wherein when the plurality of posterior probability vectors correspond one-to-one to the plurality of template vectors, the distance condition comprises an average of a distance between the plurality of posterior probability vectors and the corresponding template vector being less than a distance threshold.
25. The apparatus, an acquisition module configured to obtain a bone conduction registration signal, the bone conduction registration signal including the complete information of the wake-up word; a determination module configured to determine the confidence threshold and the plurality of template vectors based on the bone conduction enrollment signal and the phoneme sequence corresponding to the wake-up word; 25. The apparatus of claim 23 or 24, further comprising:
26. The decision module: a third determination sub-module configured to determine a fusion registration signal based on the bone conduction registration signal; and a fourth determination sub-module configured to determine the confidence threshold and the plurality of template vectors based on the fused enrollment signal and the phoneme sequence corresponding to the wake-up word.
26. The apparatus of claim 25, comprising:
27. The fourth determination submodule: inputting a plurality of enrollment audio frames included in the fused enrollment signal into the first acoustic model to obtain a plurality of enrollment posterior probability vectors output by the first acoustic model, the plurality of enrollment posterior probability vectors corresponding one-to-one to the plurality of enrollment audio frames, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to the plurality of specified phonemes; determining the plurality of enrollment posterior probability vectors as the plurality of template vectors; determining the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; 27. The apparatus of claim 26, configured to:
28. The apparatus further includes an acquisition module configured to obtain an air conduction registration signal; The decision module: a fifth determination sub-module configured to determine a plurality of enrollment posterior probability vectors based on the bone conduction enrollment signal and the air conduction enrollment signal, the plurality of enrollment posterior probability vectors corresponding one-to-one to a plurality of enrollment audio frames included in the bone conduction enrollment signal and the air conduction enrollment signal, and a first enrollment posterior probability vector of the plurality of enrollment posterior probability vectors indicating a probability that a phoneme of a first enrollment audio frame of the plurality of enrollment audio frames belongs to the plurality of specified phonemes; a sixth determination sub-module configured to determine the confidence threshold based on the plurality of enrollment posterior probability vectors and the phoneme sequence corresponding to the wake-up word; 26. The apparatus of claim 25, comprising:
29. An electronic device, the electronic device comprising a memory and a processor, the memory is configured to store a computer program; 15. An electronic device, the processor being configured to execute the computer program to implement the steps of the method according to any one of claims 1 to 14.
30. 15. A computer-readable storage medium, the storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 14.
31. A computer program product comprising computer instructions, which when executed by a processor implements the steps of the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Speech recognizing method
JP1993088692A
Voice processing apparatus and voice processing method
JP2003264883A
Audio data distribution apparatus
JP2004128651A
Voice section detection apparatus, voice section detection method, and program
JP2019168674A
Voice recognition device and voice recognition method
JP2020118906A
