Audio processing method, device, electronic device and computer readable storage medium

By utilizing the signal correlation and environmental sound cancellation processing of air conduction and body conduction audio acquisition equipment, the problem of speech transmission and recognition of headphones in noisy environments is solved, achieving clearer calls and more accurate speech recognition.

CN110931027BActive Publication Date: 2024-09-27BEIJING SAMSUNG TELECOM R&D CENT +1
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN201811090353.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-18
Publication Date
2024-09-27
Estimated Expiration
2038-09-18

AI Technical Summary

Technical Problem

In the existing technology, earphones with two audio collection devices, air conduction and body conduction, have problems with noise interference and poor speech enhancement effect in speech transmission and recognition, especially when the environmental noise is large, resulting in unsatisfactory calls. Low clarity and speech recognition accuracy.

Method used

By obtaining the signal correlation of air conduction audio acquisition equipment and body conduction audio acquisition equipment, speech enhancement processing is performed, combined with environmental sound cancellation processing, to optimize the speech signal to reduce noise interference and improve speech signal quality.

Benefits of technology

It achieves clearer voice calls and more accurate voice recognition in noisy environments, improving the quality of voice signals and call performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110931027B
    Figure CN110931027B
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for audio processing, which relate to the field of speech enhancement technology. The method comprises: obtaining a first audio signal collected by an air conduction audio acquisition device and a second audio signal collected by a body conduction audio acquisition device, and then based on the signal correlation between the first audio signal and the second audio signal, performing speech enhancement processing on the first audio signal and the second audio signal to obtain an audio signal to be output after the speech enhancement processing. The embodiments of the present application implement audio enhancement of the signal collected by the audio acquisition device of the headset, and can obtain an audio signal with better effect for applications such as speech transmission or speech recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of speech enhancement, and in particular to an audio processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of information technology, headphone technology has also developed. Headphones with two audio acquisition devices (air conduction audio acquisition device and body conduction audio acquisition device) came into being. The sound collected by the air conduction audio acquisition device is easily disturbed by the surrounding environment, so the collected sound may contain a lot of noise, while the sound collected by the body conduction audio acquisition device is obtained through body tissue conduction (such as bone conduction), so the body conduction audio acquisition device collects less noise or even no noise.

[0003] Since the sound collected by the air conduction audio collection device is easily affected by environmental noise, the sound collected by the air conduction is full-band. The sound collected by the body conduction audio collection device is collected through body tissue conduction, so the high-frequency part of the sound collected by the body conduction audio collection device is lost. Therefore, how to use the different characteristics of the two audio collection devices to obtain a better voice signal for applications such as voice transmission or voice recognition becomes a key issue for headphones with two audio collection devices. Summary of the invention

[0004] The present application provides an audio processing method, device, electronic device and computer-readable storage medium, which are used to obtain a better voice signal by utilizing the different characteristics of two audio acquisition devices of a headset, so as to perform applications such as voice transmission or voice recognition. The specific technical solution is as follows:

[0005] In a first aspect, an audio processing method is provided, the method comprising:

[0006] Acquire a first audio signal acquired by an air conduction audio acquisition device and a second audio signal acquired by a body conduction audio acquisition device;

[0007] Based on the signal correlation between the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal to obtain an audio signal to be output after the speech enhancement processing.

[0008] In a second aspect, a device for audio processing is provided, the device comprising:

[0009] A first acquisition module is used to acquire a first audio signal acquired by an air conduction audio acquisition device and a second audio signal acquired by a body conduction audio acquisition device;

[0010] The speech enhancement processing module is used to perform speech enhancement processing on the first audio signal and the second audio signal acquired by the first acquisition module based on the signal correlation between the first audio signal and the second audio signal, so as to obtain an audio signal to be output after the speech enhancement processing.

[0011] In a third aspect, an electronic device is provided, comprising: an air conduction audio acquisition device, a body conduction audio acquisition device, an audio signal playback device, a processor and a memory; wherein,

[0012] An air-conducted audio acquisition device, used to acquire a first audio signal conducted through air;

[0013] A body-conducted audio acquisition device for acquiring a second audio signal conducted through body tissue;

[0014] An audio signal playing device, used for playing audio signals;

[0015] The memory is configured to store machine-readable instructions, and when the instructions are executed by the processor, the processor executes the audio processing method shown in the first aspect.

[0016] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the audio processing method shown in the first aspect is implemented.

[0017] In a fifth aspect, another audio processing method is provided, comprising:

[0018] Acquire a first audio signal acquired by an air conduction audio acquisition device and a second audio signal acquired by a body conduction audio acquisition device;

[0019] Performing ambient sound cancellation processing on the second audio signal;

[0020] An audio signal to be output is determined based on the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0021] In a sixth aspect, another audio processing device is provided, comprising:

[0022] A second acquisition module is used to acquire a first audio signal acquired by an air conduction audio acquisition device and a second audio signal acquired by a body conduction audio acquisition device;

[0023] An ambient sound cancellation processing module, used to perform ambient sound cancellation processing on the second audio signal acquired by the second acquisition module;

[0024] The determination module is used to determine the audio signal to be output based on the first audio signal acquired by the second acquisition module and the second audio signal after the ambient sound cancellation processing module performs ambient sound cancellation processing.

[0025] In a seventh aspect, an electronic device is provided, comprising: an air conduction audio acquisition device, a body conduction audio acquisition device, an audio signal playback device, a processor and a memory; wherein,

[0026] An air-conducted audio acquisition device, used to acquire a first audio signal conducted through air;

[0027] A body-conducted audio acquisition device for acquiring a second audio signal conducted through body tissue;

[0028] An audio signal playing device, used for playing audio signals;

[0029] The memory is configured to store machine-readable instructions, which, when executed by the processor, cause the processor to perform the audio processing method shown in the fifth aspect.

[0030] In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the audio processing method shown in the fifth aspect is implemented.

[0031] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0032] The present application provides an audio processing method, device, electronic device and computer-readable storage medium. The present application can perform speech enhancement processing on the first audio signal and the second audio signal based on the signal correlation between the first audio signal and the second audio signal by acquiring a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, so as to obtain an audio signal to be output after the speech enhancement processing. That is, based on the correlation between the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, speech enhancement processing is performed on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, so as to obtain a speech signal with better effect for applications such as speech transmission or speech recognition.

[0033] The present application provides an audio processing method, device, electronic device and computer-readable storage medium. The present application obtains a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, then performs ambient sound cancellation processing on the second audio signal, and determines an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing. That is, by first performing ambient sound cancellation processing on the audio signal collected by the body conduction audio collection device, a voice signal that does not contain ambient sound is obtained, and based on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device after the ambient sound cancellation processing, a signal to be output is obtained, thereby obtaining an audio signal with a better effect for applications such as voice transmission or voice recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0035] Figure 1 This is a schematic diagram showing that when using a traditional headset, the user on the other end of the call cannot hear the call voice clearly or cannot accurately recognize the voice command;

[0036] Figure 2 A schematic diagram showing that when using a headset with a body-conducting audio collection device, the user on the other end of the call can hear the call voice clearly or can accurately recognize the voice command;

[0037] Figure 3 A schematic diagram of a flow chart of speech enhancement processing in the prior art;

[0038] Figure 4 A schematic diagram of the structure of a headset provided with an air conduction audio acquisition device and a body conduction audio acquisition device;

[0039] Figure 5 This is a flowchart of an audio processing method in an embodiment of the present application;

[0040] Figure 6 This is a flowchart of another method for audio processing in an embodiment of the present application;

[0041] Figure 7a It is a flowchart of the method for audio processing in the first specific example in the first embodiment;

[0042] Figure 7b This is a schematic diagram of the overall process of audio processing according to an embodiment of the present application;

[0043] Figure 7c This is a schematic diagram of a specific implementation flow of audio processing in Embodiment 1 of the present application;

[0044] Figure 7d A schematic diagram of calculating the final speech spectrum amplitude through joint speech estimation;

[0045] Figure 7e This is a schematic diagram of a method flow chart of a second specific example in Embodiment 1;

[0046] Figure 7f This is a schematic diagram of a method flow chart of a third specific example in Embodiment 1;

[0047] Figure 8a A flowchart of audio enhancement through ambient sound cancellation and speech enhancement;

[0048] Figure 8b This is a flowchart of the method for audio processing in Embodiment 2 of the present application;

[0049] Figure 8c A schematic diagram of performing filtering and updating filter parameters based on a set filter according to an embodiment of the present application;

[0050] Figure 9a This is a schematic diagram of voice activation detection in Embodiment 2 of the present application;

[0051] Figure 9b This is a flow chart of the method for voice activation detection in Embodiment 2 of the present application;

[0052] Fig.9c A schematic diagram for determining whether the current voice is in an active state based on a correlation coefficient sequence;

[0053] Figure 9d It is a schematic diagram of the correlation coefficient sequence;

[0054] Fig.10a This is a flowchart of the method for audio processing in Embodiment 3 of the present application;

[0055] Fig.10b This is a schematic diagram of the first specific example in Embodiment 4 of the present application;

[0056] Fig.10c This is a schematic diagram of the second specific example in Embodiment 4 of the present application;

[0057] Fig.11 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0058] Fig.12 is a block diagram of a computing system of an electronic device in an embodiment of the present application;

[0059] Fig.13 This is a schematic diagram of the structure of an audio processing device in an embodiment of the present application;

[0060] Fig.14 This is a schematic diagram of the structure of another audio processing device in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0062] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

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

[0064] With the development of earphone technology, the current earphones include two types: traditional earphones with one air conduction audio collection device and earphones with two audio collection devices. In the present application, the audio signal includes: speech signal and / or noise signal, etc.

[0065] For traditional headphones with an air conduction audio collection device, when there is no external noise or very little noise, there is no problem with voice calls or voice recognition. However, when there is a lot of external voice interference or noise, there will be a problem of unclear voice pickup during voice recognition, especially in the case of low signal-to-noise ratio and voice interference. For example Figure 1In a scenario where two people are talking on the phone, if the ambient noise around the user wearing headphones is very loud, such as train noise or noisy human voices, the audio signal sender (the user wearing headphones) sends the audio to the other end of the call through the communication link, and the other end of the call may not be able to hear the call voice clearly when receiving the audio signal; for example, in an environment with loud ambient noise or human voices nearby, due to the interference of noise and interfering voices, the voice recognition application often cannot accurately recognize the user's voice commands when receiving voice commands.

[0066] For headphones with two audio collection devices (air conduction audio collection device and body conduction audio collection device), such as Figure 2 In the scenario shown, the body conduction audio acquisition device (which can be located inside or outside the ear, and if it is located inside the ear, it can be called an in-ear audio acquisition device) may be physically isolated. In addition, the collected audio signal is collected by the body conduction audio acquisition device through body tissue conduction (such as bone conduction) when a person speaks, so the collected noise signal is very small or even no noise signal is collected. In this way, the audio signal is sent to the other end of the call during the call, and the voice sent to the other end of the call is clean and easy to be understood by the other party. Similarly, when the voice is used for speech recognition, the voice is sent to the speech recognition application. Since the voice received by the speech recognition application is free of noise and interfering speech, the recognition rate will be higher.

