Self-calibration method, device and electronic device for distributed microphone array
Through the self-calibration method of distributed microphone array, the sound field information is broadened, which solves the problem of insufficient audio stream clarity of multi-microphone array in complex sound field environment, and achieves more efficient spatial filtering enhancement and noise suppression.
Patent Information
- Application Number
- CN202010206123.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-03-23
AI Technical Summary
Existing multi-microphone arrays are difficult to effectively improve the clarity of audio streams in complex sound field environments, and are prone to failure or voice damage, especially in multi-path reverberation scenarios.
Through the self-calibration method of the distributed microphone array, the distance measurement between the ultrasonic transmitter and the microphone is used to calculate the relative position coordinates of each microphone, establish a distributed microphone array, expand the number of array elements and spatial size, thereby broadening the sound field information and Improve spatial filtering enhancement effect.
Significantly improves the sound pickup quality, enhances the spatial filtering enhancement effect, reduces noise suppression and frequency distortion problems, and is suitable for multi-device collaborative recording scenarios.
Smart Images

Figure CN113436635B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of signal processing, and in particular to a self-calibration method, device, and electronic device for a distributed microphone array. Background Art
[0002] With the popularity of popular applications such as short videos, live broadcasts, and video podcasts (vlogs, video blogs), more and more ordinary users can use portable electronic devices to record their daily lives, create works, and even become a member of the self-media army in the form of audio or video. However, due to the particularity of the sound field environment, such as the interference of environmental noise, the influence of indoor reverberation, and the attenuation caused by the distance from the sound source, the quality and clarity of the recording in reality is poor, which greatly affects the recording experience.
[0003] The spatial domain filter based on a multi-microphone array can separate and reduce noise of audio streams by using the differences in the spatial information of the sound field of the sound source, and can meet the recording requirements in terms of fidelity performance. Therefore, electronic devices on the market such as smart phones, tablets, voice recorders, cameras, etc. generally perform spatial filtering and enhancement processing on the audio stream based on multi-microphone arrays or directional microphones to improve the sound pickup quality.
[0004] In the patent application with application number 201410468440.X and patent name "A method and system for speech noise reduction based on microphone array", a method and system for speech noise reduction based on microphone array is disclosed, including: constructing two non-directional microphones constituting the microphone array into two back-facing cardioid directional microphones to obtain a forward target speech signal and a backward noise signal; performing frequency equalization on the forward target speech signal and the backward noise signal to the same degree to obtain an equalized target speech signal and an equalized noise signal; performing adaptive double filtering on the forward target speech signal and the backward noise signal to obtain a corrected noise signal and a corrected target speech signal; and obtaining a restored target speech signal based on the corrected target speech signal. In this technical solution, frequency equalization is used to avoid frequency distortion of the restored target speech signal, and an adaptive double filtering method is used to solve the problem that the target speech signal is also damaged while noise reduction is performed through an adaptive filter, thereby completely avoiding distortion of the restored target speech signal.
[0005] However, this technical solution is based on a dual-microphone array. Due to the limitations of the number of microphones and the size of the array, the spatial directivity that can be formed is weak, and the spatial filtering enhancement effect produced is also low. Especially in complex scenarios such as multipath reverberation, it is more likely to cause negative problems such as audio stream failure or voice damage. Summary of the invention
[0006] The embodiments of the present application provide a self-calibration method, device and electronic device for a distributed microphone array, which can broaden the sound field information, enhance the spatial filtering enhancement effect, and improve the sound pickup quality.
[0007] In a first aspect, an embodiment of the present application provides a self-calibration method for a distributed microphone array, comprising:
[0008] Obtaining the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, where the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; and
[0009] Select at least one sound pickup device from the sound pickup devices as a reference device; based on each reference device, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtain the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device;
[0010] Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin according to the coordinates and the distance obtained based on each reference device; the master reference device is a device in the reference device, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device;
[0011] According to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, the coordinates of the microphone of each sound pickup device in the main coordinate system are calculated to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0012] The above-mentioned sound pickup device can be an electronic device that can pick up sound. The electronic device can include a mobile terminal (mobile phone), a smart screen, a drone, an intelligent connected vehicle (ICV, Intelligent Connected Vehicle), a smart / intelligent car or a vehicle-mounted device.
[0013] The above method establishes a distributed microphone array based on the microphones of multiple sound pickup devices, greatly expanding the number of array elements and spatial size of the microphone array for sound pickup, thereby broadening the sound field information, enhancing the spatial filtering enhancement effect, and improving the sound pickup quality.
[0014] In a possible implementation, based on each reference device, a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device is obtained, and before obtaining the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device, the method further includes:
[0015] Get the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices;
[0016] Accordingly, based on each reference device, obtaining the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtaining the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device includes:
[0017] Based on each reference device, the distance between the ultrasonic transmitter of each sound pickup device and the microphone of other sound pickup devices, and the distance between the ultrasonic transmitter of the reference device and the microphone of the reference device are obtained from the distance between the ultrasonic transmitter of the reference device and the microphone of other sound pickup devices.
[0018] In a possible implementation, obtaining the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices includes:
[0019] Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter;
[0020] Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
[0021] In a possible implementation, obtaining the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices includes:
[0022] First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
[0023] In a possible implementation, based on each reference device, obtaining a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device includes:
[0024] Based on each reference device, obtaining a third time when the reference device sends a second ultrasonic signal;
[0025] Based on each microphone of a device other than the reference device, acquiring a fourth time instant at which the microphone receives the second ultrasonic signal;
[0026] The distance between the ultrasonic transmitter of the reference device and the microphone is calculated according to the time difference between the fourth moment and the third moment.
[0027] In a possible implementation, based on each reference device, obtaining a distance between an ultrasonic transmitter of a device other than the reference device and a microphone of the reference device includes:
[0028] Based on each device except the reference device, obtaining a fifth time when the device sends a third ultrasonic signal;
[0029] Based on each microphone of the reference device, obtaining a sixth moment when the microphone receives the third ultrasonic signal;
[0030] The distance between the ultrasonic transmitter of a device other than the reference device and the microphone of the reference device is calculated according to the time difference between the sixth moment and the fifth moment.
[0031] In a possible implementation, based on each reference device, obtaining a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and obtaining a distance between an ultrasonic transmitter of a device other than the reference device and the microphone of the reference device includes:
[0032] Based on each reference device, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0033] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0034] In a possible implementation, a sound pickup device is selected from the sound pickup devices as a reference device, and the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated according to the coordinates and the distance calculated based on each reference device, including:
[0035] The relative position coordinates of the origin of the non-master reference device relative to the master origin are calculated based on the coordinates and the distance calculated based on the master reference device.
[0036] In a possible implementation, at least two sound pickup devices are selected from the sound pickup devices as reference devices, and the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated according to the coordinates and the distance calculated based on each reference device, including:
[0037] Based on each reference device, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin;
[0038] Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
[0039] In a second aspect, an embodiment of the present application provides a self-calibration device for a distributed microphone array, comprising:
[0040] A coordinate acquisition unit, used to acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, the sound pickup device being a device for collaborative sound pickup, and the coordinate system of the sound pickup device being a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin;
[0041] A first distance acquisition unit is used to select at least one sound pickup device from the sound pickup devices as a reference device; based on each reference device, acquire the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and acquire the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device;
[0042] a relative coordinate calculation unit, used to calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates obtained by the coordinate acquisition unit and the distance obtained by the distance acquisition unit; the primary reference device is a device in the reference device, the non-primary reference device is a device other than the primary reference device, and the primary origin is the origin of the coordinate system of the primary reference device;
[0043] The microphone coordinate calculation unit is used to calculate the coordinates of the microphone of each sound pickup device in the main coordinate system according to the relative position coordinates calculated by the relative coordinate calculation unit and the coordinates obtained by the coordinate acquisition unit to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0044] In a possible implementation, the method further includes:
[0045] A second distance acquisition unit, used to acquire the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices;
[0046] Correspondingly, the first distance acquisition unit is specifically used to: based on each reference device, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device from the distance acquired by the second distance acquisition unit.
[0047] In a possible implementation manner, the second distance acquisition unit is specifically configured to:
[0048] Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter;
[0049] Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
[0050] In a possible implementation manner, the second distance acquisition unit is specifically configured to:
[0051] First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
[0052] In a possible implementation manner, the first distance acquisition unit includes:
[0053] The time acquisition subunit is used to acquire, based on each reference device, a third time when the reference device sends the second ultrasonic signal; and, based on each microphone of a device other than the reference device, acquire a fourth time when the microphone receives the second ultrasonic signal;
[0054] The distance calculation subunit is used to calculate the distance between the ultrasonic transmitter of the reference device and the microphone according to the time difference between the fourth moment and the third moment.
[0055] In a possible implementation manner, the first distance acquisition unit includes:
[0056] The time acquisition subunit is further used to: based on each device other than the reference device, acquire the fifth time when the device sends the third ultrasonic signal; based on each microphone of the reference device, acquire the sixth time when the microphone receives the third ultrasonic signal;
[0057] The distance calculation subunit is further used to calculate the distance between the ultrasonic transmitter of a device other than the reference device and the microphone of the reference device according to the time difference between the sixth moment and the fifth moment.
[0058] In a possible implementation manner, the first distance acquisition unit is specifically configured to:
[0059] Based on each reference device, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0060] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0061] In a possible implementation, a sound pickup device is selected from the sound pickup devices as a reference device, and the relative coordinate calculation unit is specifically used for:
[0062] The relative position coordinates of the origin of the non-master reference device relative to the master origin are calculated based on the coordinates and the distance calculated based on the master reference device.
[0063] In a possible implementation, at least two sound pickup devices are selected from the sound pickup devices as reference devices, and the relative coordinate calculation unit is specifically used for:
[0064] Based on each reference device, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin;
[0065] Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
[0066] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0067] One or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps:
[0068] Obtaining the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, where the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; and
[0069] Select at least one sound pickup device from the sound pickup devices as a reference device; based on each reference device, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtain the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device;
[0070] Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin according to the coordinates and the distance obtained based on each reference device; the master reference device is a device in the reference device, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device;
[0071] According to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, the coordinates of the microphone of each sound pickup device in the main coordinate system are calculated to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0072] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method of the first aspect.
[0073] In a fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute the method of the first aspect.
[0074] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 A flowchart of an embodiment of a self-calibration method for a distributed microphone array of the present application;
[0076] Figure 2a A flowchart of another embodiment of the self-calibration method of the distributed microphone array of the present application;
[0077] Figure 2b This is an example diagram of the coordinate system of the sound pickup device according to the embodiment of the present application;
[0078] Figure 2c A schematic diagram of the distance between the ultrasonic transmitter and the microphone of different devices according to the embodiments of the present application;
[0079] Figure 3 A flowchart of another embodiment of the self-calibration method of the distributed microphone array of the present application;
[0080] Figure 4a and Figure 4b A flowchart of an embodiment of a method for obtaining distance in the present application;
[0081] Figure 5 A flowchart of another embodiment of the self-calibration method of the distributed microphone array of the present application;
[0082] Figure 6 A flowchart of another embodiment of the self-calibration method of the distributed microphone array of the present application;
[0083] Figure 7a These are examples of a single-phone recording scenario and a five-phone collaborative recording scenario;
[0084] Figure 7b This is a schematic diagram of the spatial directivity of the microphone array of a single mobile phone in a single mobile phone recording scenario;
[0085] Figure 7c This is a schematic diagram of the spatial directivity of the distributed microphone array in the scenario of collaborative recording of 5 mobile phones;
[0086] Figure 7d This is a schematic diagram of the waveform after spatial filtering enhancement in a single mobile phone video recording scenario;
[0087] Figure 7e This is a schematic diagram of the waveform after spatial filtering enhancement in the scenario of collaborative recording of 5 mobile phones;
[0088] Figure 8 A structural diagram of an embodiment of a self-calibration device for a distributed microphone array of the present application;
[0089] Fig. 9 A structural diagram of another embodiment of a self-calibration device for a distributed microphone array of the present application;
[0090] Fig.10 A structural diagram of another embodiment of a self-calibration device for a distributed microphone array of the present application;
[0091] Fig.11 This is a schematic diagram of the structure of an embodiment of the electronic device of the present application. DETAILED DESCRIPTION
[0092] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
[0093] In existing implementation schemes, important characteristics of the spatial filter, such as noise reduction capability and directivity sharpness, are strongly dependent on the size of the microphone array and the number of microphones that make up the microphone array. Electronic equipment is limited by its own size and manufacturing cost, and fewer microphones can be deployed. The spatial filtering enhancement capability of the microphone array cannot be fully utilized, and the effect of improving quality in video and audio recording scenarios is very limited.
[0094] The embodiments of the present application focus on collaborative sound pickup of electronic devices. By coordinating the microphones of multiple electronic devices to form a distributed microphone array, which can also be called a microphone collaborative sound pickup array, the number of array elements and spatial size of the microphone array for sound pickup are greatly expanded to enhance the spatial filtering enhancement effect, thereby achieving the effect of improving the sound pickup quality of the electronic device.
[0095] To this end, the embodiments of the present application propose a self-calibration method, device and electronic device for a distributed microphone array, which can broaden the sound field information, enhance the spatial filtering enhancement effect, and improve the sound pickup quality.
[0096] The scenarios to which the embodiments of the present application are applicable include at least: at least two electronic devices equipped with microphones, each electronic device is equipped with at least one microphone, each electronic device is equipped with at least one ultrasonic transmitter, and the ultrasonic transmitter can be: a speaker, or a professional ultrasonic speaker, etc.; there is a network for data sharing between the electronic devices, which can be a wired network or a wireless network, and generally a wireless network such as WiFi, Bluetooth, or a mobile network is preferred.
[0097] In a possible implementation, at least one electronic device may be provided with a camera, so that the method of the present application may be applied to the sound pickup of the electronic device in video shooting. Hereinafter, the electronic device participating in the collaborative sound pickup is referred to as a sound pickup device in the embodiments of the present application.
[0098] Figure 1 This is a flow chart of an embodiment of a self-calibration method for a distributed microphone array of the present application, as shown in FIG. Figure 1 As shown, the above method may include:
[0099] Step 101: Obtain the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs. The sound pickup device is a device for collaborative sound pickup. The coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin.
[0100] Step 102: Select at least one sound pickup device from the sound pickup devices as a reference device; based on each of the reference devices, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtain the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device.
[0101] There is no restriction on the execution order of step 101 and step 102 .
[0102] Step 103: Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin based on the coordinates and the distance calculated based on each of the reference devices; the master reference device is one of the reference devices, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device.
[0103] Step 104: Calculate the coordinates of each microphone of the sound pickup device in the main coordinate system according to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0104] Figure 1In the method shown, a distributed microphone array is established based on the microphones of multiple sound pickup devices, which greatly expands the number of array elements and the spatial size of the microphone array for sound pickup, thereby broadening the sound field information. When the distributed microphone array is applied to the spatial filtering enhancement processing of the audio stream, it can enhance the spatial filtering enhancement effect and improve the sound pickup quality.
[0105] Figure 2a This is a flow chart of another embodiment of the self-calibration method of the distributed microphone array of the present application, as shown in FIG. Figure 2a As shown, the method may include:
[0106] Step 201: The user of the main device turns on the collaborative sound pickup function on the user interface (UI) page, and selects the electronic device that he wants to invite for collaborative sound pickup from the list of devices that can communicate with the main device provided on the UI page.
[0107] In this embodiment, the master device refers to an electronic device that actively initiates sound pickup collaboration. Generally, the master device is an electronic device that needs to obtain an audio stream, and improves its own sound pickup quality by inviting other electronic devices to collaboratively pick up sound.
[0108] Step 202: The master device sends a collaborative sound pickup invitation to each selected electronic device.
[0109] Step 203: The electronic device that receives the collaborative sound pickup invitation prompts the user with the information that it is invited to collaborative sound pickup, and the user chooses to agree to join or refuse to join. According to the user's choice, the electronic device sends a reply information based on the collaborative sound pickup invitation to the main device.
[0110] For the electronic device that includes the consent to join information in the reply information, the main device establishes a collaborative sound pickup relationship with it. The following steps are for the main device and the electronic device that establishes a collaborative sound pickup relationship with it. The device that establishes a collaborative sound pickup relationship with the main device is called an auxiliary device, and the main device and the auxiliary device are collectively referred to as a sound pickup device.
[0111] Step 204: The master device and the slave device synchronize clock information.
[0112] Among them, the clock information synchronization can be initiated by the main device or by any auxiliary device. This application is not limited, as long as the clock information of the main device and the auxiliary device can be synchronized.
[0113] Step 205: The master device obtains the coordinates of the microphone of each sound pickup device in the coordinate system of the corresponding sound pickup device.
[0114] The coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin.
[0115] A possible method for establishing a three-dimensional coordinate system can be found in Figure 2b As shown: the origin of the three-dimensional coordinate system can be the center point of the ultrasonic transmitter of the sound pickup device; the x-axis and y-axis of the three-dimensional coordinate system are parallel to the symmetry axis on the upper surface of the sound pickup device, and the z-axis is perpendicular to the plane determined by the x-axis and y-axis.
[0116] Step 206: The master device obtains the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices.
[0117] like Figure 2c As shown, a schematic diagram showing the distance between each ultrasonic transmitter and microphone that the master device needs to calculate is shown. Assuming that the sound pickup device includes device 1, device 2, ..., device K, each device includes an ultrasonic transmitter and two microphones Mic1 and Mic2; then, see Figure 2c , the distances that need to be obtained include:
[0118] The ultrasonic transmitter of device 1 is connected to devices 2 and 3 respectively ( Figure 2c ), ..., the distance between the microphone 1 of the device K;
[0119] The distances between the ultrasonic transmitter of device 1 and the microphone 2 of device 2, device 3, ..., device K, respectively;
[0120] The distances between the ultrasonic transmitter of device 2 and the microphone 1 of device 1, device 3, ..., device K, respectively;
[0121] The distances between the ultrasonic transmitter of device 2 and the microphone 2 of device 1, device 3, ..., device K, respectively;
[0122] And so on, until
[0123] The ultrasonic transmitter of device K is connected to device 1, device 2, ..., device K-1 ( Figure 2c The distance between microphones 1 (not shown);
[0124] The distances between the ultrasonic transmitter of device K and the microphone 2 of device 1, device 2, ..., device K-1, respectively.
[0125] In a possible implementation, the master device obtains the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup device, which may include:
[0126] Based on each sound pickup device, the master device obtains a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter;
[0127] Based on the microphone of each other sound pickup device, the main device obtains the second moment when the microphone receives the ultrasonic signal, and calculates the distance between the ultrasonic transmitter of the sound pickup device and the microphone according to the time difference between the second moment and the first moment.
[0128] In another possible implementation, the master device obtains the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup device, which may include:
[0129] The main device receives first distance information sent by each sound pickup device, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
[0130] For more detailed implementation of this step, see Figure 4a and Figure 4b The relevant description in is not repeated here.
[0131] Step 207: The master device selects a sound pickup device from the sound pickup devices as a reference device.
[0132] In this step, the main device selects one sound pickup device from the sound pickup devices as a reference device as an example. The reference device can be the main device or the auxiliary device. The main device selects which sound pickup devices as reference devices, which is not limited in this application. In practical applications, the main device can also select two or more than two or even all sound pickup devices as reference devices. For details, see Figure 3 In the illustrated embodiment, the master device selects N sound pickup devices as reference devices, where N is an integer greater than 1 and less than or equal to K, and K is the total number of sound pickup devices, which will not be described in detail here.
[0133] From a statistical probability perspective, the more reference devices there are, the more accurate the relative position coordinates of the origin of each non-main reference device calculated in subsequent steps relative to the main origin will be, and thus the more accurate the coordinates of the microphone of each non-main reference device in the main coordinate system will be.
[0134] Step 208: The master device obtains the distance between the ultrasonic transmitter of the reference device and the microphone of the device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device from the distances obtained in step 206.
[0135] That is, the master device needs to obtain: the distance between the ultrasonic transmitter of the reference device and the microphone of the device other than the reference device, and the distance between the microphone of the reference device and the ultrasonic transmitter of the device other than the reference device.
[0136] For example, the reference device is the main device, and the main device needs to obtain: the distance between the ultrasonic transmitter of the main device and the microphone of the auxiliary device, and the distance between the microphone of the main device and the ultrasonic transmitter of the auxiliary device.
[0137] There are three sound pickup devices, namely device 1, 2 and 3. Each sound pickup device is equipped with an ultrasonic transmitter and two microphones. Assuming that the reference device is device 1, the distances that the master device needs to obtain include:
[0138] The distance between the ultrasonic transmitter of device 1 and the microphone 1 of device 2;
[0139] the distance between the ultrasonic transmitter of device 1 and the microphone 2 of device 2;
[0140] the distance between the ultrasonic transmitter of device 1 and the microphone 1 of device 3;
[0141] the distance between the ultrasonic transmitter of device 1 and the microphone 2 of device 3;
[0142] the distance between the ultrasonic transmitter of device 2 and microphone 1 of device 1;
[0143] the distance between the ultrasonic transmitter of device 2 and microphone 2 of device 1;
[0144] the distance between the ultrasonic transmitter of device 3 and microphone 1 of device 1;
[0145] The distance between the ultrasonic transmitter of device 3 and the microphone 2 of device 1.
[0146] Assuming that the reference device is device 2, the distances that the master device needs to obtain include:
[0147] the distance between the ultrasonic transmitter of device 2 and microphone 1 of device 1;
[0148] the distance between the ultrasonic transmitter of device 2 and microphone 2 of device 1;
[0149] the distance between the ultrasonic transmitter of device 2 and the microphone 1 of device 3;
[0150] the distance between the ultrasonic transmitter of device 2 and microphone 2 of device 3;
[0151] The distance between the ultrasonic transmitter of device 1 and the microphone 1 of device 2;
[0152] The distance between the ultrasonic transmitter of device 1 and the microphone 2 of device 2;
[0153] the distance between the ultrasonic transmitter of device 3 and the microphone 1 of device 2;
[0154] The distance between the ultrasonic transmitter of device 3 and microphone 2 of device 2.
[0155] There is no restriction on the execution order of step 205 and steps 206 to 208.
[0156] Step 209: The main device calculates the relative position coordinates of the origin of the non-main reference device relative to the main origin based on the coordinates obtained in step 205 and the distance calculated based on the reference device in step 208; the main reference device is one of the reference devices, the non-main reference device is a device other than the main reference device, and the main origin is the origin of the coordinate system of the main reference device.
[0157] Since a reference device is selected in step 207, the reference device is the main reference device in this step. Assuming that the main reference device is the main device, the non-main reference device is the auxiliary device, the main coordinate system is the three-dimensional coordinate system established with the ultrasonic transmitter of the main device as the origin, and the main origin is the origin of the main coordinate system. Assuming that the main reference device is auxiliary device A, the non-main reference device is the auxiliary device other than auxiliary device A and the main device, the main coordinate system is the three-dimensional coordinate system established with the ultrasonic transmitter of auxiliary device A as the origin, and the main origin is the origin of the main coordinate system.
[0158] The following is a method for calculating the relative position coordinates between the origins of two sound pickup devices. Assuming that there are K sound pickup devices in total, the i-th sound pickup device is a reference device, and the j-th sound pickup device is a device other than the reference device, j = 1, ..., i-1, i+1, ..., K. For the convenience of description and understanding, they are hereinafter referred to as sound pickup device i and sound pickup device j; sound pickup device i has n i microphones, the sound pickup device j has n j Microphones, n i is a natural number, n j is a natural number; the relative position coordinates of the origin of the pickup device j relative to the origin of the pickup device i are It can be solved by the following formula (1):
[0159]
[0160] in, is the coordinate of the first microphone of sound pickup device i in the coordinate system of sound pickup device i; is the distance between the ultrasonic transmitter of sound pickup device j and the first microphone of sound pickup device i; For sound pickup equipment i The coordinates of the microphones in the coordinate system of the pickup device i; The ultrasonic transmitter of the sound pickup device j and the nth sound pickup device i iThe distance between the microphones; is the coordinate of the first microphone of sound pickup device j in the coordinate system of sound pickup device j, is the distance between the ultrasonic transmitter of sound pickup device i and the first microphone of sound pickup device j, is the nth pickup device j j The coordinates of the microphone in the coordinate system of the pickup device j, The ultrasonic transmitter of the sound pickup device i and the nth j The distance between the microphones.
[0161] Through the above formula set, the relative position coordinates of the origin of the sound pickup device j relative to the origin of the sound pickup device i can be calculated:
[0162] If the sound pickup device i is the reference device, and the sound pickup device j is a device other than the reference device, then the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device can be calculated by the above formula;
[0163] If the sound pickup device i is the main reference device, and the sound pickup device j is the non-main reference device, the relative position coordinates of the origin of the non-main reference device relative to the main origin can be calculated by the above formula.
[0164] Preferably, in order to better calculate the relative position coordinates of the origin of the sound pickup device j relative to the origin of the sound pickup device i The number of formulas in the above formula set is preferably not less than 4, so the sum of the number of microphones on the sound pickup device i and the sound pickup device j is preferably not less than 4. For example, if the sound pickup device i has 1 microphone, then the sound pickup device j preferably has at least 3 microphones; if the sound pickup device i has 2 microphones, then the sound pickup device j preferably has at least 2 microphones; and so on.
[0165] Step 210: The master device calculates the coordinates of the microphone of each sound pickup device in the master coordinate system according to the relative position coordinates of the origin of the non-master reference device relative to the master origin and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, to obtain a distributed microphone array; the master coordinate system is the coordinate system of the master reference device.
[0166] In this step, when calculating the coordinates of the microphone of each sound pickup device in the principal coordinate system, the above formula 1 can be referred to. For example, assuming that the sound pickup device i is the principal reference device, for the first microphone of the sound pickup device j, its coordinates in the principal coordinate system are:
[0167] Step 211: The main device obtains the sound pickup specification parameters of the microphone in the auxiliary device.
[0168] The sound pickup specification parameters may be cached in the memory of the host device.
[0169] There is no restriction on the execution order of this step and steps 204 to 209.
[0170] The sound pickup specification parameters of a microphone may include but are not limited to: microphone sensitivity, frequency response, delay, etc.
[0171] Step 211 is an optional step.
[0172] Through the above steps 201 to 211, the self-calibration of the distributed microphone array is realized. The embodiment of the present application cooperates with the microphones of multiple electronic devices to form a distributed microphone array, which greatly expands the number of array elements and spatial size of the microphone array for picking up sound. The self-calibration method of the distributed microphone array of the embodiment of the present application can be applied to the spatial filtering enhancement processing to improve the spatial filtering enhancement effect. At this time, see Figure 2a As shown, it may further include:
[0173] Step 212: When the microphones of the various sound pickup devices are used for collaborative sound pickup, the master device uses the sound pickup specification parameters of the microphones to normalize the audio stream.
[0174] Step 213: The master device uses the distributed microphone array obtained in step 212 to perform spatial filtering enhancement processing on the sound pickup direction of the normalized audio stream.
[0175] The spatial filtering enhancement processing method used in this step may include but is not limited to: the more commonly used delay accumulation beamforming (DBF) method, or data-independent optimal directional pattern design methods such as Chebychev, spectral weighting, least squares fitting, etc., or data-adaptive statistical optimal waveform estimation algorithms such as MVDR, GSC, LCMV, etc., or other fusion / variant spatial filtering algorithms, which are not limited here.
[0176] The implementation principle of DBF is to calculate the time delay difference information of sound sources incident at different spatial orientations reaching each microphone element through the position information of each microphone element in the microphone array, and perform time delay compensation and cumulative summation processing on the audio stream of each microphone element, so that each audio stream can be added in the same direction in the direction that needs to be enhanced, thereby realizing spatial filtering enhancement in that direction.
[0177] Figure 3 This is a flow chart of another embodiment of the self-calibration method of the distributed microphone array of the present application, as shown in FIG. Figure 3 As shown, the method may include:
[0178] Steps 301 to 306 are the same as steps 201 to 206 and are not described in detail here.
[0179] Step 307: The master device selects N sound pickup devices from the sound pickup devices as reference devices.
[0180] Wherein, N is an integer greater than 1 and less than or equal to K, and K is the total number of sound pickup devices, that is, K is the total number of main devices and auxiliary devices.
[0181] Step 308: Based on each of the reference devices, the master device obtains the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device from the distance obtained in step 306, and obtains the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device.
[0182] Step 309: Based on each of the reference devices, the master device calculates the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; and converts the relative position coordinates into the relative position coordinates of the origin of the non-master reference device relative to the master origin;
[0183] Among them, the method for the main device to calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device can refer to the relevant description in step 209 and will not be repeated here.
[0184] Assume that the main device is device 1, the reference devices are device 2 and device 3, and the main reference device is device 3, then:
[0185] For device 2 as a reference device, the master device calculates: the relative position coordinates of the origin of device 1 relative to the origin of device 2, and the relative position coordinates of the origin of device 3 relative to the origin of device 2;
[0186] For device 3 as a reference device, the master device calculates: the relative position coordinates of the origin of device 1 relative to the origin of device 3, and the relative position coordinates of the origin of device 2 relative to the origin of device 3;
[0187] Afterwards, when the master device converts the relative position coordinates of the origin of device 1 relative to the origin of device 2 into the relative position coordinates of the origin of device 1 relative to the origin of device 3, the relative position coordinates of the origin of device 1 relative to the origin of device 3 can be calculated based on the relative position coordinates of the origin of device 1 relative to the origin of device 2 and the relative position coordinates of the origin of device 2 relative to the origin of device 3.
[0188] At this point, the above calculations obtain the relative position coordinates of the origin of the two devices 1 relative to the origin of the device 3. For the device 1, the subsequent step 310 calculates the average value of the two relative position coordinates.
[0189] When this example is extended to a scenario with more than three devices, there will be more devices similar to device 1 that obtain two or more relative position coordinates of the devices relative to the main origin based on the calculation in this step.
[0190] Step 310: Based on each non-master reference device, the master device calculates the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin, and uses the average value as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
[0191] In one possible implementation, based on all relative position coordinates of the origin of the non-primary reference device relative to the primary origin, the average value of the x-axis coordinate value, the average value of the y-axis coordinate value, and the average value of the z-axis coordinate value can be calculated respectively to obtain the average value of the relative position coordinates of the origin of the non-primary reference device relative to the primary origin.
[0192] Furthermore, in order to improve the calculation accuracy of this step, a weighted value can also be set for each relative position coordinate of the origin of the non-main reference device relative to the main origin, and then the average value of the x-axis coordinate value, the average value of the y-axis coordinate value, and the average value of the z-axis coordinate value are calculated based on the weighted value.
[0193] Continuing with the example in step 309, assuming that the two relative position coordinates of the origin of device 1 relative to the origin of device 3 are (x1, y1, z1) and (x2, y2, z2), then,
[0194] When the average value is calculated directly, the average relative position coordinates of the origin of device 1 relative to the origin of device 3 are:
[0195] When calculating the average value based on the weighted value, assuming that the weighted value of (x1, y1, z1) is p, and the weighted value of (x2, y2, z2) is q, the average relative position coordinates of the origin of device 1 relative to the origin of device 3 are:
[0196] Among them, the weighted value of each relative position coordinate of the origin of device 1 relative to the origin of device 3 can be determined according to the distance between the devices, the detection accuracy of the ultrasonic transmitter, etc. The specific determination method is not limited in the embodiment of this application.
[0197] Step 311: The master device calculates the coordinates of each microphone of the sound pickup device in the master coordinate system according to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to obtain a distributed microphone array; the master coordinate system is the coordinate system of the master reference device.
[0198] The self-calibration of the distributed microphone array is achieved through the above steps 301 to 311. The self-calibration method of the distributed microphone array in the embodiment of the present application can be applied to the spatial filtering enhancement processing to improve the spatial filtering enhancement effect. For details, see Figure 2a Steps 211 to 213 shown in FIG. 1 are not described in detail here.
[0199] Below, through Figure 4a and Figure 4b The implementation of step 206 and step 306 is exemplarily described. Figure 4a and Figure 4b As shown, taking the example of the main device obtaining the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device except the first sound pickup device, the first sound pickup device can be any sound pickup device among the sound pickup devices, the second sound pickup device is any sound pickup device except the first sound pickup device, the first microphone is any microphone of the second sound pickup device, and so on, the main device can obtain the distance between the ultrasonic transmitters of all sound pickup devices and the microphones of other sound pickup devices.
[0200] like Figure 4a As shown, the following steps are included:
[0201] Step 401: The master device instructs the first sound pickup device to prepare to send an ultrasonic signal, and instructs the first sound pickup device and other sound pickup devices of a first sending time of the ultrasonic signal.
[0202] In step 401, the first sending time of the first sound pickup device to send the ultrasonic signal is determined by the master device. In another possible implementation, the first sound pickup device may determine the first sending time of its own ultrasonic signal and then notify the master device, and then the master device may indicate the first sending time to other sound pickup devices. This is not limited here.
[0203] Step 402: The first sound pickup device sends a first ultrasonic signal at a first sending time.
[0204] The ultrasonic signals sent by each sound pickup device may be the same or different. Preferably, the ultrasonic signals sent by the sound pickup device carry the identification of the sound pickup device so that the sound pickup device receiving the ultrasonic signal can identify the transmitting device of the ultrasonic signal. Therefore, in a possible implementation, the first ultrasonic signal includes: the identification of the first sound pickup device.
[0205] Step 403: the second sound pickup device starts to use the first microphone to record and detect the first ultrasonic signal at the first sending time, and sends the first receiving time when the first microphone receives the first ultrasonic signal to the main device.
[0206] Step 404: The master device calculates the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device according to the time difference between the first receiving moment and the first sending moment.
[0207] Specifically, since it is an ultrasonic signal, the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device=(the time difference between the first receiving moment and the first sending moment)*the sound propagation speed in the air.
[0208] like Figure 4b Another method embodiment of a master device obtaining a distance between an ultrasonic transmitter of a first sound pickup device and a first microphone of a second sound pickup device is provided, which replaces the above-mentioned step 403 and step 404 and further includes the following steps based on the above-mentioned step 401 and step 402:
[0209] Step 405: the second sound pickup device starts recording using the first microphone at the first sending time and detects the first ultrasonic signal, and obtains the first receiving time when the first microphone receives the first ultrasonic signal.
[0210] Step 406: the second sound pickup device calculates the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device according to the time difference between the first receiving moment and the first sending moment, and sends the distance to the main device.
[0211] If the second sound pickup device is a master device, there is no need to perform the steps of sending the distance to the master device in this step and the master device receiving the distance in step 407 .
[0212] Step 407: The main device receives the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device, which is sent by the second sound pickup device.
[0213] Figure 4b In the method shown, each sound pickup device calculates the distance between its own microphone and the ultrasonic transmitter of other sound pickup devices and sends the calculated distance to the main device, thereby reducing the data processing workload of the main device.
[0214] pass Figure 4a or Figure 4bBy using the method, the master device obtains the distance between the ultrasonic transmitter of the first sound pickup device and the first microphone of the second sound pickup device. Similarly, the master device can obtain the distance between the ultrasonic transmitter of the first sound pickup device and each microphone of each other sound pickup device, and further obtain the distance between the ultrasonic transmitter of each sound pickup device and each microphone of each other sound pickup device.
[0215] right Figure 4a The method shown is explained by taking an example: Assume that there are three sound pickup devices, namely, device 1, 2, and 3, each of which is provided with an ultrasonic transmitter and two microphones. Assume that the main device is device 2 and the first sound pickup device is device 1, then:
[0216] In step 401, device 2 instructs device 1 to prepare to send an ultrasonic signal, and notifies device 1 and device 3 of time 1;
[0217] In step 402, device 1 sends an ultrasonic signal at time 1;
[0218] In step 403, microphone 21 of device 2, microphone 22 of device 2, microphone 31 of device 3, and microphone 32 of device 3 start recording at time 1 respectively. Device 2 detects time 2 when microphone 21 receives an ultrasonic signal from the recording of microphone 21, and detects time 3 when microphone 22 receives an ultrasonic signal from the recording of microphone 22, and sends time 2 corresponding to microphone 21 and time 3 corresponding to microphone 22 to the master device; device 3 detects time 4 when microphone 31 receives an ultrasonic signal from the recording of microphone 31, and detects time 5 when microphone 32 receives an ultrasonic signal from the recording of microphone 32, and sends time 4 corresponding to microphone 31 and time 5 corresponding to microphone 32 to the master device;
[0219] In step 404, device 2 calculates the distance between the ultrasonic transmitter of device 1 and microphone 21 of device 2 according to the time difference between time 2 and time 1, calculates the distance between the ultrasonic transmitter of device 1 and microphone 22 of device 2 according to the time difference between time 3 and time 1, calculates the distance between the ultrasonic transmitter of device 1 and microphone 31 of device 3 according to the time difference between time 4 and time 1, and calculates the distance between the ultrasonic transmitter of device 1 and microphone 32 of device 3 according to the time difference between time 5 and time 1. According to the same method, device 2 can obtain the distance between the ultrasonic transmitter of device 2 and each microphone of device 1, the distance between the ultrasonic transmitter of device 2 and each microphone of device 3, the distance between the ultrasonic transmitter of device 3 and each microphone of device 1, and the distance between the ultrasonic transmitter of device 3 and each microphone of device 2.
[0220] right Figure 4b The method shown is explained by taking an example: Assume that there are three sound pickup devices, namely, device 1, 2, and 3, each of which is provided with an ultrasonic transmitter and two microphones. Assume that the main device is device 2 and the first sound pickup device is device 1, then:
[0221] In step 401, device 2 instructs device 1 to prepare to send an ultrasonic signal, and notifies device 1 and device 3 of time 1;
[0222] In step 402, device 1 sends an ultrasonic signal at time 1;
[0223] In steps 405 to 406, microphone 21 of device 2, microphone 22 of device 2, microphone 31 of device 3, and microphone 32 of device 3 start recording at time 1 respectively. Device 2 detects time 2 when microphone 21 receives the ultrasonic signal from the recording of microphone 21, and calculates the distance between the ultrasonic transmitter of device 1 and microphone 21 of device 2 according to the time difference between time 2 and time 1; device 2 detects time 3 when microphone 22 receives the ultrasonic signal from the recording of microphone 22, and calculates the distance between the ultrasonic transmitter of device 1 and microphone 22 of device 2 according to the time difference between time 3 and time 1; device 3 detects time 4 when microphone 31 receives the ultrasonic signal from the recording of microphone 31, and calculates the distance between the ultrasonic transmitter of device 1 and microphone 31 of device 3 according to the time difference between time 4 and time 1; detects time 5 when microphone 32 receives the ultrasonic signal from the recording of microphone 32, and calculates the distance between the ultrasonic transmitter of device 1 and microphone 32 of device 3 according to the time difference between time 5 and time 1; device 3 sends the above two calculated distances to device 2.
[0224] In step 407, device 2 receives two distance values sent by device 3. Thus, device 2 obtains the distances between the ultrasonic transmitter of device 1 and each microphone of device 2, and the distances between the ultrasonic transmitter of device 1 and each microphone of device 3.
[0225] According to the same method, device 2 can obtain the distance between the ultrasonic transmitter of device 2 and each microphone of device 1, the distance between the ultrasonic transmitter of device 2 and each microphone of device 3, the distance between the ultrasonic transmitter of device 3 and each microphone of device 1, and the distance between the ultrasonic transmitter of device 3 and each microphone of device 2.
[0226] Figure 2a and Figure 3In the method shown, the master device first obtains the distance between the ultrasonic transmitter of each sound pickup device and the microphone of other sound pickup devices to provide possible data for processing in subsequent steps. However, in actual applications, if only some sound pickup devices are selected as reference devices in subsequent steps, then all values of the distance obtained by the master device do not need to be used in the subsequent calculation process, that is, there is redundancy in the above distance obtained by the master device. Therefore, the present application also provides the following Figure 5 and Figure 6 In the method shown, the master device only obtains the distance required to be used, eliminating the occurrence of the aforementioned redundancy.
[0227] Figure 5 This is a flowchart of another embodiment of the spatial filtering enhancement method of the present application. Figure 2a The differences between the illustrated embodiments are mainly:
[0228] Figure 5 The methods shown do not include Figure 2a Step 206 in the above example, the subsequent step numbers are modified accordingly; and step 507 is modified as follows:
[0229] Step 507: The master device obtains the distance between the ultrasonic transmitter of the reference device and the microphone of the device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device.
[0230] In a possible implementation, for the reference device selected by the master device in step 506, the master device obtaining the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device in step 507 may include:
[0231] The master device obtains a third moment when the reference device sends a second ultrasonic signal;
[0232] Based on each microphone of a device other than the reference device, the master device acquires a fourth moment when the microphone receives the second ultrasonic signal;
[0233] The master device calculates the distance between the ultrasonic transmitter of the reference device and the microphone according to the time difference between the fourth moment and the third moment.
[0234] For the reference device selected by the master device in step 506, the master device obtaining the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device in step 507 may include:
[0235] Based on each device except the reference device, the master device obtains a fifth time when the device sends a third ultrasonic signal;
[0236] Based on each microphone of the reference device, the master device obtains a sixth moment when the microphone receives the third ultrasonic signal;
[0237] The master device calculates the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device according to the time difference between the sixth moment and the fifth moment.
[0238] In another possible implementation, for the reference device selected by the master device in step 506, the master device obtaining the distance between the ultrasonic transmitter of the reference device and the microphone of the device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device in step 507 may include:
[0239] The master device receives second distance information sent by the reference device, where the second distance information includes: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0240] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0241] The specific implementation of this step can also refer to Figure 4a to Figure 4b The description is not repeated here.
[0242] Figure 6 This is a flowchart of another embodiment of the self-calibration method of the distributed microphone array of the present application. Figure 3 The differences between the illustrated embodiments are mainly:
[0243] Figure 6 The methods shown do not include Figure 3 Step 306 in the above example. At this time, step 607 is modified as follows:
[0244] Step 607: Based on each of the reference devices, the master device obtains the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtains the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device.
[0245] In a possible implementation, based on each of the reference devices, the master device acquiring the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device may include:
[0246] Based on each of the reference devices, acquiring a third moment when the reference device sends a second ultrasonic signal;
[0247] Based on each microphone of a device other than the reference device, acquiring a fourth moment when the microphone receives the second ultrasonic signal;
[0248] The distance between the ultrasonic transmitter of the reference device and the microphone is calculated according to the time difference between the fourth moment and the third moment.
[0249] The master device acquiring, based on each of the reference devices, the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device may include:
[0250] Based on each device except the reference device, obtaining a fifth time when the device sends a third ultrasonic signal;
[0251] Based on each microphone of the reference device, acquiring a sixth moment when the microphone receives the third ultrasonic signal;
[0252] The distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device is calculated according to the time difference between the sixth moment and the fifth moment.
[0253] In another possible implementation, based on each of the reference devices, the master device obtains the distances between the ultrasonic transmitter of the reference device and the microphones of other devices except the reference device, and obtains the distances between the ultrasonic transmitters of the other devices and the microphone of the reference device, which may include:
[0254] Based on each of the reference devices, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0255] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0256] For the specific implementation of this step, please refer to Figure 4a and Figure 4b The instructions in are not repeated here.
[0257] Based on the above embodiments of the present application, in a certain mobile phone live video scene, the effects of single mobile phone video pickup and multi-mobile phone collaborative video pickup in the present application are compared. The arrangement of mobile phones in the scene is shown in FIG. Figure 7a As shown in the two figures, the example refers to the common 5-camera mobile phone video live broadcast scene. It is assumed that each mobile phone has 2 microphones, which are placed on the top and bottom of the mobile phone. According to the method of this application, the collaborative array self-calibration and time delay summation spatial enhancement processing are performed. Figure 7b and Figure 7c By comparison, we can see that collaborative processing can produce a sharper spatial directivity effect. Figure 7d and Figure 7e It can be seen from the comparison that the method of the present application can bring better noise suppression capability and significantly improve the sound pickup quality.
[0258] The embodiment of the present application does not require pre-fixing and measuring the location information of the cooperative device, and can be applied to video and audio recording scenarios of mobile terminal device users;
[0259] The embodiment of the present application combines ultrasonic ranging and spherical intersection positioning solution models to perform self-calibration and positioning solution on the microphone position information of the collaborative array. It does not need to rely on the directional characteristics of high-frequency ultrasound to assist in orientation. Usually, the audible sound wave boundary frequency band (such as 18k~24k Hz) can meet the needs. Therefore, even if the speaker of the portable terminal device is used, the requirements can be met. The receiver is the microphone built into the device, so there is no need to add additional professional ultrasonic transmitters and receivers, which has hardware cost advantages.
[0260] Spatial filtering enhancement processing based on collaborative array of mobile portable devices can better improve the video and sound pickup quality of the device.
[0261] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.
[0262] Figure 8 This is a structural diagram of an embodiment of a self-calibration device for a distributed microphone array of the present application. Fig. 9 As shown, the apparatus 800 may include:
[0263] A coordinate acquisition unit 810 is used to acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, wherein the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin;
[0264] A first distance acquisition unit 820 is used to select at least one sound pickup device from the sound pickup devices as a reference device; based on each of the reference devices, acquire the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and acquire the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device;
[0265] A relative coordinate calculation unit 830 is used to calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates obtained by the coordinate acquisition unit 810 and the distance obtained by the distance acquisition unit 820; the primary reference device is one of the reference devices, the non-primary reference device is a device other than the primary reference device, and the primary origin is the origin of the coordinate system of the primary reference device;
[0266] The microphone coordinate calculation unit 840 is used to calculate the coordinates of the microphone of each of the sound pickup devices in the main coordinate system according to the relative position coordinates calculated by the relative coordinate calculation unit 830 and the coordinates obtained by the coordinate acquisition unit 810, so as to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0267] In one possible implementation, see Fig. 9 As shown, the device 800 may further include:
[0268] A second distance acquisition unit 910 is used to acquire the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup devices;
[0269] Correspondingly, the first distance acquisition unit 820 can be specifically used to: based on each of the reference devices, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device from the distance obtained by the second distance acquisition unit 910.
[0270] In a possible implementation manner, the second distance acquiring unit 910 may be specifically configured to:
[0271] Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter;
[0272] Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
[0273] In another possible implementation manner, the second distance acquiring unit 910 may be specifically configured to:
[0274] First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
[0275] In a possible implementation, the first distance acquiring unit 820 may include:
[0276] The time acquisition subunit is used to acquire, based on each of the reference devices, a third time when the reference device sends the second ultrasonic signal; and, based on each microphone of a device other than the reference device, acquire a fourth time when the microphone receives the second ultrasonic signal;
[0277] The distance calculation subunit is used to calculate the distance between the ultrasonic transmitter of the reference device and the microphone according to the time difference between the fourth moment and the third moment.
[0278] In a possible implementation, the first distance acquiring unit 820 may include:
[0279] The time acquisition subunit is used to acquire, based on each device other than the reference device, a fifth time when the device sends the third ultrasonic signal; and, based on each microphone of the reference device, acquire a sixth time when the microphone receives the third ultrasonic signal;
[0280] The distance calculation subunit is used to calculate the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device according to the time difference between the sixth moment and the fifth moment.
[0281] In a possible implementation, the first distance acquiring unit 820 may be specifically configured to:
[0282] Based on each of the reference devices, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0283] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0284] In a possible implementation, a sound pickup device is selected from the sound pickup devices as a reference device, and the relative coordinate calculation unit 830 can be specifically used to:
[0285] The relative position coordinates of the origin of the non-master reference device relative to the master origin are calculated according to the coordinates and the distance calculated based on the master reference device.
[0286] In a possible implementation, at least two sound pickup devices are selected from the sound pickup devices as reference devices, and the relative coordinate calculation unit 830 can be specifically used to:
[0287] Based on each of the reference devices, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin;
[0288] Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
[0289] In one possible implementation, see Fig.10 As shown, in Figure 8 Based on the device shown, the device 800 may further include:
[0290] The synchronization unit 1010 is configured to synchronize the clock information of the sound pickup device before the first distance acquisition unit acquires the distance.
[0291] See also Fig.10 As shown, the device 800 may further include:
[0292] The sound pickup negotiation unit 1020 is used to select a sound pickup device in the same network from the device list in the UI page before the coordinate acquisition unit acquires the coordinates; send a collaborative sound pickup invitation to the selected sound pickup device; and receive a reply message from the sound pickup device based on the collaborative sound pickup invitation.
[0293] The above device can be used to implement the present application Figure 1 to Figure 6 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0294] It should be understood that the division of the various units of the device shown above is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these units can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, the coordinate acquisition unit can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other units is similar. In addition, all or part of these units can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or the above units can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.
[0295] For example, the above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0296] Fig.11 This is a schematic diagram of the structure of an embodiment of the electronic device of the present application. Fig.11 As shown, the electronic device may include: a display screen; one or more processors; a memory; and one or more computer programs.
[0297] Among them, the display screen may include a display screen of a vehicle-mounted computer (Mobile Data Center); the electronic device may be a mobile terminal (mobile phone), a smart screen, a drone, an intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as: ICV), a smart / intelligent car or a vehicle-mounted device and other devices.
[0298] The one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the following steps:
[0299] Acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, wherein the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; and
[0300] Select at least one sound pickup device from the sound pickup devices as a reference device; based on each of the reference devices, obtain the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and obtain the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device;
[0301] Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin according to the coordinates and the distance obtained based on each of the reference devices; the master reference device is one of the reference devices, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device;
[0302] According to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, the coordinates of the microphone of each sound pickup device in the main coordinate system are calculated to obtain a distributed microphone array; the main coordinate system is the coordinate system of the main reference device.
[0303] In a possible implementation manner, when the instruction is executed by the device, the device executes the step of acquiring, based on each reference device, the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and before the step of acquiring the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device, further executing the following steps:
[0304] Get the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices;
[0305] Accordingly, based on each of the reference devices, obtaining the distances between the ultrasonic transmitter of the reference device and the microphones of devices other than the reference device, and obtaining the distances between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device includes:
[0306] Based on each of the reference devices, the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup devices, and the distance between the ultrasonic transmitter of the reference device and the microphone of the reference device are obtained from the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup devices.
[0307] In a possible implementation, when the instruction is executed by the device, causing the device to execute the step of obtaining the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices includes:
[0308] Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter;
[0309] Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
[0310] In a possible implementation, when the instruction is executed by the device, causing the device to execute the step of obtaining the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices includes:
[0311] First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
[0312] In a possible implementation manner, when the instruction is executed by the device, causing the device to execute the step of acquiring, based on each reference device, a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, including:
[0313] Based on each of the reference devices, acquiring a third moment when the reference device sends a second ultrasonic signal;
[0314] Based on each microphone of a device other than the reference device, acquiring a fourth moment when the microphone receives the second ultrasonic signal;
[0315] The distance between the ultrasonic transmitter of the reference device and the microphone is calculated according to the time difference between the fourth moment and the third moment.
[0316] In a possible implementation manner, when the instruction is executed by the device, causing the device to execute the step of acquiring, based on each reference device, the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device, including:
[0317] Based on each device except the reference device, obtaining a fifth time when the device sends a third ultrasonic signal;
[0318] Based on each microphone of the reference device, acquiring a sixth moment when the microphone receives the third ultrasonic signal;
[0319] The distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device is calculated according to the time difference between the sixth moment and the fifth moment.
[0320] In a possible implementation manner, when the instruction is executed by the device, the device executes the step of acquiring, based on each reference device, the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and the step of acquiring the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device includes:
[0321] Based on each of the reference devices, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device;
[0322] Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
[0323] A sound pickup device is selected from the sound pickup devices as a reference device. When the instruction is executed by the device, the device executes the step of calculating the relative position coordinates of the origin of the non-main reference device relative to the main origin according to the coordinates and the distance calculated based on each of the reference devices, including:
[0324] The relative position coordinates of the origin of the non-master reference device relative to the master origin are calculated according to the coordinates and the distance calculated based on the master reference device.
[0325] At least two sound pickup devices are selected from the sound pickup devices as reference devices. When the instruction is executed by the device, the device performs the step of calculating the relative position coordinates of the origin of the non-main reference device relative to the main origin according to the coordinates and the distance calculated based on each of the reference devices, including:
[0326] Based on each of the reference devices, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin;
[0327] Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
[0328] In a possible implementation manner, when the instruction is executed by the device, the device executes the step of acquiring, based on each reference device, the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and before the step of acquiring the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device, further executing the following steps:
[0329] The clock information of the sound pickup device is synchronized.
[0330] In a possible implementation, when the instruction is executed by the device, before the device executes the step of obtaining the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, the device further executes the following steps:
[0331] Select the pickup device on the same network from the device list on the UI page;
[0332] Sending a collaborative sound pickup invitation to the selected sound pickup device;
[0333] The reply information of the sound pickup device based on the collaborative sound pickup invitation is received.
[0334] Fig.11 The electronic device shown can be a terminal device or a circuit device built into the terminal device. The device can be used to execute the present application Figure 1 to Figure 6 The illustrated embodiments provide functions / steps in the method.
[0335] The electronic device 1100 may include a processor 1110, an external memory interface 1120, an internal memory 1121, a universal serial bus (USB) interface 1130, a charging management module 1140, a power management module 1141, a battery 1142, an antenna 1, an antenna 2, a mobile communication module 1150, a wireless communication module 1160, an audio module 1170, a speaker 1170A, a receiver 1170B, a microphone 1170C, an earphone interface 1170D, a sensor module 1180, a button 1190, a motor 1191, an indicator 1192, a camera 1193, a display screen 1194, and a subscriber identification module (SIM) card interface 1195, etc. The sensor module 1180 may include a pressure sensor 1180A, a gyroscope sensor 1180B, an air pressure sensor 1180C, a magnetic sensor 1180D, an acceleration sensor 1180E, a distance sensor 1180F, a proximity light sensor 1180G, a fingerprint sensor 1180H, a temperature sensor 1180J, a touch sensor 1180K, an ambient light sensor 1180L, a bone conduction sensor 1180M, and the like.
[0336] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 1100. In other embodiments of the present application, the electronic device 1100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0337] The processor 1110 may include one or more processing units, for example, the processor 1110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0338] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0339] A memory may also be provided in the processor 1110 for storing instructions and data. In some embodiments, the memory in the processor 1110 is a cache memory. The memory may store instructions or data that the processor 1110 has just used or cyclically used. If the processor 1110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1110, and thus improves the efficiency of the system.
[0340] In some embodiments, the processor 1110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0341] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 1110 may include multiple groups of I2C buses. The processor 1110 may be coupled to the touch sensor 1180K, the charger, the flash, the camera 1193, etc. through different I2C bus interfaces. For example: the processor 1110 may be coupled to the touch sensor 1180K through the I2C interface, so that the processor 1110 communicates with the touch sensor 1180K through the I2C bus interface, thereby realizing the touch function of the electronic device 1100.
[0342] The I2S interface can be used for audio communication. In some embodiments, the processor 1110 can include multiple I2S buses. The processor 1110 can be coupled to the audio module 1170 via the I2S bus to achieve communication between the processor 1110 and the audio module 1170. In some embodiments, the audio module 1170 can transmit an audio signal to the wireless communication module 1160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0343] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 1170 and the wireless communication module 1160 can be coupled via a PCM bus interface. In some embodiments, the audio module 1170 can also transmit audio signals to the wireless communication module 1160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0344] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 1110 and the wireless communication module 1160. For example, the processor 1110 communicates with the Bluetooth module in the wireless communication module 1160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 1170 can transmit an audio signal to the wireless communication module 1160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0345] The MIPI interface can be used to connect the processor 1110 with peripheral devices such as the display screen 1194 and the camera 1193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 1110 and the camera 1193 communicate via the CSI interface to implement the shooting function of the electronic device 1100. The processor 1110 and the display screen 1194 communicate via the DSI interface to implement the display function of the electronic device 1100.
[0346] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 1110 with the camera 1193, the display 1194, the wireless communication module 1160, the audio module 1170, the sensor module 1180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0347] The USB interface 1130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 1130 can be used to connect a charger to charge the electronic device 1100, and can also be used to transfer data between the electronic device 1100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0348] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 1100. In other embodiments of the present application, the electronic device 1100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0349] The charging management module 1140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 1140 may receive charging input from a wired charger through the USB interface 1130. In some wireless charging embodiments, the charging management module 1140 may receive wireless charging input through a wireless charging coil of the electronic device 1100. While the charging management module 1140 is charging the battery 1142, it may also power the electronic device through the power management module 1141.
[0350] The power management module 1141 is used to connect the battery 1142, the charging management module 1140 and the processor 1110. The power management module 1141 receives input from the battery 1142 and / or the charging management module 1140, and supplies power to the processor 1110, the internal memory 1121, the display screen 1194, the camera 1193, and the wireless communication module 1160. The power management module 1141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 1141 can also be set in the processor 1110. In other embodiments, the power management module 1141 and the charging management module 1140 can also be set in the same device.
[0351] The wireless communication function of the electronic device 1100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 1150, the wireless communication module 1160, the modem processor and the baseband processor.
[0352] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 1100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0353] The mobile communication module 1150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 1100. The mobile communication module 1150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 1150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 1150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 1150 can be set in the processor 1110. In some embodiments, at least some of the functional modules of the mobile communication module 1150 can be set in the same device as at least some of the modules of the processor 1110.
[0354] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 1170A, a receiver 1170B, etc.), or displays an image or video through a display screen 1194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 1110 and be set in the same device as the mobile communication module 1150 or other functional modules.
[0355] The wireless communication module 1160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 1100. The wireless communication module 1160 can be one or more devices integrating at least one communication processing module. The wireless communication module 1160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 1110. The wireless communication module 1160 can also receive the signal to be sent from the processor 1110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0356] In some embodiments, the antenna 1 of the electronic device 1100 is coupled to the mobile communication module 1150, and the antenna 2 is coupled to the wireless communication module 1160, so that the electronic device 1100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0357] The electronic device 1100 implements the display function through a GPU, a display screen 1194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 1194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 1110 may include one or more GPUs that execute program instructions to generate or change display information.
[0358] The display screen 1194 is used to display images, videos, etc. The display screen 1194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 1100 may include 1 or N display screens 1194, where N is a positive integer greater than 1.
[0359] The electronic device 1100 can realize the shooting function through an ISP, a camera 1193, a video codec, a GPU, a display screen 1194, and an application processor.
[0360] ISP is used to process the data fed back by camera 1193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 1193.
[0361] The camera 1193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 1100 may include 1 or N cameras 1193, where N is a positive integer greater than 1.
[0362] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 1100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0363] Video codecs are used to compress or decompress digital videos. The electronic device 1100 may support one or more video codecs. Thus, the electronic device 1100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0364] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 1100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0365] The external memory interface 1120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1100. The external memory card communicates with the processor 1110 through the external memory interface 1120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0366] The internal memory 1121 can be used to store computer executable program codes, which include instructions. The internal memory 1121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 1100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 1121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 1110 executes various functional applications and data processing of the electronic device 1100 by running instructions stored in the internal memory 1121 and / or instructions stored in a memory provided in the processor.
[0367] The electronic device 1100 can implement audio functions such as music playing and recording through the audio module 1170, the speaker 1170A, the receiver 1170B, the microphone 1170C, the headphone jack 1170D, and the application processor.
[0368] The audio module 1170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 1170 can also be used to encode and decode audio signals. In some embodiments, the audio module 1170 can be arranged in the processor 1110, or some functional modules of the audio module 1170 can be arranged in the processor 1110.
[0369] The speaker 1170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 1100 can listen to music or listen to a hands-free call through the speaker 1170A.
[0370] The receiver 1170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 1100 receives a call or voice message, the voice can be received by placing the receiver 1170B close to the human ear.
[0371] Microphone 1170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 1170C to input the sound signal into the microphone 1170C. The electronic device 1100 can be provided with at least one microphone 1170C. In other embodiments, the electronic device 1100 can be provided with two microphones 1170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 1100 can also be provided with three, four or more microphones 1170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0372] The earphone interface 1170D is used to connect a wired earphone and can be a USB interface 1130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0373] The pressure sensor 1180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 1180A can be set on the display screen 1194. There are many types of pressure sensors 1180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 1180A, the capacitance between the electrodes changes. The electronic device 1100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 1194, the electronic device 1100 detects the touch operation intensity according to the pressure sensor 1180A. The electronic device 1100 can also calculate the touch position based on the detection signal of the pressure sensor 1180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to a first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0374] The gyro sensor 1180B can be used to determine the motion posture of the electronic device 1100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 1180B. The gyro sensor 1180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 1180B detects the angle of the electronic device 1100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 1100 through reverse movement to achieve anti-shake. The gyro sensor 1180B can also be used for navigation and somatosensory game scenes.
[0375] The air pressure sensor 1180C is used to measure air pressure. In some embodiments, the electronic device 1100 calculates the altitude through the air pressure value measured by the air pressure sensor 1180C to assist positioning and navigation.
[0376] The magnetic sensor 1180D includes a Hall sensor. The electronic device 1100 can use the magnetic sensor 1180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 1100 is a flip phone, the electronic device 1100 can detect the opening and closing of the flip cover according to the magnetic sensor 1180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0377] The acceleration sensor 1180E can detect the magnitude of the acceleration of the electronic device 1100 in all directions (generally three axes). When the electronic device 1100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0378] The distance sensor 1180F is used to measure the distance. The electronic device 1100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 1100 can use the distance sensor 1180F to measure the distance to achieve fast focusing.
[0379] The proximity light sensor 1180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 1100 emits infrared light outward through the light emitting diode. The electronic device 1100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 1100. When insufficient reflected light is detected, the electronic device 1100 can determine that there is no object near the electronic device 1100. The electronic device 1100 can use the proximity light sensor 1180G to detect that the user holds the electronic device 1100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 1180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0380] The ambient light sensor 1180L is used to sense the brightness of the ambient light. The electronic device 1100 can adaptively adjust the brightness of the display screen 1194 according to the perceived ambient light brightness. The ambient light sensor 1180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 1180L can also cooperate with the proximity light sensor 1180G to detect whether the electronic device 1100 is in a pocket to prevent accidental touches.
[0381] The fingerprint sensor 1180H is used to collect fingerprints. The electronic device 1100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0382] The temperature sensor 1180J is used to detect temperature. In some embodiments, the electronic device 1100 uses the temperature detected by the temperature sensor 1180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 1180J exceeds a threshold, the electronic device 1100 reduces the performance of a processor located near the temperature sensor 1180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 1100 heats the battery 1142 to avoid abnormal shutdown of the electronic device 1100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 1100 performs a boost on the output voltage of the battery 1142 to avoid abnormal shutdown caused by low temperature.
[0383] The touch sensor 1180K is also called a "touch control device". The touch sensor 1180K can be set on the display screen 1194. The touch sensor 1180K and the display screen 1194 form a touch screen, also called a "touch control screen". The touch sensor 1180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 1194. In other embodiments, the touch sensor 1180K can also be set on the surface of the electronic device 1100, which is different from the position of the display screen 1194.
[0384] The bone conduction sensor 1180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 1180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 1180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 1180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 1170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 1180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 1180M to realize a heart rate detection function.
[0385] The key 1190 includes a power key, a volume key, etc. The key 1190 may be a mechanical key or a touch key. The electronic device 1100 may receive key input and generate key signal input related to user settings and function control of the electronic device 1100.
[0386] Motor 1191 can generate vibration prompts. Motor 1191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 1194, motor 1191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0387] Indicator 1192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0388] The SIM card interface 1195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 1100 by inserting it into the SIM card interface 1195 or pulling it out from the SIM card interface 1195. The electronic device 1100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 1195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 1195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 1195 can also be compatible with different types of SIM cards. The SIM card interface 1195 can also be compatible with external memory cards. The electronic device 1100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 1100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 1100 and cannot be separated from the electronic device 1100.
[0389] It should be understood that Fig.11 The electronic device 1100 shown can implement the present application Figure 1 to Figure 6 The various processes of the method provided in the illustrated embodiment. The operations and / or functions of the various modules in the electronic device 1100 are respectively to implement the corresponding processes in the above method embodiments. For details, please refer to the present application Figure 1 to Figure 6 To avoid repetition, the detailed description of the method embodiment is appropriately omitted here.
[0390] It should be understood that Fig.11 The processor 1110 in the electronic device 1100 shown may be a system on chip SOC, and the processor 1110 may include a central processing unit (CPU), and may further include other types of processors, such as a graphics processing unit (GPU) and the like.
[0391] In summary, the various processors or processing units within the processor 1110 can work together to implement the previous method flow, and the corresponding software programs of the various processors or processing units can be stored in the internal memory 121.
[0392] The present application also provides an electronic device, the device comprising a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, the storage medium stores a computer executable program, the central processing unit is connected to the non-volatile storage medium, and executes the computer executable program to implement the present application Figure 1 to Figure 6 The method provided by the illustrated embodiment.
[0393] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.
[0394] The present application also provides a computer-readable storage medium in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the present application. Figure 1 to Figure 6 The method provided by the illustrated embodiment.
[0395] The present application also provides a computer program product, which includes a computer program, which, when executed on a computer, enables the computer to execute the present application. Figure 1 to Figure 6 The method provided by the illustrated embodiment.
[0396] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0397] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0398] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0399] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.
[0400] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A self-calibration method for a distributed microphone array, It is characterized in that include: Acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, wherein the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; and Selecting at least one sound pickup device from the sound pickup devices as a reference device; Based on each of the reference devices, obtaining a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and obtaining a distance between an ultrasonic transmitter of the device other than the reference device and the microphone of the reference device; Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin according to the coordinates and the distance obtained based on each of the reference devices; the master reference device is one of the reference devices, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device; Calculate the coordinates of the microphone of each sound pickup device in the main coordinate system according to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, to obtain a distributed microphone array; The master coordinate system is the coordinate system of the master reference device; Wherein, when selecting a sound pickup device from the sound pickup devices as a reference device, the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated based on the coordinates and the distance calculated based on each of the reference devices, including: Calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates and the distance calculated based on the primary reference device; and / or, When at least two sound pickup devices are selected from the sound pickup devices as reference devices, the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated based on the coordinates and the distance calculated based on each of the reference devices, including: Based on each of the reference devices, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin; Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
2. The method according to claim 1, It is characterized in that The method further comprises: obtaining, based on each reference device, a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and obtaining the distance between an ultrasonic transmitter of the device other than the reference device and the microphone of the reference device before: Get the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices; Accordingly, based on each of the reference devices, obtaining the distances between the ultrasonic transmitter of the reference device and the microphones of devices other than the reference device, and obtaining the distances between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device includes: Based on each of the reference devices, the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup devices, and the distance between the ultrasonic transmitter of the reference device and the microphone of the reference device are obtained from the distance between the ultrasonic transmitter of each sound pickup device and the microphone of the other sound pickup devices.
3. The method according to claim 2, It is characterized in that The obtaining of the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices comprises: Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter; Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
4. The method according to claim 2, It is characterized in that The obtaining of the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices comprises: First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
5. The method according to claim 1, It is characterized in that The obtaining, based on each of the reference devices, a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, comprises: Based on each of the reference devices, acquiring a third moment when the reference device sends a second ultrasonic signal; Based on each microphone of a device other than the reference device, acquiring a fourth moment when the microphone receives the second ultrasonic signal; The distance between the ultrasonic transmitter of the reference device and the microphone is calculated according to the time difference between the fourth moment and the third moment.
6. The method according to claim 5, It is characterized in that The obtaining, based on each of the reference devices, a distance between an ultrasonic transmitter of the device other than the reference device and a microphone of the reference device comprises: Based on each device except the reference device, obtaining a fifth time when the device sends a third ultrasonic signal; Based on each microphone of the reference device, acquiring a sixth moment when the microphone receives the third ultrasonic signal; The distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device is calculated according to the time difference between the sixth moment and the fifth moment.
7. The method according to claim 1, It is characterized in that The step of acquiring, based on each of the reference devices, a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and acquiring a distance between an ultrasonic transmitter of the device other than the reference device and the microphone of the reference device comprises: Based on each of the reference devices, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device; Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
8. A self-calibration device for a distributed microphone array, It is characterized in that include: A coordinate acquisition unit, used to acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, wherein the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; A first distance acquisition unit, configured to select at least one sound pickup device from the sound pickup devices as a reference device; Based on each of the reference devices, obtaining a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and obtaining a distance between an ultrasonic transmitter of the device other than the reference device and the microphone of the reference device; a relative coordinate calculation unit, configured to calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates acquired by the coordinate acquisition unit and the distance acquired by the distance acquisition unit; the primary reference device is one of the reference devices, the non-primary reference device is a device other than the primary reference device, and the primary origin is the origin of the coordinate system of the primary reference device; a microphone coordinate calculation unit, configured to calculate the coordinates of the microphone of each sound pickup device in the principal coordinate system according to the relative position coordinates calculated by the relative coordinate calculation unit and the coordinates acquired by the coordinate acquisition unit, so as to obtain a distributed microphone array; The master coordinate system is the coordinate system of the master reference device; Wherein, when the first distance acquisition unit selects a sound pickup device from the sound pickup devices as a reference device, the relative coordinate calculation unit is specifically used for: Calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates and the distance calculated based on the primary reference device; or, When the first distance acquisition unit selects at least two sound pickup devices from the sound pickup devices as reference devices, the relative coordinate calculation unit is specifically used to: Based on each of the reference devices, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin; Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
9. The device according to claim 8, It is characterized in that Also includes: A second distance acquisition unit, used to acquire the distance between the ultrasonic transmitter of each sound pickup device and the microphones of other sound pickup devices; Correspondingly, the first distance acquisition unit is specifically used to: based on each of the reference devices, obtain from the distances obtained by the second distance acquisition unit the distance between the ultrasonic transmitter of the reference device and the microphone of a device other than the reference device, and the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device.
10. The device according to claim 9, It is characterized in that The second distance acquisition unit is specifically used for: Based on each sound pickup device, obtaining a first moment when the sound pickup device sends a first ultrasonic signal using an ultrasonic transmitter; Based on the microphone of each other sound pickup device, the second moment when the microphone receives the ultrasonic signal is obtained, and the distance between the ultrasonic transmitter of the sound pickup device and the microphone is calculated according to the time difference between the second moment and the first moment.
11. The device according to claim 9, It is characterized in that The second distance acquisition unit is specifically used for: First distance information sent by each sound pickup device is received, where the distance information includes: the distance between the ultrasonic transmitter of the other sound pickup device and the microphone of the sound pickup device.
12. The device according to claim 8, It is characterized in that The first distance acquisition unit includes: The time acquisition subunit is used to acquire, based on each of the reference devices, a third time when the reference device sends the second ultrasonic signal; and, based on each microphone of a device other than the reference device, acquire a fourth time when the microphone receives the second ultrasonic signal; The distance calculation subunit is used to calculate the distance between the ultrasonic transmitter of the reference device and the microphone according to the time difference between the fourth moment and the third moment.
13. The device according to claim 12, It is characterized in that The first distance acquisition unit includes: The time acquisition subunit is further used to: based on each device other than the reference device, acquire the fifth time when the device sends the third ultrasonic signal; based on each microphone of the reference device, acquire the sixth time when the microphone receives the third ultrasonic signal; The distance calculation subunit is further used to calculate the distance between the ultrasonic transmitter of the device other than the reference device and the microphone of the reference device according to the time difference between the sixth moment and the fifth moment.
14. The device according to claim 8, It is characterized in that The first distance acquisition unit is specifically used for: Based on each of the reference devices, receiving second distance information sent by the reference device, the second distance information comprising: a distance between a microphone of the reference device and an ultrasonic transmitter other than the reference device; Receive third distance information sent by a device other than the reference device, where the third distance information includes: a distance between a microphone of the device other than the reference device and an ultrasonic transmitter of the reference device.
15. An electronic device, It is characterized in that include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the following steps: Acquire the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, wherein the sound pickup device is a device for collaborative sound pickup, and the coordinate system of the sound pickup device is a three-dimensional coordinate system established with the ultrasonic transmitter of the sound pickup device as the origin; and Selecting at least one sound pickup device from the sound pickup devices as a reference device; Based on each of the reference devices, obtaining a distance between an ultrasonic transmitter of the reference device and a microphone of a device other than the reference device, and obtaining a distance between an ultrasonic transmitter of the device other than the reference device and the microphone of the reference device; Calculate the relative position coordinates of the origin of the non-master reference device relative to the master origin according to the coordinates and the distance obtained based on each of the reference devices; the master reference device is one of the reference devices, the non-master reference device is a device other than the master reference device, and the master origin is the origin of the coordinate system of the master reference device; Calculate the coordinates of the microphone of each sound pickup device in the main coordinate system according to the relative position coordinates and the coordinates of the microphone of each sound pickup device in the coordinate system of the sound pickup device to which it belongs, to obtain a distributed microphone array; The master coordinate system is the coordinate system of the master reference device; Wherein, when selecting a sound pickup device from the sound pickup devices as a reference device, the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated based on the coordinates and the distance calculated based on each of the reference devices, including: Calculate the relative position coordinates of the origin of the non-primary reference device relative to the primary origin according to the coordinates and the distance calculated based on the primary reference device; or, When at least two sound pickup devices are selected from the sound pickup devices as reference devices, the relative position coordinates of the origin of the non-main reference device relative to the main origin are calculated based on the coordinates and the distance calculated based on each of the reference devices, including: Based on each of the reference devices, calculate the relative position coordinates of the origin of the device other than the reference device relative to the origin of the reference device according to the coordinates and the distance calculated based on the reference device; convert the relative position coordinates into the relative position coordinates of the origin of the non-main reference device relative to the main origin; Based on each non-master reference device, the average value of the relative position coordinates of the origin of the non-master reference device relative to the master origin is calculated, and the average value is used as the relative position coordinates of the origin of the non-master reference device relative to the master origin.
16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice noise reduction method and system based on microphone array
CN105489224A
Automatically adjusted microphone array, method for automatically adjusting microphone array, and device carrying microphone array
CN102045618A
Audio signal processing device and method and electronic device
CN106782584A
Pickup method and device based on diffusive voice interaction
CN106847298A
Sound source locating method and device based on microphone array
CN106872944A
