Recording method, first device, second device and storage medium

By real-time acquisition of the distance between the sound source and the audio acquisition device and dynamically adjusting the noise reduction parameters, the problem that fixed noise reduction parameters in the prior art cannot adapt to the position changes of the sound source, and the noise reduction adaptation and recording quality improvement in audio recording are achieved.

CN119517064APending Publication Date: 2025-02-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311086095.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the existing multi-microphone recording methods, fixed noise reduction parameters cannot adapt to the change of the sound source position, resulting in poor recording quality.

Method used

The message is sent by the first device to indicate the distance between the sound source and the audio acquisition device on the second device. The second device determines the target noise reduction parameter based on the distance and updates in real time to adapt to the position change of the sound source.

Benefits of technology

It realizes noise reduction adaptation during audio recording, improves recording quality, and ensures that the audio emitted by the sound source is always reserved for priority attributes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119517064A_ABST
    Figure CN119517064A_ABST
Patent Text Reader

Abstract

The invention relates to a recording method, first equipment, second equipment and a storage medium. A second device can receive a first message sent by a first device; determining target noise reduction parameters corresponding to audio acquisition devices on the second equipment according to the first message, wherein the second equipment is provided with at least two audio acquisition devices; and recording an audio emitted by a sound source according to the target noise reduction parameter corresponding to the audio acquisition device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio acquisition, and in particular to a recording method, a first device, a second device, and a storage medium. Background Art

[0002] With the improvement of electronic equipment performance and users' increasing pursuit of recording effects, more and more electronic products are equipped with multiple microphones, which are defined as main microphones, ambient sound microphones and other roles, supplemented by certain noise reduction algorithms to ensure the recording effect of human voices.

[0003] In the related technology, the audio waveform sampled by the ambient microphone can be inverted and overlapped with the main microphone sampling, thereby effectively resisting the interference of surrounding environmental noise and improving the recording quality. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a recording method, a first device, a second device and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a recording method is provided, including:

[0006] Receiving a first message sent by a first device, the first device being in communication with a second device, the first message indicating a distance between a sound source and an audio collection device on the second device;

[0007] Determine, according to the first message, a target noise reduction parameter corresponding to an audio collection device on a second device, where at least two of the audio collection devices are provided on the second device;

[0008] The audio emitted by the sound source is recorded according to the target noise reduction parameter corresponding to the audio acquisition device.

[0009] Optionally, determining, according to the first message, a target noise reduction parameter corresponding to an audio acquisition device on the second device includes:

[0010] For each of the at least two audio collection devices on the second device, determining a first distance between the sound source and the audio collection device according to the first message;

[0011] The target noise reduction parameter corresponding to the audio collection device is determined according to a first distance between the audio collection device and the sound source.

[0012] Optionally, at least two positioning chips are provided on the second device, and determining the first distance between the sound source and the audio collection device according to the first message includes:

[0013] The first distance between the sound source and the audio collection device is determined according to the first message through a target positioning chip, wherein the target positioning chip is a positioning chip corresponding to the audio collection device among the at least two positioning chips.

[0014] Optionally, the first message includes a pulse signal, and determining the first distance between the sound source and the audio collection device through a target positioning chip according to the first message includes:

[0015] After parsing the pulse signal through the target positioning chip, determining the sending time of the first device sending the first message;

[0016] The first distance between the sound source and the audio collection device is determined by a time-of-flight method (TOF) according to the sending time.

[0017] Optionally, the positioning chip includes an ultra-wideband UWB chip.

[0018] Optionally, determining the target noise reduction parameter corresponding to the audio collection device according to the first distance between the audio collection device and the sound source includes:

[0019] Determine the target noise reduction parameter corresponding to the audio acquisition device based on the preset parameter correspondence according to the first distance;

[0020] The preset parameter correspondence relationship includes a correspondence relationship between different noise reduction parameters and different sound source distances.

[0021] Optionally, the method further comprises:

[0022] Obtaining a preset distance deviation corresponding to the audio acquisition device;

[0023] Performing distance correction on the first distance corresponding to the audio collection device according to the preset distance deviation to obtain a second distance;

[0024] The determining, according to the first distance between the audio collection device and the sound source, the target noise reduction parameter corresponding to the audio collection device comprises:

[0025] The target noise reduction parameters corresponding to the audio collection devices are determined according to the second distances respectively corresponding to the audio collection devices.

[0026] Optionally, the preset distance deviation includes a third distance between a preset sound position of the sound source and the first device, and / or a fourth distance between the positioning chip and the audio collection device.

[0027] Optionally, recording the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio acquisition device includes:

[0028] Performing noise reduction processing on the ambient audio collected by the audio collection device according to the target noise reduction parameter to obtain a first audio;