[0067] For headphones equipped with two audio collection devices, air conduction and body conduction, the air conduction audio collection device (which can be an external audio collection device) is easily interfered by the surrounding environmental noise, and the collected audio signal will contain a lot of noise signals. However, compared with the voice collected by the body conduction audio collection device (which can be an in-ear audio collection device), the signal collected by the air conduction audio collection device is full-band. This is because the voice signal picked up by the body conduction audio collection device is conducted through body tissue, and the conducted signal has undergone a process similar to low-pass filtering. Because the body conduction audio collection device is physically isolated from most of the external ear noise when the user uses the headphones (for example, the earplug fits tightly with the external auditory canal), the collected audio signal is a clean voice signal without noise. However, it has undergone "low-pass filtering" by body tissue, resulting in high-frequency loss. The frequency spectrum of the audio signal collected by the air conduction audio collection device is different from the frequency spectrum of the audio signal collected by the body conduction audio collection device.

[0068] In the prior art, headphones with two audio collection devices, an air conduction audio collection device and a body conduction audio collection device, obtain a better voice signal by utilizing the different characteristics of the two audio collection devices, thereby performing applications such as voice transmission or voice recognition. The general process is: the audio signal picked up by the body conduction audio collection device and the audio signal picked up by the air conduction audio collection device are processed separately as two separate signals, for example, they are respectively passed through filters for voice noise reduction processing, and then the processed results are superimposed and integrated into a final audio signal, and then the obtained audio signal is transmitted to the terminal device connected to the headphones (the terminal device can be a mobile phone connected to the headphones via Bluetooth or wired methods, etc.). If in a call scenario, the terminal device connected to the headphones can send the final superimposed audio signal to the call partner; if in a voice recognition scenario, the terminal device connected to the headphones can recognize user commands based on the final superimposed audio signal. However, there are still many problems with such processing. They are as follows:

[0069] Problem 1 of the prior art: For signal processing of headphones with two audio collection devices, before transmitting the audio signal to the connected terminal device, the traditional method is to perform noise reduction and voice enhancement processing on the audio signals collected by the two audio collection devices respectively, and then superimpose the audio signals collected by the two audio collection devices. Figure 3As shown, the audio signal collected by the body conduction audio acquisition device and the audio signal collected by the air conduction audio acquisition device are respectively processed by Fast Fourier Transformation (FFT), signal noise estimation processing, signal speech estimation processing, Inverse Fast Fourier Transform (IFFT), and the audio signal corresponding to the body conduction audio acquisition device after IFFT is processed by low-pass filtering, and the audio signal corresponding to the air conduction audio acquisition device after IFFT is processed by high-pass filtering, and the two filtered signals are superimposed to obtain an output signal, which is output to a terminal device such as a mobile phone connected to the headset, and is transmitted by the terminal device to the caller or for corresponding applications such as voice recognition and recording. This method does not take into account the correlation between the signals collected by the air conduction audio acquisition device and the body conduction audio acquisition device. This correlation mainly comes from: no matter the audio signal collected by the body conduction audio collection device or the air conduction audio collection device, their sound source is the speaker, but the two have passed through different propagation paths. The air conduction audio collection device is directly transmitted through the air and collected by the air conduction audio collection device. Because the environment contains environmental noise, the air conduction audio collection device picks up environmental noise while collecting the speaker's voice. The body conduction audio collection device is the speaker's voice directly transmitted to the body conduction audio collection device through body tissue conduction and collected by the body conduction audio collection device. Therefore, in fact, the voice audio collected by the air conduction audio collection device and the body conduction audio collection device has a high correlation. This correlation can better help us perform voice detection and voice noise reduction. If the correlation between the two can be used, better voice enhancement effects can be obtained. However, the prior art does not use the correlation of speech for voice enhancement, so the effect of voice enhancement in the prior art is poor.

[0070] Problem 2 of the prior art: The existing headphones with two audio collection devices, when playing audio locally to the user, have the greatest purpose of eliminating local environmental noise to obtain clean speech. This noise reduction method usually uses the environmental noise collected by the air conduction audio collection device to achieve the purpose of eliminating environmental noise by playing noise with opposite phases in the audio signal playback device (for example, the headphone speaker). This traditional method of eliminating environmental noise effectively eliminates local environmental noise and improves the user's listening experience, but it also leads to another problem, that is, if there is a car or someone talking next to the user, the noise reduction algorithm will suppress the surrounding sound as noise, thereby causing safety problems or communication problems. For example, in a certain scenario, when a user is using headphones and a car is approaching, because the headphones eliminate the environmental noise, the sound of the car is also eliminated as environmental sound, and the user cannot hear the sound of the car, which may cause an accident.

[0071] In order to solve the second problem of the prior art, headphones with two audio collection devices may be designed with an ambient sound (AS) mode. When this mode is turned on, the air conduction audio collection device can collect the ambient sound outside the ear and then play it through the speaker of the headset, so that the user can hear the sounds of the surrounding environment such as greetings or cars approaching. If the body conduction audio collection device is located in the ear, the audio signals collected by the body conduction audio collection device include: voice conducted through body tissue and audio signals played by the speaker of the headset. This AS mode can avoid safety problems or communication problems. Figure 4 As shown, it is a schematic diagram of the structure of an earphone, the body conduction audio acquisition device and the audio signal playing device (earphone speaker) are both located inside the ear, the air conduction audio acquisition device is located outside the ear, the earphone speaker plays the audio signal acquired by the air conduction audio acquisition device, the body conduction audio acquisition device acquires voice conducted through body tissue and the audio signal played by the earphone speaker, and the air conduction audio acquisition device acquires external audio signals.

[0072] However, if the body conduction audio acquisition device is located in the ear, this headset designed with AS mode also has problems. Specifically, when the user turns on the AS mode, the audio signal collected by the body conduction audio acquisition device consists of two parts. One part is the sound (including human voice and environmental noise) recorded by the air conduction audio acquisition device and played by the audio signal playback device (for example, the in-ear speaker), and the other part is the sound emitted by the user and received and collected by the body conduction audio acquisition device through body tissue conduction. In this way, because the audio collected by the body conduction audio acquisition device contains environmental sound, the user's voice collected by the air conduction audio acquisition device, and the user's voice conducted through body tissue (which can be called body conduction voice), the audio collected by the body conduction audio acquisition device is no longer a clean call voice (body conduction voice), which may also cause the other end of the voice call to be unable to hear the user's voice clearly, or the terminal device cannot accurately recognize the user's voice command. Therefore, for headphones with two audio acquisition devices, the body conduction audio acquisition device and the air conduction audio acquisition device, the traditional noise reduction algorithm is not applicable or unsatisfactory.

[0073] Since the physical structure of the earphone fits the ear canal, the noise outside the ear is isolated. When the AS mode is not turned on, the sound emitted by the headphone user collected by the body conduction audio collection device does not contain noise, and the high-frequency part of the bone conduction audio signal is lost; since the audio emitted by the headphone user collected by the air conduction audio collection device and transmitted through the air contains noise, the audio collected by the air conduction audio collection device is full-band; when the AS mode is turned on, the audio signal collected by the air conduction audio collection device must be played through an audio signal playback device (for example, headphone speakers), so when the AS mode is turned on, the noise signal contained in the audio signal collected by the body conduction audio collection device needs to be eliminated.

[0074] In order to solve the problem that the voice enhancement effect in the prior art is not ideal, the embodiment of the present application suppresses noise by utilizing the correlation between the signal collected by the body conduction audio collection device and the signal collected by the air conduction audio collection device, thereby enhancing the voice quality, achieving clearer voice calls, and improving the performance of uplink voice signals during calls. In addition, in voice recognition applications, the terminal device can accurately identify user instructions after the voice quality is enhanced, thereby improving the accuracy of voice recognition. For the problem that safety accidents may occur easily when the ambient sound mode is not turned on, or the voice call quality is poor or the voice instructions cannot be accurately recognized when the ambient mode is turned on, the present application restores the signal collected by the body conduction audio collection device by adding an adaptive filter in the AS mode, and eliminates the ambient noise in the audio sent to the other end when the speaker can hear the ambient sound clearly, so that the receiver cannot hear the ambient noise of the sending end, thereby achieving clearer voice calls and improving the performance of uplink voice signals during calls. In addition, in voice recognition applications, since the ambient noise is eliminated, the terminal device can accurately identify user instructions, thereby improving the accuracy of voice recognition.

[0075] Specifically, in order to solve the problem that the speech enhancement effect in the prior art is not sufficiently understood, the embodiment of the present application provides an audio processing method, which can be applied to headphones having air conduction audio collection devices and body conduction audio collection devices, such as Figure 5 As shown,

[0076] Step S801, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0077] Step S802: Based on the signal correlation between the first audio signal and the second audio signal, perform speech enhancement processing on the first audio signal and the second audio signal to obtain an audio signal to be output after the speech enhancement processing.

[0078] For the embodiment of the present application, the terminal device connected to the headset can obtain the audio signal to be output after the voice enhancement processing, and output the audio signal to the call partner, or output the audio signal to the voice recognition application for voice recognition; or output the audio signal to the instant messaging application and send it to the communication partner as a voice message; or record the audio signal. The specific processing of the audio signal received by the terminal device is not limited in the embodiment of the present application.

[0079] Specifically, in step S802, based on the signal correlation between the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal, including: step S8021 (not shown in the figure), step S8022 (not shown in the figure) and step S8023 (not marked in the figure), wherein:

[0080] Step S8021: perform noise estimation on the first audio signal and the second audio signal respectively.

[0081] Step S8022: perform speech spectrum estimation on the first audio signal and the second audio signal respectively according to the noise estimation results corresponding to the first audio signal and the second audio signal.

[0082] Step S8023: Perform speech enhancement processing on the first audio signal and the second audio signal according to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal.

[0083] Specifically, the noise estimation of the first audio signal in step S8021 includes: step S8021a (not shown in the figure) to step S8021b (not shown in the figure), wherein:

[0084] Step S8021a: Determine a priori probability of existence of speech corresponding to the first audio signal.

[0085] Step S8021b: perform noise estimation on the first audio signal based on the prior probability of speech existence.

[0086] Specifically, step S8021a includes step S8021a1 (not shown in the figure) and step S8021a2 (not shown in the figure), wherein:

[0087] Step S8021a1: determine the signal frequency amplitude ratio between the first audio signal and the second audio signal.

[0088] Step S8021a2: Determine the prior probability of the existence of speech corresponding to the first audio signal based on the signal frequency-amplitude ratio.

[0089] Specifically, step S8021b includes step S8021b1 (not shown in the figure) and step S8021b2 (not shown in the figure), wherein:

[0090] Step S8021b1: Based on the prior probability of speech existence, determine the corresponding posterior probability of speech existence.

[0091] Step S8021b2: Based on the posterior probability of speech existence, perform noise estimation on the first audio signal.

[0092] Specifically, in step S8023, according to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal, including: step S8023a (not shown in the figure), wherein:

