Audio recognition method, device, electronic device and storage medium

By obtaining the characteristic values ​​and conditions of the audio clip and determining whether the audio clip contains the wake-up word, the problem of low audio recognition accuracy in the existing technology is solved and higher recognition accuracy is achieved.

CN114299923BActive Publication Date: 2024-10-22SOUNDAI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111599621.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-10-22
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Existing audio recognition technology is prone to misrecognition when the user does not fully speak the wake-up word, resulting in low accuracy.

Method used

By obtaining the first eigenvalue, second eigenvalue and third eigenvalue of the audio clip, combined with the threshold and jump conditions, it is determined whether the audio clip contains the wake-up word, ensuring that the complete wake-up word is recognized, and improving the accuracy of audio recognition. .

Benefits of technology

It effectively avoids misrecognition, ensures that the complete wake word is recognized, and improves the accuracy of audio recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299923B_ABST
    Figure CN114299923B_ABST
Patent Text Reader

Abstract

The present application provides an audio recognition method, device, electronic device and storage medium, which belongs to the field of computer technology. The method includes: forming an audio segment with the currently collected audio frame and the previously collected audio frame, and obtaining the first eigenvalue, the second eigenvalue and the third eigenvalue of the audio segment; when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value, and the third eigenvalue meets the jump condition, it is determined that the audio segment contains the wake-up word. The first eigenvalue represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, the second eigenvalue represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of phonemes recognized by the first N audio frames. The third eigenvalue meets the jump condition and indicates that the Nth audio frame and the N+1th audio frame do not belong to two adjacent phonemes in the wake-up word. This method can improve the accuracy of audio recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an audio recognition method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of audio recognition technology, audio recognition technology has been widely used in various electronic devices, such as smart wearable devices, mobile phones, tablet computers, smart home appliances, etc. The user can wake up the electronic device by saying the wake-up word, thereby controlling the electronic device to perform corresponding operations. However, it often happens that the electronic device recognizes a wake-up word based on audio data before the user has finished saying the wake-up word, but the recognized wake-up word is not necessarily the wake-up word that the user actually wants to say, so the accuracy of audio recognition is low. Summary of the invention

[0003] The embodiments of the present application provide an audio recognition method, device, electronic device, and storage medium, which can improve the accuracy of audio recognition. The technical solution is as follows:

[0004] According to one aspect of an embodiment of the present application, there is provided an audio recognition method, the method comprising:

[0005] When an audio frame is collected, the currently collected audio frame and the previously collected audio frame are combined into an audio segment, and a first eigenvalue, a second eigenvalue, and a third eigenvalue of the audio segment are obtained;

[0006] When the difference between the first feature value and the second feature value is less than a first threshold value and the third feature value satisfies a jump condition, determining that the audio segment contains a wake-up word;

[0007] Among them, the audio segment includes N+1 audio frames, two adjacent audio segments include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word; the first feature value represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, the second feature value represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of phonemes recognized by the first N audio frames, the third feature value represents the probability value that the Nth audio frame and the N+1th audio frame in the audio segment belong to two adjacent phonemes in the wake-up word, and the jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio segment do not belong to two adjacent phonemes in the wake-up word.

[0008] In a possible implementation, the method further includes:

[0009] When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue does not meet the jump condition, continue to collect audio frames until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold and the third eigenvalue meets the jump condition, and it is determined that the audio segment constructed this time contains the wake-up word.

[0010] In a possible implementation manner, obtaining the first eigenvalue and the second eigenvalue includes:

[0011] Obtaining the first feature component and the second feature component of the first N audio frames in the audio clip, wherein the first feature component of the Kth audio frame represents the probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and the second feature component of the Kth audio frame represents the maximum probability value among the probability values ​​that the Kth audio frame belongs to multiple phonemes, and K is a positive integer not greater than N;

[0012] Adding the first characteristic component of each audio frame in the first N audio frames to obtain the first characteristic value of the audio segment;

[0013] The second feature component of each audio frame in the first N audio frames is added to obtain the second feature value of the audio segment.

[0014] In a possible implementation manner, obtaining the first characteristic component and the second characteristic component of the first N audio frames in the audio segment includes:

[0015] For a Kth audio frame in the audio clip, among the feature components of the Kth audio frame for a plurality of phonemes, determine a feature component of the Kth audio frame for a Kth phoneme in the wake-up word as a first feature component of the Kth audio frame, and determine a maximum feature component as a second feature component of the Kth audio frame;

[0016] The feature vector of the K-th audio frame for a phoneme represents a probability value that the K-th audio frame belongs to the phoneme.

[0017] In a possible implementation, the method further includes:

[0018] Each time an audio frame is collected, audio recognition is performed on the audio frame to obtain feature components of the audio frame for a plurality of phonemes respectively;

[0019] The feature vector of an audio frame for a phoneme represents the probability value of the audio frame belonging to the phoneme.

[0020] In a possible implementation manner, obtaining the third characteristic value includes:

[0021] Each time an audio frame is collected, audio recognition is performed on the currently collected audio frame and the previous audio frame to obtain the probability value of the audio frame and the previous audio frame belonging to two adjacent phonemes in the wake-up word, until the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is obtained, and the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is determined as the third feature value.

[0022] In a possible implementation manner, obtaining the first feature value, the second feature value, and the third feature value of the audio segment includes:

[0023] Calling an audio recognition model to perform audio recognition on N+1 audio frames in the audio clip, obtaining feature components of each audio frame for a plurality of phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word, wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme;

[0024] Adding the first feature component of each audio frame in the first N audio frames to obtain the first feature value, wherein the first feature component of the Kth audio frame represents the probability value of the Kth audio frame belonging to the Kth phoneme in the wake-up word, and K is a positive integer not greater than N;

[0025] Adding the second characteristic components of each audio frame in the first N audio frames to obtain the second characteristic value, wherein the second characteristic component of the K-th audio frame represents the maximum probability value among the probability values ​​that the K-th audio frame belongs to multiple phonemes;

[0026] The probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word is determined as the third feature value.

[0027] In a possible implementation, the method further includes:

[0028] Acquire multiple training samples, where the multiple training samples include positive training samples and negative training samples, where the positive training samples are audio clips containing the wake-up word, and the negative training samples are audio clips not containing the wake-up word;

[0029] The audio recognition model is trained based on the multiple training samples.

[0030] In a possible implementation manner, the training the audio recognition model based on the multiple training samples includes:

[0031] Determine first identification information corresponding to each training sample, where the first identification information includes a phoneme corresponding to each audio frame in the training sample;

[0032] Calling the audio recognition model, performing audio recognition on the audio frames in each training sample, and obtaining second recognition information corresponding to each training sample, wherein the second recognition information includes feature components of each audio frame in the training sample for multiple phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word; wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme;

[0033] Based on the first recognition information and the second recognition information corresponding to each training sample, the model parameters of the audio recognition model are adjusted.

[0034] In a possible implementation, when a difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition, determining that the audio segment contains a wake-up word includes:

[0035] When the difference between the first eigenvalue and the second eigenvalue is smaller than the first threshold, and the third eigenvalue is smaller than the second threshold, it is determined that the audio segment contains the wake-up word.

[0036] In a possible implementation, when a difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition, determining that the audio segment contains a wake-up word includes:

[0037] When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue is a target value, it is determined that the audio segment contains the wake-up word, and the target value indicates that the Nth audio frame and the N+1th audio frame are not two adjacent phonemes in the wake-up word.

[0038] In a possible implementation, when the difference between the first feature value and the second feature value of the audio segment is less than a first threshold, and the third feature value is less than a second threshold, after determining that the audio segment contains a wake-up word, the method further includes:

