Microphone Control Method, Device, and Computer Storage Medium

By using the distance sensor and camera to detect the distance and angle between the user and the microphone in the microphone sleep state, wake up the microphone and set the working parameters, the problem of insufficient microphone noise reduction capability is solved, and the microphone noise reduction capability and sound effect is improved.

CN116782071BActive Publication Date: 2025-07-18SHENZHEN BRANDSOUND TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310886183.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2025-07-18
Estimated Expiration
2043-07-18

AI Technical Summary

Technical Problem

In the prior art, the amplification of noise during the amplification of the microphone will lead to insufficient noise reduction capability.

Method used

By detecting the target distance between the user and the microphone with a distance sensor when the microphone is in a sleep state, and identifying the target relative angle through the camera, detecting whether the preset conditions are met, awakening the microphone, and determining the first working parameters based on the distance and angle to control the microphone operation.

Benefits of technology

Improves the noise reduction capability and sound effects of the microphone and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116782071B_ABST
    Figure CN116782071B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a microphone control method, device, and computer storage medium, which are applied to an electronic device. The electronic device includes a microphone, a distance sensor, and a camera. The method includes: when the microphone is in a sleep state, detecting a target distance between the user and the microphone through the distance sensor; identifying a target relative angle between the user and the microphone through the camera; detecting whether the target distance and the target relative angle meet a preset condition; waking up the microphone when the target distance and the target relative angle meet the preset condition; determining a first working parameter of the microphone according to the target distance and the target relative angle; and controlling the microphone to work with the first working parameter. Using the embodiment of the present application can improve the noise reduction ability of the microphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a microphone control method, device and computer storage medium. Background Art

[0002] In actual applications, the microphone transmits the vibration of sound to the diaphragm of the microphone, pushing the magnet inside to form a changing current. The changing current is sent to the sound processing circuit behind for amplification. However, in the process of sound amplification, noise will also be amplified. Therefore, the problem of how to improve the noise reduction ability of the microphone needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a microphone control method, device and computer storage medium, which are helpful to improve the noise reduction capability of the microphone.

[0004] In a first aspect, an embodiment of the present application provides a microphone control method, which is applied to an electronic device, wherein the electronic device includes a microphone, a distance sensor, and a camera, and the method includes:

[0005] When the microphone is in a dormant state, detecting a target distance between a user and the microphone by means of the distance sensor;

[0006] identifying, by the camera, a target relative angle between the user and the microphone;

[0007] Detecting whether the target distance and the target relative angle meet preset conditions;

[0008] When the target distance and the target relative angle meet the preset condition, waking up the microphone;

[0009] determining a first operating parameter of the microphone according to the target distance and the target relative angle;

[0010] The microphone is controlled to operate with the first operating parameter.

[0011] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a microphone, a distance sensor and a camera, the electronic device comprising: a detection unit, an identification unit, a wake-up unit, a determination unit and a control unit, wherein:

[0012] The detection unit is used to detect the target distance between the user and the microphone through the distance sensor when the microphone is in a dormant state;

[0013] The recognition unit is used to recognize a target relative angle between the user and the microphone through the camera;

[0014] The detection unit is further configured to detect whether the target distance and the target relative angle meet a preset condition;

[0015] The wake-up unit is configured to wake up the microphone when the target distance and the target relative angle meet the preset condition;

[0016] The determination unit is configured to determine a first operating parameter of the microphone according to the target distance and the target relative angle;

[0017] The control unit is configured to control the microphone to operate with the first operating parameter.

[0018] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method described in the first aspect.

[0019] Implementing the embodiments of the present application has the following beneficial effects:

[0020] It can be seen that the microphone control method, device, and computer storage medium described in the embodiments of the present application are applied to an electronic device. The electronic device includes a microphone, a distance sensor, and a camera. When the microphone is in a sleep state, the distance sensor is used to detect the target distance between the user and the microphone, and the camera is used to identify the target relative angle between the user and the microphone. It is detected whether the target distance and the target relative angle meet the preset condition. When the target distance and the target relative angle meet the preset condition, the microphone is woken up, and the first operating parameter of the microphone is determined according to the target distance and the target relative angle, and the microphone is controlled to operate with the first operating parameter. Since the first operating parameter is related to the distance and angle between the microphone and the user, the operating parameter of the microphone is more in line with the actual situation, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 It is a schematic flowchart of a microphone control method provided by an embodiment of the present application;

