Pickup processing method of microphone system and conference equipment
By selecting and mixing signals from multiple microphone units in conference equipment based on the relative relationship of sound signals, the problem of poor call quality in multi-sound source scenarios is solved and high-quality audio signal processing is achieved.
Patent Information
- Application Number
- CN202310388845.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-18
AI Technical Summary
Existing conference equipment has poor call quality when faced with more than two sound sources, and cannot effectively collect and process audio signals from multiple sound sources.
By acquiring the sound signals of at least two microphone units, determining the first microphone unit and the second microphone unit suitable for the current conversation scene according to the relative relationship of the sound signals, and mixing the signals to generate high-quality audio that takes into account multiple sound sources. audio signal.
In multiple sound source scenarios, you can select a suitable microphone unit to collect audio signals in a targeted manner, reduce the main microphone switching frequency, improve call quality, and generate high-quality mixed sound signals that take into account multiple sound sources.
Smart Images

Figure CN118803492A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sound signal processing, and in particular to a sound pickup processing method of a microphone system and conference equipment. Background Art
[0002] Conference equipment is a device commonly used for remote conferences. Generally speaking, conference equipment includes a microphone system, which generally has a microphone array or at least two microphone units. During use, a microphone that can collect high-quality audio signals is generally set as the main microphone, and the output result is generally obtained by processing the audio signal collected by the microphone.
[0003] However, existing conference equipment is generally suitable for situations where there is only one sound source. When faced with more than two sound sources, there may be a problem of poor call quality. Summary of the invention
[0004] The embodiments of the present application provide a sound pickup processing method of a microphone system and a conference device, which can improve the problem of poor call quality in the prior art when the conference device faces more than two sound sources.
[0005] In a first aspect, an embodiment of the present application provides a sound pickup processing method for a microphone system, comprising: respectively acquiring sound signals collected by at least two microphone units; determining a first microphone unit and a second microphone unit adapted to a current conversation scenario among the at least two microphone units according to the relative relationship of the sound signals; and mixing the sound signals of the first microphone unit and the second microphone unit to obtain a mixed sound signal.
[0006] In a second aspect, an embodiment of the present application provides a conference device, which includes: at least two microphone units, a memory and a processor; the at least two microphone units are used to collect sound signals; the memory is used to store program instructions; the processor is coupled to the at least two microphone units and the memory to obtain the sound signals collected by the at least two microphone units, and execute the program instructions to implement a sound pickup processing method.
[0007] The beneficial effect of the present application is that, different from the related art, when faced with more than two sound sources, a first microphone unit and a second microphone unit suitable for the current conversation scenario can be selected, and the first microphone unit and the second microphone unit can respectively and specifically collect audio signals emitted by more than two sound sources, and then the sound signals collected by the two microphone units are mixed and processed, so as to generate a mixed sound signal that can take into account the audio information emitted by more than two sound sources and has good quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1It is a schematic diagram of an application scenario of an embodiment of the conference device of the present application;
[0009] Figure 2 It is a module schematic diagram of an embodiment of the conference equipment of the present application;
[0010] Figure 3 It is a flowchart of an embodiment of the sound pickup processing method of the present application;
[0011] Figure 4 yes Figure 3 Schematic diagram of the process of step S200;
[0012] Figure 5 yes Figure 4 Schematic diagram of the process of step S210;
[0013] Figure 6 is a schematic diagram of a planar structure of a microphone array involved in an embodiment of the sound pickup processing method of the present application;
[0014] Figure 7 yes Figure 4 Schematic diagram of the process of step S220;
[0015] Figure 8 yes Figure 7 Schematic diagram of the process of step S222;
[0016] Fig. 9 is another flow chart of an embodiment of the sound pickup processing method of the present application;
[0017] Fig.10 yes Figure 3 or Fig. 9 Schematic diagram of the process of step S300;
[0018] Fig.11 yes Fig.10 Schematic diagram of the process of step S310. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] See also Figure 1 and Figure 2The conference device 1 may include a speaker system 10, a microphone system 20 and a control system 30. The speaker system 10 may be used to output sound to the user. The microphone system 20 may be used to collect the user's voice. The control system 30 may be used to process the sound signal.
[0021] Usually, at least two conference devices 1 are generally required to be used together. For example, when two parties (such as user A and user B) are having a conference call, the microphone system 20 of user A's conference device 1 can collect the voice of user A, and the collected voice can be processed and output by the speaker system 10 of user B's conference device 1, so that user B can hear the voice of user A. Similarly, the microphone system 20 of user B's conference device 1 can collect the voice of user B, and the collected voice can be processed and output by the speaker system 10 of user A's conference device 1, so that user A can hear the voice of user B.
[0022] In addition, the above-mentioned conference equipment 1 can be a mobile terminal such as a mobile phone or a computer, or it can be an electronic device set in a conference room or installed in a vehicle. In addition, the conference equipment 1 can also have a display device (such as a display screen or a projector) and / or an image acquisition device (such as a camera). The image acquisition device and the display device can be used together to enable users to share video content during a meeting. Of course, in some simple conference equipment 1, it may not include a display device and / or an image acquisition device.
[0023] The control system 30 may include a memory 31 and a processor 32. The memory 31 may be used to store program instructions. The processor 32 may be coupled to the microphone system 20, the speaker system 10 and the memory 31. The processor 32 may execute the program instructions to control the speaker system 10 to emit sound and / or process the sound signal collected by the microphone system 20.
[0024] In addition, the processor 32 may also be referred to as a CPU (Central Processing Unit) or a main control chip. The processor 32 may be an integrated circuit chip having signal processing capabilities. The processor 32 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (GPU), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor (MCU) or the processor may also be any conventional processor, etc.
[0025] The inventor of the present application has found through long-term research that in the related art, in order to collect high-quality sound signals, the microphone system 20 generally includes at least two microphone units 21. In addition, for such a microphone system 20 using at least two microphone units 21, it is generally necessary to select a microphone unit 21 that can collect high-quality sound signals as a main microphone (also called an optimal microphone). Then the control system 30 can process the sound signal collected by the main microphone to output a final output result.
[0026] There are usually two ways to select the main microphone. The first method is to pre-set the optimal microphone, for example, setting the microphone unit 21 closest to the geometric center in the microphone array as the main microphone, or setting any one of the two independently set microphone units 21 as the main microphone; the second method is to use the processor 32 to determine the quality of the sound signals collected by at least two microphone units 21, and select the microphone unit 21 with higher sound signal quality as the main microphone in real time.
[0027] However, the above two methods perform poorly when facing more than two sound sources (for example, more than two users are speaking in a conference room). Specifically, for the first method, since the main microphone is pre-set, it may be difficult for the microphone to simultaneously collect high-quality sound signals from each sound source when facing more than two sound sources, for example, it is impossible to clearly collect the sound signal emitted by one of the sound sources. For the second method, if more than two users in the conference room speak alternately, the main microphone may be frequently switched, which makes the processing of the sound signal more difficult. During the switching process of the main microphone, the sound signal quality finally output by the microphone system 20 is poor.
[0028] In order to solve the above problems, the inventors of the present application propose the following embodiments: The following conference device embodiments of the present application describe an exemplary structure of a conference device 1 .
[0029] See also Figure 2 The conference device 1 may include: at least two microphone units 21, a memory 31 and a processor 32. The at least two microphone units 21 may be used to collect sound signals. The memory 31 may be used to store program instructions. The processor 32 may be coupled to the at least two microphone units 21 and the memory 31 to obtain the sound signals collected by the at least two microphone units 21, and execute the program instructions to implement the sound pickup processing method.
[0030] That is, the microphone system 20 in the conference device 1 may have at least two microphone units 21. The two microphone units 21 may be two microphone units 21 in a microphone array, or two microphone units 21 that are separately provided (for example, two microphone units 21 that are provided in different areas of a conference room or a vehicle), and no specific limitation is made here.
[0031] The following embodiment of the sound pickup processing method of the present application describes exemplary steps of the sound pickup processing method of the microphone system 20 .
[0032] See also Figure 3 The sound pickup processing method of the microphone system 20 may include: step S100: respectively acquiring the sound signals collected by at least two microphone units; step S200: determining the first microphone unit and the second microphone unit adapted to the current conversation scene according to the relative relationship of the sound signals in the at least two microphone units; step S300: mixing the sound signals of the first microphone unit and the second microphone unit to obtain a mixed sound signal.
[0033] Among them, the relative relationship of the sound signals may refer to the comparative relationship of the audio quality of the sound signals. In other words, the first microphone unit and the second microphone unit adapted to the current conversation scenario may be judged according to the audio quality of the sound signals collected by each microphone unit. Specifically in some embodiments, the audio quality may be judged according to the strength of the energy intensity of the sound signals. For example, the microphone units corresponding to the two sound signals with the highest energy intensity may be used as the first microphone unit and the second microphone unit.
[0034] Different from the situation in the related art, when facing more than two sound sources, the first microphone unit and the second microphone unit suitable for the current conversation scenario can be selected, and the first microphone unit and the second microphone unit can respectively and specifically collect the audio signals emitted by more than two sound sources, and then the sound signals collected by the two microphone units are mixed and processed, so as to generate a mixed sound signal that can take into account the audio information emitted by more than two sound sources and has good quality.
[0035] In addition, compared to the solution of using a set main microphone to collect sound signals, the first microphone unit and the second microphone unit can respectively and specifically collect sound signals generated by more than two sound sources, and then mix and process the collected high-quality sound signals for each sound source, so as to generate a mixed sound signal with better quality.
[0036] Specifically, in a conference room, user A1 and user A2 are speaking; the first microphone unit can be used to specifically collect the voice of user A1, and the second microphone unit can be used to specifically collect the voice of user A2. In other words, the quality of the voice produced by user A1 collected by the first microphone unit is higher, and the quality of the voice produced by user A2 collected by the second microphone unit is higher, and a high-quality mixed voice signal can be generated based on the high-quality voice signals collected by both.
[0037] In addition, compared to the solution in which the processor 32 automatically selects the main microphone during a call, the first microphone unit and the second microphone unit simultaneously collect sound signals and can take into account the audio information emitted by more than two sound sources, thereby reducing the frequency of switching the main microphone, thereby improving the problem of the sound signal quality heard by the other party (that is, user B) deteriorating (for example, the sound fluctuates, or there is a strong sense of pause) when the main microphone is switched.
[0038] The following further describes step S200: determining a first microphone unit and a second microphone unit adapted to the current conversation scenario among at least two microphone units according to the relative relationship of the sound signals.
[0039] See also Figure 4 Optionally, step S200 may include: step S210: comparing the sound qualities of sound signals of at least two microphone units, and determining the microphone unit with the best sound quality as the first microphone unit; step S220: determining the microphone unit from the remaining microphone units whose sound signals satisfy a preset relative relationship with the first microphone unit as the second microphone unit.
[0040] In some examples, the first microphone may also be referred to as a primary microphone or an optimal microphone. The second microphone may also be referred to as a secondary microphone or an auxiliary microphone.
[0041] Generally, different microphone units collect sound signals with different energy intensities. Therefore, the energy intensities of sound signals collected by different microphone units can be compared to select the first microphone unit and the second microphone unit. The reasons for the different energies of sound signals collected by different microphone units generally include: different distances from the microphone unit to the sound source, different sensitivities of different microphone units themselves, and different degrees of shielding between the sound source and the microphone unit.
[0042] The different intensities of the sound signals collected by different microphone units due to different distances and different sensitivities of the microphones themselves can be compared by comparing the energy intensities of the entire frequency band or any part of the frequency band (also called sub-band) in the sound signal.
[0043] When the sound source and the microphone unit are blocked to different degrees, resulting in different intensities of the sound signals collected by different microphone units, due to the diffraction phenomenon, the sound signals collected by different microphone units may have the same intensities in some frequency bands (sub-bands) and different intensities in other frequency bands (sub-bands). Specifically, the diffraction of sound waves refers to the physical phenomenon that sound waves deviate from their original straight-line propagation when encountering obstacles. When the wavelength of a sound wave is larger than the size of the obstacle, the sound wave has the ability to "bypass" the obstacle.
[0044] That is to say, for sound signals with longer wavelengths (low-frequency sound signals), they have the ability to "bypass" obstacles. In this case, the strength of the sound signals collected by the two microphone units placed in front of the obstacle and behind the obstacle is roughly the same. For sound signals with shorter wavelengths (high-frequency sound signals), they are easily affected by obstacles and will decay rapidly when encountering obstacles. Therefore, in this case, the strength of the sound signals collected by the two microphone units placed in front of the obstacle and behind the obstacle will differ greatly.
[0045] Likewise, the first microphone unit and the second microphone unit can be selected relatively easily from among the plurality of microphone units by using a sound signal in a frequency band that is not easy to bypass obstacles (hereinafter referred to as a difference frequency band).
[0046] See also Figure 5 Optionally, step S210 may include: step S211: calculating the energy of each sub-band of the sound signals of at least two microphone units within a preset frequency band; step S212: comparing the energy of each sub-band of at least two microphone units one by one to obtain the microphone unit with the maximum energy in each sub-band; step S213: counting the number of times each microphone unit has the maximum energy in each sub-band, and taking the microphone unit whose number meets the preset optimal number condition as the first microphone unit.
[0047] Wherein, step S213 may include: using the microphone unit having the largest number and greater than half of the number of at least two microphone units as the first microphone unit.
[0048] Among them, the preset frequency band range can be the full frequency band, for example, the full frequency band range is 0-10000HZ (Hertz). The number of sub-bands is 10, and the frequency bands of the 10 sub-bands are: 0-1000HZ, 1001-2000HZ, 2001-3000HZ, ..., 8001-9000HZ and 9001-10000HZ. The microphone unit includes Mic1, Mic2 and Mic3. The energy of the sound signal collected by Mic3 in 7 sub-bands is the largest, the energy of the sound signal collected by Mic2 in 2 sub-bands is the largest, and the energy of the sound signal collected by Mic1 in 1 sub-band is the largest. In this case, the number of Mic3 meets the preset optimal number condition, so Mic3 can be selected as the first microphone unit.
[0049] The energy of the sound signal collected by the microphone unit in each sub-band can be calculated by the following formula:
[0050] MicPSD(n, k) = Mic(n, k) 2 ,
[0051] Wherein, n represents the number of the microphone unit, k represents the index of the subband, Mic(n, k) represents the amplitude of the kth subband of the nth microphone unit, and MicPSD(n, k) represents the energy of the kth subband of the nth microphone unit.
[0052] By comparing the energy of each sub-band of the sound signal of at least two microphone units in the full frequency band, the first microphone unit can be selected more reliably and accurately. In addition, the preset frequency band range can also be a difference frequency band. For example, if the size of the obstacle is 20 cm, the highest frequency that can bypass the obstacle is:
[0053]
[0054] Therefore, we can calculate that the difference frequency band is 1700-10000 Hz. That is, the preset frequency band range can be 1700-10000 Hz. Then, the energy of each sub-band in the range can be compared respectively to quickly select the first microphone unit.
[0055] In addition, before calculating the energy of each sub-band of the sound signal of at least two microphone units within the preset frequency band range, it includes: determining a preset frequency band range that matches the current conversation scene. Considering that the conversation scene is generally a relatively fixed environment, such as in a conference room or inside a vehicle. In this case, the type and corresponding size of obstacles that may exist in the scene can be estimated in advance, and then the preset frequency band range is pre-configured according to the size.
[0056] In addition, if the microphone system 20 includes a microphone array, the microphone array itself may also constitute an obstacle. Specifically, it can be considered that there is no obstacle between the microphone unit closest to the user and the sound source, while the obstacle between the microphone unit on the opposite side of the microphone unit and the sound source is the microphone array itself. In this case, the preset frequency band range can be pre-configured using the size of the microphone array.
[0057] See also Figure 6 , assuming that Mic3 is the microphone unit closest to the user in the microphone array, when the user speaks to Mic3, sounds in some frequency bands need to bypass the microphone array to be collected by Mic7, and sounds in some frequency bands may not be collected by Mic7 due to attenuation.
[0058] See also Figure 7 Optionally, step S220 may include: step S221: acquiring energy of sound signals of at least two microphone units; step S222: determining, from the remaining microphone units, a microphone unit whose energy of the sound signals of the first microphone unit satisfies a preset relative relationship, as the second microphone unit.
[0059] In some examples, at least two sound sources may include the voice of user A1, the voice of user A2, and the sound of a fan rotating or a chair moving. In this case, there is no need to transmit sounds other than those of user A1 and user A2, and thus they can be understood as invalid sounds. Therefore, when selecting the second microphone unit for at least two sound sources, the valid sound source (the human voice part) among the at least two sound sources can be determined first.
[0060] Optionally, step S221 may include: using the energy of a preset human voice screening frequency band in the sound signals of at least two microphone units as the energy of the sound signal. The human voice screening frequency band may be 200-4000 Hz (i.e., the main sound frequency band when adults speak). In this case, a second microphone unit that is conducive to collecting the sound from the user may be screened out, while shielding the noise source, further improving the call quality.
[0061] When at least two sound sources emit sound at the same time, the second microphone unit can collect a sound signal with a larger energy, while when only one sound source emits sound, the energy of the sound signal collected by the second microphone unit is significantly reduced. Therefore, based on the energy intensity of the sound signal collected by the second microphone unit, it can be determined whether at least two sound sources emit sound at the same time.
[0062] See also Figure 8Optionally, step S222 may include: step S2221: calculating the sound power of the sound source based on the energy of the sound signal of the first microphone unit; step S2222: calculating a first ratio of the energy of the sound signal of the first microphone unit to the sound power, and calculating a second ratio of the energy of the sound signal of the remaining microphone units to the sound power; step S2223: determining whether the second ratio is greater than the first ratio and greater than a preset threshold; if so, executing step S2224: using the microphone unit whose second ratio is greater than the first ratio and greater than the preset threshold as the second microphone unit.
[0063] Among them, the setting of the preset threshold should be able to determine whether at least two sound sources are making sounds at the same time. In this case, when at least two sound sources are making sounds at the same time, the energy intensity of the sound signal collected by the second microphone unit is large, so the second ratio can be greater than the first ratio and greater than the preset threshold. When only one sound source among the at least two sound sources is making sounds, the energy of the sound signal collected by the second microphone unit will be less than the energy of the sound signal collected by the first microphone unit. In this case, it can be considered not to select the second microphone unit.
[0064] Considering that when there are more than two sound sources, for example, when user A1 and user A2 are talking, there may be situations where user A1 and user A2 are talking at the same time, user A1 and user A2 are talking alternately, etc. Therefore, the conversation scene may include a first conversation scene and a second conversation scene. Among them, the first conversation scene may refer to a scene where user A1 and user A2 are talking at the same time, and the second conversation scene may refer to a scene where one of user A1 and user A2 is talking.
[0065] That is to say, the first conversation scenario requires the first microphone unit and the second microphone unit, while the second scenario requires the first microphone unit.
[0066] Step S200 may include: determining whether the current conversation scene is the first conversation scene; if so, determining the first microphone unit and the second microphone unit among at least two microphone units according to the relative relationship of the sound signals.
[0067] In addition, if user A1 and user A2 speak alternately, the first microphone unit may be switched.
[0068] See also Fig. 9 Optionally, after step S200, the method may further include: step S250: determining whether the first microphone unit is switched; if so, executing step S260: fading in and out the sound signals of the two first microphone units to be switched. In this way, the sense of frustration of the output sound heard by the other party during the call can be reduced, making the output sound heard by the other party more natural.
[0069] If not, step S300 may be executed.
[0070] Among them, step S260 may include: performing preset mixing processing on the sound signals of the two first microphone units to be switched, so as to gradually increase the second proportion of the sound signal of the rear first microphone unit and gradually reduce the first proportion of the sound signal of the front first microphone unit during the preset mixing process.
[0071] Specifically, step S260 may include: calculating the ratio of the energy of the sound signal of the next first microphone unit to the sum of the energies of the sound signals of the previous first microphone unit and the next first microphone unit; and calculating the first proportion and the second proportion using the original optimal path forgetting factor and the ratio.
[0072] The first proportion is the product of the original optimal path forgetting factor and the ratio. The sum of the second proportion and the first proportion is one. The original optimal path forgetting factor is greater than or equal to 0 and less than or equal to 1, and gradually decreases within a preset time period. In other examples, the first proportion and the second proportion may also be referred to as the first weight and the second weight.
[0073] The calculation formula for the ratio of the energy of the sound signal of the latter first microphone unit to the sum of the energies of the sound signals of the former first microphone unit and the latter first microphone unit can be:
[0074]
[0075] Among them, W l ' ast is the ratio, E last Represents the energy of the sound signal of the first microphone unit, E new Represents the energy of the sound signal of the latter first microphone unit.
[0076] The calculation formulas for the first proportion and the second proportion can be:
[0077] W best =1-λ last ×W l ' ast ,
[0078] W last =λ last ×W l ' ast ,
[0079]
[0080] Among them, W lest Indicates the first proportion, W best is the second proportion, λ last represents the forgetting factor of the original optimal path, Tbest-hold represents the preset time period (i.e., the preset fade-out time of the previous first microphone signal), t best-fade Indicates any moment in the preset time period.
[0081] In the process of fading in and out the sound signals of the two first microphone units to be switched, the sound signal finally collected by the first microphone unit is:
[0082] out 1 (k) = W best (k)×Mic best (k)+W last (k)×Mic last (k)
[0083] Among them, W last Indicates the first proportion, Mic last (k) represents the spectrum of the kth sub-band in the sound signal collected by the first microphone unit, W best The second largest proportion, Mic best (k) represents the spectrum of the kth subband in the sound signal collected by the first microphone unit, out 1 (k) represents the sound signal finally collected by the first microphone unit during the process of switching of the first microphone unit.
[0084] That is to say, when the first microphone unit is switched, the sound signals collected by the previous first microphone unit and the next first microphone unit can be mixed and processed in a preset manner and then used as the sound signals collected by the first microphone unit.
[0085] The following further describes step S300: mixing the sound signals of the first microphone unit and the second microphone unit to obtain a mixed sound signal.
[0086] See also Fig.10 Optionally, step S300 may include: step S310: calculating a first weight of a sound signal of the first microphone unit, and calculating a second weight of a sound signal of the second microphone unit; step S320: mixing the sound signals of the first microphone unit and the second microphone unit according to the first weight and the second weight to obtain a mixed sound signal.
[0087] As described above, the current conversation scene may include a first conversation scene and a second conversation scene. In the first conversation scene, at least two sound sources emit sound at the same time, while in the second conversation scene, only one sound source emits sound. Therefore, step S310 may also include calculating the first weight and the second weight respectively according to the current conversation scene, so as to obtain relatively high sound quality in different conversation scenes.
[0088] Optionally, step S310 may include: step S3101: determine whether the current conversation scene switches from the first conversation scene to the second conversation scene; if not, execute step S3102: calculate the ratio of the energy of the sound signal of the first microphone unit and the energy of the sound signal of the second microphone unit to the sum of the energies of the sound signals of the first microphone unit and the second microphone unit, and obtain the first weight and the second weight accordingly.
[0089] See also Fig.11 Optionally, in step S310, after determining whether the current conversation scene switches from the first conversation scene to the second conversation scene, it may include: if so, executing step S3103: calculating the ratio of the energy of the sound signal of the second microphone unit to the sum of the energies of the sound signals of the first microphone unit and the second microphone unit; step S3104: calculating the first weight and the second weight using the suboptimal path forgetting factor and the ratio.
[0090] The first weight is the product of the suboptimal path forgetting factor and the ratio. The sum of the second weight and the first weight is 1. The suboptimal path forgetting factor is greater than or equal to 0 and less than or equal to 1, and gradually decreases within a preset time period.
[0091] Specifically, in step S3102, the first weight and the second weight may be calculated by the following formula:
[0092]
[0093]
[0094] Among them, W 1 represents the first weight in the first session scenario, W 2 represents the second weight in the first session scenario, E 1 Represents the energy of the sound signal collected by the first microphone unit, E 2 Indicates the energy of the sound signal collected by the second microphone unit.
[0095] Specifically, in step S3103 and step S3104, the first weight and the second weight may be calculated by the following formula:
[0096] W best =1-λ×W 2 ,
[0097] W sec =λ×W 2 ,
[0098]
[0099] Among them, W2 represents the ratio of the energy of the sound signal of the second microphone unit to the sum of the energy of the sound signals of the first microphone unit and the second microphone unit (i.e., the second weight in the first conversation scenario), λ represents the suboptimal forgetting factor, W best represents the first weight when the first conversation scenario switches to the second conversation scenario, W sec represents the second weight when the first conversation scenario switches to the second conversation scenario, T sec-hold represents the preset time period (i.e., the preset second microphone signal fade-out time), t best-fade Indicates any moment in the preset time period.
[0100] That is to say, when the current session scene is determined to be the first session scene, the first weight and the second weight can be calculated by executing step S3102. When the current session scene switches from the first session scene to the second session scene, steps S3103 and S3104 can be executed to calculate the first weight and the second weight.
[0101] That is to say, the proportion of the sound signal collected by the second microphone unit will gradually decrease, and the proportion of the sound signal collected by the first microphone unit will gradually increase. This means that when the first conversation scene suddenly switches to the second conversation scene, the second microphone unit gradually becomes ineffective. Compared with the solution of instantly shielding the sound signal collected by the second microphone unit when the first conversation scene switches to the second conversation scene, it can reduce the sense of frustration of the mixed sound signal output by the microphone system 20 and make the transition more natural.
[0102] Optionally, step S320 may include: mixing the sound signals of the first microphone unit and the second microphone unit according to the first weight and the second weight within a preset time period to obtain a mixed sound signal.
[0103] When the current conversation scene is the first conversation scene, the mixed sound signal output by the microphone system 20 may be:
[0104] out 2 (k) = W 1 ×Mic best (k)+W 2 ×Mic sec (k)
[0105] Among them, W 1 represents the first weight in the first session scenario, W 2 Indicates the second weight in the first conversation scenario, Mic best (k) represents the spectrum of the kth sub-band in the sound signal collected by the first microphone unit, sec(k) represents the spectrum of the kth subband in the sound signal collected by the second microphone unit, out 2 (k) represents the mixed sound signal output by the microphone system 20 in the first conversation scenario.
[0106] In addition, W 1 and W 2 It may be calculated based on the energy proportion of each sub-band in the sound signal collected by the first microphone unit and the second microphone unit, or it may be calculated based on the energy proportion of the full frequency band of the sound signal collected by the first microphone unit and the second microphone unit.
[0107] When the current conversation scene switches from the first conversation scene to the second conversation scene, the mixed sound signal output by the microphone system 20 may be:
[0108] out 3 (k) = W best (k)×Mic best (k)+W sec (k)×Mic sec (k)
[0109] Among them, out 3 (k) represents the mixed sound signal output by the microphone system 20 during the process of switching the current conversation scene from the first conversation scene to the second conversation scene, W best (k) represents the first weight when the first conversation scenario switches to the second conversation scenario, W sec (k) represents the second weight when the first conversation scenario switches to the second conversation scenario, Mic best (k) represents the spectrum of the kth sub-band in the sound signal collected by the first microphone unit, sec (k) represents the frequency spectrum of the kth sub-band in the sound signal collected by the second microphone unit.
[0110] Different from the situation in the related art, when facing more than two sound sources, the first microphone unit and the second microphone unit suitable for the current conversation scenario can be selected, and the first microphone unit and the second microphone unit can respectively and specifically collect the audio signals emitted by more than two sound sources, and then the sound signals collected by the two microphone units are mixed and processed, so as to generate a mixed sound signal that can take into account the audio information emitted by more than two sound sources and has good quality.
[0111] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A sound pickup processing method of a microphone system, wherein the microphone system comprises at least two microphone units, characterized in that: include: Respectively acquiring sound signals collected by the at least two microphone units; Determining, among the at least two microphone units, a first microphone unit and a second microphone unit adapted to the current conversation scenario according to a relative relationship of the sound signals; The sound signals of the first microphone unit and the second microphone unit are mixed to obtain a mixed sound signal.
2. The sound pickup processing method according to claim 1, characterized in that: Determining a first microphone unit and a second microphone unit that meet the requirements of the current conversation scenario among the at least two microphone units according to the relative relationship of the sound signals includes: Comparing the sound qualities of the sound signals of the at least two microphone units, and determining the microphone unit with the best sound quality as the first microphone unit; The microphone unit whose sound signal satisfies a preset relative relationship with the sound signal of the first microphone unit is determined from the remaining microphone units as the second microphone unit.
3. The sound pickup processing method according to claim 2, characterized in that: The step of comparing the sound qualities of the sound signals of the at least two microphone units and determining the microphone unit with the best sound quality as the first microphone unit comprises: Calculating the energy of each sub-band of the sound signal of the at least two microphone units within a preset frequency band; Compare the energies of the sub-bands of the at least two microphone units one by one to obtain the microphone unit with the largest energy in each sub-band; The number of times that each microphone unit has the maximum energy in each sub-band is counted, and the microphone unit whose number meets a preset optimal number condition is used as the first microphone unit.
4. The sound pickup processing method according to claim 3, characterized in that: The step of using the microphone unit whose number of times satisfies a preset optimal number condition as the first microphone unit comprises: The microphone unit having the largest number and being greater than half of the number of the at least two microphone units is used as the first microphone unit.
5. The sound pickup processing method according to claim 3, characterized in that: Before calculating the energy of each sub-band of the sound signal of the at least two microphone units within a preset frequency band, the method includes: Determine the preset frequency band range that matches the current session scenario.
6. The sound pickup processing method according to claim 2, characterized in that: The step of determining, from the remaining microphone units, the microphone unit whose sound signal satisfies a preset relative relationship with the sound signal of the first microphone unit as the second microphone unit comprises: Acquiring energy of the sound signals of the at least two microphone units; The microphone unit whose energy of the sound signal satisfies a preset relative relationship with that of the first microphone unit is determined from the remaining microphone units as the second microphone unit.
7. The sound pickup processing method according to claim 6, characterized in that: The step of determining, from the remaining microphone units, the microphone unit whose energy of the sound signal satisfies a preset relative relationship with that of the first microphone unit as the second microphone unit comprises: Calculating the sound power of the sound source according to the energy of the sound signal of the first microphone unit; Calculating a first ratio of the energy of the sound signal of the first microphone unit to the sound emission power, and calculating a second ratio of the energy of the sound signal of the remaining microphone units to the sound emission power; Determining whether the second ratio is greater than the first ratio and greater than a preset threshold; If so, the microphone unit whose second ratio is greater than the first ratio and greater than the preset threshold is used as the second microphone unit.
8. The sound pickup processing method according to claim 7, characterized in that: The obtaining energy of the sound signals of the at least two microphone units comprises: The energy of a preset human voice filtering frequency band in the sound signal of the at least two microphone units is used as the energy of the sound signal.
9. The sound pickup processing method according to claim 1, characterized in that: The mixing and processing of the sound signals of the first microphone unit and the second microphone unit to obtain a mixed sound signal includes: Calculating a first weight of the sound signal of the first microphone unit, and calculating a second weight of the sound signal of the second microphone unit; The sound signals of the first microphone unit and the second microphone unit are mixed according to the first weight and the second weight to obtain the mixed sound signal.
10. The sound pickup processing method according to claim 9, characterized in that: The calculating a first weight of the sound signal of the first microphone unit and calculating a second weight of the sound signal of the second microphone unit comprises: Determining whether the current conversation scenario is switched from a first conversation scenario to a second conversation scenario; wherein the first conversation scenario requires the first microphone unit and the second microphone unit, and the second conversation scenario requires the first microphone unit; If not, calculate the ratios of the energy of the sound signal of the first microphone unit, the energy of the sound signal of the second microphone unit, and the sum of the energies of the sound signals of the first microphone unit and the second microphone unit, and obtain the first weight and the second weight accordingly.
11. The sound pickup processing method according to claim 10, characterized in that: After determining whether the current conversation scene is switched from the first conversation scene to the second conversation scene, the method further includes: If yes, calculating the ratio of the energy of the sound signal of the second microphone unit to the sum of the energies of the sound signals of the first microphone unit and the second microphone unit; The first weight and the second weight are calculated using a suboptimal path forgetting factor and the ratio; wherein the first weight is the product of the suboptimal path forgetting factor and the ratio, and the sum of the second weight and the first weight is one; the suboptimal path forgetting factor is greater than or equal to 0 and less than or equal to 1, and gradually decreases within a preset time period.
12. The sound pickup processing method according to claim 11, characterized in that: The mixing the sound signals of the first microphone unit and the second microphone unit according to the first weight and the second weight to obtain the mixed sound signal includes: The sound signals of the first microphone unit and the second microphone unit are mixed and processed according to the first weight and the second weight within the preset time period to obtain the mixed sound signal.
13. The sound pickup processing method according to claim 1, characterized in that: The method of determining, among the at least two microphone units, a first microphone unit and a second microphone unit adapted to the current conversation scene according to the relative relationship of the sound signals comprises: Determining whether the current conversation scenario is a first conversation scenario; the first conversation scenario requires the first microphone unit and the second microphone unit; If so, the first microphone unit and the second microphone unit are determined among the at least two microphone units according to the relative relationship of the sound signals.
14. The sound pickup processing method according to claim 1, characterized in that: After determining the first microphone unit and the second microphone unit adapted to the current conversation scene among the at least two microphone units according to the relative relationship of the sound signals, the method further includes: determining whether the first microphone unit is switched; If so, the sound signals of the two first microphone units before and after will be switched for preset mixing processing, so as to gradually increase the second proportion of the sound signal of the rear first microphone unit and gradually reduce the first proportion of the sound signal of the front first microphone unit during the preset mixing process.
15. A conference device, characterized in that: include: At least two microphone units for collecting sound signals; A memory for storing program instructions; A processor is coupled to the at least two microphone units and the memory to obtain the sound signals collected by the at least two microphone units and execute the program instructions to implement the sound pickup processing method according to any one of claims 1 to 14.