[0039] A voice control instruction is recognized based on at least one audio frame collected after the wake-up word is recognized, and a control operation corresponding to the voice control instruction is executed.

[0040] According to another aspect of an embodiment of the present application, there is provided an audio recognition device, the device comprising:

[0041] An acquisition module, configured to, when an audio frame is acquired, combine a currently acquired audio frame with a previously acquired audio frame to form an audio segment, and acquire a first eigenvalue, a second eigenvalue, and a third eigenvalue of the audio segment;

[0042] A first determination module, configured to determine that the audio segment contains a wake-up word when a difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition;

[0043] Among them, the audio segment includes N+1 audio frames, two adjacent audio segments include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word; the first feature value represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, the second feature value represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of phonemes recognized by the first N audio frames, the third feature value represents the probability value that the Nth audio frame and the N+1th audio frame in the audio segment belong to two adjacent phonemes in the wake-up word, and the jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio segment do not belong to two adjacent phonemes in the wake-up word.

[0044] In a possible implementation manner, the device further includes:

[0045] The second determination module is used to continue collecting audio frames when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue does not meet the jump condition, until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold and the third eigenvalue meets the jump condition, and determine that the audio segment constructed this time contains the wake-up word.

[0046] In a possible implementation, the acquisition module includes:

[0047] an identification unit, configured to obtain a first feature component and a second feature component of the first N audio frames in the audio clip, wherein the first feature component of the Kth audio frame represents a probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and the second feature component of the Kth audio frame represents a maximum probability value among probability values ​​that the Kth audio frame belongs to multiple phonemes, and K is a positive integer not greater than N;

[0048] A first fusion unit, configured to add a first feature component of each audio frame in the first N audio frames to obtain the first feature value of the audio segment;

[0049] The second fusion unit is configured to add the second feature component of each audio frame in the first N audio frames to obtain the second feature value of the audio segment.

[0050] In a possible implementation, the identification unit is used to:

[0051] For a Kth audio frame in the audio clip, among feature components obtained for a plurality of phonemes in the Kth audio frame, a feature component of the Kth audio frame for the Kth phoneme in the wake-up word is determined as a first feature component of the Kth audio frame, and a maximum feature component is determined as a second feature component of the Kth audio frame;

[0052] The feature vector of the K-th audio frame for a phoneme represents a probability value that the K-th audio frame belongs to the phoneme.

[0053] In a possible implementation, the identification unit is used to:

[0054] Each time an audio frame is collected, audio recognition is performed on the audio frame to obtain feature components of the audio frame for a plurality of phonemes respectively;

[0055] The feature vector of an audio frame for a phoneme represents the probability value of the audio frame belonging to the phoneme.

[0056] In a possible implementation, the acquisition module includes:

[0057] An identification unit is used to perform audio recognition on the currently collected audio frame and the previous audio frame each time an audio frame is collected, to obtain the probability value of the audio frame and the previous audio frame belonging to two adjacent phonemes in the wake-up word, until the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is obtained, and the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is determined as the third feature value.

[0058] In a possible implementation, the acquisition module includes:

[0059] A recognition unit, configured to call an audio recognition model, perform audio recognition on N+1 audio frames in the audio clip, obtain feature components of each audio frame for a plurality of phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word, wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme;

[0060] A first fusion unit, configured to add a first feature component of each audio frame in the first N audio frames to obtain the first feature value, wherein the first feature component of the Kth audio frame represents a probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and K is a positive integer not greater than N;

[0061] a second fusion unit, configured to add the second characteristic components of each audio frame in the first N audio frames to obtain the second characteristic value, wherein the second characteristic component of the K-th audio frame represents a maximum probability value among probability values ​​that the K-th audio frame belongs to multiple phonemes;

[0062] The first determination unit is used to determine the probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word as the third feature value.

[0063] In a possible implementation manner, the device further includes:

[0064] A sample acquisition module, used to acquire multiple training samples, wherein the multiple training samples include positive training samples and negative training samples, wherein the positive training samples are audio clips containing the wake-up word, and the negative training samples are audio clips not containing the wake-up word;

[0065] A training module is used to train the audio recognition model based on the multiple training samples.

[0066] In a possible implementation, the training module includes:

[0067] A second determining unit, configured to determine first identification information corresponding to each training sample, wherein the first identification information includes a phoneme corresponding to each audio frame in the training sample;

[0068] A training recognition unit, configured to call the audio recognition model, perform audio recognition on the audio frames in each training sample, and obtain second recognition information corresponding to each training sample, wherein the second recognition information includes feature components of each audio frame in the training sample for multiple phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word; wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme;

[0069] An adjustment unit is used to adjust the model parameters of the audio recognition model based on the first recognition information and the second recognition information corresponding to each training sample.

[0070] In a possible implementation, the first determining module includes:

[0071] The third determining unit is used to determine that the audio segment contains the wake-up word when the difference between the first eigenvalue and the second eigenvalue is smaller than the first threshold and the third eigenvalue is smaller than the second threshold.

[0072] In a possible implementation, the first determining module includes:

[0073] A third determination unit is used to determine that the audio segment contains the wake-up word when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue is a target value, and the target value indicates that the Nth audio frame and the N+1th audio frame are not two adjacent phonemes in the wake-up word.

[0074] In a possible implementation manner, the device further includes:

[0075] An execution module is used to recognize a voice control instruction based on at least one audio frame collected after the wake-up word is recognized, and execute a control operation corresponding to the voice control instruction.

[0076] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the audio recognition method described in any one of the possible implementation methods described above.

[0077] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the audio recognition method described in any possible implementation manner described above.

[0078] According to another aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising at least one program code, the at least one program code being executed by a processor to implement the audio recognition method described in any one of the possible implementations described above.

[0079] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0080] The technical solution provided by the embodiment of the present application obtains the first eigenvalue, the second eigenvalue and the third eigenvalue of the collected audio segment. Only when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue meets the jump condition, it can be explained that the probability value of the first N audio frames in the current audio segment belonging to the wake-up word is close to the probability value of the first N audio frames belonging to the matching phoneme segment. In this case, the first N audio frames belong to the wake-up word, and the last audio frame no longer belongs to the wake-up word, thereby determining that the content corresponding to the first N audio frames in the audio segment is the wake-up word. This audio recognition method can ensure that the complete wake-up word is recognized, thereby improving the accuracy of audio recognition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0082] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0083] Figure 2 is a flow chart of an audio recognition method provided by an embodiment of the present application;

[0084] Figure 3 is a flow chart of another audio recognition method provided by an embodiment of the present application;

[0085] Figure 4 is a structural schematic diagram of an audio recognition device provided in an embodiment of the present application;

[0086] Figure 5 is a schematic diagram of the structure of another audio recognition device provided in an embodiment of the present application;

[0087] Figure 6 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0088] Figure 7 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0089] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0090] It is understood that the terms "first", "second", etc. used in this application can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, a first characteristic value can be referred to as a second characteristic value, and a second characteristic value can be referred to as a first characteristic value.

[0091] The terms "at least one", "multiple", "each", "any", etc. used in this application include one, two or more than two, multiple include two or more than two, each refers to each of the corresponding multiple, and any refers to any one of the multiple. For example, multiple audio frames include 3 audio frames, and each audio frame refers to each of the 3 audio frames, and any refers to any one of the 3 audio frames, which can be the first, the second, or the third.

[0092] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, see Figure 1 , the implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.

