An earphone control method and device, electronic equipment and storage medium

By automatically adjusting the intensity gain of the headphones according to the user's hearing range, it solves the tedious problem of manual adjustment when using headphones, ensuring that the audio is within a safe range and avoiding hearing damage.

CN115002596BActive Publication Date: 2025-10-14ANKER INNOVATIONS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210567104.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2025-10-14
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Headphone users may feel uncomfortable during use and need to manually and tediously adjust the headphones to adjust the volume and frequency, leading to hearing damage.

Method used

By obtaining the audio sound intensity and frequency output by the headphones and comparing them with the user's hearing range obtained in advance, the intensity gain of the headphones is automatically adjusted to keep the audio component within the hearing range, including reducing or increasing the volume to avoid exceeding the hearing threshold.

Benefits of technology

The headphones automatically adjust the audio intensity and frequency during use to ensure that the audio is always within a safe range and avoid hearing damage to the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002596B_ABST
    Figure CN115002596B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of earphone control method, device, electronic equipment and storage medium, the earphone control method, comprising: the sound intensity and frequency of the audio output by the earphone in the wearing state are acquired;The hearing range of the user wearing earphone is acquired;When determining that the audio component corresponding to frequency and sound intensity is located outside hearing range, adjust the intensity gain of the audio output by earphone, so that the audio component corresponding to frequency and adjusted sound intensity is located in hearing range.The embodiment of the present application can automatically adjust the intensity gain of the earphone when detecting that the audio component corresponding to the sound intensity and frequency of the audio is located outside the hearing range of the user, so that the audio component corresponding to the frequency and the adjusted sound intensity is located in the hearing range, ensure that the earphone plays audio is always in the safe range, avoid damaging the hearing of the user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronics, and in particular to an earphone control method and device, electronic equipment and a storage medium. BACKGROUND

[0002] At present, earphones are becoming more and more popular. When using earphones, earphone users can hear the content they want to hear without disturbing others, and can also isolate themselves from external noise.

[0003] However, during the use of earphones, earphone users may manually adjust the earphones when they feel uncomfortable, and the adjustment process is relatively cumbersome. SUMMARY

[0004] To solve the above technical problems or at least partially solve the above technical problems, the present application provides an earphone control method and device, electronic equipment and a storage medium.

[0005] In a first aspect, the present application provides an earphone control method, comprising:

[0006] obtaining the sound intensity and frequency of the audio output by the earphone in a wearing state;

[0007] obtaining the hearing range of a user wearing the earphone, which is collected by pre-testing the hearing of the user;

[0008] when it is determined that the audio component corresponding to the frequency and the sound intensity is located outside the hearing range, adjusting the intensity gain of the audio output by the earphone, so that the audio component corresponding to the adjusted frequency and sound intensity is located within the hearing range.

[0009] Optionally, the adjustment of the intensity gain of the audio output by the earphone comprises:

[0010] if the audio component corresponding to the frequency and the sound intensity is greater than the pain threshold, reducing the intensity gain of the audio output by the earphone;

[0011] or, if the audio component corresponding to the frequency and the sound intensity is less than the hearing threshold, increasing the intensity gain of the audio output by the earphone.

[0012] Optionally, determining whether the earphone is in a wearing state comprises:

[0013] obtaining an internal environment noise signal collected by an internal environment microphone and an external environment noise signal collected by an external environment microphone;

[0014] determining whether the difference between the internal environment noise signal and the external environment noise signal is less than a preset threshold.

[0015] If the difference between the internal environment noise signal and the external environment noise signal is smaller than a preset threshold, it is determined that the earphone is in a wearing state.

[0016] Optionally, obtaining the hearing range of the user wearing the headset includes:

[0017] Obtain the MAC address of the headset;

[0018] Sending the MAC address to the application;

[0019] Receive the hearing range corresponding to the MAC address sent by the application.

[0020] Optionally, adjusting the intensity gain of the audio output by the earphone includes:

[0021] Get the adjusted sound intensity;

[0022] When it is determined that the audio component corresponding to the frequency and the adjusted sound intensity is outside the hearing range, the speaker is controlled to issue a first reminder message, and the first reminder message is used to instruct the user to manually adjust the wearing method of the earphone or the intensity gain of the audio output by the earphone.

