Audio signal processing method, device, electronic device and storage medium

By acquiring audio signals from directional and omnidirectional microphones, determining the direction of the sound source and speech mode, and performing audio signal fusion processing, the problem of inconvenient use of microphones and poor signal quality in meetings is solved, and the quality of audio signals and user experience are improved. .

CN115038014BActive Publication Date: 2024-10-29SHENZHEN JIAYZ PHOTO IND LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202210625968.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-10-29
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In daily meetings, directional microphones are used to collect the audio signals of the speaker's voice, but when other participants speak, the user needs to manually transmit them, which is an inconvenient process. Although omnidirectional microphones can collect the voices of multiple people, they also More environmental noise leads to poor signal quality.

Method used

By acquiring the audio signals collected by the directional microphone and the omnidirectional microphone, the direction of the sound source is determined according to the collection parameters of the omnidirectional microphone, the speech mode is determined based on the strength of the directional microphone signal, and the fusion processing of the audio signals is performed to obtain the target audio signal. .

Benefits of technology

It achieves the acquisition of audio signals from all directions without the need for the user to manually pass the microphone, and improves the quality of the audio signals through signal fusion, improving user experience and signal-to-noise ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115038014B_ABST
    Figure CN115038014B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose an audio signal processing method, device, electronic device and storage medium. The audio signal processing method includes: obtaining a first audio signal collected by a directional microphone, and obtaining a second audio signal collected by an omnidirectional microphone; determining the direction of the sound source according to the collection parameters of the second audio signal; determining the speech mode according to the direction of the sound source and the intensity of the first audio signal; fusing the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal. The embodiments of the present invention can receive audio signals from all directions without the need for a transmission microphone, thereby improving the user experience. The target audio signal is obtained by fusing the first audio signal and the second audio signal based on the speech mode. The received audio signal can be processed more accurately, effectively improving the signal-to-noise ratio of the target audio signal, and further improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to signal processing technology, and in particular to an audio signal processing method, device, electronic device and storage medium. Background Art

[0002] Microphones for collecting audio signals are generally divided into directional microphones and omnidirectional microphones. Directional microphones are used to collect audio signals from the speaker, while omnidirectional microphones are used to collect audio signals from multiple people.

[0003] In daily meetings, directional microphones are often used to pick up the speaker's voice and audio signals. When other participants are speaking, the microphone needs to be passed on, which is very inconvenient. Omnidirectional microphones can pick up the voice and audio signals of multiple people, but they will also pick up more ambient noise, resulting in poor signal quality. Summary of the Invention

[0004] Embodiments of the present invention provide an audio signal processing method, apparatus, electronic device, and storage medium. The embodiments of the present invention can be applied to perform different noise reduction processes on received audio signals according to different speech modes.

[0005] In a first aspect, an embodiment of the present invention provides an audio signal processing method, the method comprising:

[0006] Acquire a first audio signal collected by the directional microphone, and acquire a second audio signal collected by the omnidirectional microphone;

[0007] determining a sound source direction according to acquisition parameters of the second audio signal;

[0008] determining a speech mode based on the sound source direction and the intensity of the first audio signal;

[0009] The first audio signal and the second audio signal are fused based on the speech pattern to obtain a target audio signal.

[0010] In a second aspect, an embodiment of the present invention provides an audio signal processing device, the device comprising:

[0011] a signal acquisition module, configured to acquire a first audio signal collected by the directional microphone and a second audio signal collected by the omnidirectional microphone;

[0012] a direction determination module, configured to determine a sound source direction based on acquisition parameters of the second audio signal;

[0013] a mode determination module, configured to determine a speech mode according to the direction of the sound source and the intensity of the first audio signal;

[0014] The target signal acquisition module is configured to perform fusion processing on the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the audio signal processing method as described in any one of the embodiments of the present invention is implemented.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the audio signal processing method as described in any one of the embodiments of the present invention.

[0017] In an embodiment of the present invention, an audio device including a directional microphone and an omnidirectional microphone is used to obtain a first audio signal collected by the directional microphone and a second audio signal collected by the omnidirectional microphone; the direction of the sound source is determined according to the collection parameters of the second audio signal; the speech mode is determined according to the direction of the sound source and the intensity of the first audio signal; the first audio signal and the second audio signal are fused based on the speech mode to obtain a target audio signal. That is, in an embodiment of the present invention, the audio device has both a directional microphone and an omnidirectional microphone, and can obtain audio signals received by both directional microphones and omnidirectional microphones, combining the advantages of both types of microphones. Without the need for a transmission microphone, audio signals from all directions can be received, thereby improving the user experience; the audio signals collected by the two types of microphones are fused based on the speech mode to obtain a target audio signal, and the quality of the obtained target audio signal is improved by signal fusion, further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic flow chart of an audio signal processing method provided by an embodiment of the present invention;