[0093] Step S8023a: perform speech enhancement processing on the first audio signal and the second audio signal according to the noise estimation results corresponding to the first audio signal and the second audio signal and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal.

[0094] Specifically, step S8023a includes step S8023a1 (not shown in the figure) and step S8023a2 (not shown in the figure), wherein:

[0095] Step S8023a1: perform joint speech spectrum estimation on the first audio signal and the second audio signal according to the noise estimation results corresponding to the first audio signal and the second audio signal and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal.

[0096] Step S8023a2: Obtain the audio signal to be output after speech enhancement processing according to the obtained joint speech spectrum estimation result.

[0097] Specifically, step S8023a1 includes step S8023a11 (not shown in the figure) to step S8023a12 (not shown in the figure), wherein:

[0098] Step S8023a11, determine the mean of the third Gaussian distribution model based on the first Gaussian distribution model whose mean is the speech spectrum estimation result of the first audio signal and whose variance is the noise estimation result of the first audio signal, and the second Gaussian distribution model whose mean is the speech spectrum estimation result of the second audio signal and whose variance is the noise estimation result of the second audio signal.

[0099] Step S8023a12: Determine a joint speech spectrum estimation result of performing joint speech spectrum estimation on the first audio signal and the second audio signal according to the mean value of the third Gaussian distribution model.

[0100] In a possible implementation, before performing speech enhancement processing on the first audio signal and the second audio signal, step Sa (not shown in the figure) is included, wherein:

[0101] Step Sa, performing ambient sound cancellation processing on the second audio signal to obtain the second audio signal after the ambient sound cancellation processing.

[0102] Specifically, the first audio signal and the second audio signal are subjected to speech enhancement processing, including step Sb (not shown in the figure), wherein:

[0103] Step Sb: performing speech enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0104] Specifically, the ambient sound cancellation processing is performed on the second audio signal in step Sa, including: step Sa1 (not shown in the figure) and step Sa2 (not shown in the figure), wherein:

[0105] Step Sa1: Obtain a third audio signal to be played by an audio signal playing device.

[0106] Step Sa2: Performing ambient sound cancellation processing on the second audio signal through the third audio signal to obtain the second audio signal after the ambient sound cancellation processing.

[0107] Specifically, in step Sa2, the ambient sound cancellation processing is performed on the second audio signal through the third audio signal, including: detecting whether it is currently in a voice activation state, the voice activation state indicates that the user is uttering a voice; if it is detected that it is in a voice activation state, executing the step of performing ambient sound cancellation processing on the second audio signal through the third audio signal.

[0108] Specifically, detecting whether the device is currently in a voice activation state includes: determining whether an audio signal playback device channel and / or a body conduction audio acquisition device channel is in a voice activation state based on a second audio signal and / or a third audio signal; if at least one channel is in a voice activation state, determining whether the device is currently in a voice activation state based on a signal correlation between the second audio signal and the third audio signal.

[0109] An embodiment of the present application provides a method for audio processing. By acquiring a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, the embodiment of the present application can perform speech enhancement processing on the first audio signal and the second audio signal based on the signal correlation between the first audio signal and the second audio signal, and obtain an audio signal to be output after the speech enhancement processing. That is, based on the correlation between the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, speech enhancement processing is performed on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, so that a better speech signal can be obtained for applications such as speech transmission or speech recognition.

[0110] For the problem that not turning on the ambient sound mode may easily cause safety accidents or turning on the ambient sound mode but the voice call quality is poor or the voice recognition is inaccurate, this application provides another audio processing method that can be applied to electronic devices with two audio collection devices, such as Figure 6 As shown,

[0111] Step S901, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0112] Step S902: Perform ambient sound cancellation processing on the second audio signal.

[0113] Step S903: Determine an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0114] Specifically, step S902 includes step S9021 (not shown in the figure) and step S9022 (not shown in the figure), wherein:

[0115] Step S9021: Acquire a third audio signal to be played by the audio signal playing device.

[0116] Step S9022: Perform ambient sound cancellation processing on the second audio signal using the third audio signal to obtain a second audio signal after the ambient sound cancellation processing.

[0117] Specifically, in step S9022, performing ambient sound cancellation processing on the second audio signal by using the third audio signal includes:

[0118] Performing ambient sound cancellation filtering on the third audio signal to obtain a filtered signal;

[0119] The signal after filtering is removed from the second audio signal to obtain the second audio signal after ambient sound cancellation processing.

[0120] Specifically, the ambient sound cancellation processing of the second audio signal is performed through the third audio signal, including: detecting whether it is currently in a voice activation state, the voice activation state represents that the user is uttering a voice; if it is detected that it is in the voice activation state, executing the step of performing ambient sound cancellation processing of the second audio signal through the third audio signal.

[0121] In a possible implementation, the method further includes updating parameter information of the ambient sound cancellation filtering process if it is detected that the current state is a voice inactive state.

[0122] Specifically, updating parameter information of the ambient sound cancellation filtering process includes: determining a prediction signal for the second audio signal based on the third audio signal; and updating parameter information of the ambient sound cancellation filtering process according to the second audio signal and the prediction signal for the second audio signal.

[0123] Specifically, detecting whether the device is currently in a voice activation state includes: determining whether an audio signal playback device channel and / or a body conduction audio acquisition device channel is in a voice activation state based on a second audio signal and / or a third audio signal; if at least one channel is in a voice activation state, determining whether the device is currently in a voice activation state based on a signal correlation between the second audio signal and the third audio signal.

[0124] Specifically, determining whether the current state is in a voice activation state according to the signal correlation between the second audio signal and the third audio signal includes: determining a correlation coefficient sequence between the second audio signal and the third audio signal; and determining whether the current state is in a voice activation state based on the correlation coefficient sequence.

[0125] Specifically, based on the correlation coefficient sequence, determining whether the current state is in voice activation includes: determining a main peak in the correlation coefficient sequence; if there is another peak within a preset delay range before the main peak in the correlation coefficient sequence, determining that the current state is in voice activation.

[0126] The embodiment of the present application provides an audio processing method, which obtains a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, then performs ambient sound cancellation processing on the second audio signal, and determines an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing. That is, by first performing ambient sound cancellation processing on the audio signal collected by the body conduction audio collection device, a voice signal that does not contain ambient sound is obtained, and based on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device after the ambient sound cancellation processing, a signal to be output is obtained, thereby obtaining an audio signal with a better effect for applications such as voice transmission or voice recognition.

[0127] The following describes a method for audio processing in conjunction with specific embodiments, including Embodiment 1, Embodiment 2, Embodiment 3 and Embodiment 4, wherein Embodiment 1 is used to solve the problem in the prior art that the correlation between the audio signal collected by the body conduction audio collection device and the audio signal collected by the air conduction audio collection device is not utilized to perform voice enhancement, resulting in a poor voice enhancement effect; Embodiment 2 is used to solve the problem in the prior art that safety accidents may easily occur when the ambient sound mode is not turned on, or the voice call quality is poor or the voice recognition is inaccurate when the ambient sound mode is turned on; Embodiment 3 is used to simultaneously solve the above-mentioned prior art problems 1 and 2; Embodiment 4 introduces a method for processing audio signals in two different application scenarios based on Embodiment 3, as detailed in the following embodiments, wherein the air conduction audio collection device in this application may be located outside the ear, the body conduction audio collection device is a device that uses body tissue such as bone tissue as a medium to collect audio, and the body conduction audio collection device may be worn inside the ear or outside the ear, which is not limited in this application.

[0128] Embodiment 1

[0129] An embodiment of the present application provides a method for audio processing, including: obtaining a first audio signal and a second audio signal, the first audio signal being an audio signal collected by an air conduction audio collection device of an earphone, and the second audio signal being an audio signal conducted through body tissue (such as bone tissue) and collected by a body conduction audio collection device of the earphone; based on the signal correlation between the first audio signal and the second audio signal, performing speech enhancement processing on the first audio signal and the second audio signal to obtain an audio signal after speech enhancement processing. Since the signal correlation between the first audio signal and the second audio signal can be reflected in the joint speech estimation processing (speech estimation processing can also be called speech spectrum estimation processing), see the first specific example for details, and can also be reflected in the calculation processing of the prior probability of speech existence, see the second specific example for details; furthermore, the correlation between the first audio signal and the second audio signal can be reflected in both the joint speech estimation processing and the calculation processing of the prior probability of speech existence, see the third specific example for details, wherein,

[0130] The first specific example

[0131] This specific example provides a method for audio processing, such as Figure 7a As shown, including:

[0132] Step S1001, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0133] For the embodiment of the present application, when the user (also referred to as the user) using the headset speaks, the first audio signal may include not only the user's voice signal but also an environmental noise signal, which is not limited in the embodiment of the present application.

[0134] For the embodiment of the present application, the second audio signal is an audio signal conducted through body tissue and collected by a body conduction audio collection device, and the second audio signal contains a voice signal of the user.

[0135] For the embodiment of the present application, if the audio signal playback device of the headset (such as the headset speaker) plays music, or plays the voice of the other end user during a call, the body conduction audio acquisition device may collect the music or voice played by the audio signal playback device. After the body conduction audio acquisition device collects the audio signal, it can eliminate the audio played by the audio signal playback device through echo cancellation processing to obtain a second audio signal.

[0136] Step S1002: perform joint speech estimation processing based on the following information:

[0137] an estimated value of noise variance corresponding to the first audio signal;

[0138] An estimated value of a pure speech spectrum amplitude corresponding to the first audio signal;

[0139] an estimated value of noise variance corresponding to the second audio signal;

[0140] An estimated value of the amplitude of the pure speech spectrum corresponding to the second audio signal.

[0141] For the embodiment of the present application, the estimated value of the noise variance corresponding to the first audio signal is the estimated value of the noise variance corresponding to each frequency point in the frequency domain signal of the first audio signal; the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal is the estimated value of the pure speech spectrum amplitude corresponding to each frequency point in the frequency domain signal of the first audio signal; the estimated value of the noise variance corresponding to the second audio signal is the estimated value of the noise variance corresponding to each frequency point in the frequency domain signal of the second audio signal; the estimated value of the pure speech frequency domain amplitude corresponding to the second audio signal is the estimated value of the pure speech spectrum amplitude corresponding to each frequency point in the frequency domain signal of the first audio signal.

[0142] Before step S1002, the method further includes: calculating the following information:

[0143] an estimated value of noise variance corresponding to the first audio signal;

[0144] An estimated value of a pure speech spectrum amplitude corresponding to the first audio signal;

[0145] an estimated value of noise variance corresponding to the second audio signal;

[0146] An estimated value of the amplitude of the pure speech spectrum corresponding to the second audio signal.

[0147] Among them, the estimated value of the noise variance corresponding to the first audio signal and the estimated value of the noise variance corresponding to the second audio signal are noise estimation results obtained by performing noise estimation on the first audio signal and the second audio signal respectively; the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal are speech spectrum estimation results of performing speech spectrum estimation on the first audio signal and the second audio signal respectively.