[0023] Optionally, the method further includes:

[0024] Obtaining a first duration during which the headset continuously outputs audio at a current sound intensity;

[0025] When it is determined that the current sound intensity of the headset is greater than a preset audio intensity threshold and the first duration is greater than a preset first duration threshold, the speaker is controlled to issue a second reminder message, where the second reminder message is used to instruct the user to manually adjust the wearing method of the headset or the intensity gain of the audio output by the headset, wherein the preset audio intensity threshold is within the hearing range.

[0026] Optionally, the method further includes:

[0027] Obtaining a second time duration during which the external environment microphone of the headset continuously collects an external environment noise signal of a current sound intensity or continuously collects an external environment noise signal of a current frequency;

[0028] When determining that the sound intensity of the external environmental noise signal is greater than a preset noise intensity threshold or the frequency of the external environmental noise signal is greater than a preset frequency threshold, and the second duration is greater than the preset second duration threshold, reducing the intensity gain of the environmental noise signal;

[0029] When it is determined that the sound intensity of the ambient noise signal after reducing the intensity gain of the ambient noise signal is greater than the preset noise intensity threshold, the speaker is controlled to issue a third reminder message, and the third reminder message is used to instruct the user to manually adjust the wearing method of the headset.

[0030] In a second aspect, the present application provides an earphone control device, comprising:

[0031] A first acquisition module is used to obtain the sound intensity and frequency of the audio output by the earphone in a worn state;

[0032] A second acquisition module is configured to acquire the hearing range of the user wearing the headset, where the hearing range is collected by performing a hearing test on the user in advance;

[0033] The determining module is configured to adjust the intensity gain of the audio output by the earphone when determining that the audio component corresponding to the frequency and the sound intensity is outside the hearing range, so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range.

[0034] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0035] Memory for storing computer programs;

[0036] The processor is configured to implement any of the earphone control methods described in the first aspect when executing a program stored in the memory.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium, on which a program of an earphone control method is stored. When the program of the earphone control method is executed by a processor, the steps of any earphone control method described in the first aspect are implemented.

[0038] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0039] The embodiment of the present invention can automatically adjust the intensity gain of the earphones when it detects that the audio intensity and the audio component corresponding to the frequency are outside the user's hearing range, so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range, ensuring that the audio played by the earphones is always within a safe range to avoid damaging the user's hearing. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0042] Figure 1 A flowchart of an earphone control method provided by an embodiment of the present application;

[0043] Figure 2 A schematic diagram of an auditory range curve provided by an embodiment of the present application;

[0044] Figure 3 A structural diagram of an earphone control device provided by an embodiment of the present application;

[0045] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application.

[0047] During the use of earphones, the user may manually adjust the earphones when feeling uncomfortable, and the adjustment process is relatively cumbersome. Therefore, the embodiments of the present application provide an earphone control method, device, electronic device and storage medium. The earphone control method can be applied to earphones, for example, active noise reduction earphones.

[0048] As shown in Figure 1 The earphone control method can include the following steps:

[0049] Step S101, obtaining the sound intensity and frequency of audio output by earphones in a wearing state;

[0050] In the embodiments of the present application, the wearing state refers to the state in which the earphones are worn by the user.

[0051] The sound intensity refers to the volume of the audio played by the earphones. The sound intensity can be collected by the internal environment microphone arranged on the earphones, or the corresponding relationship between the earphone volume level and the sound intensity can be set in advance, and the corresponding sound intensity can be queried according to the current volume level of the earphones.

[0052] Different tones in audio correspond to different frequencies, so the frequency of audio refers to the frequency of one or more notes at the current moment.

[0053] In this step, when it is determined that the earphone is in a wearing state, the sound intensity of the audio played by the earphone and the frequency of the sound signal at the current moment can be obtained.

[0054] Step S102: Acquire the hearing range of the user wearing the earphone.

[0055] In the embodiment of the present invention, the hearing range is collected by performing a hearing test on the user in advance; since the hearing conditions of different users are different, the hearing range can be obtained by performing a hearing test on the user in advance using an application. Figure 2 The figure shows the hearing range curve of a user in actual application. The horizontal axis of the hearing range curve is frequency, and the vertical axis is sound pressure level. The hearing range can be obtained according to the hearing range curve.

