Earphone fitting degree detection method and device, equipment and storage medium
By integrating piezoelectric sensors, speakers and microphones in the headphones, combined with vibration components, the fit detection on the headphone side is achieved, solving the problems of cumbersome operation and poor user experience in the prior art, and providing real-time detection results and power consumption optimization.
Patent Information
- Application Number
- CN202411064959.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2025-01-10
AI Technical Summary
The existing headphone fit detection method has cumbersome operation process and poor user experience. It requires the cooperation of the mobile app, and it is impossible to easily obtain real-time detection results.
The first piezoelectric sensor, speaker and microphone are integrated into the headphones, and the fit degree is judged by the detection signal, the fit degree detection audio is played and the feedback audio is picked up. The detection result is provided in combination with the vibration component to realize the fit degree detection process on the headphone side. No external terminal cooperation is required.
Simplifies the operation process, improves the user experience, provides real-time fit detection results, and saves detection power consumption.
Smart Images

Figure CN119299939A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to an earphone fit detection method, device, equipment and storage medium. Background Art
[0002] The fit of headphones is an important factor affecting the noise reduction effect and sound quality of headphones, so more and more headphones will provide a fit detection function. The fit detection of headphones is often achieved through the interaction between headphones and mobile phones. The fit detection function of the headphones is triggered through the app interface on the mobile phone, and the results are displayed on the mobile phone app as good or poor fit. However, this method often requires the mobile phone to support the interconnection protocol with the headphones, and a special app needs to be customized to implement this function. The function has a small scope of application and a high cost for users. In terms of the actual operation process, the user needs to wait for the test to be completed after the app is triggered, and then the user can view the results through the app. The operation process is relatively cumbersome, and users cannot conveniently obtain real-time results of fit detection.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a method, device, equipment and storage medium for detecting the fit of an earphone, aiming to solve the technical problems in the prior art of cumbersome operating procedures and poor user experience for detecting the fit of an earphone.
[0005] To achieve the above object, the present application proposes a method for detecting the fit of an earphone, the method for detecting the fit of an earphone being applied to an earphone, the earphone comprising at least one first piezoelectric sensor located in an ear canal contact area, a speaker, a microphone, and a vibration component, the method comprising:
[0006] When a fit detection trigger operation is detected, acquiring a target detection signal collected by the first piezoelectric sensor;
[0007] When the target detection signal meets the fit detection condition, the speaker is controlled to play the fit detection audio, and the microphone is controlled to pick up the audio to obtain the fit feedback audio;
[0008] A fit detection result of the earphone is determined based on the fit detection audio and the fit feedback audio, and the vibration component is controlled to vibrate based on the fit detection result.
[0009] In one embodiment, the headset further includes at least one second piezoelectric sensor located in the user touch area, and before the step of acquiring the target detection signal collected by the first piezoelectric sensor when the fit detection trigger operation is detected, the step further includes:
[0010] Acquiring a touch detection signal collected by the second piezoelectric sensor;
[0011] Performing feature analysis based on the touch detection signal to determine the user's touch gesture;
[0012] When the user touch gesture is a preset touch gesture, it is determined that a fit detection triggering operation is detected.
[0013] In one embodiment, after acquiring the target detection signal collected by the first piezoelectric sensor, the method further includes:
[0014] determining an ear canal contact voltage value according to the target detection signal;
[0015] comparing the ear canal contact voltage value with a first voltage threshold;
[0016] When the ear canal contact voltage value is greater than or equal to the first voltage threshold, it is determined that the target detection signal meets the fit detection condition.
[0017] In one embodiment, after comparing the ear canal contact voltage value with the first voltage threshold, the method further includes:
[0018] When the ear canal contact voltage value is less than the first voltage threshold, comparing the ear canal contact voltage value with the second voltage threshold;
[0019] When the ear canal contact voltage value is greater than the second voltage threshold, determining that the fit test result of the earphone is a low fit test result;
[0020] The vibration component is controlled to vibrate based on the low fit detection result.
[0021] In one embodiment, the step of determining the fit detection result of the headset based on the fit detection audio and the fit feedback audio includes:
[0022] Comparing the fit detection audio and the fit feedback audio to determine the signal loss of each frequency;
[0023] The loss amounts of multiple frequencies are screened through a key frequency range to obtain signal loss amounts of multiple key frequencies;
[0024] Calculate the fit score according to the signal loss amount of each key frequency to determine the fit score;
[0025] Determine a fit test result of the earphone according to the fit score.
[0026] In one embodiment, the step of calculating the fit score according to the signal loss amount of each key frequency and determining the fit score comprises:
[0027] The signal loss amount of each key frequency is standardized to obtain the standardized loss amount of each key frequency;
[0028] Obtain the target weight corresponding to each key frequency;
[0029] The fit score is calculated according to the target weight corresponding to each key frequency and the standardized loss amount of each key frequency to obtain the fit score.
[0030] In one embodiment, the step of controlling the vibration of the vibration component based on the fit detection result includes:
[0031] Determine the vibration amplitude, vibration duration, and vibration times corresponding to the fit detection result according to the fit detection result and the fit vibration mapping relationship;
[0032] The vibration component is controlled to vibrate according to the vibration amplitude, the vibration duration and the vibration frequency.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes an earphone fit detection device, the earphone fit detection device comprising: an acquisition module, configured to acquire a target detection signal collected by the first piezoelectric sensor when a fit detection trigger operation is detected;
[0034] A control module, configured to control the speaker to play fit detection audio and control the microphone to pick up audio to obtain fit feedback audio when the target detection signal meets the fit detection condition;
[0035] A processing module is used to determine a fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and control the vibration of the vibration component based on the fit detection result.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes an earphone fit detection device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the earphone fit detection method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the earphone fit detection method described above are implemented.
[0038] The present application provides a method for detecting the fit of an earphone. The method for detecting the fit of an earphone is applied to an earphone, wherein the earphone comprises at least one first piezoelectric sensor, a speaker, a microphone and a vibration component located in a contact area of an ear canal. The method comprises: when a fit detection trigger operation is detected, obtaining a target detection signal collected by the first piezoelectric sensor; when the target detection signal meets a fit detection condition, controlling the speaker to play fit detection audio, and controlling the microphone to pick up audio to obtain fit feedback audio; determining a fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and controlling the vibration component to vibrate based on the fit detection result. Through the above method, when the earphone detects the trigger operation, it determines whether the target detection signal collected by the first piezoelectric sensor meets the fit detection condition. If so, it enters the fit calculation process to obtain the fit detection result of the earphone, and feeds back the result through the vibration component, thereby realizing a complete fit detection process on the earphone side without relying on external terminal cooperation detection, simplifying the operation process, allowing users to conveniently obtain real-time results of fit detection, greatly improving the user experience, and at the same time optimizing the detection process and saving detection power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A schematic diagram of a flow chart provided for Embodiment 1 of the headphone fit detection method of the present application;
[0042] Figure 2 A schematic diagram of a flow chart provided for Embodiment 2 of the headphone fit detection method of the present application;
[0043] Figure 3 A schematic diagram of a brief flow chart of a headphone fit detection method provided in Embodiment 2 of the present application;
[0044] Figure 4 This is a schematic diagram of the module structure of the earphone fit detection device according to an embodiment of the present application;
[0045] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the headphone fit detection method in the embodiment of the present application.
[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] The main solution of the embodiment of the present application is: when a fit detection trigger operation is detected, a target detection signal collected by the first piezoelectric sensor is obtained; when the target detection signal meets the fit detection condition, the speaker is controlled to play the fit detection audio, and the microphone is controlled to pick up audio to obtain fit feedback audio; based on the fit detection audio and the fit feedback audio, the fit detection result of the earphone is determined, and the vibration component is controlled to vibrate based on the fit detection result.
[0050] Currently, the fit detection of earphones is often achieved through the interaction between the earphones and mobile phones. The fit detection function of the earphones is triggered through the app interface on the mobile phone, and the result is displayed on the mobile phone app as good fit or poor fit. However, this method often requires the mobile phone to support the interoperability protocol with the earphones, and a special app needs to be customized to implement this function. The function has a small scope of application and a high cost for users. In terms of the actual operation process, the user needs to wait for the test to be completed after the app is triggered, and then the user can view the results through the app. The operation process is relatively cumbersome, and the user cannot conveniently obtain the real-time results of the fit test.
[0051] The present application determines whether the target detection signal collected by the first piezoelectric sensor satisfies the fit detection conditions when the earphone detects a trigger operation. If so, the fit calculation process is entered to obtain the fit detection result of the earphone, and the result is fed back through the vibration component, thereby realizing a complete fit detection process on the earphone side without relying on an external terminal for cooperation in detection, simplifying the operation process, allowing users to conveniently obtain real-time results of fit detection, greatly improving the user experience, and at the same time optimizing the detection process and saving detection power consumption.
[0052] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an earphone fit detection device, etc. The following takes the earphone fit detection device as an example to illustrate this embodiment and the following embodiments.
[0053] Based on this, the present application embodiment provides a method for detecting the fit of an earphone, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the earphone fit detection method of the present application.
[0054] In this embodiment, the earphone fit detection method is applied to earphones, the earphones include at least one first piezoelectric sensor located in the ear canal contact area, a speaker, a microphone, and a vibration component, and the method includes steps S10 to S30:
[0055] Step S10: when a fit detection trigger operation is detected, a target detection signal collected by the first piezoelectric sensor is obtained.
[0056] It should be noted that the earphone includes at least one first piezoelectric sensor located in the ear canal contact area, which is used to measure the contact pressure between the earphone and the ear canal, help the earphone adjust its physical fit, and ensure that the earphone is comfortably and firmly placed in the user's ear; the speaker in the earphone is used to play the fit detection audio when the earphone fit detection is performed, and can also be used to implement other functions, which is not limited in this embodiment; the microphone in the earphone is used to pick up the fit detection audio played by the microphone when the earphone fit detection is performed, and can also be used to implement other functions, which is not limited in this embodiment; the vibration component in the earphone is used to vibrate through different vibration states after obtaining the fit detection result, so as to feedback the fit detection result to the user, and can also be used to implement other functions, which is not limited in this embodiment; the earphone includes at least one second piezoelectric sensor located in the user contact area, which is used to sense the user's touch gesture, and can also be used to implement other functions, which is not limited in this embodiment. In this embodiment, the user contact area needs to be an exposed area that the user can still touch after the user wears the earphone normally.
[0057] It is understandable that the user's touch gesture can be detected in real time by the second piezoelectric sensor in the headset to determine whether the user's touch gesture is a preset gesture, and if so, it is determined that a fit detection trigger operation is detected; it is also possible to determine whether it is a fit detection trigger instruction by identifying the voice command issued by the user, and if so, it is determined that a fit detection trigger operation is detected. In this embodiment, whether a fit detection trigger operation is received can also be detected in other ways.
[0058] In a specific implementation, after the fit detection trigger operation is detected, the wearing fit detection of the earphone is started, and at this time, the first piezoelectric sensor continues to obtain the target detection signal of its corresponding channel.
[0059] In a feasible implementation manner, the headset further includes at least one second piezoelectric sensor located in the user touch area, and before step S10, steps A11 to A13 may be included:
[0060] Step A11: Acquire the touch detection signal collected by the second piezoelectric sensor.
[0061] Step A12: performing feature analysis based on the touch detection signal to determine the user's touch gesture.
[0062] Step A13: when the user touch gesture is a preset touch gesture, determine that a fit detection trigger operation is detected.
[0063] It should be noted that when the user touches or taps the user touch area of the headset, the second piezoelectric sensor will feel mechanical stress, which will cause the piezoelectric material to deform and generate electric charge. The generated charge will be collected by the electrodes connected to the piezoelectric material and converted into a voltage signal. This voltage signal is related to the force applied by the user or the intensity of the touch. The voltage signal collected by the second piezoelectric sensor is the touch detection signal.
[0064] It is understood that the touch detection signal is passed to a signal processing circuit, such as a charge amplifier or a voltage amplifier, which amplifies the signal and converts it into a more easily processable form. Signal processing also includes filtering to remove noise and extract valid information about the touch event. The processed signal is further analyzed to identify user touch gestures, such as single click, double click, drag, and slide.
[0065] In a specific implementation, the user touch gesture is compared with the preset touch gesture, and when the user touch gesture is the preset touch gesture, it is determined that a fit detection trigger operation is detected. In this embodiment, the preset touch gesture is a trigger action for earphone fit detection, including but not limited to single click, double click, multiple clicks or sliding.
[0066] Step S20, when the target detection signal meets the fit detection condition, control the speaker to play the fit detection audio, and control the microphone to pick up the audio to obtain the fit feedback audio.
[0067] It should be noted that the fit detection condition refers to the condition that triggers the fit calculation. In this embodiment, the fit detection condition can be that the voltage value U determined based on the target detection signal is ≥ the set voltage threshold, at which time the earphone is considered to be worn normally. In this embodiment, the set voltage threshold is a threshold calibrated by the production line.
[0068] It can be understood that when the target detection signal meets the fit detection conditions, the earphones are deemed to be worn normally. At this time, the speaker is controlled to play the fit detection audio, and the microphone is controlled to pick up the fit detection audio. The audio obtained after the microphone picks up the fit detection audio is the fit feedback audio.
[0069] Step S30, determining a fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and controlling the vibration component to vibrate based on the fit detection result.
[0070] It should be noted that the fit detection audio and the fit feedback audio are compared to determine the loss between the two, and the fit detection result can be obtained based on the energy loss between the two. Different fit detection results are mapped to different vibration states, and the vibration component vibrates according to different vibration states so that the user can obtain the fit detection result in real time.
[0071] In a feasible implementation manner, the step of determining the fit detection result of the earphone based on the fit detection audio and the fit feedback audio in step S30 may include steps B11 to B14:
[0072] Step B11, performing parameter comparison between the fit detection audio and the fit feedback audio to determine the signal loss amount of each frequency.
[0073] Step B12, screening the loss amounts of multiple frequencies through the key frequency range to obtain the signal loss amounts of multiple key frequencies.
[0074] Step B13, calculating the fit score according to the signal loss amount of each key frequency to determine the fit score.
[0075] Step B14, determining a fit test result of the earphone according to the fit score.
[0076] It should be noted that due to factors such as the shape of the ear canal and the fit of the earphone to the ear canal, the fit detection audio will attenuate and change phase during propagation in the ear canal. These changes are reflected in the fit feedback audio and can be used to calculate the degree of signal loss. By analyzing the difference between the detection audio and the feedback audio, the earphone's processor can calculate the amount of signal loss at different frequencies. If the seal between the earphone and the ear canal is good, then the signal loss should be small in the low-frequency range; conversely, if there is a gap or poor fit, the signal loss will increase. The earphones will quantify the fit of the earphones based on the amount of signal loss. Typically, this will generate a fit score that indicates how tight the seal between the earphone and the ear is.
[0077] It can be understood that the fit detection audio and the fit feedback audio are compared in parameters to determine the signal loss amount of the fit detection audio at each frequency.
[0078] In a specific implementation, the critical frequency range refers to the frequency range that is most critical to the fit evaluation, and can be set according to actual needs. In this embodiment, the critical frequency range can be set to (20 Hz, 500 Hz). The signal loss amount of the frequency within the critical frequency range is used as the signal loss amount of multiple critical frequencies.
[0079] It should be noted that the fit score can be calculated based on the signal loss of multiple key frequencies, the fit score can be determined, and the fit score can be mapped to the tightness of the seal between the earphone and the ear, thereby obtaining a fit test result. In this embodiment, there are multiple fit levels, and different fit levels correspond to different fit score ranges, which can be set according to actual needs.
[0080] In a feasible implementation manner, step B13 may include steps C11 to C13:
[0081] Step C11, standardize the signal loss amount of each key frequency to obtain the standardized loss amount of each key frequency.
[0082] Step C12, obtaining the target weight corresponding to each key frequency.
[0083] Step C13, calculating the fit score according to the target weight corresponding to each key frequency and the standardized loss amount of each key frequency to obtain the fit score.
[0084] It should be noted that the signal loss corresponding to each key frequency is standardized so that it is on a uniform scale. This can be done by converting the signal loss of each key frequency into a decibel (dB) difference relative to a reference value. For example, if the reference is the signal loss measured under perfect sealing conditions, then the actual measured signal loss can be converted into a dB difference compared thereto. In this embodiment, the standardized signal loss of each key frequency is the standardized loss of each key frequency.
[0085] It can be understood that each key frequency corresponds to a target weight, which can be determined based on relevant information about the importance of different frequencies in the listening experience, and a weighted calculation is performed based on the target weight corresponding to each key frequency and the standardized loss amount of each key frequency to obtain the final fit score.
[0086] The above is only one feasible implementation of step S30 provided in this embodiment: determining the fit detection result of the earphone based on the fit detection audio and the fit feedback audio. This embodiment does not specifically limit the specific implementation of step S30.
[0087] In a feasible implementation manner, the step of controlling the vibration of the vibration component based on the fit detection result in step S30 may include steps D11 to D12:
[0088] Step D11, determining the vibration amplitude, vibration duration and number of vibrations corresponding to the fit detection result according to the fit detection result and the fit vibration mapping relationship.
[0089] Step D12, controlling the vibration component to vibrate according to the vibration amplitude, the vibration duration and the vibration frequency.
[0090] It should be noted that the fit vibration mapping relationship stores the mapping relationship between different fit test results and vibration states, and the vibration state includes but is not limited to parameters such as vibration amplitude, vibration frequency, and vibration duration. Based on the fit test result, the vibration amplitude, vibration duration, and vibration frequency corresponding to the fit test result are searched in the fit vibration mapping relationship.
[0091] It is understandable that the vibration component is controlled to vibrate according to the vibration amplitude, vibration frequency and vibration duration, so that the user can obtain real-time fit detection feedback results. For example, when the fit detection result is poor fit, the vibration is stronger, lasts longer and vibrates multiple times within a preset time period, and when the fit is good, the vibration is slight and lasts for a shorter period of time.
[0092] The present embodiment provides an earphone fit detection method, and the earphone fit detection method of the present embodiment is applied to earphones, wherein the earphones include at least one first piezoelectric sensor located in an ear canal contact area, a speaker, a microphone, and a vibration component, and the method includes: when a fit detection trigger operation is detected, obtaining a target detection signal collected by the first piezoelectric sensor; when the target detection signal meets a fit detection condition, controlling the speaker to play fit detection audio, and controlling the microphone to pick up audio to obtain fit feedback audio; determining a fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and controlling the vibration component to vibrate based on the fit detection result. Through the above method, when the earphone detects the trigger operation, it determines whether the target detection signal collected by the first piezoelectric sensor meets the fit detection condition. If so, it enters the fit calculation process to obtain the fit detection result of the earphone, and feeds back the result through the vibration component, thereby realizing a complete fit detection process on the earphone side without relying on external terminal cooperation detection, simplifying the operation process, allowing users to conveniently obtain real-time results of fit detection, greatly improving the user experience, and at the same time optimizing the detection process and saving detection power consumption.
[0093] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 After step S10, the earphone fit detection method further includes steps S11 to S13:
[0094] Step S11, determining the ear canal contact voltage value according to the target detection signal.
[0095] It should be noted that based on the target detection signal collected by the first piezoelectric sensor, the average voltage value sensed by the first piezoelectric sensor within the preset time period can be calculated, and the average voltage value sensed by the first piezoelectric sensor within the preset time period is the ear canal contact voltage value U.
[0096] Step S12: comparing the ear canal contact voltage value with a first voltage threshold.
[0097] It should be noted that the first voltage threshold and the second voltage threshold are both thresholds calibrated by the production line, and are the thresholds obtained by the production line jig under simulated loose wearing and normal wearing conditions, respectively. The first voltage threshold and the second voltage threshold are U1 and U2, respectively, and the first voltage threshold U1 is greater than the second voltage threshold U2. Compare the ear canal contact voltage value U with the first voltage threshold U1.
[0098] In a feasible implementation manner, after step S12, steps E11 to E13 may also be included:
[0099] Step E11, when the ear canal contact voltage value is less than the first voltage threshold, compare the ear canal contact voltage value with the second voltage threshold.
[0100] Step E12, when the ear canal contact voltage value is greater than the second voltage threshold, determine that the fitting degree detection result of the earphone is a low fitting degree detection result.
[0101] Step E13, control the vibration component to vibrate based on the low fitting degree detection result.
[0102] It should be noted that when the ear canal contact voltage value U < the first voltage threshold U1, the ear canal contact voltage value U is compared with the second voltage threshold U2. When U2 < U < U1, it is considered that the earphone is worn loosely. Since the next stage of the fitting degree calculation process requires the continuous operation of the microphone and the speaker, the power consumption is relatively high. At this time, the next stage of the fitting degree calculation process is not entered, and the fitting degree detection result of the earphone is determined as a low fitting degree detection result. Then, find the vibration amplitude, vibration duration, and vibration times corresponding to the low fitting degree detection result in the fitting degree vibration mapping relationship, and control the vibration component to vibrate according to the above vibration amplitude, vibration duration, and vibration times.
[0103] Step S13, when the ear canal contact voltage value is greater than or equal to the first voltage threshold, determine that the target detection signal meets the fitting degree detection condition.
[0104] It should be noted that when the ear canal contact voltage value U ≥ the first voltage threshold U1, it is determined that the target detection signal meets the fitting degree detection condition. At this time, the earphone is worn normally, and the next stage of the fitting degree calculation process is started.
[0105] This embodiment provides a method for detecting the fitting degree of an earphone. In this embodiment, the ear canal contact voltage value is determined according to the target detection signal; the ear canal contact voltage value is compared with the first voltage threshold; when the ear canal contact voltage value is greater than or equal to the first voltage threshold, it is determined that the target detection signal meets the fitting degree detection condition. By the above method, a foundation is laid for the optimization of the subsequent detection power consumption.
[0106] Exemplarily, to help understand the implementation process of the earphone fitting degree detection method obtained by combining this embodiment with the above Embodiment 1, please refer to Figure 3 , Figure 3 A schematic diagram of a brief process in a method for detecting the fitting degree of an earphone is provided. Specifically:
[0107] The earphone fitting degree detection method of this embodiment specifically includes the following steps: 1. Piezoelectric sensor detects user actions: The piezoelectric sensor perceives user operations by detecting the pressing force, and can support the detection of actions such as single click, double click, multiple clicks, and sliding. According to the actual product definition, single click, double click, multiple clicks, or sliding can be mapped to the trigger actions for earphone fitting degree detection. After detecting the corresponding operation, the detection of the wearing fitting degree of the earphone starts. 2. Detect the wearing tightness and optimize the wearing detection algorithm: For the detection of the wearing tightness, it is required that at least one channel of the piezoelectric sensor is located in the area contacting the user's ear canal. After the detection starts, the piezoelectric sensor continuously reads the voltage value U of this channel and compares it with the thresholds U1 and U2 calibrated in the production line. When U2 < U < U1, it is considered that the wearing is loose and the second-stage fitting degree detection is not triggered; when U ≥ U1, it is considered that the wearing is normal and the second-stage fitting degree detection function is enabled. U1 and U2 are the thresholds obtained by the production line fixture under the simulated loose wearing and normal wearing conditions respectively. The second-stage fitting degree detection of the earphone generally picks up the audio of a specific frequency band played by the earphone speaker through the feedback microphone, judges the audio loss, and thus calculates the wearing fitting degree. Since the second-stage fitting degree detection requires the continuous operation of the microphone and the speaker, the power consumption is relatively high. Using the piezoelectric to detect the wearing tightness can avoid unnecessary detection and optimize the power consumption. 3. Vibration reflects the real-time result of the fitting degree detection: After the fitting degree detection in step 2 is completed, for the detection result, it is mapped to different vibration states, such as distinguished by the vibration amplitude, vibration times, vibration duration, etc. For example, when the detected fitting degree is poor, the vibration is stronger and lasts longer; when the detected fitting degree is good, the vibration is slight and lasts shorter.
[0108] Through the above earphone fitting degree detection method, users can trigger the fitting degree detection conveniently and quickly and obtain real-time feedback results.
[0109] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the earphone fitting degree detection method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0110] This application also provides an earphone fitting degree detection device. Please refer to Figure 4 and the earphone fitting degree detection device includes:
[0111] An acquisition module 10, configured to acquire a target detection signal collected by the first piezoelectric sensor when a fitting degree detection trigger operation is detected;
[0112] A control module 20, configured to control the speaker to play a fitting degree detection audio and control the microphone to pick up the audio when the target detection signal meets the fitting degree detection condition, so as to obtain a fitting degree feedback audio;
[0113] The processing module 30 is used to determine the fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and control the vibration of the vibration component based on the fit detection result.
[0114] Optionally, the acquisition module 10 is further used to:
[0115] Acquire a touch detection signal collected by the second piezoelectric sensor; perform feature analysis based on the touch detection signal to determine a user touch gesture; and when the user touch gesture is a preset touch gesture, determine that a fit detection trigger operation is detected.
[0116] Optionally, the acquisition module 10 is further used to:
[0117] Determine an ear canal contact voltage value according to the target detection signal; compare the ear canal contact voltage value with a first voltage threshold; when the ear canal contact voltage value is greater than or equal to the first voltage threshold, determine that the target detection signal satisfies a fit detection condition.
[0118] Optionally, the acquisition module 10 is further used to:
[0119] When the ear canal contact voltage value is less than the first voltage threshold, the ear canal contact voltage value is compared with the second voltage threshold; when the ear canal contact voltage value is greater than the second voltage threshold, it is determined that the fit detection result of the earphone is a low fit detection result; and the vibration of the vibration component is controlled based on the low fit detection result.
[0120] Optionally, the processing module 30 is further used for:
[0121] Compare the parameters of the fit detection audio and the fit feedback audio to determine the signal loss of each frequency; screen the loss of multiple frequencies through a key frequency range to obtain the signal loss of multiple key frequencies; calculate the fit score according to the signal loss of each key frequency to determine the fit score; determine the fit detection result of the earphone according to the fit score.
[0122] Optionally, the processing module 30 is further used for:
[0123] The signal loss of each key frequency is standardized to obtain the standardized loss of each key frequency; the target weight corresponding to each key frequency is obtained; the fit score is calculated according to the target weight corresponding to each key frequency and the standardized loss of each key frequency to obtain the fit score.
[0124] Optionally, the processing module 30 is further used for:
[0125] The vibration amplitude, vibration duration and number of vibrations corresponding to the fit detection result are determined according to the fit detection result and the fit vibration mapping relationship; and the vibration component is controlled to vibrate according to the vibration amplitude, vibration duration and number of vibrations.
[0126] The earphone fit detection device provided by the present application adopts the earphone fit detection method in the above embodiment, which can solve the technical problems of the cumbersome operation process and poor user experience of the earphone fit detection in the prior art. Compared with the prior art, the beneficial effects of the earphone fit detection device provided by the present application are the same as the beneficial effects of the earphone fit detection method provided by the above embodiment, and the other technical features of the earphone fit detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0127] The present application provides an earphone fit detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the earphone fit detection method in the above-mentioned embodiment one.
[0128] Reference below Figure 5 , which shows a schematic diagram of the structure of an earphone fit detection device suitable for implementing the embodiment of the present application. The earphone fit detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The earphone fit detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0129] like Figure 5As shown, the earphone fit detection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the earphone fit detection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the earphone fit detection device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an earphone fit detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0131] The headphone fit detection device provided by the present application adopts the headphone fit detection method in the above embodiment, which can solve the technical problems of complicated operation procedures and poor user experience of headphone fit detection in the prior art. Compared with the prior art, the beneficial effects of the headphone fit detection device provided by the present application are the same as the beneficial effects of the headphone fit detection method provided by the above embodiment, and the other technical features of the headphone fit detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the earphone fit detection method in the above-mentioned embodiment.
[0135] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0136] The computer-readable storage medium may be included in the earphone fit detection device; or may exist independently without being assembled into the earphone fit detection device.
[0137] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the earphone fit detection device, the earphone fit detection device: when a fit detection trigger operation is detected, obtains the target detection signal collected by the first piezoelectric sensor; when the target detection signal meets the fit detection condition, controls the speaker to play the fit detection audio, and controls the microphone to pick up audio to obtain fit feedback audio; determines the fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and controls the vibration component to vibrate based on the fit detection result.
[0138] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0141] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned earphone fit detection method, and can solve the technical problems of cumbersome operation procedures and poor user experience in the prior art for earphone fit detection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the earphone fit detection method provided by the above-mentioned embodiment, and will not be elaborated here.
[0142] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned earphone fit detection method when executed by a processor.
[0143] The computer program product provided by this application can solve the technical problems of the cumbersome operation process and poor user experience of the headphone fit detection in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as those of the headphone fit detection method provided by the above embodiment, and will not be elaborated here.
[0144] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for detecting earphone fit, characterized in that: The earphone fit detection method is applied to an earphone, wherein the earphone comprises at least one first piezoelectric sensor located in an ear canal contact area, a speaker, a microphone, and a vibration component, and the method comprises: When a fit detection trigger operation is detected, acquiring a target detection signal collected by the first piezoelectric sensor; When the target detection signal meets the fit detection condition, the speaker is controlled to play the fit detection audio, and the microphone is controlled to pick up the audio to obtain the fit feedback audio; A fit detection result of the earphone is determined based on the fit detection audio and the fit feedback audio, and the vibration component is controlled to vibrate based on the fit detection result.
2. The method according to claim 1, characterized in that The headset further includes at least one second piezoelectric sensor located in the user touch area, and before the step of acquiring the target detection signal collected by the first piezoelectric sensor when the fit detection trigger operation is detected, the step further includes: Acquiring a touch detection signal collected by the second piezoelectric sensor; Performing feature analysis based on the touch detection signal to determine the user's touch gesture; When the user touch gesture is a preset touch gesture, it is determined that a fit detection triggering operation is detected.
3. The method according to claim 1, characterized in that After acquiring the target detection signal collected by the first piezoelectric sensor, the method further includes: determining an ear canal contact voltage value according to the target detection signal; comparing the ear canal contact voltage value with a first voltage threshold; When the ear canal contact voltage value is greater than or equal to the first voltage threshold, it is determined that the target detection signal meets the fit detection condition.
4. The method according to claim 3, characterized in that After comparing the ear canal contact voltage value with the first voltage threshold, the method further includes: When the ear canal contact voltage value is less than the first voltage threshold, comparing the ear canal contact voltage value with the second voltage threshold; When the ear canal contact voltage value is greater than the second voltage threshold, determining that the fit test result of the earphone is a low fit test result; The vibration component is controlled to vibrate based on the low fit detection result.
5. The method according to claim 1, characterized in that The step of determining the fit detection result of the earphone based on the fit detection audio and the fit feedback audio comprises: Comparing the fit detection audio and the fit feedback audio to determine the signal loss of each frequency; The loss amounts of multiple frequencies are screened through a key frequency range to obtain signal loss amounts of multiple key frequencies; Calculate the fit score according to the signal loss amount of each key frequency to determine the fit score; Determine a fit test result of the earphone according to the fit score.
6. The method according to claim 5, characterized in that The step of calculating the fit score according to the signal loss amount of each key frequency and determining the fit score comprises: The signal loss amount of each key frequency is standardized to obtain the standardized loss amount of each key frequency; Obtain the target weight corresponding to each key frequency; The fit score is calculated according to the target weight corresponding to each key frequency and the standardized loss amount of each key frequency to obtain the fit score.
7. The method according to any one of claims 1 to 6, characterized in that The step of controlling the vibration of the vibration component based on the fit detection result comprises: Determine the vibration amplitude, vibration duration, and vibration times corresponding to the fit detection result according to the fit detection result and the fit vibration mapping relationship; The vibration component is controlled to vibrate according to the vibration amplitude, the vibration duration and the vibration frequency.
8. An earphone fit detection device, characterized in that: The earphone fit detection device comprises: an acquisition module, configured to acquire a target detection signal collected by the first piezoelectric sensor when a fit detection trigger operation is detected; A control module, configured to control the speaker to play fit detection audio and control the microphone to pick up audio to obtain fit feedback audio when the target detection signal meets the fit detection condition; A processing module is used to determine a fit detection result of the earphone based on the fit detection audio and the fit feedback audio, and control the vibration of the vibration component based on the fit detection result.
9. An earphone fit detection device, characterized in that: The earphone fit detection device includes: a memory, a processor, and an earphone fit detection program stored in the memory and executable on the processor, wherein the earphone fit detection program is configured to implement the earphone fit detection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores an earphone fit detection program, and when the earphone fit detection program is executed by the processor, the earphone fit detection method according to any one of claims 1 to 7 is implemented.