[0029] After overlapping the first audio corresponding to each of the audio collecting devices in at least two audio collecting devices on the second device, a recorded second audio is obtained.

[0030] Optionally, the receiving a first message sent by a first device includes:

[0031] In response to acquiring the preset recording operation, sending a second message to the first device, where the second message indicates that the recording function of the second device has been turned on;

[0032] The first message sent by the first device in response to the second message is received.

[0033] Optionally, the target noise reduction parameter includes a sound pressure weight corresponding to the audio acquisition device.

[0034] According to a second aspect of an embodiment of the present disclosure, a recording method is provided, including:

[0035] Sending a first message to a second device, so that the second device determines a target noise reduction parameter corresponding to an audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; at least two audio collection devices are provided on the second device;

[0036] The first device is in communication connection with the second device, and the first message indicates the distance between the sound source and the audio collection device on the second device.

[0037] Optionally, sending the first message to the second device includes:

[0038] In response to receiving a second message sent by the second device, the first message is sent to the second device, where the second message indicates that a recording function of the second device has been turned on.

[0039] Optionally, the first device includes a wearable device, and the wearable device is worn on the sound source.

[0040] Optionally, a UWB positioning tag is configured on the first device; and sending the first message to the second device includes:

[0041] The first message is sent to the second device through the UWB positioning tag.

[0042] According to a third aspect of an embodiment of the present disclosure, a second device is provided, including:

[0043] At least two audio collection devices arranged at different positions, at least two positioning chips, and a processing unit respectively connected to each of the audio collection devices and each of the positioning chips;

[0044] The audio collection device is configured to collect ambient audio of the environment, wherein the ambient audio includes audio emitted by a sound source;

[0045] The positioning chip is configured to receive a first message sent by a first device, the first device is in communication with a second device, and the first message indicates a distance between a sound source and an audio collection device on the second device;

[0046] The processing unit is configured to determine, according to the first message, a target noise reduction parameter corresponding to the audio collection device on the second device, and record the audio emitted by the sound source according to the target noise reduction parameter.

[0047] Optionally, the positioning chip is configured to determine a first distance between a target audio collection device and the sound source according to the first message, and the target audio collection device includes at least one audio collection device corresponding to the positioning chip;

[0048] The processing unit is configured to determine the target noise reduction parameter corresponding to the target audio collection device according to a first distance between the target audio collection device and the sound source.

[0049] Optionally, the first message includes a pulse signal, and the positioning chip is configured to parse the pulse signal to determine the sending time of the first message sent by the first device; and determine the first distance between the sound source and the audio collection device through TOF according to the sending time.

[0050] Optionally, the positioning chip includes a UWB chip.

[0051] Optionally, the processing unit is configured to determine the target noise reduction parameter corresponding to the target audio acquisition device based on a preset parameter correspondence according to the first distance; wherein the preset parameter correspondence includes a correspondence between different noise reduction parameters and different sound source distances.

[0052] Optionally, the processing unit is configured to obtain a preset distance deviation corresponding to the audio collection device; perform distance correction on the first distance corresponding to the audio collection device according to the preset distance deviation to obtain a second distance; and determine the target noise reduction parameter corresponding to the audio collection device according to the second distances respectively corresponding to the audio collection devices.

[0053] Optionally, the preset distance deviation includes a third distance between a preset sound position of the sound source and the first device, and / or a fourth distance between the positioning chip and the audio collection device.

[0054] Optionally, the processing unit is configured to perform noise reduction processing on the ambient audio collected by the audio collection device according to the target noise reduction parameter to obtain a first audio; and overlap the first audio corresponding to each of the audio collection devices in at least two audio collection devices on the second device to obtain a recorded second audio.

[0055] Optionally, the positioning chip is configured to send a second message to the first device in response to obtaining a preset recording operation, wherein the second message indicates that the recording function of the second device has been turned on; and receive the first message sent by the first device in response to the second message.

[0056] Optionally, the target noise reduction parameter includes a sound pressure weight corresponding to the audio acquisition device.

[0057] According to a fourth aspect of an embodiment of the present disclosure, a first device is provided, including:

[0058] Sound source localization device;

[0059] The sound source localization device is configured to send a first message to a second device, so that the second device determines a target noise reduction parameter corresponding to an audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; at least two audio collection devices are provided on the second device;

[0060] The first device is in communication connection with the second device, and the first message indicates the distance between the sound source and the audio collection device on the second device.

[0061] Optionally, the sound source localization apparatus is configured to send the first message to the second device in response to receiving a second message sent by the second device, wherein the second message indicates that a recording function of the second device is turned on.

[0062] Optionally, the first device includes a wearable device, and the wearable device is worn on the sound source.