[0056] Step S103 : When it is determined that the audio component corresponding to the frequency and the sound intensity is outside the hearing range, adjust the intensity gain of the audio output by the earphone so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range.

[0057] In the embodiment of the present invention, the hearing range may refer to the range between the hearing threshold and the pain threshold.

[0058] In this step, the audio component whose horizontal axis is the frequency of the sound signal at the current moment and whose vertical axis is the acquired sound intensity can be found in the auditory range curve, and then the audio component can be compared with the auditory range to determine whether the audio range is within the auditory range or outside the auditory range.

[0059] In the embodiment of the present invention, the intensity gain may refer to the amplification factor of the audio amplifier in the earphone, and the volume of the played audio can be adjusted by adjusting the intensity gain.

[0060] In this step, the intensity gain of the earphone can be automatically adjusted, thereby adjusting the volume of the audio played by the earphone so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range.

[0061] The embodiment of the present invention can automatically adjust the intensity gain of the earphones when it detects that the audio intensity and the audio component corresponding to the frequency are outside the user's hearing range, so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range, ensuring that the audio played by the earphones is always within a safe range to avoid damaging the user's hearing.

[0062] In yet another embodiment of the present invention, adjusting the intensity gain of the audio output by the earphone includes:

[0063] If the audio component corresponding to the frequency and the sound intensity is greater than the pain threshold, reducing the intensity gain of the audio output by the earphone;

[0064] like Figure 2 As shown, the auditory range curve includes the pain threshold and the hearing threshold. When the audio component corresponding to the frequency and sound intensity is greater than the pain threshold, that is, the audio component is located at Figure 2 If the audio component is above the pain threshold, it means that the user will feel discomfort or pain when hearing it. At this time, it is necessary to reduce the intensity gain of the headphones. In this way, the audio component corresponding to the frequency and the adjusted sound intensity will be below the pain threshold, that is, within the hearing range, and the user will not feel discomfort or pain.

[0065] Alternatively, if the audio component corresponding to the frequency and the sound intensity is less than the hearing threshold, the intensity gain of the audio output by the earphone is increased.

[0066] When the audio component corresponding to the frequency and sound intensity is less than the hearing threshold, that is, the audio component is located at Figure 2 If the audio component is below the hearing threshold, it means that the user cannot hear or cannot hear clearly the audio component. At this time, it is necessary to increase the intensity gain of the headphones. In this way, the audio component corresponding to the frequency and the adjusted sound intensity will be above the hearing threshold, that is, within the hearing range, and the user will not be unable to hear it clearly or cannot hear it.

[0067] In yet another embodiment of the present invention, determining whether the headset is in a wearing state includes:

[0068] Step 201: Acquire an internal environment noise signal collected by an internal environment microphone and an external environment noise signal collected by an external environment microphone;

[0069] In an embodiment of the present invention, the internal environment microphone may refer to a microphone arranged inside the earmuff of the headset, and the internal environment microphone is used to collect noise signals of the internal environment inside the earmuff. The external environment microphone may refer to a microphone arranged outside the earmuff of the headset, and the external environment microphone is used to collect noise signals of the external environment outside the earmuff.

[0070] Step 202: Determine whether the difference between the internal environmental noise signal and the external environmental noise signal is less than a preset threshold;

[0071] In this step, the difference between the internal environmental noise signal and the external environmental noise signal at the same time can be compared, such as 10 dB, and the calculated difference is compared with a preset threshold to obtain a magnitude relationship between the difference and the preset threshold.

[0072] Step 203: If the difference between the internal environment noise signal and the external environment noise signal is less than a preset threshold, it is determined that the earphone is in a wearing state.

[0073] Because earmuffs can isolate sounds to a certain extent, if the difference is less than the preset threshold, it indicates that the difference in noise signals inside and outside the earmuffs is small, indicating that the headphones are being worn; otherwise, it indicates that the headphones are not being worn.

[0074] In yet another embodiment of the present invention, obtaining the hearing range of the user wearing the headset includes:

[0075] Step 301, obtaining the MAC address of the headset;

[0076] Since each electronic device has a unique MAC address, the headset's own MAC address can be automatically read.

[0077] Step 302: Send the MAC address to the application;

[0078] In the embodiment of the present invention, the application program may be installed in the user's mobile phone, and the headset may communicate with the user's mobile phone via Bluetooth and send its own MAC address to the user's mobile phone.

[0079] After the user's mobile phone receives the MAC address of the headset, the application will read the MAC address of the headset. Since the application has tested the user's hearing in advance and obtained the user's corresponding hearing range curve, after obtaining the MAC address, the corresponding hearing range can be found according to the MAC address of the headset.

[0080] Searching for the corresponding hearing range through the MAC address of the headset can facilitate binding the user to the hearing range, eliminating the need for the user to manually search for the corresponding hearing range. This simplifies operation and improves efficiency. Moreover, since the hearing ranges of different human bodies may vary, ensuring that each user has a corresponding hearing range can avoid all users sharing the same hearing range, which may cause hearing damage to some users.

[0081] Step 303: Receive the hearing range corresponding to the MAC address sent by the application.

[0082] In this step, in order to facilitate the earphone to subsequently determine whether the audio component is within the hearing range, the earphone can automatically store the audio component in the storage space of the earphone after receiving the audio component within the hearing range.

[0083] In yet another embodiment of the present invention, adjusting the intensity gain of the audio output by the earphone includes:

[0084] Step 401, obtaining the adjusted sound intensity;

[0085] During the process of adjusting the sound intensity of the headphone output audio, it may happen that the audio component corresponding to the sound intensity after the initial adjustment is still outside the hearing range. Therefore, in this step, the adjusted sound intensity can be obtained.

[0086] Step 402: When it is determined that the audio component corresponding to the frequency and the adjusted sound intensity is outside the hearing range, control the speaker to issue a first reminder message.

[0087] In this step, the audio component corresponding to the adjusted sound intensity and frequency may be compared with the hearing range in the same manner as in step S103 to determine whether the audio component is outside the hearing range.

[0088] In the embodiment of the present invention, the first reminder information is used to instruct the user to manually adjust the wearing method of the headset or the intensity gain of the audio output by the headset.

[0089] Since the audio components corresponding to the adjusted frequency and the adjusted sound intensity are outside the hearing range, it means that the adjusted audio components may still cause damage to the user's hearing. Therefore, at this time, it is necessary to send a first reminder message to the user to prompt the user to manually take off the headphones or manually adjust the intensity gain of the headphones.

[0090] In yet another embodiment of the present invention, the method further comprises:

[0091] Step 501, obtaining a first duration during which the earphone continuously outputs audio at a current sound intensity;

[0092] In this step, the duration that the headset maintains the current intensity gain can be obtained to obtain the first duration. In actual applications, a timer can be used to record the switching moment when the headset is switched to an intensity gain, and then the time length between the current moment for obtaining the first duration and the switching moment can be calculated to obtain the first duration.

[0093] Step 502: When it is determined that the current sound intensity of the earphone is greater than a preset audio intensity threshold and the first duration is greater than a preset first duration threshold, control the speaker to issue a second reminder message.

[0094] Since the hearing range refers to the range of sounds that the human ear can hear, there are still intervals within the hearing range where prolonged listening can damage hearing. Therefore, in this embodiment of the present invention, the preset audio intensity threshold is within the hearing range. To facilitate prompting the user to make manual adjustments in a timely manner, the second reminder information is used to instruct the user to manually adjust the wearing method of the headset or the intensity gain of the audio output by the headset.

[0095] Since continuously wearing headphones to listen to audio with high or low sound intensity may damage the user's hearing, a second reminder message needs to be sent to the user to remind the user that the user has been listening to audio with headphones for too long and can manually take off the headphones or manually adjust the intensity gain of the headphones.

[0096] In yet another embodiment of the present invention, the method further comprises:

[0097] Step 601: Obtain a second duration during which the external environment microphone of the headset continuously collects an external environment noise signal of a current sound intensity or continuously collects an external environment noise signal of a current frequency;