[0020] Figure 2 A flowchart of obtaining a target audio signal provided by an embodiment of the present invention;

[0021] Figure 3 Another flow chart of the audio signal processing method provided by an embodiment of the present invention;

[0022] Figure 4 A schematic diagram of a signal extraction process for the present invention;

[0023] Figure 5 A structural diagram of an audio signal processing device provided by an embodiment of the present invention;

[0024] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0026] Figure 1 The present invention provides a flowchart of an audio signal processing method according to an embodiment of the present invention. The method according to an embodiment of the present invention is applicable to an audio device having two types of microphones. The method can be executed by an audio signal processing device according to an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated into an electronic device, which can be, for example, an audio device. The following embodiments will be described using the example of the device being integrated into an audio device, which includes a directional microphone and an omnidirectional microphone, and the number of directional microphones can be one or more.

[0027] refer to Figure 1 , the method may specifically include the following steps:

[0028] Step 101: Acquire a first audio signal collected by a directional microphone, and acquire a second audio signal collected by an omnidirectional microphone.

[0029] Directional microphones, based on multi-diaphragm technology, receive sound signals by varying the cavity settings of the microphone capsule and mixing and modulating the multiple diaphragms. Directional microphones are highly sensitive to sound signals in their designated direction and less sensitive to sound signals from other directions. Omnidirectional microphones can receive sound signals from any direction and have equal sensitivity to all directions, making them suitable for use in places like conference rooms and offices. For example, in a multi-person meeting, both directional and omnidirectional microphones are deployed. The directional microphone can capture the sound signal of the person speaking with the directional microphone, while the omnidirectional microphone can capture the sound signal of the person speaking with the directional microphone as well as the sound signals from other participants. Of course, while the directional microphone receives the human voice audio signal, it also receives ambient audio signals in its direction. While the omnidirectional microphone receives all human voice audio signals, it also receives the ambient audio signals in the meeting. Specifically, the human voice audio signal and the ambient audio signal received by the directional microphone are the first audio signal, while the human voice audio signal and the ambient audio signal received by the omnidirectional microphone are the second audio signal.

[0030] Step 102: Determine the sound source direction according to the acquisition parameters of the second audio signal.

[0031] The second audio signal includes a human voice audio signal and an ambient audio signal collected by an omnidirectional microphone. The collection parameters include the time the audio signal was received, the speed of sound of the audio signal, the simulated angular frequency, amplitude, and phase of the audio signal. Specifically, the direction of the audio signal's sound source can be determined using a controllable beamforming method based on maximum output power, a high-resolution spectrogram estimation method, and a sound source localization method based on sound time difference. The controllable beamforming method based on maximum output power forms a beam by weighted summation of the collected audio signal, guides the beam by searching for possible locations of the sound source, and then modifies the weights to maximize the output signal power of the microphone array. The high-resolution spectrum estimation method estimates the direction of the sound source by decomposing the covariance matrix. The high-resolution spectrum estimation method is not limited by the sampling frequency and can achieve arbitrary positioning to a certain extent. The sound source localization method based on sound time difference can locate the direction of the sound source by estimating the time difference between the signal reaching each microphone, or it can determine the sound source position by using the geometric relationship between the sound signal and the microphone. Furthermore, the direction of the sound source is determined using the above-mentioned sound source localization method according to acquisition parameters such as the time when the audio signal is received, the speed of sound of the audio signal, the analog angular frequency, amplitude and phase of the audio signal.

[0032] Step 103: Determine a speech mode according to the direction of the sound source and the strength of the first audio signal.

[0033] Speech modes include single-person speech mode and multi-person speech mode. Single-person speech mode is suitable for scenarios where audio signals from only one person or from a specific direction need to be collected. For example, in a lecture hall, only the audio signal emitted by the speaker needs to be collected, while in scenes such as theater performances and concerts, only the audio signals emitted by the actors on stage need to be collected. Multi-person speech mode is suitable for scenarios where audio signals from multiple people or from multiple directions need to be collected. For example, in a multi-person meeting, audio signals emitted by each participant need to be collected. The speech mode can be determined based on the direction of the sound source and the strength of the first audio signal. Specifically, when the strength of the first audio signal collected by the directional microphone reaches a certain level and the direction of the audio signal is within the direction specified by the directional microphone, it indicates that someone is emitting sound in the direction where the directional microphone is located, and the speech mode can be determined as single-person mode. If the strength of the first audio signal collected by the directional microphone is relatively weak, or if the strength of the first audio signal reaches a certain level but the signal direction is not in the direction indicated by the directional microphone, it indicates that the person speaking is not in the direction where the directional microphone is located, and the speech mode can be determined as multi-person mode.