[0093] Optionally, the terminal 101 is any type of terminal such as a smart phone, a tablet computer, a smart wearable device or a smart home device, and the smart home device is a smart speaker, a smart TV, a smart refrigerator, a smart air conditioner, a smart robot, a smart lamp, a smart lock, etc. The server 102 is a server, or a server cluster composed of several servers, or a cloud computing service center.

[0094] Optionally, the terminal 101 is installed with an application provided by the server 102, and the terminal 101 can implement functions such as data transmission and message interaction through the application. Optionally, the application is an application in the operating system of the terminal 101, or an application provided by a third party. For example, the application is a voice assistant, and the voice assistant application has an audio recognition function. Of course, the application can also have other functions, such as a function of executing voice commands, a caching function, etc.

[0095] In the scenario where the user wakes up the terminal 101 through voice, the terminal 101 recognizes the collected audio clips. When the terminal 101 determines that the complete wake-up word is recognized, it continues to collect audio frames, thereby sending at least one collected audio frame to the server 102. The server 102 receives the at least one audio frame and determines the voice control instruction corresponding to the at least one audio frame. Thereafter, the recognized voice control instruction is sent to the terminal 101, so that the terminal 101 executes the control operation corresponding to the voice control instruction.

[0096] It should be noted that the above Figure 1 The embodiment of the present invention only takes the example of the terminal 101 sending the collected audio clip to the server 102. In another embodiment, the terminal 101 does not need to send the collected audio clip to the server 102, but the terminal 101 recognizes the wake-up word in the audio clip, and directly executes the control operation corresponding to the wake-up word when the terminal 101 determines that the complete wake-up word is recognized.

[0097] The method provided in the embodiments of the present application can be applied in a variety of scenarios.

[0098] For example, the method provided in the embodiment of the present application is applied to the scenario of waking up the mobile phone by voice. It is inconvenient for the user to operate the mobile phone while driving, but the user wants to use the mobile phone for navigation, so the user can say the wake-up word corresponding to the mobile phone. When the mobile phone recognizes the wake-up word, it is awakened from the standby state, thereby starting the recognition service, wherein the recognition service is used to recognize voice control instructions. After that, the user says to open the navigation application and how to navigate, etc., and the mobile phone can recognize the instruction to open the navigation application based on the collected audio frames, thereby opening the navigation application for navigation.

[0099] For another example, the method provided in the embodiment of the present application can also be applied to the scenario of controlling a smart TV by voice. The user can say the wake-up word corresponding to the smart TV, and when the smart TV recognizes the wake-up word, it starts the recognition service, and when it recognizes the voice control command to change the TV channel, it controls the smart TV to execute the operation of changing the TV channel.

[0100] It should be noted that the embodiments of the present application are only described by taking a mobile phone or a smart TV recognizing a wake-up word as an example, and do not limit the scenarios of the audio recognition method of the present application.

[0101] Figure 2 is a flow chart of an audio recognition method provided by an embodiment of the present application. The execution subject of the embodiment of the present application is an electronic device, which is a terminal or server shown in the above embodiment, or other devices. Figure 2 , the method comprises the following steps:

[0102] 201. When an audio frame is collected, the currently collected audio frame and the previously collected audio frame are combined into an audio segment, and a first eigenvalue, a second eigenvalue, and a third eigenvalue of the audio segment are obtained.

[0103] Among them, the audio clip includes N+1 audio frames, two adjacent audio clips include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word. The wake-up word is used to wake up the electronic device to perform corresponding control operations, such as controlling the mobile phone to answer the call, controlling the navigation system to navigate, or controlling the smart TV to adjust the volume. Optionally, the wake-up word is pre-set by the electronic device. Among them, the wake-up word is composed of multiple phonemes. Phonemes are the smallest audio units divided according to the natural properties of audio. They are analyzed based on the pronunciation actions in the syllables, and one pronunciation action constitutes a phoneme.

[0104] When the electronic device collects audio frames, it combines the currently collected audio frames with the previously collected audio frames to form an audio segment containing N+1 audio frames, where N is a positive integer and the wake-up word contains N phonemes. The number of audio frames contained in the audio segment is greater than the number of phonemes contained in the wake-up word, that is, the audio segment can contain the complete wake-up word. After that, the audio frame continues to be collected, and the currently collected audio frame is combined with the previously collected audio frame to form another audio segment.

[0105] For example, the number of currently collected audio frames is M, and M is a positive integer not greater than N. The electronic device arranges the collected audio frames in the order of collection time. In order to form an audio segment containing N+1 audio frames, it is necessary to obtain N-M+1 audio frames before the currently collected M audio frames, so as to combine the currently collected M audio frames with the N-M+1 audio frames to obtain an audio segment containing N+1 audio frames, and the N+1 audio frames in the audio segment are continuous. After that, the audio frames continue to be collected. When M audio frames are collected again, the N-M+1 audio frames before the newly collected M audio frames are re-acquired to form another audio segment containing N+1 audio frames. The electronic device repeats the above steps to form multiple audio segments.

[0106] It should be noted that, since M is a positive integer not greater than N, the N+1 audio frames contained in each audio clip are continuous. Therefore, for two adjacent audio clips, the latter N-M+1 audio frames in the previous audio clip are the same as the former N-M+1 audio frames in the latter audio clip, that is, there is an overlapping part between the two adjacent audio clips, and there is at least one identical audio frame between the two adjacent audio clips.

[0107] For each audio segment, the first eigenvalue, second eigenvalue and third eigenvalue of the audio segment are obtained. The first eigenvalue represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, that is, the probability value that the content corresponding to the first N audio frames in the audio segment is the wake-up word.

[0108] The second eigenvalue represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of the phonemes recognized by the first N audio frames. Wherein, given a plurality of phonemes, the plurality of phonemes are combined in various forms to form a plurality of phoneme segments, each phoneme segment is composed of at least one phoneme among the plurality of phonemes, and the plurality of phoneme segments include wake-up words and non-wake-up words, and the phoneme segment that matches the first N audio frames needs to be determined from the plurality of phoneme segments. When the audio segment is recognized, each audio frame is recognized, and the phonemes corresponding to each audio frame are recognized. Then, the segment composed of the phonemes recognized by the first N audio frames can be considered as the phoneme segment recognized for the first N audio frames, and is the phoneme segment that is most likely to match the first N audio frames, and the second eigenvalue can indicate whether the first N audio frames match the phoneme segment.

[0109] The third eigenvalue represents the probability value that the Nth audio frame and the N+1th audio frame in the audio clip belong to two adjacent phonemes in the wake-up word, that is, the possibility that the content corresponding to the last two audio frames in the audio clip is any two adjacent phonemes in the wake-up word.

[0110] 202. When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue satisfies the jump condition, determine that the audio segment contains the wake-up word.

[0111] The electronic device compares the first eigenvalue and the second eigenvalue of the acquired audio segment to obtain the difference between the first eigenvalue and the second eigenvalue. When the difference is less than the first threshold, it can be considered that the first eigenvalue and the second eigenvalue are not much different, that is, the probability value of the first N audio frames in the audio segment belonging to the wake-up word is close to the probability value of the first N audio frames belonging to the matching phoneme segment, that is, the phoneme segment matching the first N audio frames is likely to be the wake-up word.

[0112] Optionally, the first threshold may be determined according to the requirement of recognition accuracy, and may be any value such as 0.1 or 0.2.

[0113] In addition, in order to ensure that the complete wake-up word is recognized from the audio clip, it is also necessary to determine whether the third feature value meets the jump condition. The jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio clip are not two adjacent phonemes in the wake-up word.