[0023] Figure 2 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0024] Figure 3 It is a block diagram of the functional units of another electronic device provided by an embodiment of the present application. Detailed implementation manners

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.

[0027] Referring to "embodiment" herein means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0028] In the embodiments of the present application, the electronic device may be any device including a microphone. The electronic device may include at least one of the following: a smart phone (such as an Android phone, an iOS phone, a Windows Phone), a tablet computer, a personal digital assistant, a driving recorder, a server, a laptop computer, a mobile Internet device (MID), or a wearable device (such as a smart watch, a Bluetooth headset), etc. The above are only examples, not an exhaustive list, including but not limited to the above-mentioned electronic devices.

[0029] The embodiments of the present application will be introduced in detail below.

[0030] Please refer to Figure 1 , Figure 1It is a schematic flowchart of a microphone control method provided by an embodiment of the present application, which is applied to an electronic device. The electronic device includes a microphone, a distance sensor, and a camera. The microphone control method may include the following steps:

[0031] 101. When the microphone is in a sleep state, detect a target distance between the user and the microphone through the distance sensor.

[0032] In an embodiment of the present application, the electronic device may include a microphone, a distance sensor, and a camera. The distance sensor may include at least one of the following: a proximity sensor, a laser range finder, etc., which is not limited herein. The camera may be a dual camera or a depth camera.

[0033] In a specific implementation, when the microphone is in a sleep state, the target distance between the user and the microphone can be detected through the distance sensor.

[0034] 102. Identify a target relative angle between the user and the microphone through the camera.

[0035] In a specific implementation, the target relative angle between a specified position of the user's body and the microphone can be identified through the camera. The specified position may be a certain position on the head, such as the mouth, the left eyebrow, the bridge of the nose, etc. The specified position can be set in advance or be the system default.

[0036] 103. Detect whether the target distance and the target relative angle meet a preset condition.

[0037] Among them, the preset condition can be set in advance or be the system default. The preset condition may also be related to the hardware parameters of the microphone. Different hardware parameters result in different distances or relative angles. The hardware parameters may include at least one of the following: the model of the microphone, the battery level of the microphone, the power of the microphone, etc., which is not limited herein.

[0038] In a specific implementation, if the target distance and the target relative angle need to meet the preset condition, it means that the distance and / or angle between the user and the microphone is good, and then the microphone can be turned on.

[0039] Optionally, in step 103 above, detecting whether the target distance and the target relative angle meet the preset condition may include the following steps:

[0040] A31. Determine a first evaluation value corresponding to the target distance according to a mapping relationship between a preset distance and an evaluation value;

[0041] A32. Determine a second evaluation value corresponding to the target relative angle according to a mapping relationship between a preset relative angle and an evaluation value;

[0042] A33. Obtain the target environmental parameters;

[0043] A34. Determine the target weight pair corresponding to the target environmental parameters;

[0044] A35. Perform a weighted operation based on the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value;

[0045] A36. When the target evaluation value is within a preset range, confirm that the target distance and the target relative angle meet the preset conditions;

[0046] A37. When the target evaluation value is not within the preset range, confirm that the target distance and the target relative angle do not meet the preset conditions.

[0047] In the embodiments of the present application, a mapping relationship between a preset distance and an evaluation value, and a mapping relationship between a preset relative angle and an evaluation value can be stored in advance.

[0048] In a specific implementation, the target environmental parameters may include at least one of the following: environmental noise value, scene location, scene space size, etc., which are not limited herein. The scene space size may refer to a space where the microphone is located, such as a classroom, a meeting room, outdoors, etc. The preset range can be set in advance or be the system default.

[0049] In the embodiments of the present application, a mapping relationship between a preset distance and an evaluation value, and a mapping relationship between a preset relative angle and an evaluation value can be stored in advance.

[0050] In a specific implementation, the first evaluation value corresponding to the target distance can be determined according to the mapping relationship between the preset distance and the evaluation value, and then the second evaluation value corresponding to the target relative angle can be determined according to the mapping relationship between the preset relative angle and the evaluation value. Moreover, the target environmental parameters can be obtained. Different environmental parameters can correspond to different weight pairs. The weight pair can include a first weight and a second weight. The first weight is the weight corresponding to the first evaluation value, and the second weight is the weight corresponding to the second evaluation value. The sum of the first weight and the second weight is 1. That is, a mapping relationship between the preset environmental parameters and the weight pair can be stored in advance. Furthermore, based on this mapping relationship, the target weight pair corresponding to the target environmental parameters can be determined. The target weight pair can include a target first weight and a target second weight.

