Microphone mixed use system and method, storage medium and electronic equipment
By performing downsampling and filtering according to the clock frequency of the analog microphone and digital microphone in the microphone mixing system, the problem of the inability to perform the performance of the analog microphone in the prior art is solved, and the output of the same sampling rate and synchronous data are achieved.
Patent Information
- Application Number
- CN202310852602.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, the ADC system used in the mixed analog microphone and digital microphone is unified in the sampling clock and downsampling filter clock, resulting in the analog microphone being unable to operate in the best state, unable to perform performance, and high cost.
Provide a microphone mixing system, including an analog microphone module, a digital microphone module, a downsampling filtering module and a clock module, respectively, downsampling filtering is performed according to the clock frequency of the analog microphone and digital microphone, and outputs data with the same sampling rate and synchronous data to make each of them. Performance is exerted and both analog and digital microphones are operated at maximum clock frequency.
In the scenario where analog microphone and digital microphone are mixed, data with consistent output sampling rate and synchronized output are achieved, while reducing costs and improving efficiency.
Smart Images

Figure CN119316773A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of signal processing, and in particular, to a microphone mixing system, method, storage medium and electronic device. Background Art
[0002] Analog microphones can convert sound into analog electrical signals, and digital microphones can convert sound into digital signals. In the related art, the LINE IN / AMIC / DMIC mixed ADC system, that is, the system that mixes analog microphones and digital microphones, usually uses a unified sampling clock at the front end, and the back-end downsampling filter also uses a unified clock for processing, which facilitates time division multiplexing of the downsampling filter to reduce costs and output data with the same sampling rate and synchronization. Summary of the invention
[0003] In order to achieve the above objectives, the present disclosure provides a microphone mixing system, method, storage medium and electronic device to solve the technical problems in the prior art.
[0004] According to a first aspect of the present disclosure, a microphone mixing system is provided, comprising:
[0005] Analog microphone module, digital microphone module, downsampling filter module and clock module;
[0006] The input end of the downsampling filter module is connected to both the analog microphone module and the digital microphone module, and the downsampling filter module is used to:
[0007] Downsampling and filtering the signal output by the analog microphone module according to the first clock frequency of the analog microphone module to obtain a target signal with a sampling rate of a target sampling rate; and
[0008] Downsampling and filtering the signal output by the digital microphone module according to the second clock frequency of the digital microphone module to obtain the target signal;
[0009] The clock module is connected to the analog microphone module, the digital microphone module and the downsampling filter module, and the clock module is used for:
[0010] Providing a first clock signal to the analog microphone module and the downsampling filter module according to the first clock frequency; and
[0011] A second clock signal is provided to the digital microphone module and the down-sampling filter module according to the second clock frequency.
[0012] Optionally, the downsampling filter module includes a first downsampling filter and a second downsampling filter;
[0013] The first downsampling filter is connected to the analog microphone module, and is used to downsample and filter the signal output by the analog microphone module according to the first clock frequency to obtain the target signal;
[0014] The second down-sampling filter is connected to the digital microphone module, and is used to perform down-sampling filtering on the signal output by the digital microphone module according to the second clock frequency to obtain the target signal.
[0015] Optionally, the system further comprises a third down-sampling filter, an input end of the third down-sampling filter is connected to both an output end of the first down-sampling filter and an output end of the second down-sampling filter, and the third down-sampling filter is used to:
[0016] Downsampling and filtering the signal output by the first downsampling filter to obtain the target signal; and
[0017] Downsampling and filtering are performed on the signal output by the second downsampling filter to obtain the target signal.
[0018] Optionally, the clock module includes a first clock submodule and a second clock submodule;
[0019] The first clock submodule is connected to both the analog microphone module and the first downsampling filter, and is used to provide a first clock signal to the analog microphone module and the first downsampling filter according to the first clock frequency;
[0020] The second clock submodule is connected to both the digital microphone module and the second down-sampling filter, and is configured to provide a second clock signal to the digital microphone module and the first down-sampling filter according to the second clock frequency.
[0021] Optionally, the system further includes a control module, the control module is connected to the analog microphone module, the digital microphone module, the downsampling filter module and the clock module, and the control module is used to:
[0022] According to the first clock frequency, controlling the first downsampling filter to downsample the signal output by the analog microphone to obtain the target signal; and
[0023] According to the second clock frequency, controlling the second down-sampling filter to down-sample the signal output by the digital microphone to obtain the target signal;
[0024] The clock module is controlled to provide the first clock signal to the analog microphone module and the first down-sampling filter, and to provide the second clock signal to the digital microphone module and the second down-sampling filter.
[0025] According to a second aspect of the present disclosure, a microphone mixing method is provided, which is applied to the microphone mixing system described in the first aspect, comprising:
[0026] determining a first input clock frequency for the analog microphone and a second input clock frequency for the digital microphone;
[0027] Get the target sampling rate;
[0028] According to the first input clock frequency, control the clock module to provide the first clock signal to the analog microphone and the downsampling filter module, and according to the second input clock frequency, control the clock module to provide the second clock signal to the digital microphone and the downsampling filter module;
[0029] Determine a first downsampling ratio according to the first clock frequency and the target sampling rate, and determine a second downsampling ratio according to the second clock frequency and the target sampling rate;
[0030] According to the first downsampling ratio, the downsampling filter module is controlled to downsample the signal output by the analog microphone to obtain a target signal, and according to the second downsampling ratio, the downsampling filter module is controlled to downsample the signal output by the digital microphone to obtain the target signal.
[0031] Optionally, determining the first input clock frequency of the analog microphone and the second input clock frequency of the digital microphone comprises:
[0032] Acquire the first clock frequency and the second clock frequency;
[0033] Determining a clock source frequency required for mixed use of the analog microphone and the digital microphone according to the first clock frequency and the second clock frequency;
[0034] Determine a mixed frequency division ratio of the analog microphone and the digital microphone according to the first clock frequency, the second clock frequency and the clock source frequency;
[0035] The first input clock frequency and the second input clock frequency are determined according to the mixed frequency division ratio and the clock source frequency.
[0036] Optionally, the controlling the downsampling filter module to downsample the signal output by the analog microphone to obtain a target signal according to the first downsampling ratio, and controlling the downsampling filter module to downsample the signal output by the digital microphone to obtain the target signal according to the second downsampling ratio, comprises:
[0037] Downsampling the signal output by the analog microphone according to the first downsampling ratio to obtain a first initial signal; and
[0038] Downsampling the signal output by the digital microphone according to the second downsampling ratio to obtain a second initial signal;
[0039] downsampling the first initial signal to obtain the target signal; and
[0040] The second initial signal is downsampled to obtain the target signal.
[0041] According to a third aspect of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the second aspect are implemented.
[0042] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0043] a memory having a computer program stored thereon;
[0044] A processor is used to execute the computer program in the memory to implement the steps of the method described in the second aspect.
[0045] Through the above technical solution, through the above microphone mixing system, the sampling filter module can perform different downsampling filters on the signal output by the analog microphone module and the signal output by the digital microphone module according to the first clock frequency and the second clock frequency, respectively, to obtain a target signal with a sampling rate of the target sampling rate. The clock module can provide a first clock signal to the analog microphone module and the downsampling filter module according to the first clock frequency and the second clock frequency, respectively, and provide a second clock signal to the digital microphone module and the downsampling filter module. In this way, while outputting data with consistent and synchronized sampling rates in a scenario where analog microphones and digital microphones are mixed, both the analog microphone module and the digital microphone module can be operated at their maximum clock frequencies, thereby reducing costs and improving efficiency.
[0046] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0048] Figure 1 is a structural diagram of a microphone mixing system according to an exemplary embodiment.
[0049] Figure 2 is a structural diagram of a microphone mixing system according to another exemplary embodiment.
[0050] Figure 3 The figure is a schematic diagram showing the operation of a microphone mixing system according to an exemplary embodiment.
[0051] Figure 4 is a schematic diagram showing the operation of a microphone mixing system according to another exemplary embodiment.
[0052] Figure 5 The figure is a flow chart of a microphone mixing method according to an exemplary embodiment.
[0053] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0054] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0055] In the related art, in order to improve the performance of the ADC system, the sigma-delta analog circuit of the analog microphone module (LINE IN / AMIC) usually operates at a relatively high frequency, such as 6.144MHz. However, the digital microphone module (DMIC) is designed only for the microphone, and does not require such high performance when working, and usually the maximum operating clock is below 4.096MHz. When LINEIN / AMIC and DMIC are mixed, in order to accommodate DMIC, its sampling clock will be reduced to below the maximum operating clock of DMIC 4.096M or even lower, resulting in the LINE IN / AMIC channel not being able to work in its optimal state and not being able to exert its optimal performance.
[0056] In view of this, the present disclosure provides a microphone mixing system, method, storage medium and electronic device, so that in a system where analog microphones and digital microphones are mixed, corresponding clock signals can be provided for LINE IN / AMIC and DMIC according to the respective working clock frequencies of the front ends of the LINE IN / AMIC path and the DMIC path, and the back-end downsampling filter can be controlled to downsample and filter the signals output by the LINE IN / AMIC and DMIC, respectively, so as to obtain data with the same sampling rate and synchronization, so that their respective performances can be brought into play.
[0057] Figure 1 FIG. 1 is a schematic diagram showing a structure of a microphone mixing system according to an exemplary embodiment. Figure 1 As shown, the microphone mixing system includes:
[0058] Analog microphone module 10, digital microphone module 20, downsampling filter module 30 and clock module 40;
[0059] The input end of the downsampling filter module 30 is connected to both the analog microphone module 10 and the digital microphone module 20. The downsampling filter module 30 is used to:
[0060] Downsampling and filtering the signal output by the analog microphone module 10 according to the first clock frequency of the analog microphone module 10 to obtain a target signal with a sampling rate of a target sampling rate; and
[0061] Down-sampling and filtering the signal output by the digital microphone module 20 according to the second clock frequency of the digital microphone module 20 to obtain a target signal;
[0062] The clock module 40 is connected to the analog microphone module 10, the digital microphone module 20 and the downsampling filter module 30, and the clock module 40 is used to:
[0063] Provide a first clock signal to the analog microphone module 10 and the downsampling filter module 30 according to the first clock frequency; and
[0064] A second clock signal is provided to the digital microphone module 20 and the down-sampling filter module 30 according to the second clock frequency.
[0065] It should be understood that the analog microphone module 10 may include one or more analog microphones, and the first clock frequency may be the device clock frequency of the analog microphone, i.e., the clock frequency parameter of the analog microphone. The digital microphone module 20 may also include one or more digital microphones, and the second clock frequency may be the device clock frequency of the digital microphone, i.e., the clock frequency parameter of the digital microphone.
[0066] It should also be understood that both the analog microphone module 10 and the digital microphone module 20 can be modules including an analog microphone and a digital microphone, and an analog microphone or a digital microphone can be selected when applied, but the signals outputted by them can all be digital signals, and the embodiments of the present disclosure do not limit this. It is worth noting that since the digital microphone module 20 internally integrates a converter for converting analog signals into digital signals, the analog microphone module 10 can also include a sigma-delta ADC analog circuit, and the input end of the sigma-delta ADC analog circuit is connected to the output end of the analog microphone to convert the analog signal collected by the analog microphone into a digital signal.
[0067] Through the above-mentioned microphone mixing system, the sampling and filtering module can perform different downsampling filters on the signal output by the analog microphone module 10 and the signal output by the digital microphone module 20 according to the first clock frequency and the second clock frequency, respectively, to obtain a target signal with a sampling rate of the target sampling rate. The clock module 40 can provide a first clock signal to the analog microphone module 10 and the downsampling and filtering module 30 according to the first clock frequency and the second clock frequency, respectively, and provide a second clock signal to the digital microphone module 20 and the downsampling and filtering module 30. In this way, while outputting data with consistent and synchronized sampling rates in the scenario of controlling the mixing of analog microphones and digital microphones, the analog microphone module 10 and the digital microphone module 20 can both operate at their maximum clock frequencies, thereby reducing costs and improving efficiency.
[0068] In one embodiment, if Figure 2 As shown, the down-sampling filter module 30 includes a first down-sampling filter 31 and a second down-sampling filter 32;
[0069] The first down-sampling filter 31 is connected to the analog microphone module 10 and is used to down-sample and filter the signal output by the analog microphone module 10 according to the first clock frequency to obtain a target signal;
[0070] The second down-sampling filter 32 is connected to the digital microphone module 20 and is used to perform down-sampling filtering on the signal output by the digital microphone module 20 according to the second clock frequency to obtain a target signal.
[0071] For example, the analog microphone module 10 is connected to a first downsampling filter 31, and the digital microphone module 20 is connected to a second downsampling filter 32. The downsampling ratios of the first downsampling filter 31 and the second downsampling filter 32 can be adjusted, for example, it can be a CIC filter (Cascaded Integrator Com, Cascaded Integrator Comb Filter), and the downsampling ratios can be adjusted to 8 times downsampling, 16 times downsampling, and 32 times downsampling, etc. Therefore, the downsampling ratio of the first downsampling filter 31 can be determined according to the first clock frequency, and the downsampling ratio of the second downsampling filter 32 can be determined according to the second clock frequency, and then the first downsampling filter 31 and the second downsampling filter 32 are controlled to perform downsampling filtering on the signals output by the analog microphone module 10 and the digital microphone module 20 according to their respective downsampling ratios, so as to obtain target signals whose sampling rates are both target sampling rates.
[0072] It should be understood that the first downsampling filter 31 can also be connected to a plurality of sampling filters with adjustable sampling ratios to reduce the frequency of the high-frequency signal step by step, and the second downsampling filter 32 can also be connected to a plurality of sampling filters with adjustable sampling ratios to reduce the frequency of the high-frequency signal step by step. The embodiments of the present disclosure are not limited to this.
[0073] In one embodiment, if Figure 2 As shown, the system further includes a third down-sampling filter 33, the input end of the third down-sampling filter 33 is connected to the output end of the first down-sampling filter 31 and the output end of the second down-sampling filter 32, and the third down-sampling filter 33 is used to:
[0074] Down-sampling and filtering the signal output by the first down-sampling filter 31 to obtain a target signal; and
[0075] The signal output by the second down-sampling filter 32 is down-sampled and filtered to obtain a target signal.
[0076] For example, the third sampling filter 33 can be a sampling filter with a fixed sampling rate, such as a FIR filter (Finite Impulse Response, non-recursive filter), or a sampling filter with adjustable sampling rates, which is not limited in the embodiments of the present disclosure. The third downsampling filter 33 can also be connected to a plurality of sampling filters with adjustable sampling rates or fixed sampling rates, and the frequency of high-frequency signals can be gradually reduced to reduce the amount of calculation and design difficulty, thereby controlling the cost, which is not limited in the embodiments of the present disclosure.
[0077] In one embodiment, if Figure 2 As shown, the clock module 40 includes a first clock submodule 41 and a second clock submodule 42;
[0078] The first clock submodule 41 is connected to both the analog microphone module 10 and the first down-sampling filter 31, and is used to provide a first clock signal to the analog microphone module 10 and the first down-sampling filter 31 according to a first clock frequency;
[0079] The second clock submodule 42 is connected to both the digital microphone module 20 and the second down-sampling filter 32, and is used to provide a second clock signal to the digital microphone module 20 and the first down-sampling filter 31 according to the second clock frequency.
[0080] For example, Figure 2 As shown, the clock module 40 may further include a third clock submodule 43 for providing a corresponding clock signal for the third down-sampling filter 33, which is not limited in the embodiment of the present disclosure.
[0081] In one embodiment, if Figure 2 As shown, the system further includes a control module 50, which is connected to the analog microphone module 10, the digital microphone module 20, the downsampling filter module 30 and the clock module 40. The control module 50 is used to:
[0082] According to the first clock frequency, controlling the first down-sampling filter 31 to down-sample the signal output by the analog microphone to obtain a target signal; and
[0083] According to the second clock frequency, controlling the second down-sampling filter 32 to down-sample the signal output by the digital microphone to obtain a target signal;
[0084] The control clock module 40 provides a first clock signal to the analog microphone module 10 and the first down-sampling filter 31 , and provides a second clock signal to the digital microphone module 20 and the second down-sampling filter 32 .
[0085] Figure 3 FIG. 1 is a schematic diagram showing the operation of a microphone mixing system according to an exemplary embodiment. Figure 3 As shown, the input of the analog microphone module is a first sound signal, and the output is a first digital signal, and the input of the digital microphone is a second sound signal, and the output is a second digital signal. The control module controls the first downsampling filter to downsample and filter the first digital signal output by the analog microphone module, outputs a first initial signal, and controls the second downsampling filter to downsample and filter the second digital signal output by the digital microphone module, outputs a second initial signal, and then controls the third downsampling filter to downsample and filter the first initial signal and the second initial signal to obtain a target signal. The control module can also control the first clock module to provide a first clock signal to the analog microphone module and the first downsampling filter, control the second clock module to provide a second clock signal to the digital microphone module and the second downsampling filter, and control the third clock module to provide a third clock signal to the digital microphone module and the third downsampling filter.
[0086] Figure 4 FIG. 1 is a schematic diagram showing the operation of a microphone mixing system according to another exemplary embodiment. Figure 4 As shown, the analog microphone module may include a first analog microphone and a second analog microphone, the first analog microphone is connected to a first Sigma-delta analog circuit, which is used to convert the analog signal output by the first analog microphone into a digital signal. The second analog microphone is connected to a second Sigma-delta analog circuit, which is used to convert the analog signal output by the second analog microphone into a digital signal, and the digital microphone module may include a first digital microphone and a second digital microphone.
[0087] according to Figure 4, the first analog microphone and the first Sigma-delta analog circuit can be controlled by the control module to form a first path with the first downsampling filter and the third downsampling filter, and the second digital microphone can be controlled to form a second path with the second downsampling filter and the third downsampling filter, so as to achieve mixed use of analog microphones and digital microphones. The first digital microphone can also be controlled to form a first path with the first downsampling filter and the third downsampling filter, and the second analog microphone and the second Sigma-delta analog circuit can be controlled to form a second path with the second downsampling filter and the third downsampling filter, so as to achieve mixed use of analog microphones and digital microphones. The embodiments of the present disclosure do not specifically limit the selection method of the components of the first path and the second path.
[0088] The control module controls the first downsampling filter to perform downsampling filtering on the signal input through the first path, and controls the second downsampling filter to perform downsampling filtering on the signal input through the second path. Then, the third downsampling filter is controlled to perform unified downsampling filtering on the signals output by the first sampling filter and the second downsampling filter to obtain a digital signal with a sampling rate of the target sampling rate.
[0089] At the same time, the control module is also used to control the first clock module to provide a first clock signal for the selected analog microphone and the first downsampling filter according to the clock source signal and the first input clock frequency provided by the clock source, and the second clock module is controlled to provide a second clock signal for the selected digital microphone and the second downsampling filter according to the clock source signal and the second input clock frequency provided by the clock source, and the third clock module is controlled to provide a corresponding clock signal for the third downsampling filter. Among them, the third clock module can be a FIR / IIR clock module, which provides a FIR / IIR clock signal for the third downsampling filter so that the downsampling filter can be time-division multiplexed. It is worth noting that the third downsampling filter can be composed of a combination of one or more stages of filters, which is not limited in the embodiment of the present disclosure. The signals output by the first downsampling filter and the second downsampling filter are uniformly downsampled and filtered by the one or more stages of filters to obtain a digital signal with a sampling rate of the target sampling rate. Among them, the downsampling ratio of the one or more stages of filters can be set according to the actual application scenario, and the embodiment of the present disclosure is not specifically limited to this.
[0090] Figure 5 is a flow chart of a microphone mixing method according to an exemplary embodiment, and the microphone mixing method is applied to any microphone mixing system mentioned in the claim. Figure 5 As shown, the process includes the following steps:
[0091] Step S11, determining a first input clock frequency of the analog microphone and a second input clock frequency of the digital microphone.
[0092] Step S12, obtaining a target sampling rate.
[0093] Step S13, according to the first input clock frequency, controlling the clock module to provide a first clock signal for the analog microphone and the downsampling filter module, and according to the second input clock frequency, controlling the clock module to provide a second clock signal for the digital microphone and the downsampling filter module.
[0094] Step S14, determining a first downsampling ratio according to the first clock frequency and the target sampling rate, and determining a second downsampling ratio according to the second clock frequency and the target sampling rate.
[0095] Step S15, according to the first downsampling ratio, control the downsampling filter module to downsample the signal output by the analog microphone to obtain the target signal, and according to the second downsampling ratio, control the downsampling filter module to downsample the signal output by the digital microphone to obtain the target signal.
[0096] It should be understood that the first input clock frequency is the clock frequency of the clock signal that the clock module needs to provide to the analog microphone when the analog microphone and the digital microphone are mixed, the second input clock frequency is the clock frequency of the clock signal that the clock module needs to provide to the digital microphone when the analog microphone and the digital microphone are mixed, and the target sampling rate is the sampling rate of the signal that needs to be output when the analog microphone and the digital microphone are mixed, which can be input manually. The first downsampling ratio is a control parameter of the first downsampling filter, and the signal output by the analog microphone is downsampled at the first downsampling ratio by controlling the first downsampling filter to obtain the target signal. The second downsampling ratio is a control parameter of the second downsampling filter, and the signal output by the digital microphone is downsampled at the second downsampling ratio by controlling the second downsampling filter to obtain the target signal.
[0097] Through the above technical method, the signal output by the analog microphone module and the signal output by the digital microphone module are subjected to downsampling filtering processing with different downsampling ratios according to the first clock frequency and the second clock frequency, so as to obtain a target signal with a sampling rate of the target sampling rate. In this way, while controlling the output sampling rate to be consistent and synchronized, the analog microphone module and the digital microphone module can both work at their maximum clock frequency, thereby reducing costs and improving efficiency.
[0098] In a possible manner, determining the first input clock frequency of the analog microphone and the second input clock frequency of the digital microphone may be:
[0099] Obtain a first clock frequency and a second clock frequency;
[0100] Determine the clock source frequency required for mixed use of the analog microphone and the digital microphone according to the first clock frequency and the second clock frequency;
[0101] Determine a mixed frequency division ratio of the analog microphone and the digital microphone according to the first clock frequency, the second clock frequency and the clock source frequency;
[0102] The first input clock frequency and the second input clock frequency are determined according to the mixed frequency division ratio and the clock source frequency.
[0103] For example, the clock source frequency is a clock frequency that satisfies the mixed use of an analog microphone and a digital microphone at the same time, which can be determined by calculating the least common multiple of the first clock frequency and the second clock frequency. Of course, the clock source frequency can also be calculated by other methods, and the embodiments of the present disclosure are not limited to this. After determining the clock source frequency, the mixed frequency division ratio of the analog microphone and the digital microphone can be calculated based on the first clock frequency, the second clock frequency, and the clock source frequency, and then the first input clock frequency and the second input clock frequency can be calculated based on the mixed frequency division ratio and the clock source frequency.
[0104] Of course, the first input clock frequency and the second input clock frequency may also be calculated by other methods, and may also be customized according to the application scenario and the performance of the analog microphone and the digital microphone, which is not limited in the embodiments of the present disclosure.
[0105] In a possible manner, downsampling a signal output by an analog microphone according to a first downsampling ratio to obtain a target signal, and downsampling a signal output by a digital microphone according to a second downsampling ratio to obtain a target signal includes:
[0106] Downsampling the signal output by the analog microphone according to a first downsampling ratio to obtain a first initial signal; and
[0107] Downsampling the signal output by the digital microphone according to a second downsampling ratio to obtain a second initial signal;
[0108] Downsampling the first initial signal to obtain a target signal; and
[0109] The second initial signal is downsampled to obtain a target signal.
[0110] It should be understood that the first initial signal and the second initial signal can be digital signals with the same sampling rate. After obtaining the first initial signal and the second initial signal according to different sampling rates, the first initial signal and the second initial signal are uniformly downsampled and filtered to obtain a target signal with a preset target sampling rate.
[0111] For example, the multiple relationship between the target sampling rate of the target signal and the sampling rates of the first initial signal and the second initial signal can be customized according to the actual application scenario, so as to determine the sampling rates of the first initial signal and the second initial signal according to the preset target sampling rate. For example, the target sampling rate of the target signal is f s The sampling rates of the first initial signal and the second initial signal are both f0, and the preset f0=8f s , then we can calculate f based on the known f0 s , then according to the first clock frequency and f s , calculate the first downsampling ratio D1, and according to the second clock frequency and f s , calculate and obtain the second downsampling ratio D2. So that the first downsampling filter downsamples the signal output by the analog microphone according to the first downsampling ratio D1, and outputs the first initial signal, and the second downsampling filter downsamples the signal output by the digital microphone according to the second downsampling ratio D2, and outputs the second initial signal. Then, the first initial signal and the second initial signal are uniformly downsampled and filtered by the third downsampling filter according to the preset downsampling ratio, and the sampling rate is f s The downsampling factor of the third downsampling filter can be calculated based on the known relationship f0=8f s The calculated value is 8. The third downsampling filter may be a time division multiplexing IIR / FIR downsampling filter.
[0112] Table 1 shows the example parameters obtained according to the above calculation scheme.
[0113] Table 1
[0114]
[0115] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the microphone mixing method provided by the present disclosure are implemented.
[0116] The present disclosure also provides an electronic device, comprising:
[0117] a memory having a computer program stored thereon;
[0118] The processor is used to execute the computer program in the memory to implement the steps of the microphone mixing method provided in the present disclosure.
[0119] Figure 6 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 6As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0120] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned storage method. The memory 702 is used to store various types of data to support the operation of the electronic device 700. These data may include instructions for any application or method used to operate on the electronic device 700, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0121] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned microphone mixing method.
[0122] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the microphone mixing method described above are implemented. For example, the computer-readable storage medium may be the memory 702 including the program instructions, and the program instructions may be executed by the processor 701 of the electronic device 700 to complete the microphone mixing method described above.
[0123] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the microphone mixing method when executed by the programmable device.
[0124] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0125] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0126] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A microphone mixing system, characterized in that: include: Analog microphone module, digital microphone module, downsampling filter module and clock module; The input end of the downsampling filter module is connected to both the analog microphone module and the digital microphone module, and the downsampling filter module is used to: Downsampling and filtering the signal output by the analog microphone module according to the first clock frequency of the analog microphone module to obtain a target signal with a sampling rate of a target sampling rate; and Downsampling and filtering the signal output by the digital microphone module according to the second clock frequency of the digital microphone module to obtain the target signal; The clock module is connected to the analog microphone module, the digital microphone module and the downsampling filter module, and the clock module is used for: Providing a first clock signal to the analog microphone module and the downsampling filter module according to the first clock frequency; and A second clock signal is provided to the digital microphone module and the down-sampling filter module according to the second clock frequency.
2. The microphone mixing system according to claim 1, characterized in that: The downsampling filter module includes a first downsampling filter and a second downsampling filter; The first downsampling filter is connected to the analog microphone module, and is used to perform downsampling filtering on the signal output by the analog microphone module according to the first clock frequency to obtain the target signal; The second down-sampling filter is connected to the digital microphone module, and is used to perform down-sampling filtering on the signal output by the digital microphone module according to the second clock frequency to obtain the target signal.
3. The microphone mixing system according to claim 2, characterized in that: The system further comprises a third down-sampling filter, the input end of the third down-sampling filter being connected to both the output end of the first down-sampling filter and the output end of the second down-sampling filter, the third down-sampling filter being used for: Downsampling and filtering the signal output by the first downsampling filter to obtain the target signal; and Downsampling and filtering are performed on the signal output by the second downsampling filter to obtain the target signal.
4. The microphone mixing system according to claim 2, characterized in that: The clock module includes a first clock submodule and a second clock submodule; The first clock submodule is connected to both the analog microphone module and the first downsampling filter, and is used to provide a first clock signal to the analog microphone module and the first downsampling filter according to the first clock frequency; The second clock submodule is connected to both the digital microphone module and the second down-sampling filter, and is configured to provide a second clock signal to the digital microphone module and the second down-sampling filter according to the second clock frequency.
5. The microphone mixing system according to claim 2, characterized in that: The system further includes a control module, which is connected to the analog microphone module, the digital microphone module, the downsampling filter module and the clock module, and is used to: According to the first clock frequency, controlling the first downsampling filter to downsample the signal output by the analog microphone to obtain the target signal; and According to the second clock frequency, controlling the second down-sampling filter to down-sample the signal output by the digital microphone to obtain the target signal; The clock module is controlled to provide the first clock signal to the analog microphone module and the first down-sampling filter, and to provide the second clock signal to the digital microphone module and the second down-sampling filter.
6. A microphone mixing method, characterized in that: The microphone mixing system according to any one of claims 1 to 5 comprises: determining a first input clock frequency for the analog microphone and a second input clock frequency for the digital microphone; Get the target sampling rate; According to the first input clock frequency, control the clock module to provide the first clock signal to the analog microphone and the downsampling filter module, and according to the second input clock frequency, control the clock module to provide the second clock signal to the digital microphone and the downsampling filter module; Determine a first downsampling ratio according to the first clock frequency and the target sampling rate, and determine a second downsampling ratio according to the second clock frequency and the target sampling rate; According to the first downsampling ratio, the downsampling filter module is controlled to downsample the signal output by the analog microphone to obtain a target signal, and according to the second downsampling ratio, the downsampling filter module is controlled to downsample the signal output by the digital microphone to obtain the target signal.
7. The method according to claim 6, characterized in that The determining of a first input clock frequency of the analog microphone and a second input clock frequency of the digital microphone comprises: Acquire the first clock frequency and the second clock frequency; Determining a clock source frequency required for mixed use of the analog microphone and the digital microphone according to the first clock frequency and the second clock frequency; Determine a mixed frequency division ratio of the analog microphone and the digital microphone according to the first clock frequency, the second clock frequency and the clock source frequency; The first input clock frequency and the second input clock frequency are determined according to the mixed frequency division ratio and the clock source frequency.
8. The method according to claim 6, characterized in that The method of controlling the downsampling filter module to downsample the signal output by the analog microphone according to the first downsampling ratio to obtain a target signal, and controlling the downsampling filter module to downsample the signal output by the digital microphone according to the second downsampling ratio to obtain the target signal, comprises: Downsampling the signal output by the analog microphone according to the first downsampling ratio to obtain a first initial signal; and Downsampling the signal output by the digital microphone according to the second downsampling ratio to obtain a second initial signal; downsampling the first initial signal to obtain the target signal; and The second initial signal is downsampled to obtain the target signal.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 6 to 8 are implemented.
10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 6 to 8.
Citation Information
Cited By
Audio signal processing method, microphone receiving device and wireless microphone system
CN121218070A