[0114] To this end, the electronic device determines the probability value that the last two audio frames in the audio clip belong to two adjacent phonemes in the wake-up word as the third eigenvalue. That is, the probability value that the Nth audio frame and the N+1th audio frame in the audio clip belong to two adjacent phonemes in the wake-up word is determined as the third eigenvalue. If the third eigenvalue meets the jump condition, it means that the Nth audio frame and the N+1th audio frame in the audio clip do not belong to two adjacent phonemes in the wake-up word, then it is considered that the N+1th audio frame no longer belongs to the wake-up word, that is, the Nth audio frame is the last audio frame of the wake-up word, then it can be determined that the current audio clip contains a complete wake-up word, that is, the content corresponding to the first N audio frames in the current audio clip is the wake-up word.

[0115] If the third eigenvalue does not meet the jump condition, it means that the Nth audio frame and the N+1th audio frame in the audio clip belong to two adjacent phonemes in the wake-up word. That is, while the first N audio frames in the audio clip belong to the wake-up word, the N+1th audio frame also belongs to the wake-up word. This is inconsistent with the fact that the wake-up word contains N phonemes, indicating that the recognition is not accurate enough, and it is impossible to specifically determine which audio frames in the audio clip are the real wake-up words.

[0116] The method provided in the embodiment of the present application obtains the first eigenvalue, the second eigenvalue and the third eigenvalue of the collected audio segment. Only when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue satisfies the jump condition, can it be explained that the probability value of the first N audio frames in the current audio segment belonging to the wake-up word is close to the probability value of the first N audio frames belonging to the matching phoneme segment, then the first N audio frames belong to the wake-up word, and the last audio frame no longer belongs to the wake-up word, thereby determining that the content corresponding to the first N audio frames in the audio segment is the wake-up word. This audio recognition method can ensure that the complete wake-up word is recognized, thereby improving the accuracy of audio recognition.

[0117] Figure 3 is a flow chart of another audio recognition method provided by an embodiment of the present application. The execution subject of the embodiment of the present application is an electronic device. Figure 3 , the method comprises the following steps:

[0118] 301. When an audio frame is collected, the currently collected audio frame and the previously collected audio frame are combined into an audio segment.

[0119] In an embodiment of the present application, the electronic device collects audio frames in real time, and collects multiple audio frames in sequence, so as to identify the complete wake-up word from the collected multiple audio frames. Optionally, while the user is speaking, the electronic device collects multiple audio frames in sequence, and the electronic device identifies whether the user has said the wake-up word by identifying the collected audio frames.

[0120] Among them, the audio clip includes N+1 audio frames, and two adjacent audio clips include N identical audio frames, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word. Among them, one audio frame corresponds to one phoneme, or each audio frame represents a phoneme. Since the wake-up word contains N phonemes, in order to identify whether the continuously collected audio frames belong to the wake-up word, it is necessary to identify whether the N consecutive audio frames belong to the N phonemes in the wake-up word. Therefore, the first N audio frames in each audio clip are identified to determine whether it is a wake-up word, that is, to identify whether the audio clip contains a complete wake-up word.

[0121] Each time the electronic device captures an audio frame, it combines the currently captured audio frame with the N audio frames previously captured to form an audio segment containing N+1 audio frames, so that the number of audio frames contained in the audio segment is greater than the number of phonemes contained in the wake-up word, that is, the audio segment can contain the complete wake-up word. Afterwards, when the audio frame is captured again, the above steps are repeated, that is, the currently captured audio frame is combined with the N audio frames before the audio frame to form the next audio segment. Among them, there is an overlapping part between two adjacent audio segments, containing N identical audio frames, that is, the latter N audio frames in the previous audio segment are the same as the former N audio frames in the latter audio segment, that is, only one audio frame is different.

[0122] It should be noted that each time an audio frame is collected in the above step 301, an audio segment will be formed, so as to identify in real time whether the audio segment formed by the collected audio frame contains the wake-up word, so that the complete wake-up word can be recognized in the audio segment in time. In another embodiment, when an audio frame is collected, the currently collected audio frame and the previously collected audio frame constitute an audio segment. For example, every time M audio frames are collected, and M is a positive integer not greater than N, the electronic device obtains the previously collected N-M+1 audio frames, so that the obtained N+1 audio frames are combined to form the audio segment containing N+1 audio frames. Afterwards, every time M audio frames are collected, the operation of forming an audio segment is performed once, and each audio segment formed includes N+1 audio frames, then there is an overlapping part between two adjacent audio segments, and the two adjacent audio segments include at least one identical audio frame.

[0123] 302. Perform audio recognition on N+1 audio frames in the audio clip to obtain feature components of each audio frame for multiple phonemes, and probability values ​​of every two adjacent audio frames belonging to two adjacent phonemes in the wake-up word.

[0124] The electronic device recognizes the N+1 audio frames in the currently constructed audio clip respectively, and obtains the characteristic components of each audio frame for multiple phonemes, wherein the characteristic component of an audio frame for a phoneme represents the probability value of the audio frame belonging to the phoneme. After performing audio recognition on the collected audio frames, the probability value of the audio frame belonging to each of the multiple phonemes can be obtained.

[0125] In a possible implementation, each time the electronic device collects an audio frame, it performs audio recognition on the audio frame to obtain feature components of the audio frame for multiple phonemes, wherein one feature component corresponds to one audio frame and one phoneme, indicating the probability value of the audio frame belonging to the phoneme. After that, it continues to collect new audio frames, thereby performing audio recognition on the next collected audio frame, until N+1 audio frames are collected, and after the recognition of these N+1 audio frames is completed, the feature components of each audio frame for multiple phonemes in the audio segment composed of the currently collected N+1 audio frames can be obtained.

[0126] Moreover, when identifying the N+1 audio frames contained in the audio clip, the probability value of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word can be obtained to determine whether the last audio frame currently collected and the previous audio frame belong to two adjacent phonemes in the wake-up word.

[0127] In one possible implementation, each time the electronic device collects an audio frame, it performs audio recognition on the currently collected audio frame and the previous audio frame to obtain a probability value that the audio frame and the previous audio frame belong to two adjacent phonemes in the wake-up word.

[0128] For example, multiple phonemes in the wake-up word are arranged in order, which can be regarded as forming a wake-up path, which includes the above-mentioned multiple phonemes. According to the probability value that the currently collected audio frame and the previous audio frame belong to two adjacent phonemes in the wake-up word, it can be determined whether the currently collected audio frame and the previous audio frame are both on the wake-up path. If this probability value is large, it means that the currently collected audio frame and the previous audio frame are both on the wake-up path, and are both phonemes contained in the wake-up word. If this probability value is small, it means that the currently collected audio frame and the previous audio frame are not both on the wake-up path. It is very likely that the previous audio frame is still on the wake-up path, while the currently collected audio frame is not on the wake-up path and does not belong to the phonemes in the wake-up word.

[0129] In one possible implementation, step 302 includes: calling an audio recognition model to perform audio recognition on N+1 audio frames in the audio clip to obtain feature components of each audio frame for multiple phonemes, and probability values ​​that every two adjacent audio frames belong to two adjacent phonemes in the wake-up word.

[0130] Among them, the audio recognition model is used to recognize N+1 audio frames in the audio clip respectively, and obtain the feature components of each audio frame for multiple phonemes, as well as the probability value that every two adjacent audio frames belong to two adjacent phonemes in the wake-up word.

[0131] Optionally, the audio recognition model is stored in the electronic device, and the audio recognition model is a trained model. When the electronic device obtains a new audio segment, the N+1 audio frames in the audio segment are respectively input into the audio recognition model, and the audio recognition model performs audio recognition on each audio frame respectively, and outputs feature components of each audio frame for multiple phonemes, and the probability value that each two adjacent audio frames belong to two adjacent phonemes in the wake-up word.