[0051] Then, a weighted operation can be performed according to the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value, that is: target evaluation value = first evaluation value * target first weight + second evaluation value * target second weight.

[0052] Further, when the target evaluation value is within the preset range, it indicates that the angle and distance between the microphone and the user are appropriate before, then it can be confirmed that the target distance and the target relative angle meet the preset conditions. On the contrary, when the target evaluation value is not within the preset range, it indicates that the distance and angle between the microphone and the user are not appropriate, and it is confirmed that the target distance and the target relative angle do not meet the preset conditions.

[0053] Optionally, step 103 above, detecting whether the target distance and the target relative angle meet the preset conditions, may include the following steps:

[0054] B31. Detect whether the target distance is within the preset distance range and detect whether the target relative angle is within the preset relative angle range;

[0055] B32. When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, confirm that the target distance and the target relative angle meet the preset conditions;

[0056] B33. When the target distance is not within the preset distance range, and / or the target relative angle is not within the preset relative angle range, confirm that the target distance and the target relative angle do not meet the preset conditions.

[0057] In the embodiments of the present application, the preset distance range and the preset relative angle range can both be set in advance or be the system default.

[0058] In specific implementation, it can be detected whether the target distance is within the preset distance range and whether the target relative angle is within the preset relative angle range. When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, it indicates that both the distance and angle between the microphone and the user are appropriate, and it is confirmed that the target distance and the target relative angle meet the preset conditions. When the target distance is not within the preset distance range, and / or the target relative angle is not within the preset relative angle range, it indicates that either the distance or the angle between the microphone and the user is not appropriate, and it is confirmed that the target distance and the target relative angle do not meet the preset conditions.

[0059] 104. When the target distance and the target relative angle meet the preset conditions, wake up the microphone.

[0060] In the embodiments of the present application, when the target distance and the target relative angle meet the preset conditions, it indicates that the distance and angle between the microphone and the user are appropriate and meet the microphone activation conditions, then the microphone can be woken up.

[0061] Optionally, it may further include the following steps:

[0062] When the target distance and the target relative angle do not meet the preset conditions, control the microphone to remain in the sleep state.

[0063] In the embodiments of the present application, when the target distance and the target relative angle do not meet the preset conditions, it indicates that the distance or angle between the microphone and the user is not appropriate, which does not meet the activation conditions of the microphone. Therefore, the microphone can be controlled to remain in the sleep state, thereby reducing the power consumption of the electronic device and avoiding the unintentional use of the microphone.

[0064] 105. Determine the first working parameter of the microphone according to the target distance and the target relative angle.

[0065] In the embodiments of the present application, the first working parameter may include at least one of the following: the working current of the microphone, the working power of the microphone, the working voltage of the microphone, the voice signal enhancement processing algorithm corresponding to the microphone, the algorithm control parameter of the voice signal enhancement processing algorithm corresponding to the microphone, etc. There is no limitation here. The algorithm control parameter of the voice signal enhancement processing algorithm corresponding to the microphone is used to control the algorithm effect of the voice signal enhancement processing algorithm corresponding to the microphone, and the voice signal enhancement processing algorithm corresponding to the microphone is used to implement functions such as voice noise reduction and voice enhancement.

[0066] Optionally, the first working parameter includes algorithm-related working parameters;

[0067] The above step 105 of determining the first working parameter of the microphone according to the target distance and the target relative angle may include the following steps:

[0068] 51. Determine the target voice signal enhancement processing algorithm according to the target distance;

[0069] 52. Obtain the initial algorithm control parameter corresponding to the target voice signal enhancement processing algorithm;

[0070] 53. Determine the target algorithm adjustment parameter corresponding to the target relative angle;

[0071] 54. Adjust the initial algorithm control parameter according to the target algorithm adjustment parameter to obtain the target algorithm control parameter;

[0072] 55. Use the target voice signal enhancement processing algorithm and the target algorithm control parameter as the algorithm-related working parameters.