[0034] Step 104: Perform fusion processing on the first audio signal and the second audio signal based on the speech pattern to obtain a target audio signal.

[0035] The fusion processing includes fusing the amplified human voice audio signal and the noise-suppressed ambient audio signal in the first audio signal and the second audio signal to finally obtain the target audio signal. Figure 2 This is a flow chart of obtaining a target audio signal provided by an embodiment of the present invention, such as Figure 2 As shown, after acquiring the first and second audio signals, the human voice audio signal and the ambient audio signal are extracted from the first and second audio signals. The extracted human voice audio signal is amplified to obtain a human voice enhancement signal, and the extracted ambient audio signal is subjected to noise suppression to obtain a noise-suppressed audio signal. The human voice enhancement signal and the noise-suppressed audio signal are then fused to ultimately obtain the target audio signal.

[0036] The technical solution of this embodiment can obtain a first audio signal collected by a directional microphone and a second audio signal collected by an omnidirectional microphone. The direction of the sound source is determined according to the collection parameters of the second audio signal. The speech mode is determined according to the direction of the sound source and the intensity of the first audio signal. The first audio signal and the second audio signal are fused based on the speech mode to obtain a target audio signal. By utilizing the technical solution of this embodiment, audio signals from various directions can be received, and the speech mode can be determined based on the direction of the sound source and the intensity of the first audio signal, the accuracy of determining the speech mode based on the received audio signal can be improved. The target audio signal is obtained by fusion processing the first audio signal and the second audio signal based on the speech mode. The received audio signal can be processed more accurately, the signal-to-noise ratio of the target audio signal can be improved, and the user experience can be further improved.

[0037] Figure 3 This is another flow chart of an audio signal processing method provided by an embodiment of the present invention. This embodiment is a refinement of the above embodiment. The specific method can be as follows Figure 3 As shown, the method may include the following steps:

[0038] Step 201: Acquire a first audio signal collected by a directional microphone, and acquire a second audio signal collected by an omnidirectional microphone.

[0039] Step 202: Determine the sound source direction according to the acquisition parameters of the second audio signal.

[0040] The acquisition parameters include the time the second audio signal was received, the speed of the audio signal, the analog angular frequency, amplitude, and phase of the audio signal. An omnidirectional microphone can receive audio signals from any direction. Therefore, the second audio signal received by the omnidirectional microphone can be used to determine the sound source direction of the first audio signal.

[0041] In this solution, there are at least two omnidirectional microphones, and the sound source direction is determined based on the acquisition parameters of the second audio signal, including: calculating the sum of the generalized cross-correlation GCC-PHAT functions of the at least two omnidirectional microphones weighted by the phase transformation of the collected signals based on the acquisition parameters of the second audio signal collected by each of the at least two omnidirectional microphones when assuming the sound source direction; and searching for the direction in the sound source space that maximizes the controllable response frequency SRP value based on the sum of the GCC-PHAT functions to obtain the sound source direction.

[0042] Specifically, use x m (n) represents the received signal of the mth omnidirectional microphone, and r l and r mThey represent the rectangular coordinate vector of the lth element and the rectangular coordinate vector of the mth element respectively, c is the speed of sound in air (about 342m / s), q is the rectangular coordinate vector of the imaginary sound source, τ lm (q) represents the arrival time difference between the imaginary sound source and the lth and mth microphones, then τ lm (q) is:

[0043]

[0044] Among them, ||qr m || means qr m The norm of ||qr l || means qr l The norm of . represents the GCC-PHAT function of the received signals of the lth microphone and the mth microphone, The expression is:

[0045]

[0046] Among them, X m (k) is x m Fast Fourier transform of (n), X l (k) is x l (n), “*” indicates conjugation, k is the number of fast Fourier transform points, w is the analog angular frequency, and ejwτ is the integration coefficient.

[0047] The SRP-PHAT function based on GCC-PHAT is:

[0048]

[0049] Among them, q is the rectangular coordinate vector of the imaginary sound source, τ lm (q) represents the arrival time difference between the imaginary sound source and the lth and mth microphones, is the GCC-PHAT function of the received signals of the lth microphone and the mth microphone. Then the estimation of the sound source position can be expressed as:

[0050]

[0051] Where arg represents the complex argument, and Q is the preset sound source space.

[0052] Step 203: Determine a speech mode according to the direction of the sound source and the strength of the first audio signal.

[0053] After determining the sound source direction of the first audio signal, the speech mode is determined according to the sound source direction and the intensity of the first audio signal.

[0054] In this embodiment, optionally, determining the speech mode according to the sound source direction and the intensity of the first audio signal includes the following steps A1 to A3:

[0055] Step A1: determining whether the intensity of the first audio signal is greater than a preset intensity, and determining whether the direction of the first audio signal belongs to the direction of the sound source.

[0056] The preset intensity can be set based on the environment and specific needs of the actual application scenario. The omnidirectional microphone can receive audio signals from any direction. Therefore, the sound source direction of the first audio signal received by the directional microphone can be determined based on the audio signal received by the omnidirectional microphone. Furthermore, after receiving the first audio signal, it is determined whether the intensity of the first audio signal is greater than the preset intensity, and based on the second audio signal received by the omnidirectional microphone, it is determined whether the direction of the first audio signal belongs to the sound source direction.

[0057] Step A2: If the intensity of the first audio signal is greater than a preset intensity and the direction of the first audio signal belongs to the direction of the sound source, then determining that the speech mode is a single-person speech mode.

[0058] Specifically, when the intensity of the first audio signal is greater than a preset intensity and the direction of the first audio signal is in the direction of the sound source, it indicates that the directional microphone in this scenario can receive a strong audio signal from its designated direction, and the speech mode is determined to be single-person speech mode. For example, during a speech performance, the directional microphone installed on the stage can receive the speaker's voice audio signal.

[0059] Step A3: If the intensity of the first audio signal is not greater than the preset intensity, or if the intensity of the first audio signal is greater than the preset intensity but the direction of the first audio signal does not belong to the sound source direction, determine that the speech mode is a multi-person speech mode.

[0060] Specifically, if the intensity of the first audio signal is not greater than the preset intensity, it means that the directional microphone cannot receive an audio signal of a certain intensity, and the speech mode is determined to be a multi-person speech mode. If the intensity of the first audio signal is greater than the preset intensity but the direction of the first audio signal does not belong to the sound source direction, it means that the person sending the audio signal is not within the range specified by the directional microphone, and the speech mode is determined to be a multi-person speech mode. For example, the podium in the conference room is equipped with a directional microphone, and the seats are equipped with omnidirectional microphones. When a discussion meeting is held, users generally discuss in their seats. At this time, even if the directional microphone can receive the audio signal, the direction of the audio signal comes from the seat rather than the podium, and the speech mode is determined to be a multi-person speech mode.

[0061] Determining the speech mode according to the above steps can improve the accuracy of determining the speech mode, and further lay the foundation for subsequently determining different audio processing methods according to different speech modes.

[0062] Step 204: Extract a human voice audio signal from the first audio signal and the second audio signal based on the speech pattern.

[0063] After receiving the first audio signal and the second audio signal, a human voice audio signal is extracted from the first audio signal and the second audio signal.

[0064] In this embodiment, optionally, when the speech mode is a multi-person speech mode, the audio signals of all human voices are extracted from the first audio signal and the second audio signal to obtain a human voice audio signal. When the speech mode is a single-person speech mode, the audio signal of the human voice is extracted from the first audio signal to obtain a human voice audio signal.

[0065] When the speech mode is determined to be a multi-person speech mode, it is necessary to extract the human voice audio signals received by the directional microphone and the omnidirectional microphone. For example, at a press conference, the podium is equipped with a directional microphone, and the press box is equipped with an omnidirectional microphone. In this case, the human voice audio signals of the speaker and the reporters received by the directional microphone need to be extracted. Furthermore, when the speech mode is determined to be a multi-person speech mode, the audio signals of all human voices are extracted from the first audio signal and the second audio signal to obtain the human voice audio signal.

[0066] When the speech mode is determined to be a single-person speech mode, it is necessary to extract the human voice audio signal received by the directional microphone. For example, during a speech performance, the directional microphone installed on the podium can receive the speaker's human voice audio signal. However, the human voice audio signal received by the omnidirectional microphone installed in the audience seats does not need to be extracted as a human voice audio signal. Furthermore, when the speech mode is determined to be a single-person speech mode, the human voice audio signal is extracted from the first audio signal to obtain the human voice audio signal.

[0067] In the above method description, different human voice audio signals can be simply and accurately extracted from the first audio signal and the second audio signal according to different speaking modes, thereby improving the signal-to-noise ratio of the target audio signal obtained subsequently.

[0068] Step 205: Extract an ambient audio signal from the first audio signal and the second audio signal based on the speech pattern.

[0069] After the speech mode is determined and the human voice audio signal is extracted according to the speech mode, it is necessary to extract the environmental audio signal from the first audio signal and the second audio signal.

[0070] In this embodiment of the solution, optionally, extracting the ambient audio signal from the first audio signal and the second audio signal includes the following steps B1 and B2:

[0071] Step B1: Determine the similarity between the first audio signal and the second audio signal and a preset ambient signal.