[0132] Optionally, the training process of the audio recognition model includes: obtaining multiple training samples, the multiple training samples include positive training samples and negative training samples, the positive training samples are audio clips containing wake-up words, and the negative training samples are audio clips that do not contain wake-up words; training the audio recognition model based on the multiple training samples.

[0133] Optionally, the training process of the audio recognition model further includes: determining the first recognition information corresponding to each training sample, the first recognition information including the phonemes corresponding to each audio frame in the training sample; calling the audio recognition model to perform audio recognition on the audio frames in each training sample to obtain second recognition information corresponding to each training sample, the second recognition information including the feature components of each audio frame in the training sample for multiple phonemes, and the probability value that each two adjacent audio frames belong to two adjacent phonemes in the wake-up word; wherein the feature vector of an audio frame for a phoneme represents the probability value that the audio frame belongs to the phoneme, and based on the first recognition information and the second recognition information corresponding to each training sample, the model parameters of the audio recognition model are adjusted.

[0134] The first recognition information is the true annotation result of the training sample. The first recognition information includes the true phonemes corresponding to each audio frame in the training sample. Moreover, based on the first recognition information and the phonemes included in the wake-up word, it can be determined which audio frames in the training sample belong to the wake-up word and which audio frames do not belong to the wake-up word. It can also be determined which two adjacent audio frames belong to the two adjacent phonemes in the wake-up word and which two adjacent audio frames do not belong to the two adjacent phonemes in the wake-up word.

[0135] The second recognition information is the probability value of each audio frame belonging to the phoneme predicted by the audio recognition model, and the probability value of each two adjacent audio frames belonging to the two adjacent phonemes in the wake-up word. Therefore, the electronic device adjusts the model parameters of the audio recognition model based on the first recognition information and the second recognition information, so that the recognition information predicted based on the adjusted audio recognition model is more accurate, thereby improving the recognition accuracy of the audio recognition model. After one or more trainings, the trained audio recognition model can be obtained.

[0136] 303. Obtain first characteristic components and second characteristic components of first N audio frames in the audio segment.

[0137] Among them, the first feature component of the Kth audio frame represents the probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, the second feature component of the Kth audio frame represents the maximum probability value among the probability values ​​that the Kth audio frame belongs to multiple phonemes, and K is a positive integer not greater than N.

[0138] In a possible implementation, for the Kth audio frame in the audio clip, among the feature components obtained for the Kth audio frame for the multiple phonemes, the feature component of the Kth audio frame for the Kth phoneme in the wake-up word is determined as the first feature component of the Kth audio frame, and the largest feature component is determined as the second feature component of the Kth audio frame;

[0139] The feature vector of the K-th audio frame for a phoneme represents a probability value that the K-th audio frame belongs to a phoneme.

[0140] The audio clip contains N+1 audio frames. Through audio recognition, feature components corresponding to multiple phonemes are obtained for each audio frame. Each audio frame corresponds to a first feature component and a second feature component. The first feature components and second feature components corresponding to the first N audio frames in the audio clip are obtained, and N first feature components and N second feature components will be obtained.

[0141] 304. Add the first characteristic component of each audio frame in the first N audio frames to obtain a first characteristic value.

[0142] Among them, the first feature component of each audio frame in the first N audio frames represents the probability value of each audio frame belonging to the phoneme at the same position in the wake-up word, and the first feature value obtained by adding the first feature components of each audio frame in the first N audio frames can regard the first N audio frames as a whole, indicating the probability value of the first N audio frames as a whole belonging to the wake-up word.

[0143] 305. Add the second characteristic component of each audio frame in the first N audio frames to obtain a second characteristic value.

[0144] Among them, the second feature component of each audio frame in the first N audio frames represents the maximum probability value among the probability values ​​that each audio frame belongs to multiple phonemes, and the second feature value obtained by adding the second feature components of each audio frame in the first N audio frames can regard the first N audio frames as a whole, and represents the probability value that the whole composed of the first N audio frames matches the phoneme segment, where the phoneme segment is a segment composed of phonemes recognized by the first N audio frames.

[0145] 306. Determine a probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word as a third feature value.

[0146] When the electronic device performs audio recognition on the N+1 audio frames in the audio clip, it will obtain the probability value that every two adjacent audio frames belong to two adjacent phonemes in the wake-up word. At this time, it will also determine the jump probability value between the Nth audio frame and the N+1th audio frame in the audio clip, that is, the probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word, and determine it as the third characteristic value.

[0147] In one possible implementation, each time an audio frame is collected, audio recognition is performed on the currently collected audio frame and the previous audio frame to obtain the probability value of the audio frame and the previous audio frame belonging to two adjacent phonemes in the wake-up word, until the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is obtained, and the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is determined as the third feature value.

[0148] 307. When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue meets the jump condition, determine that the audio segment contains the wake-up word.

[0149] The jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio clip are not two adjacent phonemes in the wake-up word.

[0150] Before or after the user says the wake-up word, and during the user's speaking of the wake-up word, the electronic device will obtain one or more audio clips. While the user is speaking the wake-up word, the number of phonemes in the wake-up word contained in the audio clip gradually increases, and the first eigenvalue of the audio clip will increase. Since the first eigenvalue of the audio clip represents the probability value that the first N audio frames in the audio clip belong to the wake-up word, and the second eigenvalue of the audio clip represents the probability value that the first N audio frames in the audio clip match the identified phoneme clip, when the first eigenvalue of the audio clip is close to the second eigenvalue, it is considered that the first N audio frames in the audio clip are likely to be the wake-up word. However, there may also be a situation where the first N audio frames of the audio clip only contain part of the wake-up word, that is, the wake-up word has not been completely spoken. Therefore, if the wake-up word is determined to be recognized only when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold, a misjudgment may occur.

[0151] To avoid misjudgment, it is necessary to determine whether the third eigenvalue meets the jump condition, that is, to determine whether the phoneme corresponding to the last audio frame in the audio clip still belongs to the wake-up word. If the third eigenvalue meets the jump condition, it can be considered that the phoneme corresponding to the last audio frame in the audio clip no longer belongs to the wake-up word. Therefore, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold, and the third eigenvalue meets the jump condition, it can be considered that the first N audio frames in the current audio clip are the wake-up word, that is, the audio clip contains every phoneme in the wake-up word, so that it is determined that the complete wake-up word has been recognized.

[0152] In one possible implementation, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue does not meet the jump condition, continue to collect audio frames until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold and the third eigenvalue meets the jump condition, and it is determined that the audio segment constructed this time contains the wake-up word.

[0153] Among them, the fact that the third eigenvalue does not meet the jump condition indicates that the last audio frame in the current audio segment still belongs to the wake-up word. At this time, it is necessary to continue to collect audio frames and form a new audio segment, re-acquire the first eigenvalue, second eigenvalue and third eigenvalue of the new audio segment, and determine whether the difference between the re-acquired first eigenvalue and the second eigenvalue is less than the first threshold, and whether the third eigenvalue meets the jump condition. Until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold, and the third eigenvalue meets the jump condition, it is determined that the audio segment constructed this time contains the wake-up word.

[0154] In one possible implementation, when the difference between the first feature value and the second feature value is less than the first threshold value, and the third feature value is less than the second threshold value, it is determined that the audio segment contains the wake-up word. That is, when the third feature value is less than the second threshold value, it is considered that the third feature value meets the jump condition.

[0155] Among them, the second threshold is a pre-set threshold, which can be the minimum threshold of the probability value of any two audio frames belonging to two adjacent phonemes in the wake-up word, that is, if the probability value of two audio frames belonging to two adjacent phonemes in the wake-up word is not less than the second threshold, it can be considered that the two audio frames belong to two adjacent phonemes in the wake-up word; if the probability value of two audio frames belonging to two adjacent phonemes in the wake-up word is less than the second threshold, it can be considered that the two audio frames do not belong to two adjacent phonemes in the wake-up word.