[0148] For the embodiments of the present application, the estimated value of the noise variance corresponding to the first audio signal, the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal, the estimated value of the noise variance corresponding to the second audio signal, and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal can be calculated by the signal-noise estimation algorithm and the speech spectrum estimation algorithm in the prior art; the noise estimation and speech spectrum estimation can also be performed on the first audio signal and the second audio signal respectively by the processing method in the present application, specifically: firstly, the prior probability of speech existence corresponding to each frequency point in the frequency domain signal of the first audio signal (that is, the prior probability of speech existence corresponding to the first audio signal) is calculated by the prior probability of speech existence calculation processing, and then based on the calculated prior probability of speech existence corresponding to each frequency point in the frequency domain signal of the first audio signal, And calculate the estimated value of the noise variance corresponding to the first audio signal and the estimated value of the amplitude of the pure speech spectrum corresponding to the first audio signal through the signal-noise estimation algorithm and the speech spectrum estimation algorithm, and calculate the estimated value of the noise variance corresponding to the second audio signal and the estimated value of the pure speech spectrum corresponding to the second audio signal based on the preset prior probability of speech existence through the signal-noise estimation algorithm and the speech spectrum estimation algorithm; of course, it is also possible to calculate the prior probability of speech existence corresponding to the first audio signal in real time by calculating the prior probability of speech existence corresponding to the second speech signal, and calculate the estimated value of the noise variance corresponding to the second audio signal and the estimated value of the pure speech spectrum corresponding to the second audio signal based on the prior probability of speech existence corresponding to the second speech signal through the signal-noise estimation algorithm and the speech spectrum estimation algorithm.

[0149] Step S1003: Obtain an audio signal to be output after speech enhancement processing according to the obtained joint speech estimation result.

[0150] The obtained joint speech estimation result is the final speech spectrum amplitude value corresponding to each frequency point. In the embodiment of the present application, the final speech spectrum amplitude value corresponding to each frequency point is the speech spectrum amplitude value corresponding to each frequency point in the frequency domain signal corresponding to the speech enhanced time domain signal.

[0151] Therefore, step S1003 includes: performing IFFT transformation on the final speech spectrum amplitude value corresponding to each frequency point, and obtaining the time domain audio signal to be output after speech enhancement by superimposing sine windows and overlapping and adding between frames.

[0152] Specific as Figure 7b As shown, Figure 7b The present invention introduces a processing method for performing speech prior probability processing, signal noise estimation, speech spectrum estimation and joint speech estimation processing on an audio signal. Specifically, FFT is performed on a first audio signal and a second audio signal respectively to obtain a frequency domain signal corresponding to the first audio signal and a frequency domain signal corresponding to the second audio signal. Based on the frequency domain signal corresponding to the first audio signal and the frequency domain signal corresponding to the second audio signal, speech prior probability processing is performed to obtain a speech prior probability corresponding to the first audio signal. Then, based on the speech prior probability corresponding to the first audio signal, noise estimation is performed on the first audio signal to obtain an estimated value of the noise variance corresponding to the first audio signal and a posterior probability of the first speech. Furthermore, based on a preset speech prior probability, noise estimation is performed on the second audio signal to obtain a speech prior to the second audio signal. Based on the estimated value of the noise variance corresponding to the first audio signal and the posterior probability of the existence of the second speech, the speech spectrum of the first audio signal is estimated to obtain the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal, and based on the estimated value of the noise variance corresponding to the second audio signal and the posterior probability of the existence of the second speech, the speech spectrum of the second audio signal is estimated to obtain the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal, and then according to the noise estimation results corresponding to the first audio signal and the second audio signal, and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, the first audio signal and the second audio signal are jointly estimated in speech spectrum, and then the joint estimation result is IFFT transformed to obtain the time domain audio signal to be output after speech enhancement, that is, the output signal x. For details of the specific implementation process, see Figure 7c As shown, Figure 7c The specific implementation process of the audio processing method provided for this specific example includes:

[0153] Step S701: Perform FFT on the first audio signal and the second audio signal respectively to obtain a frequency domain signal corresponding to the first audio signal and a frequency domain signal corresponding to the second audio signal.

[0154] The first audio signal and the second audio signal are subjected to noise estimation processing, and the method further includes: performing Fourier transform on the first audio signal and the second audio signal respectively to obtain a frequency domain signal corresponding to the first audio signal and a frequency domain signal corresponding to the second audio signal.

[0155] For the embodiment of the present application, the first audio signal and the second audio signal are calculated respectively by windowed short-time Fourier transform to obtain a frequency domain signal corresponding to the first audio signal and a frequency domain signal corresponding to the second audio signal, which may also be referred to as a first frequency domain signal and a second frequency domain signal.

[0156] Among them, the formula of windowed short-time Fourier transform can be:

[0157]

[0158] Where x is the first audio signal x o Or the second audio signal x i , w represents the window function. In the embodiment of the present application, the window function w is selected as a sine window, and N is the frame length. The output frequency domain signal f(k) is the first audio signal x o The corresponding frequency domain signal is the second audio signal x i The corresponding frequency domain signal, the output frequency domain signal f(k) is represented as a vector Y below, and k takes values ​​from 0 to N-1.

[0159] For example, the frame length N may be 10 ms.

[0160] Step S702, determining the prior probability of speech existence corresponding to the first audio signal, that is, calculating the prior probability of speech existence corresponding to each frequency point in the frequency domain signal of the first audio signal through a calculation process of the prior probability of speech existence.

[0161] The frequency amplitude ratio (Outer Inner Ratio, OIR) between the first frequency domain signal and the second frequency domain signal, which can also be called the signal frequency amplitude ratio between the first audio signal and the second audio signal, can be calculated first; and the prior probability of the existence of the speech corresponding to the first frequency domain signal is determined by the frequency amplitude ratio.

[0162] Specifically, based on the calculated OIR of the first frequency domain signal and the second frequency domain signal and through the Cauchy distribution model, the prior probability of speech existence corresponding to each frequency point in the frequency domain signal of the first audio signal (also referred to as: the prior probability of first speech existence) is calculated.

[0163] For the embodiment of the present application, according to empirical information, the amplitude value of the pure speech frequency point roughly conforms to the Gaussian distribution with a mean of 0, and the ratio of two Gaussian distributions with a mean of 0 conforms to the Cauchy distribution. Therefore, based on OIR and through the Cauchy distribution model, the prior probability of the existence of speech corresponding to each frequency point in the frequency domain signal of the first audio signal is calculated.

[0164] Specifically, the frequency amplitude ratio of the first frequency domain signal to the second frequency domain signal is calculated by the following formula:

[0165] OIR=|Y o | / |Y i |;

[0166] OIR is the frequency amplitude ratio of the first frequency domain signal to the second frequency domain signal, Y o is the first frequency domain signal output after the first audio signal is time-frequency converted, Y i It is a second frequency domain signal output after the second audio signal is subjected to time-frequency conversion.

[0167] The prior probability of speech existence corresponding to each frequency point in the frequency domain signal of the first frequency domain signal is calculated by the following formula:

[0168]

[0169] Where P is the initial value vector of the prior probability of speech existence, and the vector elements are frequency points. The initial value of the prior probability of speech existence can be obtained by experimental statistics (for example, in a 4-hour experimental signal sequence, at a certain frequency point, 2 hours of which are speech, then the initial value of the probability of speech existence is 2 hours / 4 hours = 0.5), and speech is different for different hardware devices. But the general rule is that the probability of speech existence in the second audio signal decreases rapidly with increasing frequency, and the first audio signal decreases relatively slowly. g is an empirical coefficient (can be a fixed value), priOIR is the frequency amplitude ratio of the second audio signal to the first audio signal when the signal is pure speech, and priOIR can be obtained by pre-statistics.

[0170] Step S703: performing noise estimation on the first audio signal based on a priori probability of speech existence corresponding to the first audio signal.

[0171] Furthermore, based on the calculated prior probability of existence of speech corresponding to each frequency point in the frequency domain signal of the first audio signal, an estimated value of the noise variance corresponding to the first audio signal is calculated by a signal noise estimation algorithm.

[0172] Specifically: based on the calculated prior probability of the existence of speech corresponding to each frequency point in the frequency domain signal of the first audio signal, and through a signal noise estimation algorithm, calculate the posterior probability of the existence of speech corresponding to each frequency point in the frequency domain signal of the first audio signal (also referred to as: the posterior probability of the existence of the first speech); based on the posterior probability of the existence of the first speech, calculate the estimated value of the noise variance corresponding to the first audio signal.

[0173] Step S704: perform noise estimation on the second audio signal.

[0174] Based on a pre-set prior probability of speech existence, the posterior probability corresponding to each frequency point in the frequency domain signal of the second audio signal is calculated through a signal noise estimation algorithm (also referred to as: the posterior probability of the second speech existence); based on the posterior probability of the second speech existence, the estimated value of the noise variance corresponding to the second audio signal is calculated.

[0175] Specifically, the a posteriori probability of the existence of the first speech or the a posteriori probability of the existence of the second speech is calculated by the following formula (1), and the estimated value of the noise variance corresponding to the first audio signal or the estimated value of the noise variance corresponding to the second audio signal is calculated by formula (2).

[0176]

[0177] Wherein, P(H1|y) is the posterior probability of the existence of speech, which can be characterized as the posterior probability of the existence of the first speech, or the posterior probability of the existence of the second speech; P(H0) is the prior probability of the non-existence of speech, P(H0)=1-P(H1), if P(H1|y) is the posterior probability of the existence of the first speech, then P(H1) is the prior probability of the existence of the first speech, P(H0) is the prior probability of the non-existence of the first speech, if P(H1|y) is the posterior probability of the existence of the second speech, then P(H1) is the preset prior probability of the existence of speech, and P(H0) is the prior probability of the non-existence of the second speech; ξ is the prior signal-to-noise ratio, which can be a fixed value, and in the embodiment of the present application, it can be 12db; Y is the frequency domain signal, which can be characterized as the first frequency domain signal or the second frequency domain signal; σ 2 is the estimated value of the noise variance estimated in the previous frame, which can also be expressed as σ 2 (l-1) may represent an estimated value of the noise variance corresponding to the first audio signal, or may represent an estimated value of the noise variance corresponding to the second audio signal.

[0178] σ 2 (l) = α*σ 2 (l-1)+(1-α)*[P(H0|y)|Y| 2 +P(H1|y)σ 2 (l-1)] (2)

[0179] Among them, σ 2 (l) represents the estimated value of the noise variance of the current frame, which may also be referred to as the updated estimated value of the noise variance, and may represent the estimated value of the noise variance corresponding to the first audio signal, or may represent the estimated value of the noise variance corresponding to the second audio signal, wherein the estimated value of the noise variance corresponding to the first audio signal may be represented by σ o 2 To express it, the estimated value of the noise variance corresponding to the second audio signal can be expressed by σ i 2 To express, σ o 2 and σ i 2 Use σ 2 Represents; σ 2 (l-1) is the estimated value of the noise variance calculated in the previous frame; α is the update coefficient, which can be a fixed value between 0 and 1, for example, it can be 0.8; P(H0|y) represents the posterior probability that the speech does not exist, which can be the posterior probability that the first speech corresponding to the first audio signal does not exist, or it can be the posterior probability that the second speech corresponding to the second audio signal does not exist; |Y| is the amplitude value of the frequency domain signal.