[0098] In this step, the duration during which the external environment microphone continuously collects the external environment noise signal of the current sound intensity or continuously collects the external environment noise signal of the current frequency can be obtained to obtain the second duration. In actual applications, a timer can be used to start timing when the external environment microphone starts to collect the external environment noise signal of the current sound intensity or the current frequency, record the start time, and then calculate the time length between the current time and the start time for obtaining the second duration to obtain the second duration.

[0099] Step 602: When it is determined that the sound intensity of the external environmental noise signal is greater than a preset noise intensity threshold or the frequency of the external environmental noise signal is greater than a preset frequency threshold, and the second duration is greater than the preset second duration threshold, reducing the intensity gain of the environmental noise signal;

[0100] Since the user continuously hears external ambient noise with a high intensity or high frequency when wearing headphones, it may cause damage to the user's hearing. Therefore, at this time, it is necessary to reduce the intensity gain of the ambient noise signal. Specifically, the gain of the audio amplifier corresponding to the external ambient microphone can be reduced to reduce the intensity gain of the ambient noise signal.

[0101] Step 603: When it is determined that the sound intensity of the ambient noise signal after reducing the intensity gain of the ambient noise signal is greater than a preset noise intensity threshold, control the speaker to issue a third reminder message.

[0102] In an embodiment of the present invention, the third reminder information is used to instruct the user to manually adjust the wearing method of the headset.

[0103] The embodiment of the present invention can send a third reminder message to the user to remind the user that the external environment interference is too loud and the user can manually take off the earphones and go to an environment with less noise.

[0104] In another embodiment of the present invention, a headset control device is provided. Figure 3 Shown, including:

[0105] The first obtaining module 11 is configured to obtain the sound intensity and frequency of audio output by the earphone in a wearing state.

[0106] The second obtaining module 12 is configured to obtain the hearing range of a user wearing the earphone, which is collected by pre-hearing test on the user.

[0107] The determining module 13 is configured to determine that the audio component corresponding to the frequency and the sound intensity is located outside the hearing range, and adjust the intensity gain of the audio output by the earphone, so that the audio component corresponding to the frequency and the adjusted sound intensity is located within the hearing range.

[0108] In yet another embodiment of the present application, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus.

[0109] The memory is configured to store a computer program.

[0110] The processor is configured to execute the program stored on the memory, and implement the earphone control method of any of the preceding method embodiments.

[0111] The electronic device provided by the embodiment of the present application realizes, through the processor executing the program stored on the memory, automatic adjustment of the intensity gain of the earphone when detecting that the audio component corresponding to the sound intensity and frequency of the audio is located outside the hearing range of the user, so that the audio component corresponding to the frequency and the adjusted sound intensity is located within the hearing range, ensuring that the earphone plays the audio within a safe range and avoiding damage to the user's hearing.

[0112] The communication bus 1140 mentioned above can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 4 Only one thick line is used in the above-mentioned electronic device, but it does not mean that there is only one bus or one type of bus.

[0113] The communication interface 1120 is configured to complete communication between the above-mentioned electronic device and other devices.

[0114] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0115] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0116] In another embodiment of the present invention, a computer-readable storage medium is further provided, on which a program of the headphone control method is stored. When the program of the headphone control method is executed by a processor, the steps of the headphone control method described in any of the aforementioned method embodiments are implemented.

[0117] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0118] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A headphone control method, characterized in that: include: Get the sound intensity and frequency of the audio output by the headphones in the wearing state; Acquiring the hearing range of the user wearing the headset, where the hearing range is collected in advance through a hearing test on the user, and the hearing range refers to the range between the hearing threshold and the pain threshold; When it is determined that the audio component corresponding to the frequency and the sound intensity is outside the hearing range, adjusting the intensity gain of the audio output by the earphone so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range; The adjusting the intensity gain of the audio output by the earphone includes: If the audio component corresponding to the frequency and the sound intensity is less than the hearing threshold, increasing the intensity gain of the audio output by the earphone; The method further comprises: Obtaining a second time duration during which the external environment microphone of the headset continuously collects an external environment noise signal of a current sound intensity or continuously collects an external environment noise signal of a current frequency; When determining that the sound intensity of the external environmental noise signal is greater than a preset noise intensity threshold or the frequency of the external environmental noise signal is greater than a preset frequency threshold, and the second duration is greater than the preset second duration threshold, reducing the intensity gain of the environmental noise signal; When it is determined that the sound intensity of the ambient noise signal after reducing the intensity gain of the ambient noise signal is greater than the preset noise intensity threshold, the speaker is controlled to issue a third reminder message, and the third reminder message is used to instruct the user to manually adjust the wearing method of the headset.