[0063] Optionally, the sound source localization device includes a UWB positioning tag; the UWB positioning tag is configured to send the first message to the second device.

[0064] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the recording method provided in the first aspect or the second aspect of the present disclosure are implemented.

[0065] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the distance between the sound source and the audio collection device on the second device can be obtained in real time according to the first message, thereby adjusting the target noise reduction parameters of each of the at least two audio collection devices of the second device when participating in the noise reduction algorithm; in this way, when the distance between the sound source and the audio collection device changes, the noise reduction parameters of the corresponding audio collection device can be updated in real time, so that the audio emitted by the sound source is always in a priority retention attribute, thereby realizing noise reduction adaptation during audio recording and improving the audio recording quality.

[0066] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0068] Figure 1 The figure is a flow chart of a recording method according to an exemplary embodiment.

[0069] Figure 2 is based on Figure 1 The illustrated embodiment shows a flow chart of a recording method.

[0070] Figure 3a The figure is a schematic diagram of a recording scene according to an exemplary embodiment.

[0071] Figure 3b is with Figure 3a A schematic diagram of the structure of a handheld terminal corresponding to the recording scenario shown.

[0072] Figure 4 The figure is a flow chart of a recording method according to an exemplary embodiment.

[0073] Figure 5 is a schematic structural diagram of a second device according to an exemplary embodiment.

[0074] Figure 6It is a schematic diagram of a first device structure according to an exemplary embodiment. DETAILED DESCRIPTION

[0075] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0076] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0077] First, the application scenario of the present invention is explained. The present invention is mainly applied to a scenario in which a second device uses two or more microphones to collect audio, wherein the second device can be any electronic device with a recording function, for example, a mobile electronic device such as a mobile phone, a tablet computer, etc., or a home smart terminal such as a smart speaker, a television, etc., or a professional recording device such as a voice recorder, a dedicated multimedia device, etc.

[0078] In the noise reduction and recording methods based on multiple microphones in the related art, two hardware units, a main microphone and an ambient sound microphone, are often used. That is, the main microphone collects audio emitted by the sound source (such as human voice), and the ambient sound microphone collects ambient sound of the environment where the sound source is located. The audio recorded by the two microphones is converted into digital form and then denoised based on a noise reduction algorithm to obtain a recorded second audio. The noise reduction algorithm is to invert the ambient noise waveform and overlap it with the main microphone sample, that is, to subtract the ambient noise.

[0079] However, there are several problems in the related technology:

[0080] 1. In the method of recording based on multiple microphones provided in the related art, it is necessary to select one microphone as the main microphone and the other as the ambient sound microphone. For example, the bottom microphone of the mobile phone is the main microphone, and the top microphone is the ambient sound microphone (or auxiliary microphone). And because the noise reduction architecture is fixed, it is also impossible to adapt to the actual scene of the user, and can only ensure the noise reduction experience and recording effect of most scenes. For example, when the sound source of human voice is close to the top of the mobile phone, the human voice will be weakened.

[0081] 2. In the noise reduction algorithm provided in the related art, the sound pressure of the two microphones is usually subjected to noise reduction processing with a fixed weight, or a fixed sound pressure weight is set for several typical scenarios. However, in actual use, the location of the sound source is flexible and may change at any time. When the user's sound position changes compared to the microphone, if the fixed noise reduction parameters (such as sound pressure weight) are still used, the result may be unsatisfactory or even counterproductive, and the audio emitted by the sound source to be collected will be weakened or eliminated. Therefore, the existing noise reduction method with fixed noise reduction parameters cannot achieve the best noise reduction effect.

[0082] In order to solve the above problems, the present disclosure provides a recording method, a first device, a second device and a storage medium. The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings.

[0083] Figure 1 It is a flowchart of a recording method according to an exemplary embodiment. The method can be applied to a second device, which may include any electronic device with a recording function. The electronic device is provided with two or more audio acquisition devices (such as microphones) and other audio units such as a central processing unit and an audio processing unit.

[0084] like Figure 1 As shown, the method comprises the following steps:

[0085] In step S101, a first message sent by a first device is received.

[0086] Among them, the first device refers to an electronic device with a position positioning function. The present disclosure is to determine the distance between the sound source and the audio collection device on the second device. Therefore, in a possible implementation, the first device may be a wearable device, which can be worn on the sound source to locate the position of the sound source. For example, the wearable device may include electronic devices such as smart bracelets and smart watches. The first message is used to indicate the distance between the sound source and the audio collection device on the second device.

[0087] In addition, the first device and the second device are connected in communication, and before the first device sends the first message to the second device, the two devices need to be bound. For example, the binding can be performed by Bluetooth binding, or the two devices log in to the same account. The present disclosure does not specifically limit the binding method between the first device and the second device.