[0073] In the embodiments of the present application, the first working parameter may include algorithm-related working parameters, and the algorithm-related working parameters may include the corresponding voice signal enhancement processing algorithm and the corresponding algorithm control parameter.

[0074] In a specific implementation, a mapping relationship between a preset distance and a voice signal enhancement processing algorithm can be preset. Furthermore, based on this mapping relationship, a target voice signal enhancement processing algorithm can be determined according to the target distance. An initial algorithm control parameter corresponding to the target voice signal enhancement processing algorithm can be obtained. The initial algorithm control parameter can be preset in advance or be the system default. A mapping relationship between a preset relative angle and an algorithm adjustment parameter can also be preset. Furthermore, based on this mapping relationship, a target algorithm adjustment parameter corresponding to the target relative angle can be determined. Then, the initial algorithm control parameter is adjusted according to the target algorithm adjustment parameter to obtain a target algorithm control parameter. In this way, an algorithm control parameter corresponding to the relative angle can be obtained. For different relative angles, the mixed environmental noise is different. Furthermore, to a certain extent, the influence of environmental noise can be further reduced. The target voice signal enhancement processing algorithm and the target algorithm control parameter are used as algorithm-related working parameters. In this way, a voice signal enhancement processing algorithm corresponding to the distance and the relative angle and the corresponding algorithm control parameter can be obtained, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0075] Optionally, the first working parameter includes a hardware-related working parameter;

[0076] The following steps may further be included:

[0077] A1. Obtain target scene environment parameters;

[0078] A2. Determine the hardware-related working parameter corresponding to the target scene environment parameter.

[0079] In the embodiment of the present application, the scene environment parameter may include at least one of the following: scene location, scene space parameter, scene echo parameter, etc., which is not limited herein. The hardware-related working parameter may include at least one of the following: the working current of the microphone, the working power of the microphone, the working voltage of the microphone, etc., which is not limited herein.

[0080] In a specific implementation, a mapping relationship between a preset scene environment parameter and a hardware-related working parameter can be prestored. Furthermore, the target scene environment parameter can be obtained, and based on this mapping relationship, the hardware-related working parameter corresponding to the target scene environment parameter can be determined. In this way, the hardware-related working parameter of the microphone corresponding to a specific scene can be obtained, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0081] 106. Control the microphone to work with the first working parameter.

[0082] In a specific implementation, the microphone can be controlled to work with first working parameters. Since the first working parameters are related to the distance and angle between the microphone and the user, the working parameters of the microphone are more in line with the actual situation, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0083] It can be seen that the microphone control method described in the embodiments of the present application is applied to an electronic device. The electronic device includes a microphone, a distance sensor, and a camera. When the microphone is in a sleep state, the target distance between the user and the microphone is detected by the distance sensor, and the target relative angle between the user and the microphone is identified by the camera. It is detected whether the target distance and the target relative angle meet the preset conditions. When the target distance and the target relative angle meet the preset conditions, the microphone is awakened, the first working parameters of the microphone are determined according to the target distance and the target relative angle, and the microphone is controlled to work with the first working parameters. Since the first working parameters are related to the distance and angle between the microphone and the user, the working parameters of the microphone are more in line with the actual situation, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0084] Consistent with the above embodiments, please refer to Figure 2 , Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The above one or more programs are stored in the above memory and are configured to be executed by the above processor. The electronic device further includes a microphone, a distance sensor, and a camera. In the embodiments of the present application, the above programs include instructions for performing the following steps:

[0085] When the microphone is in a sleep state, detect the target distance between the user and the microphone through the distance sensor;

[0086] Identify the target relative angle between the user and the microphone through the camera;

[0087] Detect whether the target distance and the target relative angle meet the preset conditions;

[0088] When the target distance and the target relative angle meet the preset conditions, wake up the microphone;

[0089] Determine the first working parameters of the microphone according to the target distance and the target relative angle;

[0090] Control the microphone to work with the first working parameters.

[0091] Optionally, in terms of detecting whether the target distance and the target relative angle meet the preset conditions, the above program includes instructions for performing the following steps:

[0092] Determine a first evaluation value corresponding to the target distance according to the mapping relationship between the preset distance and the evaluation value;

[0093] Determine a second evaluation value corresponding to the target relative angle according to the mapping relationship between the preset relative angle and the evaluation value;