[0156] Optionally, through multiple recognitions, it can be determined that for any two adjacent phonemes in the wake-up word, the jump probability value obtained by recognition is a first value, and for any two audio frames of adjacent phonemes that do not belong to the wake-up word, the jump probability value obtained by recognition is a second value, so the median of the first value and the second value is used as the second threshold. For example, the first value is 1 and the second value is 0.

[0157] In one possible implementation, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue is a target value, it is determined that the audio segment contains the wake-up word, and the target value indicates that the Nth audio frame and the N+1th audio frame are not two adjacent phonemes in the wake-up word. Optionally, the target value is preset by the electronic device, such as the target value is 0.

[0158] For example, the wake-up word is "hello", and the phoneme contained in the wake-up word is "nihao", that is, the five phonemes contained in the wake-up word are "n", "i", "h", "a" and "o", and the five phonemes are arranged in order. When the user says "nihao", the electronic device collects the voice in real time. Every time an audio frame is collected, it is combined with the five audio frames collected before to form an audio segment containing six audio frames. After that, continue to collect audio frames and repeat the above operation of forming an audio segment to obtain the next audio segment.

[0159] When the user says "nihao", the audio clip contains more and more phonemes of the wake-up word, and the first eigenvalue becomes larger and larger, and becomes closer and closer to the second eigenvalue, until the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value. At this time, it is considered that there is a high possibility that the wake-up word is included in the current audio clip, but it is impossible to determine whether the complete wake-up word has been recognized. After that, it is necessary to determine whether the third eigenvalue of the audio clip meets the jump condition. If the jump condition is met, the first 5 audio frames in the audio clip can be considered to be the phonemes "nihao" in the wake-up word, that is, the complete wake-up word "hello" is recognized, thereby waking up the electronic device to perform the corresponding control operation.

[0160] 308. Recognize a voice control instruction based on at least one audio frame collected after recognizing the wake-up word, and execute a control operation corresponding to the voice control instruction.

[0161] The wake-up word is used to wake up the electronic device, and the electronic device can be awakened after it determines that the wake-up word is recognized. After that, the electronic device continues to collect audio frames and starts the recognition service to recognize the audio frames collected after the wake-up word is recognized to determine the voice control instruction and the control operation corresponding to the voice control instruction, so as to execute the control operation corresponding to the voice control instruction.

[0162] The above process of controlling electronic devices by voice is divided into two stages: a wake-up stage and a control stage.

[0163] Among them, in the wake-up stage, every time the electronic device collects an audio frame, it constitutes an audio segment together with the previously collected audio frame, thereby identifying the audio segment and obtaining the first eigenvalue, second eigenvalue and third eigenvalue of the currently constituted audio segment. When the first eigenvalue is close to the second eigenvalue and the last audio frame in the audio segment no longer belongs to the wake-up word, that is, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue meets the jump condition, it is determined that the audio segment has been recognized to contain a complete wake-up word. At this time, the electronic device is awakened from the standby state.

[0164] After the electronic device is awakened, it will continue to collect new audio frames, and recognize the voice control instructions issued by the user based on the collected audio frames, so as to execute the control operation corresponding to the voice control instruction. In the related art, there may be a situation where the user has not finished saying the wake-up word, but the electronic device determines that it has recognized the wake-up word and is awakened, causing the remaining audio frames corresponding to the wake-up word to be mistaken for the audio frames corresponding to the voice control instruction, resulting in low recognition accuracy of the voice control instruction. However, in an embodiment of the present application, the electronic device will not be awakened until the complete wake-up word is recognized, which can ensure that the audio frames collected after being awakened belong to the voice control instruction, and do not include the audio frames corresponding to the wake-up word, thereby improving the accuracy of audio recognition.

[0165] It should be noted that the embodiment of the present application is only described by waking up the electronic device according to the wake-up word and executing the control operation corresponding to the voice control instruction. In another embodiment, the wake-up word is also used to wake up the electronic device to perform the corresponding control operation. Therefore, after the electronic device determines that the wake-up word is recognized, the corresponding control operation can be directly executed. Optionally, the electronic device stores a correspondence between any wake-up word and the control operation. After the electronic device recognizes the wake-up word, it queries the control operation corresponding to the wake-up word and executes the control operation.

[0166] For example, when a user is using a mobile phone, if it is inconvenient to operate the phone with both hands, human-computer interaction can be achieved by saying the wake-up word. For example, the wake-up word is "answer the call", and when a call comes in, the user says "answer the call", and the mobile phone recognizes "answer the call" and executes the operation of connecting the call. Or, the wake-up word is "hang up the call", the user says "hang up the call", and the mobile phone recognizes "hang up the call" and executes the operation of hanging up the call.

[0167] The method provided in the embodiment of the present application obtains the first eigenvalue, the second eigenvalue and the third eigenvalue of the collected audio segment. Only when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue satisfies the jump condition, can it be explained that the probability value of the first N audio frames in the current audio segment belonging to the wake-up word is close to the probability value of the first N audio frames belonging to the matching phoneme segment, then the first N audio frames belong to the wake-up word, and the last audio frame no longer belongs to the wake-up word, thereby determining that the content corresponding to the first N audio frames in the audio segment is the wake-up word. This audio recognition method can ensure that the complete wake-up word is recognized, thereby improving the accuracy of audio recognition.

[0168] Furthermore, each time an audio frame is collected, an operation of forming an audio segment is performed, thereby identifying in real time whether the audio segment formed by the collected audio frame contains a complete wake-up word, ensuring that the complete wake-up word can be recognized in the audio segment in a timely manner.

[0169] Furthermore, the jump condition that the third eigenvalue needs to meet may be that it is less than the second threshold. In this case, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold, and the third eigenvalue is less than the second threshold, it is ensured that the third eigenvalue meets the jump condition, and then it is determined that the last two audio frames in the audio segment constructed this time do not belong to the two adjacent phonemes in the wake-up word, that is, the content corresponding to the first N audio frames is the recognized complete wake-up word, and therefore the N phonemes contained in the wake-up word are accurately recognized, thereby improving the accuracy of audio recognition.

[0170] Moreover, when the third eigenvalue is the target value, it is considered that the third eigenvalue satisfies the jump condition. Then, when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue is the target value, it is ensured that the third eigenvalue satisfies the jump condition, and then it is determined that the last two audio frames in the audio segment constructed this time do not belong to the two adjacent phonemes in the wake-up word, that is, the content corresponding to the first N audio frames is the recognized complete wake-up word, and therefore the N phonemes contained in the wake-up word are accurately recognized, thereby improving the accuracy of audio recognition.

[0171] Figure 4 is a schematic diagram of the structure of an audio recognition device provided in an embodiment of the present application. Figure 4 , the device comprises:

[0172] The acquisition module 401 is used to, when an audio frame is acquired, combine the currently acquired audio frame and the previously acquired audio frame into an audio segment, and acquire the first characteristic value, the second characteristic value and the third characteristic value of the audio segment;

[0173] A first determination module 402, configured to determine that the audio segment contains a wake-up word when the difference between the first characteristic value and the second characteristic value is less than a first threshold and the third characteristic value satisfies a jump condition;