2. The headphone control method according to claim 1, wherein: The adjusting the intensity gain of the audio output by the earphone further includes: If the audio component corresponding to the frequency and the sound intensity is greater than the pain threshold, the intensity gain of the audio output by the earphone is reduced.

3. The earphone control method according to claim 1, wherein: Determining that the headset is in a wearing state includes: Acquire an internal environmental noise signal collected by an internal environmental microphone and an external environmental noise signal collected by an external environmental microphone; determining whether a difference between the internal environmental noise signal and the external environmental noise signal is less than a preset threshold; If the difference between the internal environment noise signal and the external environment noise signal is smaller than a preset threshold, it is determined that the earphone is in a wearing state.

4. The earphone control method according to claim 1, wherein: The obtaining of the hearing range of the user wearing the headset includes: Obtain the MAC address of the headset; Sending the MAC address to the application; Receive the hearing range corresponding to the MAC address sent by the application.

5. The earphone control method according to claim 1, wherein: The adjusting the intensity gain of the audio output by the earphone includes: Get the adjusted sound intensity; When it is determined that the audio component corresponding to the frequency and the adjusted sound intensity is outside the hearing range, the speaker is controlled to issue a first reminder message, and the first reminder message is used to instruct the user to manually adjust the wearing method of the earphone or the intensity gain of the audio output by the earphone.

6. The earphone control method according to claim 1, wherein: The method further comprises: Obtaining a first duration during which the headset continuously outputs audio at a current sound intensity; When it is determined that the current sound intensity of the headset is greater than a preset audio intensity threshold and the first duration is greater than a preset first duration threshold, the speaker is controlled to issue a second reminder message, where the second reminder message is used to instruct the user to manually adjust the wearing method of the headset or the intensity gain of the audio output by the headset, wherein the preset audio intensity threshold is within the hearing range.

7. An earphone control device, characterized in that: include: A first acquisition module is used to obtain the sound intensity and frequency of the audio output by the earphone in a worn state; a second acquisition module, configured to acquire the hearing range of the user wearing the headset, wherein the hearing range is collected in advance through a hearing test of the user, and the hearing range refers to a range between a hearing threshold and a pain threshold; a determination module, configured to, when determining that the audio component corresponding to the frequency and the sound intensity is outside the hearing range, adjust the intensity gain of the audio output by the earphone so that the audio component corresponding to the frequency and the adjusted sound intensity is within the hearing range; The adjusting the intensity gain of the audio output by the earphone includes: if the audio component corresponding to the frequency and the sound intensity is less than the hearing threshold, increasing the intensity gain of the audio output by the earphone; The device is also used to: obtain the second time duration during which the external environment microphone of the headset continuously collects the external environment noise signal of the current sound intensity or continuously collects the external environment noise signal of the current frequency; determine that the sound intensity of the external environment noise signal is greater than a preset noise intensity threshold or the frequency of the external environment noise signal is greater than a preset frequency threshold, and when the second time duration is greater than the preset second time duration threshold, reduce the intensity gain of the environment noise signal; and control the speaker to issue a third reminder message when it is determined that the sound intensity of the environment noise signal after reducing the intensity gain of the environment noise signal is greater than the preset noise intensity threshold, wherein the third reminder message is used to instruct the user to manually adjust the wearing method of the headset.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the earphone control method according to any one of claims 1 to 6 when executing the program stored in the memory.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program of the headphone control method, and when the program of the headphone control method is executed by a processor, the steps of the headphone control method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Audio output control method and electronic equipment

    CN103458339A

  • Method and device for adjusting sound intensity, electronic equipment and computer storage medium

    CN110337052A

  • Consumer electronics device with headphones

    US20090147962A1

  • Method and device for detecting earphone wearing status, and earphone

    US20210266658A1