[0094] Obtain target environment parameters;

[0095] Determine a target weight pair corresponding to the target environment parameters;

[0096] Perform a weighted operation according to the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value;

[0097] When the target evaluation value is within a preset range, confirm that the target distance and the target relative angle meet the preset conditions;

[0098] When the target evaluation value is not within the preset range, confirm that the target distance and the target relative angle do not meet the preset conditions.

[0099] Optionally, in terms of detecting whether the target distance and the target relative angle meet the preset conditions, the above program includes instructions for performing the following steps:

[0100] Detect whether the target distance is within a preset distance range and detect whether the target relative angle is within a preset relative angle range;

[0101] When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, confirm that the target distance and the target relative angle meet the preset conditions;

[0102] When the target distance is not within the preset distance range, and / or, the target relative angle is not within the preset relative angle range, confirm that the target distance and the target relative angle do not meet the preset conditions.

[0103] Optionally, the above program further includes instructions for performing the following steps:

[0104] When the target distance and the target relative angle do not meet the preset conditions, control the microphone to remain in the sleep state.

[0105] Optionally, the first working parameter includes working parameters related to the algorithm;

[0106] In terms of determining the first working parameter of the microphone according to the target distance and the target relative angle, the above program includes instructions for performing the following steps:

[0107] Determine a target voice signal enhancement processing algorithm according to the target distance;

[0108] Obtain initial algorithm control parameters corresponding to the target voice signal enhancement processing algorithm;

[0109] Determine target algorithm adjustment parameters corresponding to the target relative angle;

[0110] Adjust the initial algorithm control parameters according to the target algorithm adjustment parameters to obtain target algorithm control parameters;

[0111] Use the target voice signal enhancement processing algorithm and the target algorithm control parameters as the algorithm-related working parameters.

[0112] Optionally, the first working parameter includes hardware-related working parameters;

[0113] The above program further includes instructions for performing the following steps:

[0114] Obtain target scene environment parameters;

[0115] Determine the hardware-related working parameters corresponding to the target scene environment parameters.

[0116] It can be seen that in the electronic device described in the embodiments of the present application, the electronic device includes a microphone, a distance sensor, and a camera. When the microphone is in a sleep state, the target distance between the user and the microphone is detected by the distance sensor, and the target relative angle between the user and the microphone is recognized by the camera. It is detected whether the target distance and the target relative angle meet preset conditions. When the target distance and the target relative angle meet the preset conditions, the microphone is awakened, the first working parameter of the microphone is determined according to the target distance and the target relative angle, and the microphone is controlled to work with the first working parameter. Since the first working parameter is related to the distance and angle between the microphone and the user, the working parameter of the microphone is more in line with the actual situation, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0117] Figure 3 It is a functional unit composition block diagram of an electronic device 300 involved in the embodiments of the present application. The electronic device 300 includes: a detection unit 301, an identification unit 302, a wake-up unit 303, a determination unit 304, and a control unit 305, where,

[0118] The detection unit 301 is configured to detect a target distance between the user and the microphone through the distance sensor when the microphone is in a sleep state;

[0119] The recognition unit 302 is configured to recognize a target relative angle between the user and the microphone through the camera;

[0120] The detection unit 301 is further configured to detect whether the target distance and the target relative angle meet a preset condition;

[0121] The wake-up unit 303 is configured to wake up the microphone when the target distance and the target relative angle meet the preset condition;

[0122] The determination unit 304 is configured to determine a first working parameter of the microphone according to the target distance and the target relative angle;

[0123] The control unit 305 is configured to control the microphone to work with the first working parameter.

[0124] Optionally, in terms of detecting whether the target distance and the target relative angle meet a preset condition, the detection unit 301 is specifically configured to:

[0125] Determine a first evaluation value corresponding to the target distance according to a mapping relationship between a preset distance and an evaluation value;

[0126] Determine a second evaluation value corresponding to the target relative angle according to a mapping relationship between a preset relative angle and an evaluation value;

[0127] Obtain target environment parameters;

[0128] Determine a target weight pair corresponding to the target environment parameters;

[0129] Perform a weighted operation according to the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value;

[0130] When the target evaluation value is within a preset range, confirm that the target distance and the target relative angle meet the preset condition;