[0180] Step S705: perform speech spectrum estimation on the first audio signal.

[0181] An estimated value of a pure speech frequency domain amplitude corresponding to the first audio signal is calculated based on an estimated value of a noise variance corresponding to the first audio signal and a posterior probability that the first speech exists.

[0182] Step S706: perform speech spectrum estimation on the second audio signal.

[0183] An estimated value of the amplitude of the pure speech spectrum corresponding to the second audio signal is calculated based on the estimated value of the noise variance corresponding to the second audio signal and the posterior probability that the second speech exists.

[0184] Specifically, after the posterior probability of the existence of the first speech and the estimated value of the noise variance corresponding to the first audio signal are calculated, the OM-LSA algorithm is used to calculate the ratio value G1 of the speech relative to the collected original signal (first audio signal), and then based on the ratio value G1, the estimated value of the pure speech frequency domain amplitude corresponding to the first audio signal is calculated; after the posterior probability of the existence of the second speech and the estimated value of the noise variance corresponding to the second audio signal are calculated, the OM-LSA algorithm is used to calculate the ratio value G2 of the speech relative to the original signal (second audio signal) collected from the original signal, and then based on the ratio value G2, the estimated value of the pure speech frequency domain amplitude corresponding to the second audio signal is calculated.

[0185] Specifically, the estimated value S of the pure speech frequency range amplitude is calculated by formulas (3) and (4), where S can be the estimated value S1 of the pure speech frequency range amplitude corresponding to the first audio signal, or the estimated value S2 of the pure speech frequency range amplitude corresponding to the second audio signal, wherein:

[0186] S = G*Y (3);

[0187] G=G(H1) P(H1|y) *G min P(H0|y) (4);

[0188] in,

[0189] Wherein, when calculating the estimated value S1 of the pure speech frequency domain amplitude corresponding to the first audio signal, G in formula (3) is G1, Y is the first frequency domain signal, P(H1|y) in formula (4) is the posterior probability of the existence of the first speech, P(H0|y) is the posterior probability of the non-existence of the first speech, |Y| is the amplitude value of the frequency domain signal corresponding to the first audio signal, σ 2 is an estimated value of the noise variance corresponding to the first audio signal.

[0190] When calculating the estimated value S2 of the pure speech frequency domain amplitude corresponding to the second audio signal, G in formula (3) is G2, Y is the second frequency domain signal, P(H1|y) in formula (4) is the posterior probability of the second speech existence, P(H0|y) is the posterior probability of the second speech non-existence, |Y| is the amplitude value of the frequency domain signal corresponding to the second audio signal, σ 2 is an estimated value of the noise variance corresponding to the second audio signal.

[0191] G min It is an empirical coefficient with a fixed value, which is the lower limit of G. You can choose a value between -18db and -30db.

[0192] Step S707: perform joint speech spectrum estimation on the first audio signal and the second audio signal according to the noise estimation results corresponding to the first audio signal and the second audio signal and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal.

[0193] After determining the noise estimation results corresponding to the first audio signal and the second audio signal (the estimated value of the noise variance corresponding to the first audio signal and the estimated value of the noise variance corresponding to the second audio signal), and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal (the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal), determine the mean of a third Gaussian distribution model based on a first Gaussian distribution model whose mean is the speech spectrum estimation result of the first audio signal and whose variance is the noise estimation result of the first audio signal, and a second Gaussian distribution model whose mean is the speech spectrum estimation result of the second audio signal and whose variance is the noise estimation result of the second audio signal; and determine a joint speech spectrum estimation result of joint speech spectrum estimation of the first audio signal and the second audio signal based on the mean of the third Gaussian distribution model.

[0194] For the embodiment of the present application, the estimated value of the noise variance corresponding to the first audio signal, the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal, the estimated value of the noise variance corresponding to the second audio signal, and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal are obtained through the above calculation. The speech spectrum amplitude of the first frequency point can be regarded as a Gaussian distribution with the speech spectrum amplitude corresponding to the first frequency point as the mean and the estimated value of the noise variance corresponding to the first frequency point as the variance; the speech spectrum amplitude of the second frequency point can be regarded as a Gaussian distribution with the speech spectrum amplitude corresponding to the second frequency point as the mean and the estimated value of the noise variance corresponding to the second frequency point as the variance. According to "the product of two Gaussian distributions is a Gaussian distribution", and based on the above information, the final speech spectrum amplitude value corresponding to any frequency point, that is, the mean of the new Gaussian distribution, is calculated, as shown in detail. Figure 7d As shown, the common probability distribution in the figure refers to the final speech spectrum amplitude probability distribution,

[0195] Among them, the first frequency point is any frequency point in the frequency domain signal of the first audio signal, and the speech spectrum amplitude of the first frequency point is the speech spectrum amplitude corresponding to the first frequency point; the second frequency point is any frequency point in the frequency domain signal of the second audio signal, and the speech spectrum amplitude of the second frequency point is the speech spectrum amplitude corresponding to the second frequency point.

[0196] Specifically, the final speech spectrum amplitude value corresponding to any frequency point is calculated by formula (5), that is, the joint speech spectrum estimation result.

[0197] S io =S o +k*(priOIR*S i -S o ) (5)

[0198] in, S iois the final speech spectrum amplitude value corresponding to any frequency point, S o is the estimated value of the pure speech frequency domain amplitude corresponding to the first audio signal, S i is an estimated value of the pure speech frequency domain amplitude corresponding to the second audio signal.

[0199] Step S708, performing IFFT transformation on the joint speech spectrum estimation result to obtain a time domain audio signal to be output after speech enhancement, that is, an output signal x.

[0200] Specifically, the final speech spectrum amplitude value corresponding to each frequency point may be firstly subjected to IFFT transformation, and the time domain audio signal to be output after speech enhancement may be obtained by superimposing sine windows and performing overlap addition between frames.

[0201] The time domain audio signal after speech enhancement can be calculated according to formula (6).

[0202]

[0203] Where x(n) is the time domain audio signal after speech enhancement, w represents the window function, S io (k) is the frequency domain signal corresponding to the time domain signal after speech enhancement.

[0204] The second specific example

[0205] This specific example provides another method of audio processing, such as Figure 7e As shown, including:

[0206] Step S1004, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0207] Step S1005: Based on the first audio signal and the second audio signal, the prior probability of speech existence is calculated to obtain an audio signal after speech enhancement processing.

[0208] For the embodiment of the present application, before step S1005, the method further includes: performing Fourier transform on the first audio signal and the second audio signal respectively to obtain a frequency domain signal corresponding to the first audio signal (also referred to as a first frequency domain signal) and a frequency domain signal corresponding to the second audio signal (also referred to as a second frequency domain signal).

[0209] The specific manner of performing Fourier transform on the first audio signal and the second audio signal is detailed in the first specific example above, and is not limited in this example.

[0210] For the embodiment of the present application, step S1005 may specifically include: step S10051 (not shown in the figure), step S10052 (not shown in the figure), step S10053 (not shown in the figure), step S10054 (not shown in the figure) and step S10055 (not shown in the figure), wherein:

[0211] Step S10051: Determine a priori probability of existence of speech corresponding to the first audio signal.

[0212] Step S10052: Based on the determined prior probability of speech existence, perform noise estimation on the first audio signal.

[0213] Step S10053: perform noise estimation on the second audio signal.

[0214] Step S10054: perform speech spectrum estimation on the first audio signal and the second audio signal respectively according to the noise estimation results corresponding to the first audio signal and the second audio signal.

[0215] Step S10055: perform speech enhancement processing on the first audio signal and the second audio signal according to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal to obtain audio signals after the speech enhancement processing.

[0216] For the embodiment of the present application, the process of obtaining the prior probability of the first speech existence based on the first audio signal and the second audio signal and through the calculation and processing of the prior probability of the speech existence is detailed in the first specific example above and will not be repeated here.

[0217] For the embodiments of the present application, speech spectrum estimation and speech enhancement processing can be performed on the first audio signal and the second audio signal through the speech spectrum estimation method and speech enhancement processing method in the prior art; or the time domain signal after speech enhancement processing can be determined based on the prior probability of the existence of the first speech in the present application, and through signal noise estimation, speech spectrum estimation, joint speech estimation, and IFFT.

[0218] Specifically, the specific calculation method of determining the time domain signal after speech enhancement processing is based on the prior probability of the first speech, and through signal noise estimation, speech spectrum estimation, joint speech estimation, and IFFT. Please refer to the first specific example above for details, which will not be repeated in this example.

[0219] The third specific example

[0220] This specific example provides another method of audio processing, such as Figure 7f As shown, including:

[0221] Step S1006, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0222] Step S1007: Based on the first audio signal and the second audio signal, the prior probability of speech existence is calculated and processed to obtain the prior probability of speech existence corresponding to the first audio signal.

[0223] Before step S1007, the method further includes: performing Fourier transform on the first audio signal and the second audio signal respectively to obtain a frequency domain signal (also referred to as a first frequency domain signal) corresponding to the first audio signal and a frequency domain signal (also referred to as a second frequency domain signal) corresponding to the second audio signal.

[0224] Step S1007 specifically includes: obtaining a priori probability of speech existence corresponding to the first audio signal based on the first frequency domain signal and the second frequency domain signal and by calculating and processing a priori probability of speech existence.

[0225] Step S1008: Based on the following information, and by joint speech estimation processing, obtain an audio signal after speech enhancement processing:

[0226] an estimated value of noise variance corresponding to the first audio signal;

[0227] An estimated value of a pure speech spectrum amplitude corresponding to the first audio signal;

[0228] an estimated value of noise variance corresponding to the second audio signal;

[0229] An estimated value of the amplitude of the pure speech spectrum corresponding to the second audio signal.

[0230] For the embodiment of the present application, before step S1008, the method also includes: determining the estimated value of the noise variance corresponding to the first audio signal, the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal, the estimated value of the noise variance corresponding to the second audio signal, and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal based on the prior probability of speech existence corresponding to the first audio signal calculated in step S1007.

[0231] The specific calculation method is detailed in the first specific example above and will not be repeated here.

[0232] Further, in step S1008, based on the estimated value of the noise variance corresponding to the first audio signal, the estimated value of the pure speech spectrum amplitude corresponding to the first audio signal, the estimated value of the noise variance corresponding to the second audio signal, and the estimated value of the pure speech spectrum amplitude corresponding to the second audio signal, and through joint speech estimation processing, the specific calculation method of obtaining the audio signal after speech enhancement processing is detailed in the first specific example above and will not be repeated in this example.

[0233] Embodiment 2