[0088] In one implementation, the first device and the second device can communicate based on UWB (Ultra Wide Band) technology. Taking the first device as a smart bracelet and the second device as a mobile phone as an example, the smart bracelet is usually worn on a sound source (for example, a person as a sound source), the smart bracelet is provided with a UWB positioning tag, and the mobile phone is provided with a UWB chip as a recording device. In a possible application scenario, when the user turns on the recording, video recording, call, and other microphone functions on the mobile phone, the UWB chip is turned on synchronously. At this time, the UWB chip can send a second message to the UWB positioning tag on the smart bracelet, and the second message indicates that the recording function of the second device has been turned on.

[0089] That is, in this step, in response to obtaining the preset recording operation, the second device sends a second message to the first device, and the second message indicates that the recording function of the second device has been turned on; and then the first message sent by the first device in response to the second message can be received. The preset recording operation may include, for example, an operation by a user to open an application on a mobile phone that requires the recording function to be turned on, such as recording, video recording, and calling.

[0090] In step S102, according to the first message, a target noise reduction parameter corresponding to an audio collection device on a second device is determined, and at least two audio collection devices are provided on the second device.

[0091] The target noise reduction parameter may include a parameter for controlling the sound intensity, such as a sound pressure weight, wherein the sound pressure is the pressure change generated when a sound wave propagates through a medium, and can be used to measure the intensity of the sound.

[0092] The audio collection device may be, for example, a microphone, and the present disclosure is mainly applied to a scenario where the second device uses two or more microphones for audio recording. Each microphone is deployed at a different position on the second device, for example, a mobile phone is provided with two microphones, which are respectively arranged at the top and bottom of the mobile phone.

[0093] It should be noted that, for each of the at least two audio collection devices on the second device, by executing this step, the corresponding target noise reduction parameter can be determined.

[0094] In this way, the distance between each audio collection device and the sound source can be determined according to the first message. It can be understood that the distance between the sound source and the audio collection device is different, and the audio intensity of the audio emitted by the sound source obtained by the audio collection device is also different. Therefore, the present disclosure can determine the corresponding target noise reduction parameter for each audio collection device according to the different distances between the sound source and the audio collection device.

[0095] In step S103, the audio emitted by the sound source is recorded according to the target noise reduction parameter corresponding to the audio acquisition device.

[0096] In this step, the ambient audio collected by the audio collection device can be subjected to noise reduction processing according to the target noise reduction parameter to obtain the first audio; and the first audio corresponding to each of the at least two audio collection devices on the second device is overlapped to obtain the recorded second audio.

[0097] Assuming that each audio acquisition device on the second device participates in audio recording, taking the target noise reduction parameter as the sound pressure weight as an example, after determining the sound pressure weight corresponding to each audio acquisition device, the audio signal of the ambient audio collected by each audio acquisition device can be converted into a digital form and multiplied by the corresponding sound pressure weight to obtain the first audio. After that, each first audio can be overlapped to obtain the recorded second audio.

[0098] The second audio can be directly returned to the upper application software as the recorded audio, or stored locally. Afterwards, the second audio can be further processed by noise reduction filtering, voice enhancement, reverberation, etc., so as to improve the sound expression.

[0099] In this way, in an actual recording scenario, if the position of the sound source changes in real time, the first distance of the sound source relative to each audio acquisition device also changes in real time, and then the target noise reduction parameter of each audio acquisition device can be updated in real time according to the changed first distance. Based on this, no matter where the sound source is located, the target noise reduction parameter in the noise reduction algorithm can adapt to the position of the sound source, and the final recording effect can always be guaranteed.

[0100] In addition, in the present invention, multiple audio collection devices on the same second device can independently collect ambient audio, and after analog-to-digital conversion of each collected audio signal, report it to the central processor, without distinguishing between the main microphone and the auxiliary microphone for collecting ambient noise, thereby improving the adaptability of the scene.

[0101] By adopting the above method, the distance between the sound source and each audio collection device on the second device can be obtained in real time according to the first message, so as to adjust the target noise reduction parameters of each audio collection device when participating in the noise reduction algorithm. In this way, when the distance between the sound source and the audio collection device changes, the noise reduction parameters of the corresponding audio collection device can be updated in real time, so that the audio emitted by the sound source is always in a priority retention attribute, thereby realizing noise reduction adaptation during the audio recording process and improving the audio recording quality.

[0102] Figure 2 is based on Figure 1The embodiment shown is a flowchart of a recording method, such as Figure 2 As shown, step S102 includes the following sub-steps:

[0103] In step S1021, for each of the at least two audio collection devices on the second device, a first distance between the sound source and the audio collection device is determined according to the first message.