[0131] When the target evaluation value is not within the preset range, confirm that the target distance and the target relative angle do not meet the preset condition.

[0132] Optionally, in terms of detecting whether the target distance and the target relative angle meet a preset condition, the detection unit 301 is specifically configured to:

[0133] Detect whether the target distance is within a preset distance range, and detect whether the target relative angle is within a preset relative angle range;

[0134] When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, confirm that the target distance and the target relative angle meet the preset conditions;

[0135] When the target distance is not within the preset distance range, and / or, the target relative angle is not within the preset relative angle range, confirm that the target distance and the target relative angle do not meet the preset conditions.

[0136] Optionally, the electronic device 300 is further specifically configured to:

[0137] When the target distance and the target relative angle do not meet the preset conditions, control the microphone to remain in the sleep state.

[0138] Optionally, the first working parameter includes algorithm-related working parameters;

[0139] In terms of determining the first working parameter of the microphone according to the target distance and the target relative angle, the determining unit 304 is specifically configured to:

[0140] Determine a target voice signal enhancement processing algorithm according to the target distance;

[0141] Obtain initial algorithm control parameters corresponding to the target voice signal enhancement processing algorithm;

[0142] Determine target algorithm adjustment parameters corresponding to the target relative angle;

[0143] Adjust the initial algorithm control parameters according to the target algorithm adjustment parameters to obtain target algorithm control parameters;

[0144] Use the target voice signal enhancement processing algorithm and the target algorithm control parameters as the algorithm-related working parameters.

[0145] Optionally, the first working parameter includes hardware-related working parameters;

[0146] The electronic device 300 is further specifically configured to:

[0147] Obtain target scene environment parameters;

[0148] Determine the hardware-related working parameters corresponding to the target scene environment parameters.

[0149] It can be seen that for the electronic device described in the embodiments of the present application, the electronic device includes a microphone, a distance sensor, and a camera. When the microphone is in a sleep state, the target distance between the user and the microphone is detected by the distance sensor, and the target relative angle between the user and the microphone is recognized by the camera. It is detected whether the target distance and the target relative angle meet the preset conditions. When the target distance and the target relative angle meet the preset conditions, the microphone is awakened, the first working parameter of the microphone is determined according to the target distance and the target relative angle, and the microphone is controlled to work with the first working parameter. Since the first working parameter is related to the distance and angle between the microphone and the user, the working parameter of the microphone is more in line with the actual situation, which helps to improve the noise reduction ability of the microphone and the sound effect of the microphone, and helps to improve the user experience.

[0150] It can be understood that the functions of the respective program modules of the electronic device in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments, which will not be elaborated here.

[0151] The embodiments of the present application also provide a computer storage medium. The computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute some or all of the steps of any of the methods described in the above method embodiments.

[0152] The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to enable a computer to execute some or all of the steps of any of the methods described in the above method embodiments. The computer program product can be a software installation package.

[0153] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0154] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0155] In several embodiments provided by the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical or other form.

[0156] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0158] If the above-mentioned integrated unit 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 memory. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. And the aforementioned memory includes: USB flash drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.

[0159] Those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned various methods can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory. The memory can include: flash drive, read-only memory (abbreviation: ROM), random access memory (abbreviation: RAM), magnetic disk or optical disk, etc.

[0160] The above has introduced the embodiments of the present application in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A microphone control method, characterized in that, Applied to an electronic device, the electronic device including a microphone, a distance sensor, and a camera, the method comprising: When the microphone is in a sleep state, detecting a target distance between the user and the microphone through the distance sensor; Identifying a target relative angle between the user and the microphone through the camera; Detecting whether the target distance and the target relative angle meet a preset condition; When the target distance and the target relative angle meet the preset condition, waking up the microphone; Determining first working parameters of the microphone according to the target distance and the target relative angle; Controlling the microphone to work with the first working parameters; Wherein, the detecting whether the target distance and the target relative angle meet the preset condition includes: Determining a first evaluation value corresponding to the target distance according to a mapping relationship between a preset distance and an evaluation value; Determining a second evaluation value corresponding to the target relative angle according to a mapping relationship between a preset relative angle and an evaluation value; Obtaining target environment parameters; Determining a target weight pair corresponding to the target environment parameters; Performing a weighted operation according to the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value; When the target evaluation value is within a preset range, confirming that the target distance and the target relative angle meet the preset condition; When the target evaluation value is not within the preset range, confirming that the target distance and the target relative angle do not meet the preset condition; Wherein, the first working parameters include algorithm-related working parameters; The determining the first working parameters of the microphone according to the target distance and the target relative angle includes: Determining a target voice signal enhancement processing algorithm according to the target distance; Obtaining initial algorithm control parameters corresponding to the target voice signal enhancement processing algorithm; Determining a target algorithm adjustment parameter corresponding to the target relative angle; Adjusting the initial algorithm control parameters according to the target algorithm adjustment parameter to obtain target algorithm control parameters; Taking the target voice signal enhancement processing algorithm and the target algorithm control parameters as the algorithm-related working parameters.