[0234] The present application embodiment provides another audio processing method, such as Figure 8a As shown, the audio signal collected by the body conduction audio collection device of the detected headset and the signal to be played by the audio signal playback device (headphone speaker) are detected through voice activation detection to detect whether they are currently in a voice activation state to determine whether the user is currently uttering a voice. If it is detected that at least one of the body conduction audio collection device channel and the headphone speaker channel is in a voice activation state, the ambient sound cancellation processing is performed through the set filter, and voice enhancement processing is performed based on the audio signal after the ambient sound cancellation processing and the audio signal collected by the air conduction audio collection device of the headset to obtain a signal after voice enhancement processing, and the signal after voice enhancement processing is used as the output signal; if it is detected that both the body conduction audio collection device channel and the headphone speaker channel are in a voice inactive state, the parameter information of the set filter (i.e., the parameter information of the ambient sound cancellation filter processing) is updated according to the audio signal collected in the inactive state, and the filter in the corresponding figure is updated. The above content is introduced in detail below, specifically as Figure 8b As shown,

[0235] Step S1101, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0236] For the embodiment of the present application, when the user is speaking, the first audio signal may include not only the user's voice signal but also the ambient noise signal; the second audio signal includes the voice signal conducted through body tissue and collected by the body conduction audio acquisition device of the headset, and the audio signal played by the headset speaker and collected by the body conduction audio acquisition device.

[0237] Step S1102: Acquire a third audio signal to be played by the earphone speaker.

[0238] For the embodiment of the present application, step S1101 and step S1102 can be executed simultaneously.

[0239] Step S1103a: perform ambient sound cancellation processing on the second audio signal through the third audio signal to obtain the second audio signal after the ambient sound cancellation processing.

[0240] Before step S1103a, it is detected whether the current state is voice activated. When it is detected that the current state is voice activated, it is determined to execute step S1103a.

[0241] Specifically, in step S1103a, ambient sound cancellation processing is performed on the second audio signal through the third audio signal, including: performing ambient sound cancellation filtering processing on the third audio signal to obtain a filtered signal; and removing the filtered signal from the second audio signal to obtain a second audio signal after ambient sound cancellation processing.

[0242] Among them, the current voice activation state represents that the user is currently uttering a voice.

[0243] For the embodiment of the present application, the second audio signal after the ambient sound cancellation processing does not contain ambient noise, but only contains the voice signal conducted through body tissue and collected by the body conduction audio collection device.

[0244] Specifically, the second audio signal after the ambient sound cancellation processing is calculated by formula (7):

[0245]

[0246] Among them, ε is the second audio signal after the ambient sound cancellation processing; d is the expected signal collected by the body conduction audio collection device of the headset when the voice is currently activated, that is, the second audio signal; if the voice is currently activated, y is the signal after the above filtering processing; X is the third audio signal; k is the kth point in the time domain sampling point, which can be called the k moment, and this value is the index value; M is the order of the set filter; w i is the i-th order coefficient of the filter.

[0247] Step S1103b: if it is detected that the current state is in a voice inactive state, update the parameter information of the ambient sound cancellation filter processing.

[0248] For the embodiment of the present application, step S1103a may be executed before step S1103b or after step S1103b, which is not limited in the embodiment of the present application.

[0249] Specifically, updating the parameter information of the ambient sound cancellation filtering process in step S1103b includes: determining a prediction signal for the second audio signal based on the third audio signal; and updating the parameter information of the ambient sound cancellation filtering process according to the second audio signal and the prediction signal for the second audio signal.

[0250] Updating the parameter information of the ambient sound cancellation filter processing is to update the parameter information of the set filter. When the voice is not activated, such as Figure 8cAs shown, the signal (i.e., the third audio signal) X(k) to be played by the headphone speaker is predicted against the signal collected by the body conduction audio acquisition device to obtain a predicted signal (a predicted signal of the second audio signal after the ambient sound cancellation processing) y(k), and the parameter information of the set filter is updated by the expected signal collected by the body conduction audio acquisition device in an inactive state, that is, the updated parameter information W of the set filter is obtained, wherein the calculation formula of the updated parameter information of the set filter is shown in formula (8), wherein,

[0251] W(k+1)=W(k)+2με(k)X(K) (8)

[0252] Where W(k) is the filter coefficient at the kth moment; W(k+1) represents the coefficient at the next moment k+1 after k, that is, the updated coefficient; μ is a fixed empirical value; ε(k) is the difference between the expected signal d(k) and the predicted signal y(k) collected by the body conduction audio collection device of the headset when it is in an inactive state; where W={w 1 , w 2 , w 3 , w 4 …w M}.

[0253] Step S1104: determine an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0254] For the embodiment of the present application, step S1104 is performed after step S1103a.

[0255] When the voice is currently in an activated state, the second audio signal after the ambient sound cancellation processing in the embodiment of the present application can be equivalent to the second audio signal collected by the body conduction audio collection device in the first embodiment. The specific method of performing voice enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing is detailed in Example 1 and will not be repeated in this embodiment.

[0256] Further, the specific detection method for detecting whether the current state is voice activated is as follows: Figure 9aAs shown, voice activation detection is performed on the third audio signal to be played by the earphone speaker and the second audio signal collected by the body conduction audio collection device of the earphone respectively. If at least one is in an activated state, the correlation between the third audio signal to be played by the earphone speaker and the second audio signal collected by the body conduction audio collection device of the earphone is determined, that is, correlation detection is performed to obtain a correlation coefficient sequence, and then it is detected whether there is another peak in a preset range before the main peak of the correlation coefficient series. If so, it is determined that the current state is voice activated, otherwise it is in an inactive state. The following is combined with Figure 9b The voice activation detection is introduced in detail, including:

[0257] Step S1201: for the third audio signal and / or the second audio signal, determine whether the earphone speaker channel and / or the body conduction audio acquisition device channel is in a voice activation state.

[0258] Specifically, the third audio signal is calculated using a short-time energy algorithm or a zero-crossing rate algorithm to calculate whether the headphone speaker channel is in a voice-activated state; and / or the second audio signal is calculated using a short-time energy algorithm or a zero-crossing rate algorithm to calculate whether the body-conduction audio acquisition device channel is in a voice-activated state.

[0259] The short-time energy calculation formula is: Wherein, S(n) is the amplitude value of the frequency point n of the frequency domain signal corresponding to the third audio signal, or is the amplitude value of the frequency point n in the frequency domain signal corresponding to the second audio signal, and N is the frame length.

[0260] Among them, the zero-crossing rate algorithm formula is: in,

[0261] Wherein, S(n) is the amplitude value of the frequency point n of the frequency domain signal corresponding to the third audio signal, or is the amplitude value of the frequency point n in the frequency domain signal corresponding to the second audio signal, and N is the frame length.

[0262] For the embodiment of the present application, when the short-time energy value is greater than the preset threshold or the zero-crossing rate value is greater than the preset threshold, it is determined that the channel is in the voice activation state.

[0263] Step S1202: If at least one channel is in a voice-activated state, determine whether it is currently in a voice-activated state according to a correlation between the third audio signal and the second audio signal.

[0264] Specifically, in step S1202, determining whether the current state is in a voice activation state according to the correlation between the third audio signal and the second audio signal includes: calculating the correlation between the third audio signal and the second audio signal to obtain a correlation coefficient sequence; and determining whether the current voice is in an activation state based on the correlation coefficient sequence.

[0265] Specifically, the correlation between the third audio signal and the second audio signal is calculated by formula (9):

[0266]

[0267] Wherein, Cov(X, Y) is the cross-correlation value between the third audio signal and the second audio signal, Var[X] and Var[Y] are the signal variance value of the third audio signal and the signal variance value of the second audio signal, respectively.

[0268] Specifically, based on the correlation coefficient sequence, determining whether the current voice is in an active state includes: determining a main peak in the correlation coefficient sequence; if there is another peak within a preset delay range before the main peak in the correlation coefficient sequence, determining that the current voice is in an active state.

[0269] For the embodiments of this application, Fig.9c As shown, in the correlation coefficient sequence, if there is another peak (corresponding to the correlation peak in the figure) within the preset delay range before the main peak, it is determined that the current state is voice activated.

[0270] Because in AS mode, the user needs to be able to hear the sounds of the environment, so we need to record the noise outside the ear and then use the in-ear speaker to play it. Since there may be a delay in recording the audio signal outside the ear and then playing it in the in-ear speaker, if the user is currently in a speaking state, the speaking voice will be collected by the air conduction audio acquisition device and the body conduction audio acquisition device at the same time, and since the sound audio signal collected by the air conduction audio acquisition device needs to be recorded and then played through the in-ear speaker, there will be a delay; that is, the audio signal collected by the in-ear voice device is composed of two parts, one part is the signal collected by the body conduction audio acquisition device through body tissue conduction, and the other part is the part collected by the body conduction audio acquisition device through the air conduction audio acquisition device and played by the in-ear speaker. Therefore, the audio signal at this time will have two peaks when correlated, and the second peak is the autocorrelation of the audio signal collected by the air conduction audio acquisition device, which will be greater than the peak of the cross-correlation of the signal collected by the body conduction audio acquisition device through body tissue conduction (excluding the high-frequency component of the external ear signal) and the audio signal collected by the air conduction audio acquisition device. Figure 9d As shown, Figure 9d Figure (1) shows the audio signal collected by the air conduction audio collection device; Figure 9d (2) in the figure shows the audio signal that the earphone speaker is about to play; Figure 9d Figure (3) shows the audio signal collected by the body conduction audio collection device when the headset is in non-AS mode; Figure 9dFigure (4) shows the audio signal collected by the body conduction audio collection device when the earphone is in AS mode.

[0271] Embodiment 3

[0272] The present application embodiment provides another audio processing method, such as Fig.10a As shown, including:

[0273] Step S1301, obtaining a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device.

[0274] Step S1302: Perform ambient sound cancellation processing on the second audio signal to obtain a second audio signal after the ambient sound cancellation processing.

[0275] For the embodiment of the present application, if the current mode of the headset is a non-ambient sound (AS) mode, ambient sound cancellation processing may not be performed on the second audio signal; if the current mode of the headset is an AS mode, ambient sound cancellation processing may be performed on the second audio signal.

[0276] Step S1302 includes: step S1302a (not shown in the figure) to step S1302b (not shown in the figure), wherein:

[0277] Step S1302a: Obtain a third audio signal to be played by the earphone speaker.

[0278] Step S1302b: perform ambient sound cancellation processing on the second audio signal through the third audio signal to obtain a second audio signal after the ambient sound cancellation processing.

[0279] In a possible implementation, step S1302b includes: step S1302b1 (not shown in the figure) to step S1302b2 (not shown in the figure), wherein:

[0280] Step S1302b1: Perform ambient sound cancellation filtering on the third audio signal to obtain a filtered signal.

[0281] Step S1302b2: remove the filtered signal from the second audio signal to obtain the second audio signal after the ambient sound cancellation processing.

[0282] Specifically, step S1302b includes: step S1302b3 (not shown in the figure) to step S1302b4 (not shown in the figure), wherein:

[0283] Step S1302b3: Detect whether the current state is voice activated, where the voice activated state indicates that the user is uttering voice.

[0284] Specifically, step S1302b3 may include: step S1302b31 (not shown in the figure) to step S1302b32 (not shown in the figure), wherein:

[0285] Step S1302b31: determine whether the earphone speaker channel and / or the body conduction audio acquisition device channel is in a voice activation state according to the second audio signal and / or the third audio signal.