[0104] In one implementation, at least two positioning chips may be provided on the second device, wherein each positioning chip has one or more corresponding audio collection devices. Thus, in the process of executing this step, the first distance between the sound source and the audio collection device may be determined through a target positioning chip according to the first message. The target positioning chip is a positioning chip corresponding to the audio collection device among the at least two positioning chips.

[0105] The positioning chip may include a UWB chip, for example. Compared with traditional communication technology, UWB technology has the advantages of high transmission rate, strong anti-interference ability and long transmission distance. Therefore, the present disclosure adopts UWB technology to realize the positioning of the sound source, which can improve the efficiency and accuracy of positioning.

[0106] For example, Figure 3a is a schematic diagram of a recording scene according to an exemplary embodiment. Figure 3a As shown, taking the second device as a handheld terminal 303 and the first device as a wearable terminal 302 (such as a smart watch) as an example, the wearable terminal 302 is worn on the wrist of the sound source 301, a microphone A 30311 is arranged at the bottom of the handheld terminal 303, a microphone B 30312 is arranged at the top, a positioning chip 1-UWB_IC30321 is deployed near the microphone A 30311, and a positioning chip 2-UWB_IC30322 is deployed near the microphone B 30312, so that the target audio collection device corresponding to 1-UWB_IC is the microphone A, and the target audio collection device corresponding to 2-UWB_IC is the microphone B, wherein 1-UWB_IC is used to determine the first distance between the microphone A and the sound source, and 2-UWB_IC is used to determine the first distance between the microphone B and the sound source.

[0107] In a possible implementation, the first message may include a pulse signal. The first device may periodically send the pulse signal to the second device, and the pulse signal generally carries the sending time of the first message sent by the first device. In this way, the target positioning chip on the second device may parse the pulse signal to obtain the sending time of the first message sent by the first device, and then determine the first distance between the audio acquisition device and the sound source according to the sending time through TOF (Time of flight), wherein the target positioning chip is a positioning chip corresponding to the current audio acquisition device among the at least two positioning chips.

[0108] Continue with Figure 3a For example, after receiving the pulse signal, 1-UWB_IC30321 can obtain the transmission time through signal demodulation, and further calculate the propagation time of the pulse signal in space, thereby calculating the first distance between microphone A 30311 and the sound source based on the TOF method. Similarly, after receiving the pulse signal, 2-UWB_IC30322 can obtain the transmission time through signal demodulation, and further calculate the propagation time of the pulse signal in space, thereby calculating the first distance between microphone B 30312 and the sound source based on the TOF method. This is only an example, and the present disclosure is not limited to this.

[0109] It should be noted that the number of positioning chips set on the second device in the present disclosure is at least 2. In the actual recording noise reduction scenario, 3 such positioning chips can be set. In this way, based on the triangulation positioning method, the positioning accuracy of the sound source position can be improved, thereby improving the accuracy of adjusting the noise reduction parameters and enhancing the noise reduction effect.

[0110] In step S1022, the target noise reduction parameter corresponding to the audio collection device is determined according to the first distance between the audio collection device and the sound source.

[0111] In a possible implementation of this step, the target noise reduction parameter corresponding to the audio acquisition device can be determined according to the first distance based on a preset parameter correspondence relationship; wherein the preset parameter correspondence relationship includes a correspondence relationship between different noise reduction parameters and different sound source distances. The sound source distance refers to the distance between the audio acquisition device and the sound source.

[0112] For example, Figure 3b is with Figure 3a A structural diagram of a handheld terminal corresponding to the recording scenario shown in FIG. Figure 3bAs shown, the ambient audio collected by microphone A 30311 and microphone B 30312 on the handheld terminal 303 are sent to the analog-to-digital conversion module 3033 for analog-to-digital conversion, and then the converted digital audio signals are sent to the central processing unit 3034, wherein 1-UWB_IC30321 calculates the first distance L1 between microphone A 30311 and the sound source based on the TOF method, and then sends the first distance L1 to the central processing unit 3034. Similarly, 2-UWB_IC30322 calculates the first distance L2 between microphone B 30312 and the sound source based on the TOF method, and then sends the first distance L2 to the central processing unit 3034. The central processing unit 3034 can further determine that the noise reduction parameter corresponding to L1 is a1, and the noise reduction parameter corresponding to L2 is a2 by looking up the table. In this way, the target noise reduction parameter corresponding to microphone A 30311 is a1, and the target noise reduction parameter corresponding to microphone B 30312 is a2. The above examples are merely illustrative and the present disclosure is not limited thereto.

