Audio component detection method and apparatus, test system, device, storage medium
By adjusting the relative position of the reflector and the audio component within the soundproof space, the audio component output and audio acquisition are controlled, and the audio data is analyzed to determine the test value. This solves the problem of audio component detection error and improves detection accuracy and user experience.
Patent Information
- Application Number
- CN202210406525.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-04-18
AI Technical Summary
There are detection errors in the existing audio component testing process, which leads to qualified products being selected incorrectly, affecting the user experience.
Within a soundproof space, the relative position between the reflective material and the audio component is adjusted to control the output of the audio component and the acquisition of audio from different positions. By analyzing these audio values, test values are determined, and the test results of the audio component are then judged.
It improves the accuracy of audio component detection, ensures the selection of qualified products that meet quality requirements, and enhances the user experience in different application scenarios.
Smart Images

Figure CN116962950B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of testing technology, and in particular to a method and apparatus for testing audio components, a testing system, equipment, and a storage medium. Background Technology
[0002] Currently, the selection process for audio components requires testing to determine their suitability, thus selecting only those products that meet quality and performance requirements. However, due to design flaws in the testing process, errors can occur, leading to the incorrect selection of qualified products. This, in turn, degrades the user experience once these incorrectly selected products are shipped. Therefore, a testing device capable of improving accuracy and precisely selecting qualified products is needed. Summary of the Invention
[0003] This disclosure presents an audio component detection method and apparatus, a testing system, a device, and a storage medium.
[0004] The first aspect of this disclosure provides an audio component detection method, characterized in that the method includes: adjusting the relative position between a reflective object and the audio component within a soundproof space; controlling the audio component to output a first audio signal and to acquire a second audio signal when the reflective object and the audio component are in different relative positions; determining a test value for the audio component based on the second audio signal acquired when the relative positions of the reflective object and the audio component are different; and determining a detection result for the audio component based on the test value.
[0005] Optionally, when the reflector and the audio component are in different relative positions, controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal includes at least one of the following: controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal during the change of the relative position between the reflector and the audio component; controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the relative position between the reflector and the audio component remains at a first position; controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the relative position between the reflector and the audio component remains at a second position.
[0006] Optionally, when the reflector and the audio component are in different relative positions, controlling the audio component to output a first audio and controlling the audio component to acquire a second audio includes at least one of the following: controlling the audio component to output a first audio and controlling the audio component to acquire a second audio during the process of the relative position between the reflector and the audio component moving from the first position to the second position; controlling the audio component to output a first audio and controlling the audio component to acquire a second audio during the process of the relative position between the reflector and the audio component moving from the second position to the first position.
[0007] Optionally, the method further includes: determining a moving speed based on the distance between the first position and the second position and a preset duration for the relative position between the reflector and the audio component to change between the first position and the second position; and controlling the movement of the reflector based on the moving speed.
[0008] Optionally, determining the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different includes: determining a target algorithm for calculating the test value based on the audio type of the first audio; and determining the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different and the target algorithm.
[0009] Optionally, determining the target algorithm for calculating the test value based on the audio type of the first audio includes: when the first audio is a white noise signal, determining the target algorithm for calculating the test value as a first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio when the relative positions of the audio component and the reflector change between the first position and the second position.
[0010] Optionally, determining the target algorithm for calculating the test value based on the audio type of the first audio includes: when the first audio is a bandpass periodic signal, determining the target algorithm for calculating the test value as a second algorithm, wherein the second algorithm is: an algorithm for determining the test value based on the volume difference of the second audio at the first position and the second position between the audio component and the reflector, the volume change amplitude and trend of the second audio when the audio component and the reflector change between the first position and the second position, and the phase change value of the second audio when the relative position between the volume component and the reflector changes between the first position, the second position, and between the first position and the second position.
[0011] Optionally, the method further includes: averaging multiple second audio samples collected when the relative positions of the reflector and the audio component are different to obtain an average value; and determining a test value for the audio component based on the average value and the target algorithm.
[0012] Optionally, the step of averaging multiple second audio samples collected at different relative positions between the reflector and the audio component to obtain an average value includes:
[0013] An average value is obtained by averaging the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position, and the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position.
[0014] Optionally, the method includes: while the audio component outputs a first audio, a third audio is output within the soundproof space via an audio peripheral, wherein the third audio is of a different audio type than the first audio.
[0015] A second aspect of this disclosure provides an audio component detection device, characterized in that the device comprises: an adjustment module for adjusting the relative position between a reflective object and the audio component within a soundproof space; a first control module for controlling the audio component to output a first audio signal and to acquire a second audio signal when the reflective object and the audio component are in different relative positions; a first determination module for determining a test value of the audio component based on the second audio signal acquired when the relative positions of the reflective object and the audio component are different; and a second determination module for determining a detection result of the audio component based on the test value.
[0016] Optionally, the first control module is configured to at least one of the following: during the change of the relative position between the reflector and the audio component, control the audio component to output a first audio and control the audio component to acquire a second audio; when the relative position between the reflector and the audio component remains at the first position, control the audio component to output the first audio and control the audio component to acquire the second audio; when the relative position between the reflector and the audio component remains at the second position, control the audio component to output the first audio and control the audio component to acquire the second audio.
[0017] Optionally, the first control module is configured to at least one of the following: during the process of the relative position between the reflector and the audio component moving from the first position to the second position, controlling the audio component to output a first audio and controlling the audio component to acquire a second audio; during the process of the relative position between the reflector and the audio component moving from the second position to the first position, controlling the audio component to output a first audio and controlling the audio component to acquire a second audio.
[0018] Optionally, the device further includes: a third determining module, configured to determine a moving speed based on the distance between the first position and the second position and a preset duration for the relative position between the reflector and the audio component to change between the first position and the second position; and a second controlling module, configured to control the movement of the reflector based on the moving speed.
[0019] Optionally, the first determining module is configured to: determine a target algorithm for calculating the test value based on the audio type of the first audio; and determine the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
[0020] Optionally, the first determining module is configured to: when the first audio is a white noise signal, determine the target algorithm for calculating the test value as a first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio at the first position and the second position between the relative positions of the audio component and the reflector, the volume change amplitude and trend of the second audio when the audio component and the reflector change between the first position and the second position.
[0021] Optionally, the first determining module is configured to: when the first audio signal is a bandpass periodic signal, determine the target algorithm for calculating the test value as a second algorithm, wherein the second algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal at the first position and the second position between the audio component and the reflector, the volume change amplitude and trend of the second audio signal when the audio component and the reflector change between the first position and the second position, and the phase change value of the second audio signal when the volume component and the reflector change between the first position, the second position, and the first position and the second position.
[0022] Optionally, the device further includes: an averaging module, used to average multiple second audio samples collected when the relative positions of the reflector and the audio component are different to obtain an average value; and a fourth determining module, used to determine the test value of the audio component based on the average value and the target algorithm.
[0023] Optionally, the averaging module is configured to: average the second audio collected during the process of moving from the second position to the first position relative to the reflector and the audio component, and the second audio collected during the process of moving from the second position to the first position relative to the reflector and the audio component, to obtain an average value.
[0024] Optionally, the device includes: an output module, configured to output a third audio signal within the soundproof space via an audio peripheral while the audio component outputs a first audio signal, wherein the third audio signal is of a different audio type than the first audio signal.
[0025] A third aspect of this disclosure provides a testing system, the system comprising: a reflector located within a soundproof space; a drive module connected to the reflector for driving the reflector to move; and a device connected to both the drive module and an audio component for controlling the drive module to adjust the relative position between the reflector and the audio component; controlling the audio component to output a first audio signal and acquire a second audio signal when the reflector and the audio component are in different relative positions; determining a test value for the audio component based on the second audio signal acquired when the relative positions of the reflector and the audio component are different; and determining a detection result for the audio component based on the test value.
[0026] A fourth aspect of this disclosure provides an apparatus comprising: a memory for storing processor-executable instructions; and a processor connected to the memory; wherein the processor is configured to perform steps in the audio component detection method provided in the first aspect above.
[0027] A fifth aspect of this disclosure provides a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps in the audio component detection method provided in the first aspect above.
[0028] An embodiment of this disclosure provides an audio component detection method, comprising: controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions; the reflector and the audio component are in different relative positions, and in the application scenario of the audio component, the reflector and the audio component will have different distances, resulting in different user experiences. Therefore, by acquiring the second audio signal, a test value that can be determined based on the application scenario requirements can be obtained, thereby screening out qualified products that meet the quality requirements through the test value, thus improving the user experience in the application scenario.
[0029] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0030] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0031] Figure 1 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0032] Figure 2 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0033] Figure 3 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0034] Figure 4 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0035] Figure 5 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0036] Figure 6 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0037] Figure 7 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0038] Figure 8 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0039] Figure 9 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0040] Figure 10 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0041] Figure 11 This is a schematic cross-sectional view of a workstation device for an audio component detection method as illustrated in an exemplary embodiment of this disclosure;
[0042] Figure 12 This is a schematic flowchart illustrating an exemplary embodiment of the audio component detection method disclosed herein;
[0043] Figure 13 This is a schematic diagram of the second audio data of the audio component detection method illustrated in an exemplary embodiment of this disclosure;
[0044] Figure 14 This is a schematic diagram of the structure of an audio component detection device shown in an exemplary embodiment of the present disclosure;
[0045] Figure 15 This is a schematic diagram of the structure of an audio component detection device shown in an exemplary embodiment of the present disclosure;
[0046] Figure 16 This is a schematic diagram of the structure of an audio component detection device shown in an exemplary embodiment of the present disclosure;
[0047] Figure 17 This is a schematic diagram of the structure of an audio component detection device shown in an exemplary embodiment of this disclosure. Detailed Implementation
[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended applications.
[0049] In this embodiment of the disclosure, combined with Figure 1 As shown, an audio component detection method is provided, the method comprising:
[0050] Step S101: Within the soundproof space, adjust the relative position between the reflector and the audio component;
[0051] Step S102: When the reflector and the audio component are in different relative positions, control the audio component to output the first audio and control the audio component to collect the second audio.
[0052] Step S103: Determine the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different;
[0053] Step S104: Determine the detection result of the audio component based on the test value.
[0054] In this embodiment of the disclosure, the soundproof space is: an enclosed space used to provide a soundproof environment.
[0055] In one embodiment, the soundproof space can be provided by a closed structure with good sealing performance.
[0056] For example, the soundproof space can be provided by a sealed box, sealed chamber, or sealed tank of suitable volume. In one embodiment, sound-absorbing material can be applied to the exterior or interior of the soundproof space.
[0057] In this embodiment of the disclosure, the audio component is an audio component capable of emitting sound wave signals.
[0058] In one embodiment, the audio component may include, but is not limited to:
[0059] An audio component that emits sound wave signals;
[0060] An audio component that emits ultrasonic signals. In one embodiment, the audio component is a device capable of emitting wave signals.
[0061] For example, the wave signal transmitter includes, but is not limited to, an acoustic wave signal transmitter capable of emitting ultrasonic waves, such as an ultrasonic distance sensor;
[0062] microphone;
[0063] speaker.
[0064] As another example, the device with the sound wave transmitter includes, but is not limited to, devices such as smartphones, smart tablets, smartwatches, in-vehicle devices, and ground robots. In one embodiment, the device with the sound wave transmitter has a touch screen and is equipped with an ultrasonic distance sensor to provide anti-accidental touch functionality for the touch screen.
[0065] Specifically, when a moving object approaches the device display screen of the ultrasonic distance sensor, an anti-accidental touch function is provided while the device is performing its primary task.
[0066] In one embodiment, the smartphone is equipped with an ultrasonic distance sensor that, when the smartphone is performing a call, disables touch input on the display screen when it detects that the user's head is close to the display screen to avoid interrupting the call.
[0067] In one embodiment, regarding step S101, where the reflector and the audio component are within the soundproof space, adjusting the relative position between the reflector and the audio component can be one of the following:
[0068] The position of the audio component is fixed, and the position of the reflector relative to the audio component is adjusted by moving the reflector;
[0069] The position of the reflector is fixed, and the position of the audio component relative to the reflector is adjusted by moving the audio component;
[0070] The relative positions of the reflector and the audio component are adjusted by moving both of them.
[0071] In one embodiment, the device for fixing the position of the audio component may be an audio component bracket.
[0072] In one embodiment, the device for fixing the position of the reflector may be a reflector support.
[0073] In one embodiment, the means for moving the reflector and / or the audio component may be a driving device.
[0074] In one embodiment, the reflector may be an object that reflects sound waves.
[0075] In one embodiment, the reflector may be an anthropomorphic reflector or an animal-shaped reflector.
[0076] In one embodiment, the reflective object includes, but is not limited to:
[0077] Plate-shaped reflective objects, such as baffles;
[0078] Block-shaped reflective objects, such as blocks;
[0079] In one embodiment, by selecting a suitable material for the reflector, the sound waves reflected by the reflector are more suitable for the desired scenario.
[0080] In one embodiment, the anthropomorphic reflective material can simulate the reflective material of a user's skin when it approaches the audio component to obtain detection values that better meet the needs of the scenario.
[0081] In one embodiment, a metallic reflector, which can simulate the reflector of a moving object with a metal casing, is brought near the audio component.
[0082] For example, the reflective material can be the same as the shell material of the vehicle-mounted device. By using a reflective material that simulates the shell material of a vehicle, the impact protection requirements of the vehicle-mounted device and the audio component can be met.
[0083] In one embodiment, regarding step S102, the first audio signal contains a wave signal, which is a continuous wave signal.
[0084] In one embodiment, the wave signal includes, but is not limited to:
[0085] Sound wave signal;
[0086] Ultrasonic signal.
[0087] In one embodiment, the ultrasonic signal includes, but is not limited to:
[0088] White noise signal in the ultrasonic frequency band;
[0089] Bandpass periodic signals in the ultrasonic frequency band.
[0090] The magnitude of the reflected wave varies when the reflector and the audio component are in different relative positions.
[0091] In one embodiment, the reflector and the audio component are in different relative positions at different times, so that in the second audio, the magnitude of the reflected wave corresponding to the included reflector is different at different times.
[0092] In one embodiment, regarding step S103, the sound wave signal in the second audio is analyzed and processed based on the second audio collected when the relative positions of the reflector and the audio component are different, thereby determining the second audio determination test value.
[0093] In one embodiment, the sound wave values of the second audio at different times are calculated to obtain the test values of the audio component.
[0094] In one embodiment, different calculation methods are selected based on the categories of different wave signals in the second audio to calculate the test value of the audio component.
[0095] In one embodiment, regarding step S104, the detection result indicates whether the audio component is a qualified product that meets the quality requirements.
[0096] Step S104 includes: determining whether the test value is within the test threshold range; if the test value is within the test threshold range, then determining that the audio component is a qualified product that meets the quality requirements.
[0097] or,
[0098] If the test value is outside the test threshold range, then the audio component is determined to be a qualified product that does not meet the quality requirements.
[0099] In one embodiment, the test threshold range is a threshold used to measure whether the audio component is a qualified product that meets quality requirements.
[0100] In one embodiment, the test threshold range is determined based on the test experiment and quality requirements.
[0101] In one embodiment, the test threshold range may be, but is not limited to, a range of 20dB to 50dB, a range of 20dB to 30dB, and a range of 30dB to 40dB.
[0102] In one embodiment, the execution of the above steps can be controlled via a control terminal located on a smart device such as a microcontroller, computer, or smartphone. The control terminal is located outside the soundproof space.
[0103] In this embodiment, the reflector and the audio component are in different relative positions. In different application scenarios of the audio component, the reflector and the audio component will have different distances, resulting in different user experiences. Therefore, by collecting the second audio, a test value that can be determined based on the application scenario requirements can be obtained. In this way, qualified products that meet the quality requirements can be screened out through the test value. This improves the accuracy of screening qualified products that meet the quality requirements and enhances the user experience in the application scenario.
[0104] In this embodiment of the disclosure, combined with Figure 2 As shown, step S102, when the reflector and the audio component are in different relative positions, controls the audio component to output a first audio and controls the audio component to acquire a second audio, includes at least one of the following:
[0105] Step S1021: During the relative position change between the reflector and the audio component, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0106] Step S1022: When the relative position between the emitter and the audio component is at the first position, control the audio component to output the first audio and control the audio component to acquire the second audio.
[0107] Step S1023: When the relative position between the emitter and the audio component is at the second position, control the audio component to output the first audio and control the audio component to acquire the second audio.
[0108] In one embodiment, step S1021 includes: during the process from the start to the end of the relative position change between the reflector and the audio component, controlling the audio component to output a first audio and controlling the audio component to acquire a second audio.
[0109] In one embodiment, regarding step S1022, the first position may be: the position at which the relative position between the reflector and the audio component changes before the change begins.
[0110] Correspondingly, in step S1023, the second position is the position where the relative position change between the reflector and the audio component ends.
[0111] In one embodiment, regarding step S1022, the first position can also be: the position where the relative position changes after it begins to change during the process of the relative position change between the reflector and the audio component.
[0112] Correspondingly, in step S1023, the second position is: the position where the relative position changes between the reflector and the audio component before the change ends.
[0113] In one embodiment, the relative position between the reflector and the audio component can be maintained at the starting position of change, during the change of the relative position between the reflector and the audio component, and at the ending position of the change of the relative position between the reflector and the audio component, while controlling the audio component to output a first audio signal and to acquire a second audio signal.
[0114] For example, if the first position is the position before the relative position change begins and the second position is the position after the relative position change ends, then during the process of the relative position between the reflector and the audio component remaining at the first position, the process of the relative position between the reflector and the audio component changing from the first position to the second position, and the process of the relative position between the reflector and the audio component remaining at the second position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0115] For another example, if the second position is the position before the relative position change begins and the first position is the position after the relative position change ends, then during the process of the relative position between the reflector and the audio component remaining at the second position, the process of the relative position between the reflector and the audio component changing from the second position to the first position, and the process of the relative position between the reflector and the audio component remaining at the first position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0116] In one embodiment, the first position may simulate the position where the reflector is close to the audio component.
[0117] In one embodiment, the second position may simulate a position where the reflector is far from the audio component.
[0118] In one embodiment, because the user is too close to the audio component, affecting the ultrasonic distance sensor in the audio component's detection of the user's head, it is necessary to simulate this scenario and collect a second audio.
[0119] In one embodiment, the ultrasonic signal is attenuated due to the user being too far away from the audio component, making it impossible to detect the user. Therefore, it is also necessary to radially simulate this scenario and acquire a second audio signal.
[0120] In one embodiment, the simulation process is at least one of the following:
[0121] By simulating the second audio by having a reflective object stay at the first position, it is possible to simulate application scenarios where a user approaches or even touches the audio component and stays there.
[0122] The second audio, which is simulated by the reflector remaining at the second position, can correspond to the application scenario of the user staying away from the audio component.
[0123] By moving the reflector between the first and second positions, it is possible to simulate application scenarios where the user moves away from or closer to the audio component and stays there.
[0124] In one embodiment, the relative position change between the reflector and the audio component corresponds to a change duration.
[0125] In one embodiment, the duration of the change can be set to any suitable value such as 2s, 3s, 4s, or 5s.
[0126] In one embodiment, the pause before the change begins also corresponds to a first pause duration; the pause after the change ends also corresponds to a second pause duration.
[0127] In one embodiment, the first dwell time can be set to any suitable value such as 1s, 2s, or 3s.
[0128] In one embodiment, the second dwell time can be set to any suitable value such as 1s, 2s, or 3s.
[0129] In one embodiment, the first dwell time, the second dwell time, and the changing duration correspond to the audio component outputting a first audio and controlling the audio component to acquire a second audio, and in the second audio converted into image data, the sound waves corresponding to different durations are marked.
[0130] In this embodiment of the disclosure, the dwell time is set at different positions, which can correspond to the simulation of, for example, the dwell time and movement process of a user at the far end or near end of the audio component, or the dwell time of other reflective objects at the far end or near end of the audio component. This can obtain a second audio that is more in line with the needs of the scenario and improve the accuracy of the test value determined by the second audio.
[0131] In this embodiment of the disclosure, combined with Figure 3 As shown, step S102, which involves controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions, includes at least one of the following:
[0132] Step S1024: During the process of the relative position between the reflector and the audio component moving from the first position to the second position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0133] Step S1025: During the process of the relative position between the reflector and the audio component moving from the second position to the first position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0134] In one embodiment, regarding step S1024, the process of moving the relative position between the reflector and the audio component from the first position to the second position can be a process of moving the relative distance between the reflector and the audio component from near to far.
[0135] Correspondingly, regarding step S1025, the process of moving the relative position between the reflector and the audio component from the second position to the first position can be a process of moving the relative distance between the reflector and the audio component from far to near.
[0136] In another embodiment, regarding step S1024, the process of moving the relative position between the reflector and the audio component from the first position to the second position can be a process of moving the relative distance between the reflector and the audio component from far to near.
[0137] Correspondingly, regarding step S1025, the process of moving the relative position between the reflector and the audio component from the second position to the first position is a process of moving the relative distance between the reflector and the audio component from near to far.
[0138] In one embodiment, the reflector may be moved from a first position to a second position relative to the audio component.
[0139] In another embodiment, the audio component may move from a first position to a second position relative to the reflector.
[0140] In one embodiment, the reflector may be moved from a second position to a first position relative to the audio component.
[0141] In another embodiment, the audio component may move from a second position to a first position relative to the reflector.
[0142] In one embodiment, if the reflector is a baffle or a spherical reflector, and the baffle or the spherical reflector is connected to a drive motor, the drive motor can control the movement of the baffle or the spherical reflector, and fix the audio component through a bracket. When the baffle or the spherical reflector moves or stays relative to the audio component, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0143] In this embodiment of the disclosure, by acquiring the second audio during the movement from the first position to the second position, or acquiring the second audio during the movement from the second position to the first position, i.e., acquiring the return journey of the process in two opposite directions of movement, multiple second audio data are acquired, which facilitates subsequent average and comprehensive processing of the multiple second audio data.
[0144] In this embodiment of the disclosure, combined with Figure 4 As shown, the method further includes:
[0145] Step S105: Determine the moving speed based on the distance between the first position and the second position and the preset duration of the change in the relative position between the reflector and the audio component between the first position and the second position;
[0146] Step S106: Control the movement of the reflector according to the moving speed.
[0147] In one embodiment, regarding step 105, the movement speed is determined by taking an example within the preset time period. The movement speed can be set at the control terminal.
[0148] In one embodiment, the moving speed is determined based on the actual distance and a preset duration.
[0149] In one embodiment, the moving speed can be any suitable speed such as 0.25m / s or 0.5m / s.
[0150] In one embodiment, regarding step S106, controlling the movement of the reflector based on the moving speed includes:
[0151] The movement of the reflector is controlled by a drive motor at the aforementioned moving speed.
[0152] In one embodiment, by controlling the movement of the reflector at a determined speed, the exact position of the reflector can be determined. As long as the initial movement time is known, the correspondence between the movement position and the movement time of the reflector can be determined based on the movement speed, which facilitates the determination of the movement position and movement time of the reflector in the acquired second audio.
[0153] In this embodiment of the disclosure, combined with Figure 5 As shown, determining the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different includes:
[0154] Step S1031: Determine the target algorithm for calculating the test value based on the audio type of the first audio.
[0155] Step S1032: Determine the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
[0156] In one embodiment, regarding step S1031, the type of audio information that can be obtained from the second audio will differ depending on the audio type of the first audio.
[0157] In one embodiment, step S1031 includes: determining the content information type of the second audio based on the audio type of the first audio;
[0158] Based on the content information type of the second audio, determine the target algorithm for calculating the test value.
[0159] In one embodiment, determining the target algorithm for calculating the test value based on the content information type of the second audio includes: setting different weights for different types of content information, and determining a target algorithm for calculating the test value composed of different weights.
[0160] In one embodiment, the audio type of the first audio is, but is not limited to, one of the following:
[0161] White noise signal in the ultrasonic frequency band;
[0162] Bandpass periodic signals in the ultrasonic frequency band;
[0163] Ultrasonic longitudinal wave signal;
[0164] Ultrasonic constant wave signal;
[0165] Ultrasonic surface wave signal.
[0166] In one embodiment, the type of content information includes, but is not limited to, one of the following:
[0167] Volume difference;
[0168] Range of change;
[0169] Trends;
[0170] Phase change.
[0171] In one embodiment, if the audio type is white noise signal, the target algorithm obtains the weight distribution of the three categories of volume difference, change amplitude, and change trend only for the volume difference, change amplitude, and change trend of the white noise signal at different relative positions.
[0172] In another embodiment, if the audio type is a bandpass periodic signal, since it has phase changes, the target algorithm for the weight distribution of the four categories of volume difference, change amplitude, change trend and phase change is obtained by combining the volume difference, change amplitude, change trend and phase change of the bandpass periodic signal at different relative positions.
[0173] In one embodiment, the sum of the weights of the various parts in the target algorithm is 1.
[0174] In one embodiment, the weight distribution may be weight values that make the weights of each part more even.
[0175] In one embodiment, the weight distribution may be one of the following: 0.5, 0.5; 0.25, 0.25, 0.25, 0.25;
[0178] 0.3, 0.3, 0.4.
[0179] In one embodiment, step S1032 includes: determining a test value for the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm having a weighted distribution.
[0180] In this embodiment of the disclosure, a target algorithm with different weight distributions is determined based on the audio type of the first audio. The target algorithm that matches the audio type can be obtained based on the actual types of audio information content that can be provided and / or used by the audio type. In this way, the corresponding test value can be calculated reasonably.
[0181] In this embodiment of the disclosure, combined with Figure 6 As shown, step S1031, determining the target algorithm for calculating the test value based on the audio type of the first audio, includes:
[0182] Step S10311: When the first audio signal is white noise, the target algorithm for calculating the test value is determined to be the first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio signal between the audio component and the reflector when the relative positions of the audio component and the reflector change between the first position and the second position.
[0183] In one embodiment, regarding step S10311, when the first audio signal is white noise, different and / or the same weights are assigned to the volume difference of the second audio signal when the relative positions of the audio component and the reflector are at the first position and the second position, and the volume change amplitude and trend of the second audio signal when the relative positions of the audio component and the reflector change between the first position and the second position, to obtain a first algorithm.
[0184] In one embodiment, the volume difference has a first weight, the volume change amplitude has a second weight, and the change trend has a third weight; the sum of the first weight, the second weight, and the third weight is 1.
[0185] In one embodiment, the first weight can be 0.33, the second weight can be 0.33, and the third weight can be 0.34.
[0186] In one embodiment, by setting different weights corresponding to the information types provided by the white noise signal, a target algorithm more suitable for the white noise signal is obtained, thereby making the test value determined by the white noise signal calculation more appropriate.
[0187] In this embodiment of the disclosure, combined with Figure 7As shown, step S1031, determining the target algorithm for calculating the test value based on the audio type of the first audio, includes:
[0188] Step S10312: When the first audio signal is a bandpass periodic signal, the target algorithm for calculating the test value is determined to be the second algorithm. The second algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal when the relative positions of the audio component and the reflector are at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative positions of the audio component and the reflector change between the first position and the second position, and the phase change value of the second audio signal when the relative positions of the audio component and the reflector change between the first position, the second position, and between the first position and the second position.
[0189] In one embodiment, regarding step S10312, when the first audio signal is a bandpass periodic signal, a second algorithm is obtained by assigning different and / or the same weights based on the volume difference of the second audio signal when the relative positions of the audio component and the reflector are at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative positions of the audio component and the reflector change between the first position and the second position, and the phase change value of the second audio signal when the relative positions of the audio component and the reflector are at the first position, the second position, and when the relative positions of the audio component and the reflector change between the first position and the second position.
[0190] In one embodiment, the volume difference has a fourth weight, the volume change amplitude has a fifth weight, the change trend has a sixth weight, and the phase change value has a seventh weight; the sum of the fourth weight, the fifth weight, the sixth weight, and the seventh weight is 1.
[0191] In one embodiment, the fourth weight can be 0.25, the fifth weight can be 0.25, the sixth weight can be 0.25, and the seventh weight can be 0.25.
[0192] In one embodiment, by setting different weights corresponding to the information types provided by the bandpass periodic signal, a target algorithm more suitable for the bandpass periodic signal is obtained, thereby making the test values determined by the bandpass periodic signal calculation more appropriate.
[0193] In this embodiment of the disclosure, combined with Figure 8 As shown, the method further includes:
[0194] Step S107: Average the average value of multiple second audio samples collected when the relative positions of the reflector and the audio component are different;
[0195] Step S108: Determine the test value of the audio component based on the average value and the target algorithm.
[0196] In this embodiment of the disclosure, the plurality of second audio signals collected when the relative positions of the reflector and the audio component are different can be one of the following:
[0197] The reflector, relative to the audio component, repeatedly captures multiple second audio signals during the start, movement, and end of its movement from the first position to the second position;
[0198] The reflector, relative to the audio component, repeatedly captures multiple second audio signals during the start, movement, and end of the movement from the second position to the first position;
[0199] The second audio is captured at the beginning, the beginning of the movement, and the end of the movement of the reflector relative to the audio component from the first position to the second position, and at the beginning, the beginning of the movement, and the end of the movement of the second audio component returning from the second position to the first position.
[0200] In this embodiment of the disclosure, regarding step S107, averaging multiple second audio samples to obtain an average value can be performed on content information data of the same type as the content information in the second audio samples corresponding to the reflective object, to obtain an average value.
[0201] In one embodiment, regarding step S108, the test value of the audio component is determined based on the average values corresponding to different content information types and the target algorithm.
[0202] For example, the test value of the audio component is determined based on the average value of the volume difference, the average value of the volume change amplitude, the average value of the volume change trend, and / or the average value of the phase change in the second audio.
[0203] In this embodiment of the disclosure, averaging multiple second audio frequencies can provide accuracy in calculating test values.
[0204] In this embodiment of the disclosure, combined with Figure 9 As shown, step S107, which involves averaging multiple second audio samples collected at different relative positions of the reflector and the audio component to obtain an average value, includes:
[0205] Step S1071: Average the second audio collected during the process of moving from the second position to the first position relative to the reflector and the audio component.
[0206] In one embodiment, the process of the relative position between the reflector and the audio component moving from the second position to the first position, and the process of the relative position between the reflector and the audio component moving from the second position to the first position, is a process of the reflector moving in reverse repeatedly.
[0207] In one embodiment, by acquiring the second audio from at least two processes during the reverse repetitive movement and averaging them, a potential hysteresis mismatch problem during the reverse repetitive movement can be identified, thereby adjusting the movement parameters of the reflector and improving the accuracy of the test value determination.
[0208] In this embodiment of the disclosure, the method further includes:
[0209] In abnormal situations, when the reflector and the audio component are in different relative positions, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0210] In one embodiment, the abnormal condition includes at least:
[0211] The reflective object was in a state of repeated movement for a long time;
[0212] No sound in the ultrasonic frequency band;
[0213] The entire frequency band is silent.
[0214] In one embodiment, by detecting a second audio signal under abnormal conditions, it is possible to determine whether any abnormalities have occurred in the components involved in the detection, such as the soundproof space, control components, reflective materials, and audio components, thus ensuring that the detection proceeds in an orderly manner.
[0215] In this embodiment of the disclosure, combined with Figure 10 As shown, the method includes:
[0216] Step S109: While the audio component outputs the first audio, a third audio is output in the soundproof space through an audio peripheral. The third audio is of a different audio type than the first audio.
[0217] In one embodiment, regarding step S109, the third audio may be output within the soundproof space via a peaking device.
[0218] In one embodiment, the humming device may be connected to a control component that controls the reflector.
[0219] In one embodiment, the humming device outputs a third audio frequency of 1 second in response to the start of movement of the reflector.
[0220] In one embodiment, the humming device outputs a third audio signal of 1 second in response to the end of the movement of the reflector.
[0221] In one embodiment, the third audio may be a peak sound that is different from the first audio.
[0222] In one embodiment, the beeping sound can be similar to an alarm sound, such as "ding..." or "beep...".
[0223] In one embodiment, the beeping sound can be used to determine whether the reflector has actually moved, and the beeping sound in the second audio can be used to determine the start time and end time of the movement of the reflector. In this way, the start time, duration and end time of the movement can be determined more accurately and practically.
[0224] Mobile devices such as smartphones typically have accidental touch prevention features to prevent unintended input from contact between the device's touchscreen display and the user's face. This function is usually implemented through a proximity sensor on the phone. Currently, commonly used proximity sensors include infrared proximity sensors and ultrasonic proximity sensors. Infrared proximity sensors emit infrared signals and detect changes in the reflected infrared signals returning to the sensor to calculate the distance between the device and obstacles. This allows them to determine whether the device is close enough to something like the user's head, thus enabling touch input on the touchscreen display to be disabled during calls. Infrared proximity sensors have a simple structure; however, using them incurs certain hardware costs and occupies a significant amount of additional space on the device's surface.
[0225] With the development of full-screen smartphones, screen-to-body ratios are increasing, making it difficult to leave enough space at the top of the phone to accommodate an infrared proximity sensor. This renders traditional methods of proximity sensing ineffective. Ultrasonic proximity sensors, however, utilize software algorithms, do not require additional device space, and detect proximity by extracting features from ultrasonic signals.
[0226] Because the ultrasonic performance of different machines of the same model can vary, it is necessary to use a factory calibration station or a factory calibration program to screen out the machines with poor performance.
[0227] In this embodiment, the audio component detection method provides a complete factory calibration scheme for ultrasonic distance sensors. By performing this factory calibration process, machines that do not meet the performance requirements of ultrasonic distance sensors can be screened out, which helps to ensure or even improve the performance of ultrasonic distance sensors and provide users with a better user experience. On the other hand, it can also guide the selection of ultrasonic receiving devices such as microphones and speakers, as well as ultrasonic transmitting devices, in subsequent projects, thereby improving yield.
[0228] In this embodiment, factory calibration of the ultrasonic distance sensor filters out machines that do not meet the performance requirements, which helps improve the overall performance of the ultrasonic distance sensor and provides users with a better experience. On the other hand, it can also guide the selection of ultrasonic receiving devices such as microphones and speakers, as well as ultrasonic transmitting devices, in subsequent projects, thereby improving yield rates.
[0229] In this embodiment of the disclosure, a reasonable factory calibration process and calibration algorithm are designed so that the calibration station can more efficiently and accurately screen out machines that do not meet performance requirements.
[0230] In one embodiment, such as Figure 11 The diagram shown is a cross-sectional view of the workstation device. The ultrasonic distance sensor factory calibration equipment includes the following parts:
[0231] 1) Sealed enclosure: isolates external sound interference during the test and ensures the consistency of the test station environment; here, the sealed enclosure corresponds to the closed structure mentioned above.
[0232] 2) Baffle: Its up and down movement can be controlled by a motor or cylinder; here, the baffle corresponds to the reflector mentioned above.
[0233] 3) Mobile device bracket: used to fix and place mobile devices; here, the mobile devices correspond to the audio component bracket mentioned above, and the mobile devices correspond to the audio components mentioned above.
[0234] 4) Mobile devices: The device to be tested, such as a mobile phone or tablet;
[0235] Combination Figure 12 As shown, the specific workflow of the software side is as follows: Here, the software side corresponds to the control side mentioned above.
[0236] Step S201: Enable the recording function (and store the recorded audio data in real time) and playback function (play ultrasound) on the mobile device — the baffle stays at the far end position for t1 seconds — control the baffle to move from the far end position to the near end position, the movement time is t2 seconds — the baffle stays at the near end position for t3 seconds — the mobile device stops playing and recording.
[0237] Step S202: The mobile device enables the recording function (and stores the recorded audio data in real time) and the playback function (plays ultrasound) - the baffle stays at the proximal position for t1 seconds - the baffle is controlled to move from the proximal position to the distal position, and the movement time is t2 seconds - the baffle stays at the distal position for t3 seconds - the mobile device stops playing and recording.
[0238] Step S203: The audio files recorded in Step 1 and Step 2 are processed using a calibration value calculation script, and the final calibration value of the machine is obtained by calculation using a calibration algorithm; here, the played audio signal corresponds to the first audio above, and the recorded audio file corresponds to the second audio above.
[0239] Where t1, t2, and t3 can be of any time length, generally between two and five seconds in this disclosure. These three times need to be pre-designed and must correspond consistently in the calibration algorithm. The speed of the baffle movement needs to be determined based on the baffle movement time and the distance between the far and near ends of the baffle. To more accurately obtain the precise correspondence of the baffle in the audio data for each movement time period, a buzzer can be added inside the enclosure. When the system sends a baffle movement command to the motor or cylinder, it also sends a command to the buzzer to make it sound. In this way, in the algorithm processing, the three time periods of the baffle being at the far end, the baffle moving, and the baffle being at the near end can be separated by detecting the buzzer for subsequent processing calculations. Here, the buzzer refers to the aforementioned buzzing device.
[0240] In one embodiment, the steps mentioned above require the mobile device to simultaneously play and record audio. The signal played by the mobile device is a continuous ultrasonic signal, which can be a white noise signal in the ultrasonic frequency band, a bandpass periodic signal in the ultrasonic frequency band, or other forms of continuous signal. The following detailed explanation uses these two commonly used ultrasonic signals in the calibration of this disclosure as examples.
[0241] In one embodiment, an example of the data recorded in steps 201 and 202 is as follows: Figure 13 As shown:
[0242] In one embodiment, if the transmitted signal is white noise in the ultrasonic frequency band, this disclosure can calculate the corresponding calibration value by weighted fusion of the volume difference of the ultrasonic signal received by the mobile device in scenarios where the baffle is at a far end and a near end, as well as the amplitude and trend of volume change during the movement of the baffle. Furthermore, in a calibration environment without a buzzer, the calibration algorithm uses a preset time value to determine the audio data corresponding to the three states: the baffle is at a far end, the baffle is at a near end, and the baffle is moving. In a calibration environment with a buzzer, the calibration algorithm determines the time by recognizing the sound of the buzzer, thereby determining the audio data corresponding to the three states: the baffle is at a far end, the baffle is at a near end, and the baffle is moving. After obtaining this data, corresponding calculations can be performed using time-frequency analysis methods.
[0243] In one embodiment, if the transmitted signal is a bandpass periodic signal in the ultrasonic band, this disclosure can also calculate the volume difference of the ultrasonic signal received by the mobile device in scenarios where the baffle is at the far end and near end, as well as the volume change amplitude and trend during the movement of the baffle. At the same time, it can calculate the phase change of the ultrasonic signal throughout the process, and then combine the calculated information to perform weighted fusion calculation of the calibration value.
[0244] In one embodiment, the factory calibration process involves two processes: baffle moving from near to far and baffle moving from far to near. These two processes are repeated in reverse. The two repeated processes can be used to improve the accuracy of the calculation and suppress noise interference by, for example, averaging.
[0245] In one embodiment, the present disclosure also performs some abnormal state detection for workstation problem checks in the calibration algorithm, such as abnormal situations such as baffle movement, no sound in the ultrasonic band, no sound in the full frequency band, etc., to ensure that the calibration workstation process can be carried out efficiently and orderly.
[0246] In one embodiment, by analyzing calibration data, this disclosure can set an appropriate range of calibration values for screening machines that meet ultrasonic performance requirements.
[0247] In one embodiment, a well-designed factory calibration process and calibration algorithm enable the calibration station to more efficiently and accurately screen out machines that do not meet performance requirements.
[0248] In this embodiment of the disclosure, combined with Figure 14 As shown, an audio component detection device 300 is provided, the device 300 comprising:
[0249] The adjustment module 301 is used to adjust the relative position between the reflector and the audio component within the soundproof space;
[0250] The first control module 302 is used to control the audio component to output a first audio signal and to control the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions.
[0251] The first determining module 303 is used to determine the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different.
[0252] The second determining module 304 is used to determine the detection result of the audio component based on the test value.
[0253] In this embodiment of the disclosure, the first control module 302 is configured to at least one of the following:
[0254] During the relative position change between the reflector and the audio component, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0255] When the relative position between the emitter and the audio component is at the first position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0256] When the relative position between the emitter and the audio component is in the second position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0257] In this embodiment of the disclosure, the first control module 302 is configured to at least one of the following:
[0258] During the process of the relative position between the reflector and the audio component moving from the first position to the second position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0259] During the process of the relative position between the reflector and the audio component moving from the second position to the first position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0260] In this embodiment of the disclosure, combined with Figure 15 As shown, the device 300 further includes:
[0261] The third determining module 305 is used to determine the moving speed based on the distance between the first position and the second position and the preset duration of the relative position between the reflector and the audio component changing between the first position and the second position;
[0262] The second control module 306 is used to control the movement of the reflector according to the moving speed.
[0263] In this embodiment of the disclosure, the first determining module 303 is configured as follows:
[0264] Based on the audio type of the first audio, determine the target algorithm for calculating the test value;
[0265] The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
[0266] In this embodiment of the disclosure, the first determining module 303 is configured as follows:
[0267] When the first audio signal is white noise, the target algorithm for calculating the test value is determined to be the first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio signal between the audio component and the reflector when the relative positions of the audio component and the reflector change between the first position and the second position.
[0268] In this embodiment of the disclosure, the first determining module 303 is configured as follows:
[0269] When the first audio signal is a bandpass periodic signal, the target algorithm for calculating the test value is determined to be the second algorithm. The second algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal when the relative position between the audio component and the reflector is at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative position between the audio component and the reflector changes between the first position and the second position, and the phase change value of the second audio signal when the relative position between the volume component and the reflector changes between the first position, the second position, and the first position and the second position.
[0270] In this embodiment of the disclosure, combined with Figure 15 As shown, the device 300 further includes:
[0271] The averaging module 307 is used to average multiple second audio samples collected when the relative positions of the reflector and the audio component are different to obtain an average value;
[0272] The fourth determining module 308 determines the test value of the audio component based on the average value and the target algorithm.
[0273] In this embodiment of the disclosure, the averaging module 307 is used for:
[0274] An average value is obtained by averaging the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position, and the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position.
[0275] In this embodiment of the disclosure, combined with Figure 15 As shown, the device 300 includes:
[0276] The output module 309 is used to output a third audio through an audio peripheral in the soundproof space while the audio component outputs the first audio. The third audio is of a different audio type than the first audio.
[0277] In this embodiment of the disclosure, combined with Figure 16 As shown, a testing system 400 is provided, the system 400 comprising:
[0278] Reflector 401 is located within the soundproof space 402;
[0279] A drive module 403 is connected to the reflector 401 and is used to drive the reflector 401 to move.
[0280] An electronic device 404 is connected to the driving module 403 and the audio component 405 respectively, and is used to control the driving module 403 to adjust the relative position between the reflector 401 and the audio component 405; when the reflector 401 and the audio component 405 are in different relative positions, the audio component 405 is controlled to output a first audio and to collect a second audio; based on the second audio collected when the relative positions of the reflector 401 and the audio component 405 are different, a test value of the audio component 405 is determined; based on the test value, a detection result of the audio component 405 is determined.
[0281] In this embodiment of the disclosure, combined with Figure 17 As shown, a device 500 is provided, comprising:
[0282] Memory 504 is used to store processor-executable instructions;
[0283] Processor 520 is connected to memory 504;
[0284] The processor 520 is configured to execute the audio component detection method provided by any of the aforementioned technical solutions.
[0285] This is a block diagram illustrating a device 500 according to an exemplary embodiment. For example, device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0286] Reference Figure 17 The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0287] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0288] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0289] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.
[0290] Multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0291] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0292] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0293] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0294] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0295] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0296] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0297] This disclosure provides a non-transitory computer-readable storage medium that, when the instructions in the storage medium are executed by a computer's processor, enables the computer to perform the audio component detection method described in one or more of the foregoing technical solutions.
[0298] When the processor executes the instruction, it is capable of performing at least the following steps:
[0299] Within the soundproof space, adjust the relative position between the reflector and the audio component;
[0300] When the reflector and the audio component are in different relative positions, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0301] The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different.
[0302] The detection result of the audio component is determined based on the test value.
[0303] Understandably, controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions includes at least one of the following:
[0304] During the relative position change between the reflector and the audio component, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0305] When the relative position between the emitter and the audio component is at the first position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0306] When the relative position between the emitter and the audio component is in the second position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio.
[0307] Understandably, controlling the audio component to output a first audio signal and controlling the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions includes at least one of the following:
[0308] During the process of the relative position between the reflector and the audio component moving from the first position to the second position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0309] During the process of the relative position between the reflector and the audio component moving from the second position to the first position, the audio component is controlled to output a first audio signal and to acquire a second audio signal.
[0310] Understandably, the method also includes:
[0311] The moving speed is determined based on the distance between the first position and the second position, and the preset duration for which the relative position between the reflector and the audio component changes between the first position and the second position;
[0312] The movement of the reflector is controlled according to the moving speed.
[0313] Understandably, determining the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different includes:
[0314] Based on the audio type of the first audio, determine the target algorithm for calculating the test value;
[0315] The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
[0316] Understandably, the step of determining the target algorithm for calculating the test value based on the audio type of the first audio includes:
[0317] When the first audio signal is white noise, the target algorithm for calculating the test value is determined to be the first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio signal between the audio component and the reflector when the relative positions of the audio component and the reflector change between the first position and the second position.
[0318] Understandably, the step of determining the target algorithm for calculating the test value based on the audio type of the first audio includes:
[0319] When the first audio signal is a bandpass periodic signal, the target algorithm for calculating the test value is determined to be the second algorithm. The second algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal when the relative position between the audio component and the reflector is at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative position between the audio component and the reflector changes between the first position and the second position, and the phase change value of the second audio signal when the relative position between the volume component and the reflector changes between the first position, the second position, and the first position and the second position.
[0320] Understandably, the method also includes:
[0321] The average value is obtained by averaging multiple second audio samples collected when the relative positions of the reflector and the audio component are different.
[0322] The test value of the audio component is determined based on the average value and the target algorithm.
[0323] Understandably, the step of averaging multiple second audio samples collected at different relative positions between the reflector and the audio component to obtain an average value includes:
[0324] An average value is obtained by averaging the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position, and the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position.
[0325] Understandably, the method includes:
[0326] While the audio component outputs the first audio, a third audio is output within the soundproof space via an audio peripheral. The third audio is of a different audio type than the first audio.
[0327] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended applications.
[0328] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended application documents.
Claims
1. A method for detecting audio components, characterized in that, The method includes: Adjust the relative position of the reflector and the audio component; When the reflector and the audio component are in different relative positions, the audio component is controlled to output a first audio signal and to acquire a second audio signal. The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different. Based on the test values, the detection result of the audio component is determined; Wherein, when the reflector and the audio component are in different relative positions, controlling the audio component to output a first audio and controlling the audio component to acquire a second audio includes at least one of the following: During the relative position change between the reflector and the audio component, the audio component is controlled to output the first audio and to acquire the second audio. When the relative position between the reflector and the audio component is at the first position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio. When the relative position between the reflector and the audio component is at the second position, the audio component is controlled to output the first audio and to acquire the second audio.
2. The audio component detection method according to claim 1, characterized in that, During the process of relative position change between the reflector and the audio component, controlling the audio component to output the first audio and controlling the audio component to acquire the second audio includes at least one of the following: During the process of the relative position between the reflector and the audio component moving from the first position to the second position, the audio component is controlled to output the first audio and to acquire the second audio. During the process of the relative position between the reflector and the audio component moving from the second position to the first position, the audio component is controlled to output the first audio and to acquire the second audio.
3. The audio component detection method according to claim 1 or 2, characterized in that, The method further includes: The moving speed is determined based on the distance between the first position and the second position, and the preset duration for which the relative position between the reflector and the audio component changes between the first position and the second position; The movement of the reflector is controlled according to the moving speed.
4. The audio component detection method according to claim 1 or 2, characterized in that, The step of determining the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different includes: Based on the audio type of the first audio, determine the target algorithm for calculating the test value; The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
5. The audio component detection method according to claim 4, characterized in that, The step of determining the target algorithm for calculating the test value based on the audio type of the first audio file includes: When the first audio signal is white noise, the target algorithm for calculating the test value is determined to be the first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio signal between the audio component and the reflector when the relative positions of the audio component and the reflector change between the first position and the second position.
6. The audio component detection method according to claim 4, characterized in that, The step of determining the target algorithm for calculating the test value based on the audio type of the first audio file includes: When the first audio signal is a bandpass periodic signal, the target algorithm for calculating the test value is determined to be the second algorithm. The second algorithm is an algorithm for determining the test value based on the volume difference of the second audio signal when the relative position between the audio component and the reflector is at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative position between the audio component and the reflector changes between the first position and the second position, and the phase change value of the second audio signal when the relative position between the audio component and the reflector is at the first position, the second position, and when the relative position between the first position and the second position changes.
7. The audio component detection method according to claim 4, characterized in that, The method further includes: The average value is obtained by averaging multiple second audio samples collected when the relative positions of the reflector and the audio component are different. The test value of the audio component is determined based on the average value and the target algorithm.
8. The audio component detection method according to claim 7, characterized in that, The step of averaging multiple second audio samples collected based on the different relative positions of the reflector and the audio component to obtain an average value includes: The average value is obtained by averaging the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position, and the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position.
9. The audio component detection method according to claim 1, characterized in that, The method includes: While the audio component outputs the first audio, a third audio is output in the soundproof space through an audio peripheral. The third audio is of a different audio type than the first audio.
10. An audio component detection device, characterized in that, The device includes: An adjustment module is used to adjust the relative position between the reflector and the audio component within the soundproof space; The first control module is used to control the audio component to output a first audio signal and to control the audio component to acquire a second audio signal when the reflector and the audio component are in different relative positions. The first determining module is used to determine the test value of the audio component based on the second audio collected when the relative positions of the reflector and the audio component are different. The second determining module is used to determine the detection result of the audio component based on the test value; The first control module is configured to be at least one of the following: During the relative position change between the reflector and the audio component, the audio component is controlled to output the first audio and to acquire the second audio. When the relative position between the reflector and the audio component is at the first position, the audio component is controlled to output the first audio and the audio component is controlled to acquire the second audio. When the relative position between the reflector and the audio component is at the second position, the audio component is controlled to output the first audio and to acquire the second audio.
11. The audio component detection device according to claim 10, characterized in that, The first control module is configured to at least one of the following: During the process of the relative position between the reflector and the audio component moving from the first position to the second position, the audio component is controlled to output the first audio and to acquire the second audio. During the process of the relative position between the reflector and the audio component moving from the second position to the first position, the audio component is controlled to output the first audio and to acquire the second audio.
12. The audio component detection device according to claim 10 or 11, characterized in that, The device further includes: The third determining module is used to determine the moving speed based on the distance between the first position and the second position and a preset duration for the relative position between the reflector and the audio component to change between the first position and the second position; The second control module is used to control the movement of the reflector according to the moving speed.
13. The audio component detection device according to claim 10 or 11, characterized in that, The first determining module is configured as follows: Based on the audio type of the first audio, determine the target algorithm for calculating the test value; The test value of the audio component is determined based on the second audio collected when the relative positions of the reflector and the audio component are different, and the target algorithm.
14. The audio component detection device according to claim 13, characterized in that, The first determining module is configured as follows: When the first audio signal is white noise, the target algorithm for calculating the test value is determined to be the first algorithm, wherein the first algorithm is: an algorithm for determining the test value based on the volume difference of the second audio signal between the relative positions of the audio component and the reflector at the first position and the second position, and the volume change amplitude and trend of the second audio signal between the audio component and the reflector when the relative positions of the audio component and the reflector change between the first position and the second position.
15. The audio component detection device according to claim 13, characterized in that, The first determining module is configured as follows: When the first audio signal is a bandpass periodic signal, the target algorithm for calculating the test value is determined to be the second algorithm. The second algorithm is an algorithm for determining the test value based on the volume difference of the second audio signal when the relative position between the audio component and the reflector is at the first position and the second position, the volume change amplitude and trend of the second audio signal when the relative position between the audio component and the reflector changes between the first position and the second position, and the phase change value of the second audio signal when the relative position between the audio component and the reflector is at the first position, the second position, and when the relative position between the first position and the second position changes.
16. The audio component detection device according to claim 13, characterized in that, The device further includes: An averaging module is used to average multiple second audio samples collected when the relative positions of the reflector and the audio component are different to obtain an average value; The fourth determining module determines the test value of the audio component based on the average value and the target algorithm.
17. The audio component detection device according to claim 16, characterized in that, The averaging module is configured as follows: The average value is obtained by averaging the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position, and the second audio collected during the process of moving the relative position between the reflector and the audio component from the second position to the first position.
18. The audio component detection device according to claim 10, characterized in that, The device includes: An output module is used to output a third audio signal within the soundproof space via an audio peripheral while the audio component outputs the first audio signal. The third audio signal is of a different audio type than the first audio signal.
19. A testing system, characterized in that, The system includes: The reflector is located within the soundproof space; A drive module, connected to the reflector, is used to drive the reflector to move; An electronic device, connected to the driving module and the audio component respectively, is used to control the driving module to adjust the relative position between the reflector and the audio component; when the reflector and the audio component are in different relative positions, the audio component is controlled to output a first audio and to collect a second audio; based on the second audio collected when the relative positions of the reflector and the audio component are different, a test value of the audio component is determined; based on the test value, a detection result of the audio component is determined; wherein, controlling the audio component to output the first audio and to collect the second audio when the reflector and the audio component are in different relative positions includes at least one of the following: controlling the audio component to output the first audio and to collect the second audio during the change of the relative position between the reflector and the audio component; controlling the audio component to output the first audio and to collect the second audio when the relative position between the reflector and the audio component is at a first position; controlling the audio component to output the first audio and to collect the second audio when the relative position between the reflector and the audio component is at a second position.
20. An audio component testing device, characterized in that, The audio component detection device includes: Memory used to store processor-executable instructions; The processor is connected to the memory; The processor is configured to perform the audio component detection method as provided in any one of claims 1 to 9.
21. A non-transitory computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, implement the audio component detection method as provided in any one of claims 1 to 9.
Citation Information
Patent Citations
Electronic device for outputting sound and method for operating the same
US20220086578A1