[0174] Among them, the audio clip includes N+1 audio frames, two adjacent audio clips include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word; the first eigenvalue represents the probability value that the first N audio frames in the audio clip belong to the wake-up word, the second eigenvalue represents the probability value that the first N audio frames in the audio clip match the phoneme segment, the phoneme segment is a segment composed of phonemes recognized by the first N audio frames, the third eigenvalue represents the probability value that the Nth audio frame and the N+1th audio frame in the audio clip belong to two adjacent phonemes in the wake-up word, and the jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio clip do not belong to two adjacent phonemes in the wake-up word.

[0175] The device provided in the embodiment of the present application obtains the first eigenvalue, the second eigenvalue and the third eigenvalue of the collected audio segment. Only when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue satisfies the jump condition, can it be explained that the probability value of the first N audio frames in the current audio segment belonging to the wake-up word is close to the probability value of the first N audio frames belonging to the matching phoneme segment, then the first N audio frames belong to the wake-up word, and the last audio frame no longer belongs to the wake-up word, thereby determining that the content corresponding to the first N audio frames in the audio segment is the wake-up word. This audio recognition method can ensure that the complete wake-up word is recognized, thereby improving the accuracy of audio recognition.

[0176] In one possible implementation, Figure 5 is a schematic diagram of the structure of another audio recognition device provided in an embodiment of the present application, see Figure 5 , the device further comprises:

[0177] The second determination module 403 is used to continue collecting audio frames when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue does not meet the jump condition, until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold and the third eigenvalue meets the jump condition, and determine that the audio segment constructed this time contains the wake-up word.

[0178] In one possible implementation, see Figure 5 , obtaining module 401, including:

[0179] The recognition unit 4011 is used to obtain the first feature component and the second feature component of the first N audio frames in the audio clip, wherein the first feature component of the Kth audio frame represents the probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and the second feature component of the Kth audio frame represents the maximum probability value among the probability values ​​that the Kth audio frame belongs to multiple phonemes, and K is a positive integer not greater than N;

[0180] A first fusion unit 4012, configured to add a first characteristic component of each audio frame in the first N audio frames to obtain a first characteristic value of the audio segment;

[0181] The second fusion unit 4013 is used to add the second characteristic component of each audio frame in the first N audio frames to obtain a second characteristic value of the audio segment.

[0182] In one possible implementation, see Figure 5 , identification unit 4011, used to:

[0183] For the Kth audio frame in the audio clip, among the feature components of the Kth audio frame for the multiple phonemes, the feature component of the Kth audio frame for the Kth phoneme in the wake-up word is determined as the first feature component of the Kth audio frame, and the largest feature component is determined as the second feature component of the Kth audio frame;

[0184] The feature vector of the K-th audio frame for a phoneme represents a probability value that the K-th audio frame belongs to a phoneme.

[0185] In one possible implementation, see Figure 5 , identification unit 4011, used to:

[0186] Each time an audio frame is collected, audio recognition is performed on the audio frame to obtain feature components of the audio frame for multiple phonemes;

[0187] The feature vector of an audio frame for a phoneme represents the probability value of the audio frame belonging to the phoneme.

[0188] In one possible implementation, see Figure 5 , obtaining module 401, including:

[0189] The recognition unit 4011 is used to perform audio recognition on the currently collected audio frame and the previous audio frame each time an audio frame is collected, and obtain the probability value of the audio frame and the previous audio frame belonging to two adjacent phonemes in the wake-up word, until the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is obtained, and the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is determined as the third feature value.

[0190] In one possible implementation, see Figure 5 , obtaining module 401, including:

[0191] The recognition unit 4011 is used to call the audio recognition model to perform audio recognition on N+1 audio frames in the audio clip, and obtain feature components of each audio frame for multiple phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word, wherein a feature vector of an audio frame for a phoneme represents a probability value of an audio frame belonging to a phoneme;

[0192] A first fusion unit 4012 is configured to add the first feature components of each audio frame in the first N audio frames to obtain a first feature value, wherein the first feature component of the Kth audio frame represents a probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and K is a positive integer not greater than N;

[0193] The second fusion unit 4013 is used to add the second characteristic components of each audio frame in the first N audio frames to obtain a second characteristic value, wherein the second characteristic component of the Kth audio frame represents the maximum probability value among the probability values ​​that the Kth audio frame belongs to multiple phonemes;

[0194] The first determination unit 4015 is used to determine the probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word as the third feature value.

[0195] In one possible implementation, see Figure 5 , the device further comprises:

[0196] A sample acquisition module 404 is used to acquire multiple training samples, where the multiple training samples include positive training samples and negative training samples, where the positive training samples are audio clips containing the wake-up word, and the negative training samples are audio clips not containing the wake-up word;

[0197] The training module 405 is used to train the audio recognition model based on multiple training samples.

[0198] In one possible implementation, see Figure 5 , the training module 405 comprises:

[0199] The second determining unit 4051 is used to determine the first identification information corresponding to each training sample, where the first identification information includes the phoneme corresponding to each audio frame in the training sample;

[0200] The training recognition unit 4052 is used to call the audio recognition model, perform audio recognition on the audio frame in each training sample, and obtain second recognition information corresponding to each training sample, wherein the second recognition information includes feature components of each audio frame in the training sample for multiple phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word; wherein the feature vector of an audio frame for a phoneme represents the probability value of an audio frame belonging to a phoneme;

[0201] The adjustment unit 4053 is used to adjust the model parameters of the audio recognition model based on the first recognition information and the second recognition information corresponding to each training sample.

[0202] In one possible implementation, see Figure 5 , the first determining module 402 includes:

[0203] The third determination unit 4021 is used to determine that the audio segment contains the wake-up word when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue is less than the second threshold.

[0204] In one possible implementation, see Figure 5, the first determining module 402 includes:

[0205] The third determination unit 4021 is used to determine that the audio segment contains the wake-up word when the difference between the first eigenvalue and the second eigenvalue is less than the first threshold value and the third eigenvalue is a target value, and the target value indicates that the Nth audio frame and the N+1th audio frame are not two adjacent phonemes in the wake-up word.

[0206] In one possible implementation, see Figure 5 , the device further comprises:

[0207] The execution module 406 is used to recognize the voice control instruction based on at least one audio frame collected after the wake-up word is recognized, and execute the control operation corresponding to the voice control instruction.

[0208] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0209] It should be noted that: the audio recognition device provided in the above embodiment only uses the division of the above functional modules as an example when performing audio recognition. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the audio recognition device provided in the above embodiment and the audio recognition method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0210] An embodiment of the present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the audio recognition method of the above embodiment.

[0211] Optionally, the electronic device is provided as a terminal. Figure 6 6 is a schematic diagram of the structure of a terminal 600 provided in an embodiment of the present application. The terminal 600 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 600 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0212] The terminal 600 includes a processor 601 and a memory 602 .

[0213] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0214] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one program code, which is used to be executed by the processor 601 to implement the audio recognition method provided in the method embodiment of the present application.

[0215] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, an audio circuit 605 and a power supply 606.

[0216] The peripheral device interface 603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0217] The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 604 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0218] The audio circuit 605 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 601 for processing, or input them into the radio frequency circuit 604 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 600. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 605 may also include a headphone jack.

[0219] The power supply 606 is used to power various components in the terminal 600. The power supply 606 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 606 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0220] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the terminal 600, and the terminal 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0221] Optionally, the electronic device is provided as a server. Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein the memory 702 stores at least one program code, and the at least one program code is loaded and executed by the processor 701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.

[0222] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor in an electronic device to implement the audio recognition method in the above embodiment. The computer-readable storage medium can be a memory. For example, the computer-readable storage medium can be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0223] In an exemplary embodiment, a computer program product is further provided. The computer program product includes at least one program code. The at least one program code can be executed by a processor of an electronic device to implement the audio recognition method shown in the above embodiment.