[0286] Step S1302b32: If at least one channel is in a voice-activated state, determine whether it is currently in a voice-activated state according to a signal correlation between the second audio signal and the third audio signal.

[0287] Specifically, in step S1302b32, determining whether the current state is in the voice activation state according to the signal correlation between the second audio signal and the third audio signal may include steps Sd (not shown in the figure) to Se (not shown in the figure), wherein:

[0288] Step Sd: Determine a correlation coefficient sequence between the second audio signal and the third audio signal.

[0289] Step Se: determine whether the current state is voice activated based on the correlation coefficient sequence.

[0290] Specifically, step Se may include: step Se1 (not shown in the figure) and step Se2 (not shown in the figure), wherein:

[0291] Step Se1: Determine the main peak value in the correlation coefficient sequence.

[0292] Step Se2: If there is another peak within a preset delay range before the main peak in the correlation coefficient sequence, it is determined that the current state is voice activated.

[0293] Step S1302b4: If it is detected that the voice activation state is in progress, the step of performing ambient sound cancellation processing on the second audio signal by using the third audio signal is executed.

[0294] In a possible implementation, the method further includes: step Sc (not shown in the figure), wherein:

[0295] Step Sc: if it is detected that the current state is in a voice inactive state, update the parameter information of the ambient sound cancellation filter processing.

[0296] Step Sc can be performed after step S1302b3.

[0297] Step S1303: Based on the signal correlation between the first audio signal and the second audio signal, perform speech enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing to obtain an audio signal to be output after the speech enhancement processing.

[0298] Specifically, in step S1303, based on the signal correlation between the first audio signal and the second audio signal, the first audio signal and the second audio signal after the ambient sound cancellation processing are subjected to speech enhancement processing, which may specifically include step S13031 (not shown in the figure), step S13032 (not shown in the figure) and step S13033 (not shown in the figure), wherein:

[0299] Step S13031: perform noise estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0300] Specifically, the noise estimation of the first audio signal in step S13031 may include steps Sf (not shown in the figure) to Sg (not shown in the figure), wherein:

[0301] Step Sf, determining a priori probability of speech existence corresponding to the first audio signal and the second audio signal after ambient sound cancellation processing.

[0302] Specifically, step Sf may include: step Sf1 (not shown in the figure) and step Sf2 (not shown in the figure), wherein:

[0303] Step Sf1, determining a signal frequency amplitude ratio between a first audio signal and a second audio signal after ambient sound cancellation processing.

[0304] Step Sf2: determining the prior probability of speech existence corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing based on the signal frequency amplitude ratio.

[0305] Step Sg: performing noise estimation on the first audio signal based on the prior probability of speech existence.

[0306] Specifically, step Sg may include step Sg1 (not shown in the figure) and step Sg2 (not shown in the figure), wherein:

[0307] Step Sg1: Based on the prior probability of speech existence, determine the corresponding posterior probability of speech existence.

[0308] Step Sg2: performing noise estimation on the first audio signal based on the posterior probability of speech existence.

[0309] Step S13032: perform speech spectrum estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing according to the noise estimation results corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0310] Step S13033: perform speech enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing according to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0311] Specifically, step S13033 may include step S13033a (not shown in the figure), wherein:

[0312] Step S13033a: perform speech enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing according to the noise estimation result corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing, and the speech spectrum estimation result corresponding to the second audio signal after the first audio signal and the ambient sound cancellation processing.

[0313] Specifically, step S13033a may include step Sh (not shown in the figure) to step Si (not shown in the figure), wherein:

[0314] Step Sh: perform joint speech spectrum estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing according to the noise estimation result corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing, and the speech spectrum estimation result corresponding to the first audio signal and the second audio signal after the ambient sound cancellation processing.

[0315] Specifically, step Sh may include step Sh1 (not shown in the figure) to step Sh2 (not shown in the figure), wherein:

[0316] Step Sh1, determine the mean of the third Gaussian distribution model based on a first Gaussian distribution model whose mean is the speech spectrum estimation result of the first audio signal and whose variance is the noise estimation result of the first audio signal, and a second Gaussian distribution model whose mean is the speech spectrum estimation result of the second audio signal after ambient sound cancellation processing and whose variance is the noise estimation result of the second audio signal after ambient sound cancellation processing.

[0317] Step Sh2: determining a joint speech spectrum estimation result of performing joint speech spectrum estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing according to the mean value of the third Gaussian distribution model.

[0318] Step S1: Obtain the audio signal to be output after speech enhancement processing according to the obtained joint speech spectrum estimation result.

[0319] For the embodiments of the present application, Embodiment 3 includes the technical solutions of Embodiment 1 and Embodiment 2, wherein the specific implementation methods of each step in Embodiment 3 are detailed in the above-mentioned Embodiment 1 and Embodiment 2, and will not be repeated in this embodiment.

[0320] The audio processing method proposed in the embodiment of the present application allows the headphone user to turn on the ambient sound mode when using the headphone for a call, so that the user who is talking with the headphone can also clearly hear the surrounding environmental sound, avoiding the real danger of being unaware of the surrounding environmental sound when wearing the headphone for a call, and being able to remain sensitive to the surrounding environmental sound when wearing the headphone for a call, making the experience of using the headphone for a call easy and natural. In addition, based on the correlation of the audio signals obtained by air conduction and body conduction, joint enhancement is performed, and the characteristics of the audio signals obtained by air conduction and body conduction (the audio collected by body conduction contains little noise, but the bandwidth is insufficient, and the audio collected by air conduction has a high bandwidth, but contains a lot of environmental noise) are taken into account to make up for their shortcomings, and the high intelligibility of the voice is retained while reducing the noise, so that the voice heard by the other party during the call is clean and natural, and the intelligibility of the voice is improved. Even if the user is in a high-noise environment, the sound transmitted to the far end by the headphone user is highly intelligible.

[0321] Embodiment 4

[0322] To further explain the technical solution in Example 3, the embodiment of the present application includes two specific examples, which respectively introduce methods for performing voice enhancement on collected audio signals in two different application scenarios, including a first specific example and a second specific example, wherein the first specific example introduces an application scenario in which a device user communicates with a remote call user, and processes the collected audio signal and sends it to the remote call user with whom a communication connection is established; the second specific example introduces an application scenario in which voice-based command recognition is performed, and then the audio signal collected from the device user is processed, and a voice command is issued and the execution of the voice command is controlled, wherein the device user in this embodiment is a user of headphones provided with two audio collection devices, a body conduction audio collection device and an air conduction audio collection device.

[0323] The first specific example

[0324] This specific example introduces that in an application scenario where a device user is communicating with a remote call user, the collected audio signal is processed and sent to the remote call user who has established a communication connection with the device user. Fig.10b As shown,

[0325] Step 1: The device user establishes a call connection with the remote call user;

[0326] Step 2: The user of the device makes a voice call, for example, "Hello?";

[0327] Step 3: When the headset is in AS mode, voice activation detection is performed on the collected audio signal, and in the activated state, ambient sound cancellation processing is performed; in the inactivated state, parameter information of the set filter is updated;

[0328] Step 4: Perform speech enhancement processing on the audio signal after the ambient sound is cancelled (including: time-frequency conversion, noise signal estimation, speech spectrum estimation, joint enhancement and frequency-time conversion);

[0329] Step 5: Send the audio signal after voice enhancement processing to the remote call user;

[0330] Step 6: Receive the voice of the remote user.

[0331] The second specific example

[0332] This specific example introduces the process of issuing voice commands and controlling the execution of voice commands in an application scenario of voice-based command recognition, after processing the audio signal collected by the device using the user, such as Fig.10c As shown,

[0333] Step 1: The device user issues a voice command, such as "open the map";

[0334] Step 2: When the headset is in AS mode, voice activation detection is performed on the collected audio signal, and in the activated state, ambient sound cancellation processing is performed; in the inactivated state, parameter information of the set filter is updated;

[0335] Step 3: Perform speech enhancement processing on the audio signal after the ambient sound is cancelled (including: time-frequency conversion, noise signal estimation, speech spectrum estimation, joint enhancement and frequency-time conversion);

[0336] Step 4: Identify the voice command after voice enhancement processing and execute the command, such as "open the map APP".

[0337] Embodiment 5

[0338] The present application embodiment provides an electronic device, which is applicable to the above method embodiment. The electronic device may be a headphone device, such as Fig.11 As shown, the electronic device 1400 includes: an air conduction audio acquisition device 1401, a body conduction audio acquisition device 1402, an audio signal playback device 1403, a processor 1404 and a memory 1405; wherein,

[0339] An air conduction audio acquisition device 1401, used to acquire a first audio signal conducted through air;

[0340] A body-conducted audio acquisition device 1402, used to acquire a second audio signal conducted through body tissue;

[0341] An audio signal playing device 1403, used for playing audio signals;

[0342] The memory 1405 is configured to store machine-readable instructions, which, when executed by the processor 1404 , enable the processor 1404 to perform the above method.

[0343] Fig.12 Schematically shows a block diagram of a computing system of an electronic device that can be used to implement the present disclosure according to an embodiment of the present disclosure. Fig.12 As shown, the computing system 1500 includes a processor 1510, a computer-readable storage medium 1520, an output interface 1530, and an input interface 1540. The computing system 1500 can execute the above reference Figure 5 , Figure 6 , Figure 7a , Figure 7c , Figure 7e , Figure 7f , Figure 8b , Figure 9b , Fig.10a The described method is used to implement speech enhancement processing on the signals collected by the air conduction audio collection device and the signals collected by the body conduction audio collection device to obtain audio signals with better effects for speech transmission or speech recognition.

[0344] Specifically, the processor 1510 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1510 may also include an onboard memory for cache purposes. The processor 1810 may be a processor for executing reference Figure 5 , Figure 6 , Figure 7a , Figure 7c , Figure 7e , Figure 7f , Figure 8b , Figure 9b , Fig.10a A single processing unit or multiple processing units may be used for different actions of the described method flow.

[0345] Computer readable storage medium 1520, for example, can be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices, devices or propagation media. Specific examples of readable storage media include: magnetic storage devices, such as magnetic tapes or hard disks (HDD); optical storage devices, such as compact disks (CD-ROM); memory, such as random access memory (RAM) or flash memory; and / or wired / wireless communication links.

[0346] The computer readable storage medium 1520 may include a computer program 1521, which may include code / computer executable instructions, which when executed by the processor 1510 causes the processor 1510 to perform, for example, the above-mentioned combination Figure 5 , Figure 6 , Figure 7a , Figure 7c , Figure 7e , Figure 7f , Figure 8b , Figure 9b , Fig.10a The method flow described and any variations thereof. Computer program 1521 may be configured to have, for example, computer program code including computer program modules. For example, in an exemplary embodiment, the code in computer program 1521 may include one or more program modules, for example, including 1521A, module 1521B, ... It should be noted that the division method and number of modules are not fixed, and those skilled in the art may use appropriate program modules or program module combinations according to actual conditions. When these program module combinations are executed by processor 1510, processor 1510 may execute, for example, the above combination of Figure 5 , Figure 6 , Figure 7a , Figure 7c , Figure 7e , Figure 7f , Figure 8b , Figure 9b , Fig.10a The described method sequences and any variations thereof.