[0072] In this case, a preset ambient sound signal can be established based on the type of ambient sound by pre-training various ambient sound signals based on deep learning. After obtaining the preset ambient sound signal, the first audio signal and the second audio signal are similarly matched with the ambient sound signal to obtain a similarity matching result.

[0073] Step B2: extracting a signal whose similarity to a preset ambient signal exceeds a preset similarity value from the first audio signal and the second audio signal.

[0074] The preset similarity value can be set based on the actual environment and specific needs, or it can be set by repeatedly training the preset ambient sound signal. Specifically, after obtaining the similarity matching results between the first audio signal and the second audio signal and the preset ambient signal, it is determined whether the similarity between the first audio signal and the second audio signal and the preset ambient signal exceeds the preset similarity value. If the similarity exceeds the preset similarity value, it is determined that the audio signal is an ambient audio signal. Furthermore, a signal whose similarity to the preset ambient signal exceeds the preset similarity value is extracted from the first audio signal and the second audio signal.

[0075] In the above method, various environmental sound signals are pre-trained using a deep learning-based method, and a signal whose similarity with the preset environmental signal exceeds a preset similarity value is extracted from the first audio signal and the second audio signal, which can improve the accuracy of identifying whether the audio signal is an environmental audio signal.

[0076] For different speech modes, the extracted environmental audio signals are different.

[0077] In this embodiment, optionally, when the speech mode is a single-person speech mode, an ambient audio signal is extracted from the first audio signal and the second audio signal, and an audio signal of a human voice is extracted from the second audio signal to obtain an ambient audio signal. When the speech mode is a multi-person speech mode, the ambient audio signal is extracted from the first audio signal and the second audio signal to obtain an ambient audio signal.

[0078] Specifically, when the speech mode is single-person speech mode, the human voice audio signal in the second audio signal is not necessarily considered a human voice audio signal. For example, during a speech performance, the directional microphone installed on the podium can receive the speaker's human voice audio signal. The human voice audio signal received by the omnidirectional microphone installed in the auditorium can be considered as ambient noise. Therefore, when the speech mode is single-person speech mode, the ambient audio signal is extracted from the first audio signal and the second audio signal, and the human voice audio signal is extracted from the second audio signal to obtain the ambient audio signal.

[0079] Specifically, when the speech mode is a multi-person speech mode, the human voice audio signal in the second audio signal needs to be extracted as a human voice audio signal. Therefore, when the speech mode is a multi-person speech mode, the ambient audio signal is extracted from the first audio signal and the second audio signal to obtain the ambient audio signal.

[0080] In the above method, different ambient audio signals can be simply and accurately extracted from the first and second audio signals based on different speech modes. In single-person speech mode, treating the human voice signal in the second audio signal as the ambient audio signal can improve the signal-to-noise ratio of the subsequently obtained target audio signal.

[0081] Step 206: Amplify the human voice audio signal to obtain a human voice enhanced signal.

[0082] After obtaining the human voice audio signal, it is amplified according to a preset amplification ratio to obtain a human voice enhanced signal. Specifically, the human voice audio signals extracted in single-speaker mode and multi-speaker mode can be amplified at the same amplification ratio or at different amplification ratios. The amplification ratio can be set according to the actual environment and specific needs.

[0083] Step 207: Determine the sound wave amplitude value of the ambient audio signal.

[0084] The sound wave amplitude value can be understood as the sound amplitude of the audio signal, and the sound wave amplitude value can reflect the range and intensity of the sound vibration. Specifically, after determining the ambient audio signal of the first audio signal and the second audio signal, the sound wave amplitude value of the ambient audio signal is determined.

[0085] Step 208: Filter out signals whose sound wave amplitudes exceed a preset sound wave amplitude value from the ambient audio signal to obtain a noise-suppressed audio signal; or use a cancellation signal to cancel the signal value of a designated signal in the ambient audio signal to no more than the preset sound wave amplitude value to obtain a noise-suppressed audio signal, where the designated signal is a signal in the ambient audio signal whose sound wave amplitude exceeds the preset signal value.