[0224] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0225] The above are only optional embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. An audio recognition method, characterized in that: The method comprises: When an audio frame is collected, the currently collected audio frame and the previously collected audio frame are combined into an audio segment, and a first eigenvalue, a second eigenvalue, and a third eigenvalue of the audio segment are obtained; When the difference between the first feature value and the second feature value is less than a first threshold value and the third feature value satisfies a jump condition, determining that the audio segment contains a wake-up word; Among them, the audio segment includes N+1 audio frames, two adjacent audio segments include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word; the first feature value represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, the second feature value represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of phonemes recognized by the first N audio frames, the third feature value represents the probability value that the Nth audio frame and the N+1th audio frame in the audio segment belong to two adjacent phonemes in the wake-up word, and the jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio segment do not belong to two adjacent phonemes in the wake-up word.

2. The method according to claim 1, characterized in that The method further comprises: When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue does not meet the jump condition, continue to collect audio frames until the difference between the first eigenvalue and the second eigenvalue of the audio segment constructed this time is less than the first threshold and the third eigenvalue meets the jump condition, and it is determined that the audio segment constructed this time contains the wake-up word.

3. The method according to claim 1, characterized in that Acquiring the first characteristic value and the second characteristic value includes: Obtaining the first feature component and the second feature component of the first N audio frames in the audio clip, wherein the first feature component of the Kth audio frame represents the probability value that the Kth audio frame belongs to the Kth phoneme in the wake-up word, and the second feature component of the Kth audio frame represents the maximum probability value among the probability values ​​that the Kth audio frame belongs to multiple phonemes, and K is a positive integer not greater than N; Adding the first characteristic component of each audio frame in the first N audio frames to obtain the first characteristic value of the audio segment; The second feature component of each audio frame in the first N audio frames is added to obtain the second feature value of the audio segment.

4. The method according to claim 3, characterized in that The obtaining of the first characteristic component and the second characteristic component of the first N audio frames in the audio segment includes: For a Kth audio frame in the audio clip, among feature components obtained for a plurality of phonemes in the Kth audio frame, a feature component of the Kth audio frame for the Kth phoneme in the wake-up word is determined as a first feature component of the Kth audio frame, and a maximum feature component is determined as a second feature component of the Kth audio frame; The feature vector of the K-th audio frame for a phoneme represents a probability value that the K-th audio frame belongs to the phoneme.

5. The method according to claim 3, characterized in that: The method further comprises: Each time an audio frame is collected, audio recognition is performed on the audio frame to obtain feature components of the audio frame for a plurality of phonemes respectively; The feature vector of an audio frame for a phoneme represents the probability value of the audio frame belonging to the phoneme.

6. The method according to claim 1, characterized in that Obtaining the third characteristic value includes: Each time an audio frame is collected, audio recognition is performed on the currently collected audio frame and the previous audio frame to obtain the probability value of the audio frame and the previous audio frame belonging to two adjacent phonemes in the wake-up word, until the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is obtained, and the probability value of the Nth audio frame and the N+1th audio frame belonging to two adjacent phonemes in the wake-up word is determined as the third feature value.

7. The method according to claim 1, characterized in that The obtaining of the first characteristic value, the second characteristic value, and the third characteristic value of the audio segment includes: Calling an audio recognition model to perform audio recognition on N+1 audio frames in the audio clip, obtaining feature components of each audio frame for a plurality of phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word, wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme; Adding the first feature component of each audio frame in the first N audio frames to obtain the first feature value, wherein the first feature component of the Kth audio frame represents the probability value of the Kth audio frame belonging to the Kth phoneme in the wake-up word, and K is a positive integer not greater than N; Adding the second characteristic components of each audio frame in the first N audio frames to obtain the second characteristic value, wherein the second characteristic component of the K-th audio frame represents the maximum probability value among the probability values ​​that the K-th audio frame belongs to multiple phonemes; The probability value that the Nth audio frame and the N+1th audio frame belong to two adjacent phonemes in the wake-up word is determined as the third feature value.

8. The method according to claim 7, characterized in that The method further comprises: Acquire multiple training samples, where the multiple training samples include positive training samples and negative training samples, where the positive training samples are audio clips containing the wake-up word, and the negative training samples are audio clips not containing the wake-up word; The audio recognition model is trained based on the multiple training samples.

9. The method according to claim 8, characterized in that The step of training the audio recognition model based on the multiple training samples comprises: Determine first identification information corresponding to each training sample, where the first identification information includes a phoneme corresponding to each audio frame in the training sample; Calling the audio recognition model, performing audio recognition on the audio frames in each training sample, and obtaining second recognition information corresponding to each training sample, wherein the second recognition information includes feature components of each audio frame in the training sample for multiple phonemes, and probability values ​​of each two adjacent audio frames belonging to two adjacent phonemes in the wake-up word; wherein a feature vector of an audio frame for a phoneme represents a probability value of the audio frame belonging to the phoneme; Based on the first recognition information and the second recognition information corresponding to each training sample, the model parameters of the audio recognition model are adjusted.

10. The method according to claim 1, characterized in that The determining that the audio segment contains the wake-up word when the difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition includes: When the difference between the first eigenvalue and the second eigenvalue is smaller than the first threshold, and the third eigenvalue is smaller than the second threshold, it is determined that the audio segment contains the wake-up word.

11. The method according to claim 1, characterized in that: The determining that the audio segment contains the wake-up word when the difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition includes: When the difference between the first eigenvalue and the second eigenvalue is less than the first threshold and the third eigenvalue is a target value, it is determined that the audio segment contains the wake-up word, and the target value indicates that the Nth audio frame and the N+1th audio frame are not two adjacent phonemes in the wake-up word.

12. The method according to any one of claims 1 to 11, characterized in that: When the difference between the first feature value and the second feature value of the audio segment is less than a first threshold value, and the third feature value is less than a second threshold value, after determining that the audio segment contains a wake-up word, the method further includes: A voice control instruction is recognized based on at least one audio frame collected after the wake-up word is recognized, and a control operation corresponding to the voice control instruction is executed.

13. An audio recognition device, characterized in that: The device comprises: An acquisition module, configured to, when an audio frame is acquired, combine a currently acquired audio frame with a previously acquired audio frame to form an audio segment, and acquire a first eigenvalue, a second eigenvalue, and a third eigenvalue of the audio segment; A first determination module, configured to determine that the audio segment contains a wake-up word when a difference between the first feature value and the second feature value is less than a first threshold and the third feature value satisfies a jump condition; Among them, the audio segment includes N+1 audio frames, two adjacent audio segments include at least one identical audio frame, N is a positive integer, and N is equal to the number of phonemes contained in the wake-up word; the first feature value represents the probability value that the first N audio frames in the audio segment belong to the wake-up word, the second feature value represents the probability value that the first N audio frames in the audio segment match the phoneme segment, and the phoneme segment is a segment composed of phonemes recognized by the first N audio frames, the third feature value represents the probability value that the Nth audio frame and the N+1th audio frame in the audio segment belong to two adjacent phonemes in the wake-up word, and the jump condition indicates that the Nth audio frame and the N+1th audio frame in the audio segment do not belong to two adjacent phonemes in the wake-up word.

14. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the audio recognition method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the audio recognition method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Voice wake-up method and voice interaction device

    CN106653031A

  • Wakeup method, wakeup device and wakeup equipment for vehicle-mounted voice system as well as readable medium

    CN109584873A

  • Voice wake-up recognition method and device and electronic equipment

    CN110428810A

  • Wake-up method and device and intelligent equipment

    CN110473536A

  • Wakeup word detection method, device and equipment based on artificial intelligence, and medium

    CN110838289A