Audio recognition method, device, electronic device and storage medium
Feature compression of audio features through logarithmic compression functions solves the problems of low security and low efficiency in audio recognition technology, achieves more efficient and secure audio recognition, and prevents forged vocal attacks.
Patent Information
- Application Number
- CN202210343564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Biometric identification technology, especially audio recognition technology, has problems of low security and low recognition efficiency during application, and is vulnerable to malicious spoofing attacks.
By using the smoothable logarithmic compression function for parameter learning, a target compression function is obtained, which is used to compress the second audio feature of the audio to be identified, and obtain nonlinear audio features, thereby improving the security and efficiency of audio recognition.
Without the need to manually extract audio features, the nonlinearity of the audio to be recognized is effectively simulated, which improves the security and recognition efficiency of audio recognition, effectively prevents forged human voice attacks, and improves the accuracy of the recognition results.
Smart Images

Figure CN114550731B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, and further to the fields of security authentication technology and voiceprint recognition technology, and specifically to an audio recognition method, device, electronic device, readable storage medium, and computer program product. Background Art
[0002] With the rapid development of computer technology and artificial intelligence technology, biometric technology has also been rapidly promoted and developed. As a technology that uses the inherent biological characteristics of the human body to authenticate personal identity, biometric technology has the advantages of being difficult to forget and available anytime and anywhere.
[0003] However, biometrics technology also faces many problems in the application process, such as low security and low recognition efficiency. For example, audio recognition technology that uses the user's audio features to authenticate personal identity often faces the problem of malicious deception attacks in the application process. Summary of the invention
[0004] The present disclosure provides an audio recognition method, an apparatus, an electronic device, a readable storage medium, and a computer program product to improve the security and recognition efficiency of audio recognition.
[0005] According to one aspect of the present disclosure, there is provided an audio recognition method, which may include the following steps:
[0006] Determine, based on the first audio feature corresponding to the audio to be identified in the frequency domain, a second audio feature corresponding to the audio to be identified in the real number domain;
[0007] Using a target compression function to perform feature compression on the second audio feature to obtain a nonlinear audio feature corresponding to the audio to be recognized, the target compression function is obtained by previously performing parameter learning on a smoothable logarithmic compression function, and the smoothable logarithmic compression function includes preset learnable parameters;
[0008] Determine an audio recognition result corresponding to the audio to be recognized based on the nonlinear audio feature. According to a second aspect of the present disclosure, an audio recognition device is provided, which may include:
[0009] A second audio feature determination unit, configured to determine a second audio feature corresponding to the audio to be identified in the real number domain based on the first audio feature corresponding to the audio to be identified in the frequency domain;
[0010] a nonlinear audio feature determination unit, configured to perform feature compression on the second audio feature using a target compression function to obtain a nonlinear audio feature corresponding to the audio to be identified, wherein the target compression function is obtained by performing parameter learning on a smoothable logarithmic compression function in advance, and the smoothable logarithmic compression function includes preset learnable parameters;
[0011] The audio recognition result determination unit is used to determine the audio recognition result corresponding to the audio to be recognized based on the non-linear audio feature.
[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method in any embodiment of the present disclosure.
[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to enable a computer to execute the method in any embodiment of the present disclosure.
[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program / instruction, wherein the computer program / instruction implements the method in any embodiment of the present disclosure when executed by a processor.
[0018] The disclosed technology uses a target compression function obtained by learning parameters of a smoothable logarithmic compression function to obtain nonlinear audio features corresponding to the audio to be recognized. The smoothable logarithmic compression function can make the process of obtaining nonlinear audio features relatively simple. In addition, the target compression function obtained by learning parameters of the smoothable logarithmic compression function can efficiently simulate the nonlinearity of the audio to be recognized without manually extracting audio features, thereby improving the security and recognition efficiency of audio recognition.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0021] Figure 1 A flowchart of an audio recognition method is provided for an embodiment of the present disclosure;
[0022] Figure 2 A flowchart of a method for obtaining nonlinear audio features provided in an embodiment of the present disclosure;
[0023] Figure 3A flowchart of a method for determining an audio recognition result provided in an embodiment of the present disclosure;
[0024] Figure 4 A flowchart of a method for obtaining an audio recognition result provided in an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram of an audio recognition process provided in an embodiment of the present disclosure;
[0026] Figure 6 A schematic diagram of an audio recognition device is provided in an embodiment of the present disclosure;
[0027] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0029] The embodiment of the present disclosure provides an audio recognition method. Figure 1 , which is a flowchart of an audio recognition method provided by an embodiment of the present disclosure, and the method may include the following steps:
[0030] Step S101: based on the first audio feature corresponding to the audio to be identified in the frequency domain, determine the second audio feature corresponding to the audio to be identified in the real number domain.
[0031] Step S102: compress the second audio feature using a target compression function to obtain a nonlinear audio feature corresponding to the audio to be identified, wherein the target compression function is obtained by pre-learning parameters of a smoothable logarithmic compression function, and the smoothable logarithmic compression function includes preset learnable parameters.
[0032] Step S103: Determine an audio recognition result corresponding to the audio to be recognized based on the nonlinear audio feature.
[0033] The audio recognition method provided in the embodiment of the present disclosure uses a target compression function obtained by learning parameters of a smoothable logarithmic compression function to obtain nonlinear audio features corresponding to the audio to be recognized. The smoothable logarithmic compression function can make the process of obtaining nonlinear audio features relatively simple. In addition, the target compression function obtained by learning parameters of the smoothable logarithmic compression function can efficiently simulate the nonlinearity of the audio to be recognized without manually extracting audio features, thereby improving the security and recognition efficiency of audio recognition.
[0034] In addition, learnable parameters are preset in the smoothable logarithmic compression function, so that the smoothable logarithmic compression function can be connected to a specific neural network model for end-to-end training.
[0035] The audio to be recognized is a time domain signal that changes with time, and is generally a nonlinear time domain signal. In practical applications, the audio to be recognized can be: audio collected from a target object based on a preset audio collection device; or it can be: processed audio obtained by performing audio preprocessing on the audio collected by the audio collection device.
[0036] In the embodiments of the present disclosure, the audio preprocessing methods include but are not limited to: noise removal and audio time domain enhancement. The purpose of noise removal is to remove environmental noise, busy tone or sound generated by mobile phone speakers from the audio collected by the audio collection device; the purpose of audio time domain enhancement is to alias echoes or change the speech rate of the audio.
[0037] By performing audio preprocessing on the audio collected by the audio collection device to obtain the audio to be recognized, the interference factors in the audio to be recognized can be reduced, the audio quality of the audio to be recognized can be improved, and thus the accuracy of the audio recognition result can be improved.
[0038] In the embodiment of the present disclosure, the audio recognition method can be implemented by a pre-trained target audio recognition model. That is, the above steps S101 to S104 can be implemented by the target audio recognition model.
[0039] The so-called target audio recognition model is a model obtained by training the audio recognition model to be trained based on the audio samples and the corresponding annotations. The target audio recognition model is used to recognize the audio to be recognized to obtain the audio recognition result.
[0040] In order to enable the target audio recognition model to implement the above steps S101 to S104, the audio recognition model to be trained and the target audio recognition model need to include at least a first sub-model for audio feature extraction and a second sub-model for determining the audio recognition result based on nonlinear audio features. Specifically, the first sub-model includes at least a first audio feature extraction layer, a second audio feature extraction layer and a third audio feature extraction layer.
[0041] It should be noted that the first audio feature extraction layer is a feature extraction layer for obtaining the first audio feature for the audio to be recognized. The second audio feature extraction layer is a feature extraction layer for obtaining the second audio feature based on the first audio feature. The third audio feature extraction layer is a feature extraction layer for obtaining nonlinear audio features from the second audio feature. In other words, the target compression function belongs to the feature extraction layer for obtaining nonlinear audio features in the target audio recognition model.
[0042] In the embodiments of the present disclosure, learnable parameters can be pre-set for the first audio feature extraction layer and the third audio feature extraction layer, respectively, and in the process of performing model training on the audio recognition model to be trained and obtaining the target audio recognition model, parameter learning is performed on the learnable parameters. Taking obtaining the target compression function as an example, the method of performing parameter learning on the smoothable logarithmic compression function is: in the process of training to obtain the target audio recognition model, parameter learning is performed on the smoothable logarithmic compression function to obtain the target compression function.
[0043] Presetting learnable parameters for the first audio feature extraction layer and the third audio feature extraction layer can enhance the generalization ability of the target audio recognition model. In addition, since the first audio feature extraction layer and the third audio feature can be trained for audio feature extraction by parameter learning of the preset learnable parameters, nonlinear audio features can be extracted without manually extracting audio features for determining audio recognition results. Therefore, the security and recognition efficiency of audio recognition can be improved.
[0044] In the embodiment of the present disclosure, the core of the first audio feature extraction layer is N bandpass filters (Gabor filters), and the N Gabor filters can perform convolution operations on the audio to be recognized based on the Gaussian kernel, thereby obtaining the first audio feature. For the N Gabor filters, each of the N Gabor filters can be formalized as the following formula:
[0045] In the above formula, t is used to represent time, n is used to represent the nth of N Gabor filters, and η n Used to represent the center frequency of the nth Gabor filter, σ nis used to represent the inverse bandwidth of the nth Gabor filter, W is used to represent the length of the Gabor filter, is a complex operator, η n Used to represent the center frequency of the Gabor filter.
[0046] When the core of the first audio feature extraction layer is N bandpass filters (Gabor filters) and N Gabor filters, the preset learnable parameters for the first audio feature extraction layer can be and σ n .
[0047] In the embodiment of the present disclosure, the core of the third audio feature extraction layer is a smoothable logarithmic compression function including preset learnable parameters, wherein the function form of the smoothable logarithmic compression function is: F(x)=s*log(1+θx).
[0048] In the above formula, x is used to represent the second audio feature, s is used to represent the smoothing parameter matrix, and θ is used to represent the weight of the second audio feature. Since F(x) is differentiable, both the parameter s and the parameter θ can be preset as learnable parameters.
[0049] In the embodiment of the present disclosure, based on the audio samples and the corresponding annotations, the specific implementation method of performing model training on the audio recognition model to be trained is as follows:
[0050] First, audio samples are collected and labeled accordingly. The information labeled by JUDE is: the actual audio recognition result corresponding to the audio sample.
[0051] Then, the audio sample and the corresponding annotation are input into the audio recognition model to be trained, and the current audio recognition result output by the audio recognition model to be trained for the audio sample is obtained. The loss function value between the actual audio recognition result and the current audio recognition result is obtained by using the preset loss function, and the parameters of the audio recognition model to be trained are updated based on the loss function value. The above steps are iterated repeatedly, and the target audio recognition model is obtained when the loss function converges.
[0052] In the embodiments of the present disclosure, the preset loss function is generally: a loss function for face recognition (ArcFace-Softmax Loss, AAM-Softmax Loss), or other types of loss functions. In the embodiments of the present disclosure, the form or type of the loss function is not specifically limited.
[0053] In addition, the so-called parameters refer to network model parameters, and the method for updating the parameters of the audio recognition model to be trained can be: using an adaptive momentum estimation algorithm (ADAM) to update the learnable parameters in the audio recognition model to be trained.
[0054] In the embodiment of the present disclosure, the specific implementation of step S102 is as follows: Figure 2 As shown, Figure 2 This is a flowchart of a method for obtaining nonlinear audio features provided in an embodiment of the present disclosure. The method may include the following steps:
[0055] Step S201: performing feature sampling on the second audio feature to obtain a sampled audio feature corresponding to the second audio feature.
[0056] Step S202: input the sampled audio features into the target compression function to obtain nonlinear audio features.
[0057] Feature sampling of the second audio feature can compress the second audio feature, thereby reducing the amount of calculation in subsequent feature processing and reducing memory consumption in subsequent feature processing.
[0058] In an embodiment of the present disclosure, the method of performing feature sampling on the second audio feature is: down-sampling the second audio feature.
[0059] Correspondingly, when the target audio recognition model is used to implement step S102, convolution pooling can be performed through the filter pooling layer in the target audio recognition model, so as to downsample the second audio feature to a lower sampling rate to obtain a sampled audio feature.
[0060] Specifically, the filter pooling layer is a feature extraction layer preset in the audio recognition model to be trained. In the target audio recognition model, each convolution channel in the filter pooling layer is associated with a high-pass filter, and the second audio feature is filtered by the corresponding high-pass filter on each convolution channel, thereby downsampling the second audio feature.
[0061] The advantage of downsampling audio features by filtering with the corresponding high-pass filter on each convolution channel is that since the convolution kernel parameters (the bandwidth of the high-pass filter) of each convolution channel are learnable, the bandwidth information suitable for the corresponding audio recognition task can be learned according to different audio recognition tasks.
[0062] That is, the target audio recognition model in the embodiment of the present disclosure may also include a filter pooling layer for feature sampling of the second audio feature. In addition, for the audio recognition model to be trained, learnable parameters may be pre-set for the filter pooling layer. For example, the bandwidth of the high-pass filter.
[0063] When the learnable parameters are pre-set for the filter pooling layer, the method of performing parameter learning on the learnable parameters in the filter pooling layer is: in the process of performing model training on the audio recognition model to be trained and obtaining the target audio recognition model, the bandwidth of the high-pass filter is learned.
[0064] The audio recognition method provided in the embodiments of the present disclosure can be applied to audio classification. In this case, the audio recognition result is the audio type corresponding to the audio to be recognized. Specifically, the audio classification can be: classifying the audio to be recognized into real human voice and non-real human voice. It can also be used to classify other audio, for example, to determine the sound object corresponding to the audio to be recognized.
[0065] In the case where the audio classification is to classify the audio to be recognized into real human voice and non-real human voice, the audio recognition result includes a recognition result indicating whether the audio to be recognized is a real human voice. In this case, the step of determining the audio recognition result corresponding to the audio to be recognized is as follows: Figure 3 As shown, Figure 3 This is a flowchart of a method for determining an audio recognition result provided in an embodiment of the present disclosure. The method for determining an audio recognition result may include the following steps:
[0066] Step S301: Determine the probability that the audio to be identified is a real human voice based on nonlinear audio features.
[0067] Step S302: Determine the audio recognition result based on probability.
[0068] The audio recognition method provided in the embodiments of the present disclosure, after determining the probability that the audio to be recognized is a real human voice, further determines whether the audio to be recognized is a real human voice based on the probability, thereby being able to determine whether it is a real human voice. Therefore, it can effectively prevent the attacker from using recorded audio or the like to forge a human voice as a real human voice when using the user's audio features for personal identity authentication, thereby improving the security of using the user's audio features for personal identity authentication.
[0069] In the embodiment of the present disclosure, based on probability, the recognition method of the audio recognition result is determined as follows: Figure 4 As shown, Figure 4 This is a flowchart of a method for obtaining an audio recognition result provided in an embodiment of the present disclosure. The method may include the following steps:
[0070] Step S401: when the probability meets a preset condition, determining that the audio to be recognized is a real human voice.
[0071] Step S402: determining that the audio to be recognized is a real human voice as an audio recognition result.
[0072] Only when the probability meets the preset conditions will the audio to be recognized be determined as a real human voice, which can improve the accuracy of the audio recognition results.
[0073] The so-called preset condition may include: the probability reaches a corresponding probability threshold, for example: 50%. Further, the preset condition may be: the probability that the audio to be recognized is a real human voice is greater than or equal to the probability that the audio to be recognized is a non-real human voice. At this time, the specific implementation method of determining that the audio to be recognized is a real human voice is as follows:
[0074] First, after determining the probability that the audio to be recognized is a real human voice, the probability that the audio to be recognized is a real human voice is determined as a first probability, and at the same time, based on the nonlinear audio feature, the probability that the audio to be recognized is a semi-real human voice is determined, and the probability that the audio to be recognized is a semi-real human voice is determined as a second probability. Then, the first probability is compared with the second probability, and when the first probability is greater than or equal to the second probability, it is determined that the audio to be recognized is a real human voice.
[0075] In addition, when the first probability is less than the second probability, it can be determined that the audio to be recognized is not a real human voice.
[0076] When performing audio recognition based on the target audio recognition module, the second sub-model can be set as a module based on the ECAPA-TDNN classifier as the core. The ECAPA-TDNN classifier can obtain the probability that the audio to be recognized is a real human voice and the probability that the audio to be recognized is a non-real human voice based on non-linear audio features. In addition, in the embodiments of the present disclosure, other types of second sub-models can also be used to determine the audio recognition results based on non-linear audio features.
[0077] In the embodiment of the present disclosure, the first audio feature is determined as follows: first, the audio to be identified is converted from a time domain signal to a frequency domain signal to obtain a frequency domain audio signal corresponding to the audio to be identified. Then, the frequency domain audio signal is determined as the first audio feature.
[0078] Since the frequency domain signal can more intuitively and conveniently represent the audio characteristics of the audio to be identified, determining the frequency domain audio signal as the first audio feature can ensure that the first audio feature can more intuitively and conveniently represent the audio characteristics of the audio to be identified.
[0079] In an embodiment of the present disclosure, the method for determining the second audio feature corresponding to the audio to be identified in the real domain is as follows: first, the first audio feature is converted from a frequency domain signal to a real domain signal to obtain a real domain audio signal corresponding to the audio to be identified. Then, the real domain audio signal is determined as the second audio feature.
[0080] By converting the first audio feature from a frequency domain signal into a real domain signal to obtain the second audio feature, a nonlinear factor can be added to the second audio feature, thereby enhancing the feature expression capability of the second audio feature.
[0081] In the embodiments of the present disclosure, the first audio feature can be converted from a frequency domain signal to a real domain signal based on other preset methods such as a square activation function. Accordingly, when performing audio recognition based on a target audio recognition module, the square activation function can be used as the core of the second audio feature extraction layer.
[0082] The following specifically describes the audio recognition method provided in the embodiment of the present disclosure by taking the target audio recognition model to identify whether the audio to be recognized is a real human voice as an example. Figure 5 , which is a schematic diagram of an audio recognition process provided in an embodiment of the present disclosure, the audio recognition process is as follows:
[0083] First, the audio to be recognized is input into the target audio recognition model, and the first audio feature extraction layer in the first sub-model performs a convolution operation on the audio to be recognized based on N Gabor filters to obtain a first audio feature, and outputs the first audio feature to the second audio feature extraction layer.
[0084] Second, after obtaining the first audio feature, the second audio feature extraction layer will convert the first audio feature from a frequency domain signal to a real domain signal based on a square activation function, thereby obtaining the second audio feature, and output the second audio feature to the filter pooling layer.
[0085] Third, after obtaining the second audio feature, the filter pooling layer will filter the second audio feature through the corresponding high-pass filter on each convolution channel, thereby downsampling the second audio feature to obtain the sampled audio feature corresponding to the second audio feature, and output the sampled audio feature to the third audio feature extraction layer.
[0086] Fourth, after obtaining the sampled audio features, the third audio feature extraction layer will perform feature compression on the third audio features based on the target compression function to obtain nonlinear audio features, and input the nonlinear audio features into the second sub-model.
[0087] Fifth, after obtaining the nonlinear audio features, the second sub-model will obtain the probability that the audio to be recognized is a real human voice and the probability that the audio to be recognized is a non-real human voice based on the ECAPA-TDNN classifier, and further determine whether the audio to be recognized is a real human voice based on the probability that the audio to be recognized is a real human voice and the probability that the audio to be recognized is a non-real human voice, thereby obtaining the audio recognition result.
[0088] like Figure 6 As shown, an embodiment of the present disclosure provides an audio recognition device, the device comprising:
[0089] The second audio feature determination unit 601 is used to determine the second audio feature corresponding to the audio to be identified in the real number domain based on the first audio feature corresponding to the audio to be identified in the frequency domain;
[0090] The nonlinear audio feature determination unit 602 is used to perform feature compression on the second audio feature using a target compression function to obtain a nonlinear audio feature corresponding to the audio to be recognized, wherein the target compression function is obtained by performing parameter learning on a smoothable logarithmic compression function in advance, and the smoothable logarithmic compression function includes preset learnable parameters;
[0091] The audio recognition result determination unit 603 is used to determine the audio recognition result corresponding to the audio to be recognized based on the non-linear audio feature.
[0092] In one implementation, the audio recognition result determination unit 603 may include:
[0093] A feature sampling subunit, used to perform feature sampling on the second audio feature to obtain a sampled audio feature corresponding to the second audio feature;
[0094] The nonlinear audio feature subunit is used to input the sampled audio feature into the target compression function to obtain the nonlinear audio feature.
[0095] In one implementation, the audio recognition result determination unit 603 may include:
[0096] A target audio recognition model training module is used to perform parameter learning on a smoothed logarithmic compression function to obtain a target compression function during the process of training the target audio recognition model;
[0097] Among them, the target audio recognition model is a model obtained by training based on audio samples and corresponding annotations, which is used to identify the audio to be recognized to obtain the audio recognition result. The target compression function belongs to the feature extraction layer in the target audio recognition model for obtaining nonlinear audio features.
[0098] In one implementation, when the audio recognition result includes a recognition result indicating whether the audio to be recognized is a real human voice, the audio recognition result determination unit 603 may include:
[0099] A probability determination subunit, used to determine the probability that the audio to be identified is a real human voice based on nonlinear audio features;
[0100] The audio recognition result determination subunit is used to determine the audio recognition result based on probability.
[0101] In one implementation, the audio recognition result determination subunit may include:
[0102] A real human voice determination subunit, used to determine that the audio to be identified is a real human voice when the probability meets a preset condition;
[0103] The real human voice recognition result determination subunit is used to determine that the audio to be recognized is a real human voice as an audio recognition result.
[0104] In one implementation, the second audio feature determination unit 601 may include:
[0105] A frequency domain audio signal obtaining unit, used to convert the audio to be recognized from a time domain signal to a frequency domain signal, and obtain a frequency domain audio signal corresponding to the audio to be recognized;
[0106] The first audio feature determination subunit is used to determine the frequency domain audio signal as the first audio feature.
[0107] In one implementation, the second audio feature determination unit 601 may include:
[0108] A real-domain audio signal obtaining unit, used to convert the first audio feature from a frequency-domain signal into a real-domain signal, and obtain a real-domain audio signal corresponding to the audio to be recognized;
[0109] The second audio feature determination subunit is used to determine the real domain audio signal as the second audio feature.
[0110] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0111] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0112] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0113] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0114] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0115] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as an audio recognition method. For example, in some embodiments, the audio recognition method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the audio recognition method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the audio recognition method in any other appropriate manner (e.g., by means of firmware).
[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0117] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable audio recognition device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0118] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0120] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0121] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0123] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An audio recognition method, comprising: Determine, based on a first audio feature corresponding to the audio to be identified in the frequency domain, a second audio feature corresponding to the audio to be identified in the real number domain; Using a target compression function to perform feature compression on the second audio feature to obtain a nonlinear audio feature corresponding to the audio to be recognized, wherein the target compression function is obtained by previously performing parameter learning on a smoothable logarithmic compression function, and the smoothable logarithmic compression function includes preset learnable parameters; Based on the nonlinear audio feature, an audio recognition result corresponding to the audio to be recognized is determined.
2. The method according to claim 1, wherein: The step of compressing the second audio feature by using a target compression function to obtain a nonlinear audio feature corresponding to the audio to be recognized includes: Performing feature sampling on the second audio feature to obtain a sampled audio feature corresponding to the second audio feature; The sampled audio feature is input into the target compression function to obtain the nonlinear audio feature.
3. The method according to claim 1 or 2, wherein: The method for determining the target compression function includes: In the process of training to obtain the target audio recognition model, performing parameter learning on the smoothable logarithmic compression function to obtain the target compression function; Among them, the target audio recognition model is a model obtained based on audio samples and corresponding annotation training, which is used to identify the audio to be recognized to obtain the audio recognition result, and the target compression function belongs to the feature extraction layer in the target audio recognition model for obtaining the nonlinear audio feature.
4. The method according to claim 1 or 2, wherein: In a case where the audio recognition result includes a recognition result indicating whether the audio to be recognized is a real human voice, determining the audio recognition result corresponding to the audio to be recognized based on the nonlinear audio feature includes: Determining, based on the nonlinear audio feature, the probability that the audio to be identified is the real human voice; Based on the probability, the audio recognition result is determined.
5. The method according to claim 4, wherein: The step of determining the audio recognition result based on the probability includes: When the probability satisfies a preset condition, determining that the audio to be recognized is the real human voice; Determining the audio to be recognized as the real human voice is the audio recognition result.
6. The method according to claim 1, wherein: The method for determining the first audio feature includes: Convert the audio to be recognized from a time domain signal to a frequency domain signal to obtain a frequency domain audio signal corresponding to the audio to be recognized; The frequency domain audio signal is determined as the first audio feature.
7. The method according to claim 6, wherein: The determining a second audio feature corresponding to the audio to be recognized in the real number domain includes: Convert the first audio feature from a frequency domain signal to a real domain signal to obtain a real domain audio signal corresponding to the audio to be recognized; The real domain audio signal is determined as the second audio feature.
8. An audio recognition device, comprising: A second audio feature determination unit, configured to determine a second audio feature corresponding to the audio to be identified in the real number domain based on the first audio feature corresponding to the audio to be identified in the frequency domain; a nonlinear audio feature determination unit, configured to perform feature compression on the second audio feature using a target compression function to obtain a nonlinear audio feature corresponding to the audio to be identified, wherein the target compression function is obtained by performing parameter learning on a smoothable logarithmic compression function in advance, and the smoothable logarithmic compression function includes preset learnable parameters; The audio recognition result determination unit is used to determine the audio recognition result corresponding to the audio to be recognized based on the nonlinear audio feature.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the methods described in claims 1 to 7 are implemented.
Citation Information
Patent Citations
Voice signal processing method, device and equipment and storage medium
CN111696570A
Method and device for low delay processing
US20070118367A1
Self-Supervised Audio Representation Learning for Mobile Devices
US20210056980A1
Acoustic signal processing apparatus, method and program for the same
US20220059115A1
Voice data processing method and apparatus, and computer device, and storage medium
WO2019232845A1