[0113] Continue below Figure 3b For example, the process of recording the audio emitted by the sound source according to the target noise reduction parameter is described. The target noise reduction parameter corresponding to microphone A 30311 is a1, and the target noise reduction parameter corresponding to microphone B 30312 is a2. In one implementation, the central processor 3034 can overlap the ambient audio M1 collected by microphone A and the ambient audio M2 collected by microphone B through the formula R=a1M1+a2M2 to obtain the recorded second audio R, and then the second audio R can be saved through the recording storage module 3035. Among them, a1M1 represents the first audio after the ambient audio M1 collected by microphone A is processed by noise reduction using a1, and a2M2 represents the first audio after the ambient audio M21 collected by microphone B is processed by noise reduction using a2. In this way, when the distance between microphone A and the sound source changes, the target noise reduction parameter a1 will also change. Similarly, when the distance between microphone B and the sound source changes, the target noise reduction parameter a2 will also change, so that no matter where the sound source is located, the target noise reduction parameter in the noise reduction algorithm can adapt to the sound source position, so that the final recording effect can always be guaranteed. It should also be noted that the formula R = a1M1 + a2M2 is only used to illustrate the calling logic of the audio data of the two microphones.

[0114] In an actual recording scenario, the determination of the distance between the sound source and each audio collection device depends on the first distance between the UWB chip on the first device and the second device. Taking the sound source as a person's voice as an example, there is a certain distance between the first device (such as a smart bracelet) and the mouth that makes the sound, and there is also a certain distance between the UWB chip on the second device and the corresponding microphone. Therefore, in a possible implementation of the present disclosure, the recording method also includes: obtaining a preset distance deviation corresponding to the audio collection device; performing distance correction on the first distance corresponding to the audio collection device according to the preset distance deviation to obtain a second distance, so that the distance between the sound source and the audio collection device can be more accurately confirmed.

[0115] During the correction process, the sum of the first distance and the preset distance deviation can be used as the corrected second distance, wherein the preset distance deviation may include a third distance between a preset sound position of the sound source (such as a human mouth) and the first device (such as a smart bracelet), and / or a fourth distance between the positioning chip and the audio collection device.

[0116] In this way, in the process of executing this step, the target noise reduction parameter corresponding to the audio collection device can be determined according to the second distance corresponding to the audio collection device.

[0117] Figure 4 is a flowchart of a recording method according to an exemplary embodiment. The method can be applied to a first device, which refers to an electronic device with a location positioning function. For example, the first device can be a wearable device with a positioning function. The wearable device can be worn on a sound source to locate the position of the sound source. For example, the wearable device can include electronic devices such as smart bracelets and smart watches. Figure 4 As shown, the method comprises the following steps:

[0118] In step S401, a first message is sent to a second device, so that the second device determines a target noise reduction parameter corresponding to an audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; at least two audio collection devices are arranged on the second device.

[0119] The first message indicates the distance between the sound source and the audio collection device on the second device. The second device refers to any electronic device with a recording function, which is provided with two or more audio collection devices (such as microphones).

[0120] The first device is communicatively connected with the second device. For example, the first device and the second device can communicate based on UWB technology, and a UWB positioning tag can be set on the first device, and at least two UWB chips can be set on the second device. In this way, the UWB positioning tag on the first device and the UWB chip on the second device can communicate based on UWB technology.

[0121] In one implementation, the first device may send the first message to the second device in response to receiving a second message sent by the second device, where the second message indicates that a recording function of the second device has been turned on.

[0122] Typically, in response to obtaining a preset recording operation, the second device may send a second message to the first device. The preset recording operation may, for example, include an operation in which a user opens an application on the mobile phone that requires a recording function, such as recording, video recording, or calling.

[0123] Taking the second device as a mobile phone as an example, in a possible application scenario, when the user turns on the microphone function such as recording, video recording, and calling on the mobile phone, the UWB chip is turned on synchronously. At this time, the UWB chip can send the second message to the UWB positioning tag on the first device.

[0124] In addition, before the first device sends the first message to the second device, the two devices need to be bound. For example, the binding can be performed by Bluetooth binding, or the two devices log in to the same account. The present disclosure does not specifically limit the binding method between the first device and the second device.

[0125] In a possible implementation manner, a UWB positioning tag is configured on the first device, so that during the execution of this step, the first message can be sent to the second device via the UWB positioning tag.

[0126] By adopting the above method, the first message can be sent to the second device in real time, so that the second device can obtain the distance between the sound source and each audio collection device on the second device in real time according to the first message, thereby adjusting the target noise reduction parameters of each audio collection device when participating in the noise reduction algorithm. In this way, when the distance between the sound source and the audio collection device changes, the noise reduction parameters of the corresponding audio collection device can be updated in real time, so that the audio emitted by the sound source is always in the priority retention attribute, thereby realizing noise reduction adaptation during audio recording and improving audio recording quality.