2. The method according to claim 1, characterized in that The detecting whether the target distance and the target relative angle meet the preset condition includes: Detecting whether the target distance is within a preset distance range and detecting whether the target relative angle is within a preset relative angle range; When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, confirming that the target distance and the target relative angle meet the preset condition; When the target distance is not within the preset distance range and / or the target relative angle is not within the preset relative angle range, confirming that the target distance and the target relative angle do not meet the preset condition.

3. The method according to claim 1 or 2, characterized in that The method further includes: When the target distance and the target relative angle do not meet the preset condition, controlling the microphone to remain in the sleep state.

4. The method according to claim 1, wherein The first working parameters include hardware-related working parameters; The method further includes: Obtain the target scenario environment parameters; Determine the hardware-related working parameters corresponding to the target scenario environment parameters.

5. An electronic device, characterized in that, The electronic device includes a microphone, a distance sensor, and a camera. The electronic device includes: a detection unit, an identification unit, a wake-up unit, a determination unit, and a control unit, where The detection unit is configured to detect a target distance between a user and the microphone through the distance sensor when the microphone is in a sleep state; The identification unit is configured to identify a target relative angle between the user and the microphone through the camera; The detection unit is further configured to detect whether the target distance and the target relative angle meet a preset condition; The wake-up unit is configured to wake up the microphone when the target distance and the target relative angle meet the preset condition; The determination unit is configured to determine a first working parameter of the microphone according to the target distance and the target relative angle; The control unit is configured to control the microphone to work with the first working parameter; Wherein, in terms of detecting whether the target distance and the target relative angle meet the preset condition, the detection unit specifically is configured to: Determine a first evaluation value corresponding to the target distance according to a mapping relationship between a preset distance and an evaluation value; Determine a second evaluation value corresponding to the target relative angle according to a mapping relationship between a preset relative angle and an evaluation value; Obtain target environment parameters; Determine a target weight pair corresponding to the target environment parameters; Perform a weighted operation according to the target weight pair, the first evaluation value, and the second evaluation value to obtain a target evaluation value; When the target evaluation value is within a preset range, confirm that the target distance and the target relative angle meet the preset condition; When the target evaluation value is not within the preset range, confirm that the target distance and the target relative angle do not meet the preset condition; Wherein, the first working parameter includes algorithm-related working parameters; The determining the first working parameter of the microphone according to the target distance and the target relative angle includes: Determine a target voice signal enhancement processing algorithm according to the target distance; Obtain an initial algorithm control parameter corresponding to the target voice signal enhancement processing algorithm; Determine a target algorithm adjustment parameter corresponding to the target relative angle; Adjust the initial algorithm control parameter according to the target algorithm adjustment parameter to obtain a target algorithm control parameter; Use the target voice signal enhancement processing algorithm and the target algorithm control parameter as the algorithm-related working parameters.

6. The electronic device according to claim 5, wherein In terms of detecting whether the target distance and the target relative angle meet the preset condition, the detection unit specifically is configured to: Detect whether the target distance is within a preset distance range and detect whether the target relative angle is within a preset relative angle range; When the target distance is within the preset distance range and the target relative angle is within the preset relative angle range, confirm that the target distance and the target relative angle meet the preset condition; When the target distance is not within the preset distance range, and / or the target relative angle is not within the preset relative angle range, it is confirmed that the target distance and the target relative angle do not meet the preset conditions.

7. A computer-readable storage medium, characterized in that, Store a computer program for electronic data interchange, wherein the computer program causes a computer to execute the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Microphone response method and device thereof

    CN111048067A