[0347] According to an embodiment of the present disclosure, the processor 1510 may use the output interface 1530 and the input interface 1540 to perform the above combination. Figure 5 , Figure 6 , Figure 7a , Figure 7c , Figure 7e , Figure 7f , Figure 8b , Figure 9b , Fig.10a The described method sequences and any variations thereof.

[0348] An embodiment of the present application provides an electronic device. By acquiring a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, the embodiment of the present application can perform speech enhancement processing on the first audio signal and the second audio signal based on the signal correlation between the first audio signal and the second audio signal, and obtain an audio signal to be output after the speech enhancement processing. That is, based on the correlation between the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, speech enhancement processing is performed on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, so that a better speech signal can be obtained for speech transmission or speech recognition.

[0349] The embodiment of the present application provides another electronic device, which obtains a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, then performs ambient sound cancellation processing on the second audio signal, and determines an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing. That is, by first performing ambient sound cancellation processing on the audio signal collected by the body conduction audio collection device, a voice signal that does not contain ambient sound is obtained, and based on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device after the ambient sound cancellation processing, a signal to be output is obtained for voice transmission or voice recognition, so that a better audio signal can be obtained for voice transmission or voice recognition.

[0350] Embodiment 6

[0351] The present application embodiment provides an audio processing device, such as Fig.13 As shown, the audio processing device 1600 includes: a first acquisition module 1601, a speech enhancement processing module 1602, wherein:

[0352] The first acquisition module 1601 is used to acquire the first audio signal collected by the air conduction audio acquisition device and the second audio signal collected by the body conduction audio acquisition device.

[0353] The speech enhancement processing module 1602 is used to perform speech enhancement processing on the first audio signal and the second audio signal acquired by the first acquisition module 1601 based on the signal correlation between the first audio signal and the second audio signal, so as to obtain an audio signal to be output after the speech enhancement processing.

[0354] An embodiment of the present application provides an audio processing device. By acquiring a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, the embodiment of the present application can perform speech enhancement processing on the first audio signal and the second audio signal based on the signal correlation between the first audio signal and the second audio signal, and obtain an audio signal to be output after the speech enhancement processing. That is, based on the correlation between the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, speech enhancement processing is performed on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device, so that a better speech signal can be obtained for speech transmission or speech recognition.

[0355] The embodiments of the present application are applicable to the above-mentioned method embodiments and will not be elaborated here.

[0356] Embodiment 7

[0357] The present application embodiment provides another audio processing device, such as Fig.14 As shown, the audio processing device 1700 includes: a second acquisition module 1701, an ambient sound cancellation processing module 1702, and a determination module 1703, wherein:

[0358] The second acquisition module 1701 is used to acquire the first audio signal collected by the air conduction audio acquisition device and the second audio signal collected by the body conduction audio acquisition device.

[0359] The ambient sound cancellation processing module 1702 is used to perform ambient sound cancellation processing on the second audio signal acquired by the second acquisition module 1701 .

[0360] The determination module 1703 is used to determine the audio signal to be output based on the first audio signal acquired by the second acquisition module 1701 and the second audio signal after the ambient sound cancellation processing module 1702 performs the ambient sound cancellation processing.

[0361] The embodiment of the present application provides an audio processing device, which obtains a first audio signal collected by an air conduction audio collection device and a second audio signal collected by a body conduction audio collection device, then performs ambient sound cancellation processing on the second audio signal, and determines an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing. That is, by first performing ambient sound cancellation processing on the audio signal collected by the body conduction audio collection device, a voice signal that does not contain ambient sound is obtained, and based on the audio signal collected by the air conduction audio collection device and the audio signal collected by the body conduction audio collection device after the ambient sound cancellation processing, a signal to be output is obtained for voice transmission or voice recognition, so that a better audio signal can be obtained for voice transmission or voice recognition.

[0362] The embodiments of the present application are applicable to the above-mentioned method embodiments and will not be described in detail here.

[0363] It will be appreciated by those skilled in the art that the present invention includes devices for performing one or more of the operations in the present application. These devices may be specially designed and manufactured for the desired purpose, or may include known devices in general-purpose computers. These devices have computer programs stored therein, which are selectively activated or reconstructed. Such computer programs may be stored in a device (e.g., computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, computer readable medium including but not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, readable medium includes any medium that stores or transmits information in a readable form by a device (e.g., computer).

[0364] Those skilled in the art will appreciate that each block in these structure diagrams and / or block diagrams and / or flow charts and combinations of blocks in these structure diagrams and / or block diagrams and / or flow charts can be implemented using computer program instructions. Those skilled in the art will appreciate that these computer program instructions can be provided to a general-purpose computer, a professional computer, or a processor of other programmable data processing methods to implement, thereby executing the scheme specified in the block or multiple blocks of the structure diagram and / or block diagram and / or flow chart disclosed in the present invention through the processor of the computer or other programmable data processing method.

[0365] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes discussed in the present invention may be alternated, modified, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and schemes discussed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted.

[0366] The above are only some embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method performed by an electronic device, It is characterized in that In the case of starting a mode in which an air conduction audio collection device collects ambient sound and plays it through a loudspeaker, the method includes: Acquire a first audio signal collected by an air conduction audio collection device, a second audio signal collected by a body conduction audio collection device, and a third audio signal to be played by an audio signal playing device; Performing ambient sound cancellation filtering on the third audio signal to obtain a filtered signal; Removing the filtered signal from the second audio signal to obtain a second audio signal after ambient sound cancellation processing; An audio signal to be output is determined based on the first audio signal and the second audio signal after the ambient sound cancellation processing.

2. The method according to claim 1, It is characterized in that Performing ambient sound cancellation filtering on the third audio signal to obtain a filtered signal includes: Detecting whether the user is currently in a voice activation state, wherein the voice activation state indicates that the user is speaking; If it is detected that the voice activation state is in progress, the step of performing ambient sound cancellation filtering on the third audio signal to obtain a filtered signal is performed.

3. The method according to claim 2, It is characterized in that The method further comprises: If it is detected that the current state is in a voice inactive state, the parameter information of the ambient sound cancellation filtering process is updated.

4. The method according to claim 3, It is characterized in that Updating parameter information of the ambient sound cancellation filter processing includes: determining a prediction signal for the second audio signal based on the third audio signal; The parameter information of the ambient sound canceling filtering process is updated according to the second audio signal and the prediction signal for the second audio signal.

5. The method according to any one of claims 2 to 4, It is characterized in that Detect whether the voice is currently activated, including: Determine, according to the second audio signal and / or the third audio signal, whether a channel of an audio signal playback device and / or a channel of a body conduction audio acquisition device is in a voice activation state; If at least one channel is in a voice-activated state, it is determined whether the channel is currently in a voice-activated state according to a signal correlation between the second audio signal and the third audio signal.

6. The method according to claim 5, It is characterized in that Determining whether a voice activation state is currently in effect according to a signal correlation between the second audio signal and the third audio signal includes: determining a correlation coefficient sequence between the second audio signal and the third audio signal; Based on the correlation coefficient sequence, it is determined whether the current state is a voice activation state.

7. The method according to claim 6, It is characterized in that Determining whether the current state is in a voice activation state based on the correlation coefficient sequence includes: In the correlation coefficient sequence, determining a main peak; If, in the correlation coefficient sequence, there is another peak within a preset delay range before the main peak, it is determined that the current state is a voice activation state.

8. The method according to claim 1, It is characterized in that Determining an audio signal to be output based on the first audio signal and the second audio signal after the ambient sound cancellation processing includes: Based on the signal correlation between the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing to obtain an audio signal to be output after the speech enhancement processing.

9. The method according to claim 8, It is characterized in that Based on the signal correlation between the first audio signal and the second audio signal, performing speech enhancement processing on the first audio signal and the second audio signal after the ambient sound cancellation processing, including: performing noise estimation on the first audio signal and the second audio signal respectively; According to the noise estimation results corresponding to the first audio signal and the second audio signal, respectively, performing speech spectrum estimation on the first audio signal and the second audio signal; According to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing.

10. The method according to claim 9, It is characterized in that Performing noise estimation on the first audio signal includes: Determining a priori probability that speech corresponding to the first audio signal exists; Based on the prior probability of the presence of speech, noise estimation is performed on the first audio signal.

11. The method according to claim 10, It is characterized in that Determining a priori probability of existence of speech corresponding to the first audio signal includes: determining a signal frequency amplitude ratio between the first audio signal and the second audio signal; Based on the signal frequency-amplitude ratio, a priori probability of existence of speech corresponding to the first audio signal is determined.

12. The method according to claim 10, It is characterized in that Based on the prior probability of the existence of the speech, performing noise estimation on the first audio signal includes: Based on the prior probability of the existence of the speech, determining a posterior probability of the corresponding speech existence; Based on the posterior probability of the existence of speech, noise estimation is performed on the first audio signal.

13. The method according to claim 9, It is characterized in that According to the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing, including: According to the noise estimation results corresponding to the first audio signal and the second audio signal and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing.

14. The method according to claim 13, It is characterized in that According to the noise estimation results corresponding to the first audio signal and the second audio signal, and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, speech enhancement processing is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing, including: According to the noise estimation results corresponding to the first audio signal and the second audio signal, and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, performing joint speech spectrum estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing; According to the obtained joint speech spectrum estimation result, an audio signal to be output after speech enhancement processing is obtained.

15. The method according to claim 14, It is characterized in that According to the noise estimation results corresponding to the first audio signal and the second audio signal, and the speech spectrum estimation results corresponding to the first audio signal and the second audio signal, a joint speech spectrum estimation is performed on the first audio signal and the second audio signal after the ambient sound cancellation processing, including: Determine the mean of the third Gaussian distribution model according to a first Gaussian distribution model whose mean is the speech spectrum estimation result of the first audio signal and whose variance is the noise estimation result of the first audio signal, and a second Gaussian distribution model whose mean is the speech spectrum estimation result of the second audio signal and whose variance is the noise estimation result of the second audio signal; A joint speech spectrum estimation result of performing joint speech spectrum estimation on the first audio signal and the second audio signal after the ambient sound cancellation processing is determined according to the mean value of the third Gaussian distribution model.

16. An electronic device, It is characterized in that include: Air conduction audio acquisition equipment, body conduction audio acquisition equipment, audio signal playback equipment, processor and memory; wherein, The air-conducted audio acquisition device is used to acquire a first audio signal conducted through the air; The body-conducted audio acquisition device is used to acquire a second audio signal conducted through body tissue; The audio signal playing device is used to play the audio signal; The memory is configured to store machine-readable instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 15.

17. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Detecting voiced and unvoiced speech using both acoustic and nonacoustic sensors

    CA2448669A1

  • System for enhancing sound definition

    CN101105941A

  • Voice noise reduction device

    CN101853667A

  • Method and apparatus for multi-sensory speech enhancement

    CN101887728A

  • Audio headset integrated with microphone and headphone

    CN102761643A