A method, device, equipment and storage medium for adjusting microphone pickup area
By combining the data of the three-axis acceleration sensor and array microphone, the microphone pickup area and gain are accurately adjusted, and the microphone pickup area is solved in the prior art problem of insufficient adjustment of the microphone pickup area, improving the sound pickup quality and stability.
Patent Information
- Application Number
- CN202110150485.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-03
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-02-03
AI Technical Summary
The prior art is difficult to accurately locate the microphone sound pickup area, resulting in a decrease in the sound pickup effect, especially when the screen rotates, the microphone sound pickup area is not adjusted accurately enough, affecting the sound quality.
By obtaining the rotation angle and rotation direction of the display collected by the three-axis acceleration sensor, combining the sound pickup volume collected by the array microphone, determine the adjustment angle and direction of the microphone or the volume adjustment gain, and accurately adjust the sound pickup area and gain of the microphone.
Accurate adjustment of the microphone sound pickup area, improve the sound pickup quality, and ensure stable sound quality performance in different usage scenarios.
Smart Images

Figure CN114928789B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of all-in-one machines, and in particular to a method, device, equipment and storage medium for adjusting the sound pickup area of a microphone. Background Art
[0002] The microphone and screen of a traditional all-in-one machine are set on the same plane. When the screen rotates, the microphone's suitable sound pickup area will also rotate. At this time, the microphone's sound pickup area will change, and the sound pickup effect will decrease. For the decreased sound pickup effect, the existing solution is to adjust the sound pickup area and volume through array microphone wave shaping and automatic gain adjustment.
[0003] The inventors found that if the microphone placement is changed so that the angle of the current speaker facing the microphone deviates greatly, if only the gain is increased, the microphone frequency response and distortion will change differently, affecting the quality of the microphone pickup. Array microphone wave shaping can be adjusted for the pickup direction, but the pickup direction determined by the sound source localization is not accurate enough, resulting in an inaccurate angle for the adjustment of the pickup direction. In addition, in noisy scenarios, it is easy to have difficulty in localizing the sound source, which makes it relatively difficult to adjust the pickup direction, and the accuracy and reliability of the pickup direction adjustment cannot be guaranteed. Summary of the invention
[0004] The embodiments of the present application provide a microphone pickup adjustment method, device, equipment and storage medium, which can solve the problem that the prior art cannot accurately locate the pickup area, so as to achieve accurate adjustment of the pickup area and improve the pickup quality.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting microphone pickup, comprising:
[0006] Obtain the display rotation angle and rotation direction collected by the three-axis acceleration sensor, and obtain the microphone pickup volume collected by the array microphone;
[0007] When confirming that the sound pickup volume is within a preset effective volume range, recording the rotation angle and rotation direction;
[0008] When confirming that the sound pickup volume is within a preset invalid volume range, determining an adjustment angle and an adjustment direction of the array microphone according to the rotation angle and the rotation direction, or determining a volume adjustment gain of the array microphone according to the sound pickup volume;
[0009] The sound pickup area of the array microphone is adjusted according to the adjustment angle and the adjustment direction, or the sound pickup gain of the array microphone is adjusted according to the volume adjustment gain.
[0010] In a second aspect, an embodiment of the present application provides a microphone pickup adjustment device, comprising:
[0011] A data acquisition module is configured to acquire a display rotation angle and a rotation direction acquired by a three-axis acceleration sensor, and acquire a microphone pickup volume acquired by an array microphone;
[0012] A data recording module, configured to record the rotation angle and the rotation direction when confirming that the sound pickup volume is within a preset effective volume range;
[0013] an adjustment parameter determination module, configured to determine an adjustment angle and an adjustment direction of the array microphone according to the rotation angle and the rotation direction, or determine a volume adjustment gain of the array microphone according to the pickup volume when confirming that the pickup volume is within a preset invalid volume range;
[0014] The sound pickup adjustment module is configured to adjust the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction, or to adjust the sound pickup gain of the array microphone according to the volume adjustment gain.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0016] memory and one or more processors;
[0017] The memory is used to store one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the microphone pickup adjustment method as described in the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the microphone pickup adjustment method as described in the first aspect.
[0020] The embodiment of the present application obtains the microphone pickup volume collected by the array microphone by obtaining the display rotation angle and rotation direction collected by the three-axis acceleration sensor; when confirming that the pickup volume is within the preset effective volume range, the rotation angle and rotation direction are recorded; when confirming that the pickup volume is within the preset invalid volume range, the adjustment angle and adjustment direction of the array microphone are determined according to the rotation angle and rotation direction, or the volume adjustment gain of the array microphone is determined according to the pickup volume; the pickup area of the array microphone is adjusted according to the adjustment angle and adjustment direction, or the pickup gain of the array microphone is adjusted according to the volume adjustment gain. Through the above technical means, the rotation angle and rotation direction of the pickup area of the array microphone are accurately obtained through the three-axis acceleration sensor, and the pickup area is accurately monitored through the dual threshold monitoring of the volume threshold and the angle threshold. By adjusting the position of the pickup area and the coordinated adjustment of the pickup gain, the pickup adjustment is made more accurate and reliable, and the pickup quality of the array microphone is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a microphone pickup adjustment method provided in Embodiment 1 of the present application;
[0022] Figure 2 It is a structural schematic diagram of a microphone pickup adjustment system provided in Example 1 of the present application;
[0023] Figure 3 This is a schematic diagram of the structure of an all-in-one machine before the screen is rotated provided in the first embodiment of the present application;
[0024] Figure 4 This is a schematic diagram of the structure of an all-in-one machine after the screen is rotated provided in the first embodiment of the present application;
[0025] Figure 5 It is an optional specific determination flow chart for adjusting the angle and the direction;
[0026] Figure 6 It is an optional specific determination flow chart of volume adjustment gain;
[0027] Figure 7 is a flow chart of another microphone pickup adjustment method provided in Embodiment 1 of the present application;
[0028] Figure 8 It is a structural schematic diagram of a microphone pickup adjustment device provided in Embodiment 2 of the present application;
[0029] Fig. 9 It is a structural schematic diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0031] The microphone pickup adjustment method, device, equipment and storage medium provided in the present application are intended to obtain the microphone pickup volume collected by the array microphone by obtaining the display rotation angle and rotation direction collected by the three-axis acceleration sensor; when confirming that the pickup volume is within the preset effective volume range, record the rotation angle and rotation direction; when confirming that the pickup volume is within the preset invalid volume range, determine the adjustment angle and adjustment direction of the array microphone according to the rotation angle and rotation direction, or determine the volume adjustment gain of the array microphone according to the pickup volume; adjust the pickup area of the array microphone according to the adjustment angle and adjustment direction, or adjust the pickup gain of the array microphone according to the volume adjustment gain. Compared with the traditional pickup adjustment technology, it only adjusts the pickup area through the array microphone wave speed shaping, or only adjusts the pickup volume through automatic gain. However, when the angle deviation of the current speaker facing the microphone is large, if only the gain is increased, the microphone frequency response and distortion will have different changes, affecting the quality of microphone pickup. However, when adjusting the sound pickup area, the sound pickup direction determined by the sound source positioning is not accurate enough, resulting in an inaccurate angle for adjusting the sound pickup direction. In addition, in noisy usage scenarios, it is easy to find it difficult to locate the sound source, which makes it relatively difficult to adjust the sound pickup direction, and the accuracy and reliability of the sound pickup direction adjustment cannot be guaranteed. Based on this, the embodiments of the present application provide a microphone sound pickup adjustment method, device, equipment, and storage medium to solve the problem that the prior art cannot accurately locate the sound pickup area, achieve accurate adjustment of the sound pickup area, and improve the sound pickup quality.
[0032] Embodiment 1:
[0033] Figure 11 is a flowchart of a microphone pickup adjustment method provided in Embodiment 1 of the present application. The microphone pickup adjustment method provided in the embodiment can be executed by a microphone pickup adjustment device, which can be implemented by software and / or hardware, and can be composed of two or more physical entities, or one physical entity.
[0034] Exemplary, reference Figure 2 , Figure 2 Schematic diagram of the structure of a microphone pickup adjustment system provided in the first embodiment of the present application. Figure 2 As shown, the microphone pickup adjustment system includes: an array microphone, a three-axis acceleration sensor and a main controller. The array microphone is used to collect volume data, that is, collect the microphone pickup volume. The three-axis acceleration sensor is used to collect rotation data, that is, collect the rotation angle and rotation direction of the display. The main controller is used to determine the adjustment parameters of the array microphone according to the volume data and the rotation data, and adjust the array microphone according to the adjustment parameters.
[0035] For ease of understanding, the embodiment is described exemplarily by taking the main controller as a microphone pickup adjustment device. Figure 1 , the microphone pickup adjustment method provided in the embodiment of the present application includes:
[0036] S101, obtaining a display rotation angle and a rotation direction collected by a three-axis acceleration sensor, and obtaining a microphone pickup volume collected by an array microphone.
[0037] Exemplary, reference Figure 3 , Figure 3 1 is a schematic diagram of the structure of an all-in-one machine before the screen is rotated provided in the first embodiment of the present application. Figure 3As shown, the all-in-one includes: a rotating shaft, a bracket, a display, an array microphone and a three-axis acceleration sensor. The display is installed on the bracket via the rotating shaft, and the array microphone and the three-axis acceleration sensor are installed on the display. The dotted area is the current pickup area of the array microphone. Among them, the display is perpendicular to the X-axis, the bracket is parallel to the Z-axis, and the Y-axis, X-axis and Z-axis are perpendicular to each other. The display can rotate clockwise or counterclockwise around the Y-axis. It is understandable that the display is no longer perpendicular to the X-axis after rotation. When the display rotates, the display drives the three-axis acceleration sensor installed inside to rotate. The three-axis acceleration sensor detects its own acceleration in the Y-axis, X-axis and Z-axis directions respectively, and calculates its own rotation angle and rotation direction according to the acceleration in the Y-axis, X-axis and Z-axis directions. Since the three-axis acceleration sensor, the display and the array microphone rotate synchronously, the rotation angle and rotation direction measured by the three-axis acceleration sensor can be used as the rotation angle and rotation direction of the display and the array microphone, and then the position of the pickup area after rotation can be determined by the rotation angle and rotation direction of the array microphone. Specifically, assuming Figure 3 The state of the display in is the initial state, that is, the display is perpendicular to the X axis. At this time, the sound pickup area of the array microphone is the initial sound pickup area, assuming that the angle of the initial sound pickup area is 0°, and the direction is directly in front of the display.
[0038] For further reference, Figure 4 , Figure 4 1 is a schematic diagram of the structure of an all-in-one machine after the screen is rotated provided in the first embodiment of the present application. Figure 4 As shown, assuming that the display rotates clockwise by an angle of θ, the array microphone rotates from the initial sound pickup area to the first sound pickup area as the display rotates, that is, the first sound pickup area is the current sound pickup area of the array microphone. It can be understood that when the display rotates clockwise by an angle of θ, the three-axis acceleration sensor collects that the display rotation angle is θ°, and the rotation direction is clockwise.
[0039] S102: When it is confirmed that the sound pickup volume is within a preset effective volume range, the rotation angle and the rotation direction are recorded.
[0040] Exemplarily, the sound pickup volume collected by the array microphone is one of the criteria for measuring whether the current sound pickup area is suitable. If the sound pickup volume is greater than or equal to the volume threshold, it indicates that the sound pickup volume collected by the current array microphone meets the volume requirement of the user. If the sound pickup volume is less than the volume threshold, it indicates that the sound pickup volume collected by the current array microphone does not meet the volume requirement of the user. At this time, the sound pickup parameters of the array microphone need to be adjusted to meet the user's requirements. It is understandable that the volume threshold can be set according to the user's volume requirements, which is not limited here.
[0041] Specifically, refer to Figure 4, assuming that after the initial sound pickup area rotates to the first sound pickup area, the sound pickup volume is greater than or equal to the preset volume threshold, then the first sound pickup area at this time is a suitable sound pickup area. For a suitable sound pickup area, there is no need to adjust the sound pickup area of the array microphone, but it is necessary to record the rotation angle and rotation direction of the display front device, so that the position of the current sound pickup area of the array microphone can be more accurately calculated after the display is adjusted next time, so as to adjust the current sound pickup area to a suitable sound pickup area. Furthermore, based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated, and the current sound pickup area angle and direction are recorded. Exemplarily, refer to Figure 4 ,The pickup area at the last adjustment is the initial pickup area, and the current pickup area is the first pickup area. According to the clockwise rotation direction and the initial direction (directly in front of the display), add the rotation angle θ° and the initial angle 0°, and you can get the direction of the first pickup area is diagonally above the display, and the angle of the first pickup area is θ°. Record the angle and direction of the first pickup area.
[0042] S103: When it is confirmed that the sound pickup volume is within a preset invalid volume range, determining an adjustment angle and an adjustment direction of the array microphone according to the rotation angle and the rotation direction, or determining a volume adjustment gain of the array microphone according to the sound pickup volume.
[0043] Exemplary, reference Figure 4 , assuming that after the initial sound pickup area rotates to the first sound pickup area, the sound pickup volume is less than the volume threshold, then it is necessary to determine whether the first sound pickup area is a suitable sound pickup area. If it is a suitable sound pickup area, it is necessary to adjust the sound pickup gain of the array microphone. If it is not a suitable sound pickup area, it is necessary to adjust the sound pickup area of the array microphone.
[0044] Specifically, refer to Figure 5 , Figure 5 It is an optional specific determination flow chart for adjusting the angle and the direction. Figure 5 As shown, the specific process of determining the adjustment angle and the adjustment direction includes:
[0045] S1031, based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated to obtain the current sound pickup area angle and direction;
[0046] S1032: When it is confirmed that the current sound pickup area angle is within a preset invalid angle range, an adjustment angle and an adjustment direction are determined according to the current sound pickup area angle and direction.
[0047] Exemplary, reference Figure 4, the pickup area at the time of the last adjustment is the initial pickup area, and the current pickup area is the first pickup area. According to the clockwise rotation direction and the initial direction (directly in front of the display), the rotation angle θ° and the initial angle 0° are added, and it can be obtained that the direction of the first pickup area is obliquely above the display, and the angle of the first pickup area is θ°. Assuming that the preset effective angle range is (-γ°, +γ°), if γ°<θ°, the current pickup area is not a suitable pickup area. Furthermore, the opposite direction of the current pickup area direction is used as the adjustment direction of the array microphone, and the current pickup area angle is used as the adjustment angle of the array microphone. Exemplarily, refer to Figure 4 , the direction of the first sound pickup area is diagonally above the display, and the opposite direction is diagonally below the display. To rotate from diagonally above to diagonally below, the display needs to rotate counterclockwise, so the adjustment direction of the array microphone is counterclockwise. The angle of the first sound pickup area is θ°, so the adjustment angle of the array microphone is θ°.
[0048] Specifically, refer to Figure 6 , Figure 6 is an optional specific determination flow chart of volume adjustment gain. Figure 6 As shown, the specific process of determining the volume adjustment gain includes:
[0049] S1033, based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated to obtain the current sound pickup area angle and direction;
[0050] S1034: When it is confirmed that the current sound pickup area angle is within a preset effective angle range, the volume adjustment gain of the array microphone is determined according to the sound pickup volume and the volume threshold.
[0051] Exemplary, reference Figure 4 , assuming that the preset effective angle range is (-γ°, +γ°), if γ°≥θ°, the current pickup area is a suitable pickup area. At this time, it can be determined that the pickup gain is small and the pickup gain needs to be adjusted without adjusting the pickup area position.
[0052] S104: adjusting the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction, or adjusting the sound pickup gain of the array microphone according to the volume adjustment gain.
[0053] Specifically, if the adjustment angle and adjustment direction are determined in the previous step, the pickup area of the array microphone is adjusted according to the adjustment angle and adjustment direction. It should be noted that after adjusting the pickup area of the array microphone, the direction and angle of the pickup area have changed, and the recorded current pickup area direction and angle need to be modified accordingly according to the adjustment direction and adjustment angle. Since each adjustment adjusts the pickup area to the initial pickup area, the direction and angle of the initial pickup area can be used as the current pickup area after each pickup area adjustment. For example, refer to Figure 4 It has been determined that the adjustment angle of the first sound pickup area is θ°, and the adjustment direction is counterclockwise, so the first sound pickup area is rotated counterclockwise by θ° to the second sound pickup area, and the second sound pickup area is the sound pickup area of the current array microphone. It can be understood that the second sound pickup area and the initial sound pickup area are the same area, so the current sound pickup area direction and angle are recorded, that is, the current sound pickup area direction and angle are recorded as the front of the display and 0°.
[0054] Specifically, if the volume adjustment gain is determined in the previous step, the pickup gain of the array microphone is adjusted according to the volume adjustment gain. It should be noted that although the current pickup area is still a suitable pickup area, the current pickup area has changed relative to the pickup area at the last adjustment. Therefore, it is necessary to record the current pickup area direction and angle so that the pickup area direction and angle at the next moment can be accurately calculated based on the current pickup area direction and angle. For example, refer to Figure 4 , if the current sound pickup area is still the first sound pickup area, the direction and angle of the first sound pickup area are recorded, the direction of the current sound pickup area is recorded as being diagonally above the display, and the angle of the sound pickup area at the current moment is recorded as θ°.
[0055] on the other hand, Figure 7 1 is a flow chart of another microphone pickup adjustment method provided in the first embodiment of the present application. Figure 7 As shown, the microphone pickup adjustment method includes:
[0056] S201, obtaining a display rotation angle and a rotation direction collected by a three-axis acceleration sensor, and obtaining a microphone pickup volume collected by an array microphone;
[0057] S202, determining whether the sound pickup volume is within a preset invalid volume range, and when it is confirmed that the sound pickup volume is within the preset invalid volume range, executing S203, and when it is confirmed that the sound pickup volume is within the preset valid volume range, executing S213;
[0058] S203, obtaining the angle and direction of the current sound pickup area;
[0059] S204, determining whether the current sound pickup area angle is within a preset invalid angle range, and when it is confirmed that the current sound pickup area angle is within the preset invalid angle range, executing S205, and when it is confirmed that the current sound pickup area angle is within the preset valid angle range, executing S209;
[0060] S205, determining an adjustment angle and an adjustment direction according to the current sound pickup area angle and direction;
[0061] S206, adjusting the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction;
[0062] S207, recording the current sound pickup area angle and direction as a preset initial angle and initial direction;
[0063] S208, determining whether the sound pickup volume is within the invalid volume range, and when it is confirmed that the sound pickup volume is within the preset invalid volume range, executing S209, and when it is confirmed that the sound pickup volume is within the preset valid volume range, ending the operation;
[0064] S209, determining a volume adjustment gain of the array microphone according to the sound pickup volume and the volume threshold;
[0065] S210, adjusting the sound pickup gain of the array microphone according to the volume adjustment gain;
[0066] S211, recording the angle and direction of the current sound pickup area;
[0067] S212, determining whether the sound pickup volume is within the invalid volume range, and when it is confirmed that the sound pickup volume is within the preset invalid volume range, executing S205, and when it is confirmed that the sound pickup volume is within the preset valid volume range, ending the operation;
[0068] S213: Record the rotation angle and rotation direction, and end the operation.
[0069] Specifically, the specific implementation process of S201 can refer to S101, the specific implementation process of S202 and S213 can refer to S102, the specific implementation process of S202 to S205 and S209 can refer to S103, and the specific implementation process of S206 and S210 can refer to S104.
[0070] Exemplarily, after confirming that the current pickup area angle is within the invalid angle range, it is necessary to determine the adjustment angle and adjustment direction to adjust the pickup area to the initial pickup area according to the adjustment angle and adjustment direction. However, there may be a situation at this time. Since the pickup gain of the microphone array is small, regardless of whether the pickup area is in a suitable pickup area, the pickup volume cannot meet the volume threshold required by the user. At this time, the pickup gain needs to be adjusted. Specifically, after adjusting the pickup area to the initial pickup area, determine whether the pickup volume is less than the volume threshold. If the pickup volume is less than the volume threshold, determine the volume gain adjustment of the array microphone according to the difference or ratio between the pickup volume and the volume threshold, adjust the pickup area according to the volume adjustment gain, and record the current pickup area angle and direction again.
[0071] Exemplarily, after confirming that the current pickup area angle is within the valid angle range, it is necessary to determine the volume adjustment gain to adjust the pickup gain according to the volume adjustment gain. However, there may be a situation at this time where the area where the user is located is within the angle threshold range, but it is in the opposite direction of the current pickup area. Even if the current pickup area is in a suitable pickup area, the area where the user is located has changed, so the pickup area needs to be adjusted to the initial pickup area. Specifically, after adjusting the pickup gain, the current pickup area angle and direction are recorded to determine whether the pickup volume is less than the volume threshold. If the pickup volume is less than the volume threshold, the adjustment angle and adjustment direction are determined according to the current pickup area angle and direction to adjust the pickup area of the array microphone according to the adjustment angle and adjustment direction. After adjusting the pickup area to the initial pickup area, the current pickup area direction and angle are recorded as the initial pickup area direction and angle.
[0072] In summary, the microphone pickup volume collected by the array microphone is obtained by obtaining the rotation angle and rotation direction of the display collected by the three-axis acceleration sensor; when the pickup volume is confirmed to be within the preset effective volume range, the rotation angle and rotation direction are recorded; when the pickup volume is confirmed to be within the preset invalid volume range, the adjustment angle and adjustment direction of the array microphone are determined according to the rotation angle and rotation direction, or the volume adjustment gain of the array microphone is determined according to the pickup volume; the pickup area of the array microphone is adjusted according to the adjustment angle and adjustment direction, or the pickup gain of the array microphone is adjusted according to the volume adjustment gain. Through the above technical means, the rotation angle and rotation direction of the pickup area of the array microphone are accurately obtained through the three-axis acceleration sensor, and the pickup area is accurately monitored through the dual threshold monitoring of the volume threshold and the angle threshold. By adjusting the position of the pickup area and the coordinated adjustment of the pickup gain, the pickup adjustment is made more accurate and reliable, and the pickup quality of the array microphone is improved.
[0073] Embodiment 2
[0074] Figure 8This is a schematic diagram of the structure of a microphone pickup adjustment device provided in Example 2 of the present application. Figure 8 The microphone sound pickup adjustment device includes: a data acquisition module 31, a data recording module 32, an adjustment parameter determination module 33 and a sound pickup adjustment module 34.
[0075] The data acquisition module 31 is configured to acquire the display rotation angle and rotation direction acquired by the three-axis acceleration sensor, and acquire the microphone pickup volume acquired by the array microphone;
[0076] The data recording module 32 is configured to record the rotation angle and the rotation direction when confirming that the sound pickup volume is within a preset effective volume range;
[0077] The adjustment parameter determination module 33 is configured to determine the adjustment angle and adjustment direction of the array microphone according to the rotation angle and the rotation direction, or determine the volume adjustment gain of the array microphone according to the picked-up volume when confirming that the picked-up volume is within a preset invalid volume range;
[0078] The sound pickup adjustment module 34 is configured to adjust the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction, or to adjust the sound pickup gain of the array microphone according to the volume adjustment gain.
[0079] Based on the above embodiment, the data recording module includes: a sound pickup area parameter recording unit, which is configured to calculate the rotation angle and the sound pickup area angle recorded during the last adjustment based on the rotation direction and the sound pickup area direction recorded during the last adjustment, and record the current sound pickup area angle and direction.
[0080] On the basis of the above embodiment, the adjustment parameter determination module includes: a first sound pickup area parameter acquisition unit, configured to calculate the rotation angle and the sound pickup area angle recorded during the last adjustment based on the rotation direction and the sound pickup area direction recorded during the last adjustment to obtain the current sound pickup area angle and direction; an adjustment angle and adjustment direction determination unit, configured to determine the adjustment angle and adjustment direction according to the current sound pickup area angle and direction when confirming that the current sound pickup area angle is within a preset invalid angle range.
[0081] On the basis of the above embodiment, the adjustment parameter determination module also includes: a second sound pickup area parameter acquisition unit, which is configured to calculate the rotation angle and the sound pickup area angle recorded during the last adjustment based on the rotation direction and the sound pickup area direction recorded during the last adjustment to obtain the current sound pickup area angle and direction; a volume adjustment gain determination unit, which is configured to determine the volume adjustment gain of the array microphone according to the sound pickup volume and the volume threshold when confirming that the current sound pickup area angle is within a preset effective angle range.
[0082] Based on the above embodiment, the angle adjustment and direction determination unit includes: an angle adjustment and direction determination subunit, which is configured to use the opposite direction of the current sound pickup area direction as the adjustment direction of the array microphone and the current sound pickup area angle as the adjustment angle of the array microphone.
[0083] On the basis of the above embodiments, the microphone pickup adjustment device also includes: a first pickup area parameter initialization module, configured to record the current pickup area angle and direction as a preset initial angle and initial direction; a pickup gain adjustment parameter determination module, configured to determine the volume adjustment gain of the array microphone according to the microphone pickup volume and volume threshold when confirming that the pickup volume is within the invalid volume range; and a pickup gain adjustment module, configured to adjust the pickup gain of the array microphone according to the volume adjustment gain.
[0084] On the basis of the above embodiment, the microphone pickup adjustment device also includes: a pickup area parameter recording module, configured to record the current pickup area angle and direction; a pickup area adjustment parameter determination module, configured to determine the adjustment angle and adjustment direction according to the current pickup area angle and direction when confirming that the pickup volume is within the invalid volume range; a pickup area adjustment module, configured to adjust the pickup area of the array microphone according to the adjustment angle and adjustment direction; a pickup area parameter second initialization module, configured to record the current pickup area angle and direction as a preset initial angle and initial direction; and adjust the pickup area of the array microphone according to the adjustment angle and adjustment direction.
[0085] In the above, the microphone pickup volume collected by the array microphone is obtained by obtaining the rotation angle and rotation direction of the display collected by the three-axis acceleration sensor; when it is confirmed that the pickup volume is within the preset effective volume range, the rotation angle and rotation direction are recorded; when it is confirmed that the pickup volume is within the preset invalid volume range, the adjustment angle and adjustment direction of the array microphone are determined according to the rotation angle and rotation direction, or the volume adjustment gain of the array microphone is determined according to the pickup volume; the pickup area of the array microphone is adjusted according to the adjustment angle and adjustment direction, or the pickup gain of the array microphone is adjusted according to the volume adjustment gain. Through the above technical means, the rotation angle and rotation direction of the pickup area of the array microphone are accurately obtained through the three-axis acceleration sensor, and the pickup area is accurately monitored through the dual threshold monitoring of the volume threshold and the angle threshold. By adjusting the position of the pickup area and the coordinated adjustment of the pickup gain, the pickup adjustment is made more accurate and reliable, and the pickup quality of the array microphone is improved.
[0086] The microphone pickup adjustment device provided in the embodiment of the present application is included in a microphone pickup adjustment device and can be used to execute the microphone pickup adjustment method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0087] Embodiment 3
[0088] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in Example 3 of the present application. Fig. 9 As shown, the electronic device includes a processor 40, a memory 41, an input device 42, an output device 43 and a display screen 44; the number of processors 40 in the electronic device can be one or more. Fig. 9 A processor 40 is taken as an example; the processor 40, the memory 41, the input device 42, the output device 43 and the display screen 44 in the electronic device can be connected by a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0089] The memory 41 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the microphone pickup adjustment method in the embodiment of the present application (for example, the data acquisition module 31, the data recording module 32, the adjustment parameter determination module 33 and the pickup adjustment module 34 in the microphone pickup adjustment device). The processor 40 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 41, that is, realizing the above-mentioned microphone pickup adjustment method.
[0090] The memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 41 may further include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] The input device 42 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device. The output device 43 may include an audio output device such as a speaker. The display screen 44 is a display screen with a touch function, which can be a capacitive screen, an electromagnetic screen or an infrared screen. Optionally, when the display screen 44 is an infrared screen, it also includes an infrared touch frame, which is arranged around the display screen 44, and it can also be used to receive infrared signals and send the infrared signals to the processor 40 or other devices.
[0092] The electronic device mentioned above includes a microphone pickup adjustment method, which can be used to execute any microphone pickup adjustment method and has corresponding functions and beneficial effects.
[0093] Embodiment 4
[0094] The embodiment of the present application further provides a storage medium containing computer executable instructions, and when the computer executable instructions are executed by a computer processor, they are used to perform a microphone pickup adjustment method, the method comprising:
[0095] Obtain the display rotation angle and rotation direction collected by the three-axis acceleration sensor, and obtain the microphone pickup volume collected by the array microphone;
[0096] When confirming that the pickup volume is within the preset effective volume range, record the rotation angle and rotation direction;
[0097] When confirming that the sound pickup volume is within a preset invalid volume range, determining an adjustment angle and an adjustment direction of the array microphone according to the rotation angle and the rotation direction, or determining a volume adjustment gain of the array microphone according to the sound pickup volume;
[0098] The sound pickup area of the array microphone is adjusted according to the adjustment angle and adjustment direction, or the sound pickup gain of the array microphone is adjusted according to the volume adjustment gain.
[0099] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present application are not limited to the method operations described above, and can also execute related operations in the microphone pickup adjustment method provided in any embodiment of the present invention.
[0100] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0101] It is worth noting that in the above-mentioned embodiment of the microphone pickup adjustment device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0102] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for adjusting microphone pickup, characterized in that: The method is applied to an all-in-one machine, the all-in-one machine includes a display, an array microphone and a three-axis acceleration sensor, the array microphone and the three-axis acceleration sensor are mounted on the display, and the method includes: Obtain the display rotation angle and rotation direction collected by the three-axis acceleration sensor, and obtain the microphone pickup volume collected by the array microphone; When confirming that the sound pickup volume is within a preset effective volume range, recording the rotation angle and rotation direction; When it is confirmed that the sound pickup volume is within a preset invalid volume range, the adjustment angle and adjustment direction of the array microphone are determined according to the rotation angle and the rotation direction, or the volume adjustment gain of the array microphone is determined according to the sound pickup volume; which includes: based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated, the current sound pickup area angle and direction are recorded, and when it is confirmed that the current sound pickup area angle is within a preset invalid angle range, the adjustment angle and the adjustment direction are determined according to the current sound pickup area angle and direction; The sound pickup area of the array microphone is adjusted according to the adjustment angle and the adjustment direction, or the sound pickup gain of the array microphone is adjusted according to the volume adjustment gain.
2. The method according to claim 1, characterized in that The recording of the rotation angle and the rotation direction comprises: Based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated, and the current sound pickup area angle and direction are recorded.
3. The method according to claim 1, characterized in that The step of determining the volume adjustment gain of the array microphone according to the sound pickup volume comprises: Based on the rotation direction and the sound pickup area direction recorded during the last adjustment, the rotation angle and the sound pickup area angle recorded during the last adjustment are calculated to obtain the current sound pickup area angle and direction; When it is confirmed that the current sound pickup area angle is within a preset effective angle range, the volume adjustment gain of the array microphone is determined according to the sound pickup volume and the effective volume range.
4. The method according to claim 1, characterized in that: The step of determining the adjustment angle and the adjustment direction according to the current sound pickup area angle and direction includes: The opposite direction of the current sound pickup area direction is used as the adjustment direction of the array microphone, and the angle of the current sound pickup area is used as the adjustment angle of the array microphone.
5. The method according to claim 1, characterized in that: After adjusting the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction, the method further includes: Recording the current sound pickup area angle and direction as a preset initial angle and initial direction; When confirming that the sound pickup volume is within the invalid volume range, determining the volume adjustment gain of the array microphone according to the sound pickup volume of the microphone and the valid volume range; The sound pickup gain of the array microphone is adjusted according to the volume adjustment gain.
6. The method according to claim 2, characterized in that After adjusting the sound pickup gain of the array microphone according to the volume adjustment gain, the method further includes: Recording the angle and direction of the current sound pickup area; When confirming that the sound pickup volume is within the invalid volume range, determining the adjustment angle and the adjustment direction according to the current sound pickup area angle and direction; Adjusting the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction; The current sound pickup area angle and direction are recorded as a preset initial angle and initial direction.
7. A microphone pickup adjustment device, characterized in that: The device is applied to an all-in-one machine, the all-in-one machine includes a display, an array microphone and a three-axis acceleration sensor, the array microphone and the three-axis acceleration sensor are installed on the display, and the device includes: A data acquisition module is configured to acquire a display rotation angle and a rotation direction acquired by a three-axis acceleration sensor, and acquire a microphone pickup volume acquired by an array microphone; A data recording module, configured to record the rotation angle and the rotation direction when confirming that the sound pickup volume is within a preset effective volume range; An adjustment parameter determination module is configured to determine the adjustment angle and adjustment direction of the array microphone according to the rotation angle and the rotation direction when confirming that the sound pickup volume is within a preset invalid volume range, or determine the volume adjustment gain of the array microphone according to the sound pickup volume; wherein the adjustment parameter determination module includes: a first sound pickup area parameter acquisition unit, configured to calculate the rotation angle and the sound pickup area angle recorded during the last adjustment based on the rotation direction and the sound pickup area direction recorded during the last adjustment to obtain the current sound pickup area angle and direction; an adjustment angle and adjustment direction determination unit, configured to determine the adjustment angle and adjustment direction according to the current sound pickup area angle and direction when confirming that the current sound pickup area angle is within a preset invalid angle range; The sound pickup adjustment module is configured to adjust the sound pickup area of the array microphone according to the adjustment angle and the adjustment direction, or to adjust the sound pickup gain of the array microphone according to the volume adjustment gain.
8. An electronic device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the microphone pickup adjustment method as described in any one of claims 1-6.
9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the microphone pickup adjustment method as described in any one of claims 1-6 when executed by a computer processor.
Citation Information
Patent Citations
Sound pickup adjustment method, control terminal and computer-readable storage medium
CN109257682A