[0086] Among them, the preset sound wave amplitude value can be set according to the actual environment, specific needs and professional experience. If there is a signal in the ambient audio signal with a sound wave amplitude value exceeding the preset sound wave amplitude value, it means that the signal value can be regarded as a noise signal, and the signal in the ambient audio signal with a sound wave amplitude value exceeding the preset sound wave amplitude value is filtered out. Alternatively, a specified signal is determined in the ambient sound signal, and a signal with a similar sound wave amplitude value but opposite polarity to the specified signal is simulated, and the signal value is used as a cancellation signal. The cancellation signal is used to offset the specified signal value in the ambient audio signal to no more than the preset sound wave amplitude value, thereby obtaining a noise-suppressed audio signal. Figure 4 Schematic diagram of the signal extraction process provided by the present invention. Figure 4 As shown, when the speech mode is determined to be a multi-person speech mode, the audio signals of all human voices are extracted from the first audio signal and the second audio signal as human voice audio signals, and the human voice signals are amplified to obtain human voice enhancement signals. The audio signal of the environment is extracted from the first audio signal and the second audio signal, and it is determined whether the similarity between the environment audio signal and the preset environment sound signal exceeds the pre-emitted similarity value. If so, the environment audio signal is filtered out or offset, and finally a noise-suppressed audio signal is obtained. When the speech mode is determined to be a single-person speech mode, the audio signal of the human voice is extracted from the first audio signal, the audio signal of the environment is extracted from the first audio signal and the second audio signal, and the audio signal of the human voice is extracted from the second audio signal as the environment audio signal, and it is determined whether the similarity between the environment audio signal and the preset environment sound signal exceeds the pre-emitted similarity value. If so, the environment audio signal is filtered out or offset, and finally a noise-suppressed audio signal is obtained.

[0087] Step 209: Fuse the human voice enhancement signal and the noise suppression audio signal to obtain a target audio signal.

[0088] After obtaining the human voice enhancement signal and the noise suppression audio signal, the human voice enhancement signal and the noise suppression audio signal are fused. By fusing the human voice enhancement signal and the noise suppression audio signal, a clearer human voice audio signal can be obtained while ensuring good transparency of the target audio signal.

[0089] In an embodiment of the present invention, a first audio signal collected by a directional microphone is obtained, and a second audio signal collected by an omnidirectional microphone is obtained. The sum of the weighted generalized cross-correlation GCC-PHAT functions of the phase transformation of the collected signals of at least two omnidirectional microphones is calculated based on the collection parameters of the second audio signal collected by each omnidirectional microphone in the assumed sound source direction. Based on the sum of the GCC-PHAT functions, the direction that maximizes the controllable response frequency SRP value is searched in the sound source space to obtain the sound source direction. The speech mode is determined according to the sound source direction and the intensity of the first audio signal. The human voice audio signal is extracted from the first audio signal and the second audio signal based on the speech mode. The environmental audio signal is extracted from the first audio signal and the second audio signal based on the speech mode. The human voice audio signal is amplified to obtain a human voice enhancement signal. The sound wave amplitude value of the environmental audio signal is determined. Signals whose sound wave amplitude values ​​exceed the preset sound wave amplitude value are filtered out from the ambient audio signal to obtain a noise-suppressed audio signal; or the signal value of a designated signal in the ambient audio signal is offset to no more than the preset sound wave amplitude value using a cancellation signal to obtain a noise-suppressed audio signal, where the designated signal is a signal whose sound wave amplitude value exceeds the preset signal value in the ambient audio signal. The human voice enhancement signal and the noise-suppressed audio signal are fused to obtain a target audio signal. In the technical solution of this embodiment, the speech mode can be accurately determined based on the first audio signal and the second audio signal, and different processing methods can be used for the first audio signal and the second audio signal according to different speech modes, which can effectively improve the signal-to-noise ratio of the target audio signal. By fusing the human voice enhancement signal and the noise-suppressed audio signal, a clearer human voice audio signal can be obtained while ensuring that the target audio signal has good transparency, thereby improving the user experience.

[0090] Figure 5 This is a structural diagram of an audio signal processing device provided by an embodiment of the present invention. The device is suitable for executing the audio signal processing method provided by an embodiment of the present invention. The device includes a directional microphone and an omnidirectional microphone. Figure 5 As shown, the device may specifically include:

[0091] A signal acquisition module 501 is configured to acquire a first audio signal collected by the directional microphone and a second audio signal collected by the omnidirectional microphone;

[0092] A direction determination module 502 is configured to determine a sound source direction based on acquisition parameters of the second audio signal;

[0093] a mode determination module 503, configured to determine a speech mode according to the sound source direction and the intensity of the first audio signal;

[0094] The target signal acquisition module 504 is configured to perform fusion processing on the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal.

[0095] Optionally, the mode determination module 503 is specifically configured to:

[0096] determining whether the intensity of the first audio signal is greater than a preset intensity, and determining whether the direction of the first audio signal belongs to the sound source direction;

[0097] If the intensity of the first audio signal is greater than the preset intensity and the direction of the first audio signal belongs to the sound source direction, determining that the speech mode is a single-person speech mode;

[0098] If the intensity of the first audio signal is not greater than the preset intensity, or if the intensity of the first audio signal is greater than the preset intensity but the direction of the first audio signal does not belong to the sound source direction, the speech mode is determined to be a multi-speech mode.

[0099] Optionally, the target signal acquisition module 504 specifically includes:

[0100] a signal extraction unit, configured to extract a human voice audio signal from the first audio signal and the second audio signal based on the speech pattern, and extract an ambient audio signal from the first audio signal and the second audio signal based on the speech pattern;

[0101] a signal amplifying unit, configured to amplify the human voice audio signal to obtain a human voice enhancement signal;

[0102] a signal noise suppression unit, configured to perform noise suppression on the ambient audio signal to obtain a noise-suppressed audio signal;

[0103] The target signal acquisition unit is configured to fuse the human voice enhancement signal and the noise suppression audio signal to obtain the target audio signal.

[0104] Optionally, the signal noise suppression unit is specifically used to:

[0105] Determining a sound wave amplitude value of the ambient audio signal;

[0106] The noise-suppressed audio signal is obtained by filtering out signals whose sound wave amplitude values ​​exceed a preset sound wave amplitude value from the ambient audio signal; or by using a cancellation signal to cancel out the signal value of a specified signal in the ambient audio signal to a value not exceeding the preset sound wave amplitude value, thereby obtaining the noise-suppressed audio signal, wherein the specified signal is a signal in the ambient audio signal whose sound wave amplitude value exceeds the preset signal value.

[0107] Optionally, the signal extraction unit is specifically configured to:

[0108] When the speech mode is a multi-person speech mode, extracting audio signals of all human voices from the first audio signal and the second audio signal to obtain the human voice audio signal;

[0109] When the speech mode is a single-person speech mode, an audio signal of a human voice is extracted from the first audio signal to obtain the human voice audio signal.

[0110] Optionally, the signal extraction unit is further configured to:

[0111] When the speech mode is a multi-person speech mode, extracting an ambient audio signal from the first audio signal and the second audio signal to obtain the ambient audio signal;

[0112] When the speech mode is a single-person speech mode, an ambient audio signal is extracted from the first audio signal and the second audio signal, and an audio signal of a human voice is extracted from the second audio signal to obtain the ambient audio signal.

[0113] Optionally, the signal extraction unit is further configured to:

[0114] Determining similarities between the first audio signal and the second audio signal and a preset ambient signal;

[0115] A signal whose similarity to the preset environment signal exceeds a preset similarity value is extracted from the first audio signal and the second audio signal.

[0116] Optionally, the direction determination module 502 is specifically configured to:

[0117] Calculating a sum of weighted generalized cross-correlation GCC-PHAT functions of phase transformations of the collected signals by the at least two omnidirectional microphones based on a collection parameter of a second audio signal collected by each of the at least two omnidirectional microphones in an assumed sound source direction;

[0118] Based on the sum of the GCC-PHAT functions, the direction that maximizes the controllable response frequency SRP value is found in the sound source space to obtain the sound source direction.

[0119] The audio signal processing device provided in the embodiment of the present invention can execute the audio signal processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not fully described in this embodiment, reference can be made to the description of any method embodiment of the present invention.

[0120] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, referring to Figure 6, which shows a schematic structural diagram of a computer system 12 of an electronic device suitable for implementing an embodiment of the present invention. Figure 6 The electronic device shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present invention. Components of the electronic device 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0121] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0122] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0123] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 6 Not shown, often called a "hard drive"). Although Figure 6 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0124] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methodologies of the embodiments described herein.

[0125] The electronic device 12 can also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). This communication can be performed via an input / output (I / O) interface 22. In addition, in the electronic device 12 of this embodiment, the display 24 is not a separate entity, but is embedded in the mirror surface. When the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. In addition, the electronic device 12 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0126] The processing unit 16 executes various functional applications and audio signal processing by running the program stored in the system memory 28, such as implementing an audio signal processing method provided in an embodiment of the present invention: obtaining a first audio signal collected by a directional microphone, and obtaining a second audio signal collected by an omnidirectional microphone; determining the direction of the sound source according to the collection parameters of the second audio signal; determining a speech mode according to the direction of the sound source and the intensity of the first audio signal; and fusing the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal.

[0127] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the program implements an audio signal processing method as provided in all embodiments of the present invention: obtaining a first audio signal collected by a directional microphone and obtaining a second audio signal collected by an omnidirectional microphone; determining a sound source direction based on collection parameters of the second audio signal; determining a speech pattern based on the sound source direction and the intensity of the first audio signal; and fusing the first audio signal and the second audio signal based on the speech pattern to obtain a target audio signal. Any combination of one or more computer-readable media may be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0128] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0129] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0130] Computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0131] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. An audio signal processing method, characterized in that: Applied to an audio device including a directional microphone and an omnidirectional microphone, the method comprises: Acquire a first audio signal collected by the directional microphone, and acquire a second audio signal collected by the omnidirectional microphone; determining a sound source direction according to an acquisition parameter of the second audio signal; Determining a speech mode according to the direction of the sound source and the strength of the first audio signal; determining the speech mode according to the direction of the sound source and the strength of the first audio signal includes: determining whether the strength of the first audio signal is greater than a preset strength, and determining whether the direction of the first audio signal belongs to the direction of the sound source; if the strength of the first audio signal is greater than the preset strength, and the direction of the first audio signal belongs to the direction of the sound source, determining that the speech mode is a single-person speech mode; if the strength of the first audio signal is not greater than the preset strength, or if the strength of the first audio signal is greater than the preset strength but the direction of the first audio signal does not belong to the direction of the sound source, determining that the speech mode is a multi-person speech mode; The first audio signal and the second audio signal are fused based on the speech mode to obtain a target audio signal.