[0127] Figure 5 is a schematic diagram of a structure of a second device according to an exemplary embodiment. Figure 5 As shown, the second device 500 includes:

[0128] At least two audio collection devices 501 arranged at different positions, at least two positioning chips 502, and a processing unit 503 respectively connected to each of the audio collection devices 501 and each of the positioning chips 502.

[0129] The audio collection device 501 is configured to collect ambient audio of the environment, wherein the ambient audio includes audio emitted by a sound source;

[0130] The positioning chip 502 is configured to receive a first message sent by a first device, the first device is in communication with a second device, and the first message indicates the distance between the sound source and the audio collection device on the second device;

[0131] The processing unit 503 is configured to determine, according to the first message, a target noise reduction parameter corresponding to the audio collection device on the second device, and record the audio emitted by the sound source according to the target noise reduction parameter.

[0132] Optionally, the positioning chip 502 is configured to determine a first distance between a target audio collection device and the sound source according to the first message, and the target audio collection device includes at least one audio collection device corresponding to the positioning chip;

[0133] The processing unit 503 is configured to determine the target noise reduction parameter corresponding to the target audio collection device according to a first distance between the target audio collection device and the sound source.

[0134] Optionally, the first message includes a pulse signal, and the positioning chip 502 is configured to determine the sending time of the first message sent by the first device after analyzing the pulse signal; and determine the first distance between the sound source and the audio collection device through TOF according to the sending time.

[0135] Optionally, the positioning chip 502 includes a UWB chip.

[0136] Optionally, the processing unit 503 is configured to determine the target noise reduction parameter corresponding to the target audio acquisition device based on a preset parameter correspondence according to the first distance; wherein the preset parameter correspondence includes a correspondence between different noise reduction parameters and different sound source distances.

[0137] Optionally, the processing unit 503 is configured to obtain a preset distance deviation corresponding to the audio collection device; perform distance correction on the first distance corresponding to the audio collection device according to the preset distance deviation to obtain a second distance; and determine the target noise reduction parameter corresponding to the audio collection device according to the second distances respectively corresponding to the audio collection devices.

[0138] Optionally, the preset distance deviation includes a third distance between a preset sound position of the sound source and the first device, and / or a fourth distance between the positioning chip and the audio collection device.

[0139] Optionally, the processing unit 503 is configured to perform noise reduction processing on the ambient audio collected by the audio collection device according to the target noise reduction parameter to obtain a first audio; and overlap the first audio corresponding to each of the audio collection devices in at least two audio collection devices on the second device to obtain a recorded second audio.

[0140] Optionally, the positioning chip 502 is configured to send a second message to the first device in response to obtaining a preset recording operation, wherein the second message indicates that the recording function of the second device has been turned on; and receive the first message sent by the first device in response to the second message.

[0141] Optionally, the target noise reduction parameter includes a sound pressure weight corresponding to the audio acquisition device.

[0142] Figure 6 is a schematic diagram of a first device structure according to an exemplary embodiment. Figure 6 As shown, the first device 600 includes:

[0143] Sound source localization device 601;

[0144] The sound source localization device 601 is configured to send a first message to the second device, so that the second device determines the target noise reduction parameter corresponding to the audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; at least two audio collection devices are provided on the second device;

[0145] The first device is in communication connection with the second device, and the first message indicates the distance between the sound source and the audio collection device on the second device.

[0146] Optionally, the sound source localization device 601 is configured to send the first message to the second device in response to receiving a second message sent by the second device, where the second message indicates that the recording function of the second device is turned on.

[0147] Optionally, the first device 600 includes a wearable device, and the wearable device is worn on the sound source.

[0148] Optionally, the sound source localization device 601 includes a UWB positioning tag; the UWB positioning tag is configured to send the first message to the second device.

[0149] Regarding the first device and the second device in the above embodiment, the specific manner of executing the operation of each component has been described in detail in the embodiment of the method, and will not be elaborated here.

[0150] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the recording method provided by the present disclosure are implemented.

[0151] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above recording method when executed by the programmable device.

[0152] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0153] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A recording method, characterized in that: include: Receiving a first message sent by a first device, the first device being in communication with a second device, the first message indicating a distance between a sound source and an audio collection device on the second device; Determine, according to the first message, a target noise reduction parameter corresponding to an audio collection device on a second device, where at least two of the audio collection devices are provided on the second device; The audio emitted by the sound source is recorded according to the target noise reduction parameter corresponding to the audio acquisition device.