2. The audio signal processing method according to claim 1, characterized in that: The fusing the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal includes: extracting a human voice audio signal from the first audio signal and the second audio signal based on the speech pattern, and extracting an environmental audio signal from the first audio signal and the second audio signal based on the speech pattern; Amplifying the human voice audio signal to obtain a human voice enhancement signal; Performing noise suppression processing on the ambient audio signal to obtain a noise-suppressed audio signal; The human voice enhancement signal and the noise suppression audio signal are fused to obtain the target audio signal.

3. The audio signal processing method according to claim 2, characterized in that: The step of performing noise suppression processing on the ambient audio signal to obtain a noise suppressed audio signal includes: Determining the sound wave amplitude value of the ambient audio signal; Filtering out signals whose sound wave amplitude values ​​exceed a preset sound wave amplitude value from the ambient audio signal to obtain the noise-suppressed audio signal; or The cancellation signal is used to cancel the signal value of the designated signal in the ambient audio signal to not exceed the preset sound wave amplitude value, thereby obtaining the noise suppression audio signal. The designated signal is a signal in the ambient audio signal whose sound wave amplitude value exceeds the preset signal value.

4. The audio signal processing method according to claim 2, characterized in that: The extracting a human voice audio signal from the first audio signal and the second audio signal based on the speech mode includes: When the speech mode is a multi-speech mode, extracting audio signals of all human voices from the first audio signal and the second audio signal to obtain the human voice audio signal; When the speech mode is a single-person speech mode, an audio signal of a human voice is extracted from the first audio signal to obtain the human voice audio signal.

5. The audio signal processing method according to claim 2, characterized in that: The extracting the ambient audio signal from the first audio signal and the second audio signal based on the speech mode comprises: When the speech mode is a multi-person speech mode, extracting an ambient audio signal from the first audio signal and the second audio signal to obtain the ambient audio signal; When the speech mode is a single-person speech mode, an ambient audio signal is extracted from the first audio signal and the second audio signal, and an audio signal of a human voice is extracted from the second audio signal to obtain the ambient audio signal.

6. The audio signal processing method according to claim 5, characterized in that: The step of extracting an ambient audio signal from the first audio signal and the second audio signal comprises: Determining similarities between the first audio signal and the second audio signal and a preset environment signal; A signal whose similarity to the preset environment signal exceeds a preset similarity value is extracted from the first audio signal and the second audio signal.

7. An audio signal processing device, characterized in that: Applicable to an audio device including a directional microphone and an omnidirectional microphone, the audio signal processing device includes: A signal acquisition module, used to acquire a first audio signal collected by the directional microphone and to acquire a second audio signal collected by the omnidirectional microphone; A direction determination module, used to determine the direction of the sound source according to the acquisition parameters of the second audio signal; A mode determination module, configured to determine a speech mode according to the direction of the sound source and the strength of the first audio signal; the step of determining the speech mode according to the direction of the sound source and the strength of the first audio signal comprises: determining whether the intensity of the first audio signal is greater than a preset intensity, and determining whether the direction of the first audio signal belongs to the direction of the sound source; if the intensity of the first audio signal is greater than the preset intensity, and the direction of the first audio signal belongs to the direction of the sound source, determining that the speech mode is a single-person speech mode; if the intensity of the first audio signal is not greater than the preset intensity, or if the intensity of the first audio signal is greater than the preset intensity but the direction of the first audio signal does not belong to the direction of the sound source, determining that the speech mode is a multi-person speech mode; The target signal acquisition module is used to perform fusion processing on the first audio signal and the second audio signal based on the speech mode to obtain a target audio signal.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the audio signal processing method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the audio signal processing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Hand-held communication aid for individuals with auditory, speech and visual impairments

    CN102939791A

  • Packet loss shielding device and method and audio processing system

    CN104282309A

  • Audio signal processing method and device and difference beam forming method and device

    CN104464739A

  • Scene recognition method and system applied to conference with multiple microphones

    CN110648678A

  • Voice signal collection method and separate-type microphone array

    CN110716181A