2. The method according to claim 1, characterized in that Determining the target noise reduction parameter corresponding to the audio acquisition device on the second device according to the first message includes: For each of the at least two audio collection devices on the second device, determining a first distance between the sound source and the audio collection device according to the first message; The target noise reduction parameter corresponding to the audio collection device is determined according to a first distance between the audio collection device and the sound source.

3. The method according to claim 2, characterized in that At least two positioning chips are provided on the second device, and determining the first distance between the sound source and the audio collection device according to the first message includes: The first distance between the sound source and the audio collection device is determined according to the first message through a target positioning chip, wherein the target positioning chip is a positioning chip corresponding to the audio collection device among the at least two positioning chips.

4. The method according to claim 3, characterized in that The first message includes a pulse signal, and determining the first distance between the sound source and the audio collection device through a target positioning chip according to the first message includes: After parsing the pulse signal through the target positioning chip, determining the sending time of the first device sending the first message; The first distance between the sound source and the audio collection device is determined by a time-of-flight method (TOF) according to the sending time.

5. The method according to claim 3, characterized in that: The positioning chip includes an ultra-wideband UWB chip.

6. The method according to claim 2, characterized in that The determining, according to the first distance between the audio collection device and the sound source, the target noise reduction parameter corresponding to the audio collection device comprises: Determine the target noise reduction parameter corresponding to the audio acquisition device based on the preset parameter correspondence according to the first distance; The preset parameter correspondence relationship includes a correspondence relationship between different noise reduction parameters and different sound source distances.

7. The method according to claim 3, characterized in that The method further comprises: Obtaining a preset distance deviation corresponding to the audio acquisition device; Performing distance correction on the first distance corresponding to the audio collection device according to the preset distance deviation to obtain a second distance; The determining, according to the first distance between the audio collection device and the sound source, the target noise reduction parameter corresponding to the audio collection device comprises: The target noise reduction parameters corresponding to the audio collection devices are determined according to the second distances respectively corresponding to the audio collection devices.

8. The method according to claim 7, characterized in that The preset distance deviation includes a third distance between a preset sound source position of the sound source and the first device, and / or a fourth distance between the positioning chip and the audio collection device.

9. The method according to claim 2, characterized in that: The recording of the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio acquisition device includes: Performing noise reduction processing on the ambient audio collected by the audio collection device according to the target noise reduction parameter to obtain a first audio; After overlapping the first audio corresponding to each of the audio collecting devices in at least two audio collecting devices on the second device, a recorded second audio is obtained.

10. The method according to claim 1, characterized in that The receiving a first message sent by a first device includes: In response to acquiring the preset recording operation, sending a second message to the first device, wherein the second message indicates that the recording function of the second device has been turned on; The first message sent by the first device in response to the second message is received.

11. The method according to any one of claims 1 to 10, characterized in that: The target noise reduction parameter includes a sound pressure weight corresponding to the audio acquisition device.

12. A recording method, characterized in that: include: Sending a first message to a second device, so that the second device determines a target noise reduction parameter corresponding to an audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; At least two of the audio collection devices are arranged on the second device; The first device is in communication connection with the second device, and the first message indicates the distance between the sound source and the audio collection device on the second device.

13. The method according to claim 12, characterized in that The sending the first message to the second device includes: In response to receiving a second message sent by the second device, the first message is sent to the second device, where the second message indicates that a recording function of the second device has been turned on.

14. The method according to claim 12, characterized in that The first device includes a wearable device, and the wearable device is worn on the sound source.

15. The method according to claim 12, characterized in that The first device is configured with a UWB positioning tag; and sending the first message to the second device includes: The first message is sent to the second device through the UWB positioning tag.

16. A second device, characterized in that: include: At least two audio collection devices arranged at different positions, at least two positioning chips, and a processing unit respectively connected to each of the audio collection devices and each of the positioning chips; The audio collection device is configured to collect ambient audio of the environment, wherein the ambient audio includes audio emitted by a sound source; The positioning chip is configured to receive a first message sent by a first device, the first device is in communication with a second device, and the first message indicates a distance between a sound source and an audio collection device on the second device; The processing unit is configured to determine, according to the first message, a target noise reduction parameter corresponding to the audio collection device on the second device, and record the audio emitted by the sound source according to the target noise reduction parameter.

17. A first device, characterized in that: include: Sound source localization device; The sound source localization device is configured to send a first message to the second device, so that the second device determines the target noise reduction parameter corresponding to the audio collection device on the second device according to the first message, and records the audio emitted by the sound source according to the target noise reduction parameter corresponding to the audio collection device; At least two of the audio collection devices are arranged on the second device; The first device is in communication connection with the second device, and the first message indicates the distance between the sound source and the audio collection device on the second device.

18. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instruction is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented; or, when the program instruction is executed by a processor, the steps of the method described in any one of claims 12 to 15 are implemented.