CN115314790A - Earphone control method, earphone control device, electronic equipment and storage medium - Google Patents

Earphone control method, earphone control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115314790A
CN115314790A CN202110496882.5A CN202110496882A CN115314790A CN 115314790 A CN115314790 A CN 115314790A CN 202110496882 A CN202110496882 A CN 202110496882A CN 115314790 A CN115314790 A CN 115314790A
Authority
CN
China
Prior art keywords
acceleration
earphone
mode
audio processing
processing mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110496882.5A
Other languages
Chinese (zh)
Inventor
李国成
沈允杭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110496882.5A priority Critical patent/CN115314790A/en
Publication of CN115314790A publication Critical patent/CN115314790A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1016Earpieces of the intra-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The application discloses an earphone control method, an earphone control device, electronic equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: acquiring a first acceleration representing the acceleration of a wearing object of the earphone; based on the first acceleration, switching an audio processing mode of the headset to a specified mode for balancing air pressure inside and outside the ear of the wearing subject. The method realizes automatic switching of the audio processing mode of the earphone according to the acceleration of the earphone, so that the audio processing mode of the earphone can be adjusted in time, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.

Description

Earphone control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of device control technologies, and in particular, to an earphone control method and apparatus, an electronic device, and a storage medium.
Background
With the development of intelligent terminal technology, the types of earphones are more and more abundant, for example, noise reduction earphones, stereo earphones and the like, so that colorful hearing experience is brought to users. However, when the earphone is worn in some special scenes, discomfort may be brought to the ear of the user, and the user experience is seriously affected.
Disclosure of Invention
The application provides an earphone control method, an earphone control device, electronic equipment and a storage medium, so as to solve the problems.
In a first aspect, an embodiment of the present application provides an earphone control method, where the method includes: acquiring a first acceleration representing the acceleration of a wearing object of the earphone; switching an audio processing mode of the headset to a specified mode for balancing air pressure inside and outside the ear of the wearing subject based on the first acceleration.
In a second aspect, an embodiment of the present application provides an earphone control device, where the earphone control device includes: the data acquisition module is used for acquiring a first acceleration which represents the acceleration of a wearing object of the earphone; and the control module is used for switching the audio processing mode of the earphone into a specified mode based on the first acceleration, and the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the headset control method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the method for controlling a headset according to the first aspect.
According to the earphone control method, the earphone control device, the electronic equipment and the storage medium, a first acceleration is obtained, and the first acceleration represents the acceleration of a wearing object of the earphone; based on the first acceleration, the audio processing mode of the headset is switched to a specified mode, and the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone is automatically switched according to the acceleration of the earphone, the audio processing mode of the earphone can be adjusted in time, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a headset control method according to an embodiment of the present application.
Fig. 2 shows a schematic diagram of a user riding an elevator at a high speed ascending according to an embodiment of the application.
Fig. 3 shows a schematic diagram of the descent of a user boarding high-speed elevator provided by the embodiment of the application.
Fig. 4 shows a flowchart of a headphone control method according to another embodiment of the present application.
Fig. 5 is a diagram illustrating an exemplary effect of adjusting the degree of expansion and contraction of the coil according to the coil expansion and contraction parameter provided by the embodiment of the present application.
Fig. 6 is a diagram illustrating another exemplary effect of adjusting the degree of expansion and contraction of the coil according to the coil expansion and contraction parameter provided by the embodiment of the present application.
Fig. 7 shows a flowchart of a headphone control method according to another embodiment of the present application.
Fig. 8 shows a block diagram of a headphone control device according to an embodiment of the present application.
Fig. 9 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 10 illustrates a storage unit for storing or carrying program codes for implementing an earphone control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the advancement of science and technology, the requirements of users on consumer products such as earphones are higher and higher, and not only are the sound quality and comfort, but also what experience the earphones can bring to the users, especially what experience the earphones can bring to the users in some special application environments, is also gradually becoming an important standard for judging a pair of earphones.
The airplane can generate overweight during taking off and weightlessness during landing. The high-speed elevator can cause overweight phenomenon when ascending and weightlessness phenomenon when descending. These phenomena all cause changes in the air pressure in the ear, thereby causing a sense of pressure on the tympanic membrane and causing discomfort to the body. As a way of alleviating the physical discomfort, the air pressure in the ear can be autonomously adjusted by chewing gum or wearing an earplug, thereby alleviating the physical discomfort. However, chewing gum or wearing earplugs are all based on the initiative of the user, which cannot realize the self-regulation and is not convenient to realize. And articles such as chewing gum, earplugs and the like need to be supplemented regularly and carried about, which may make the user inconvenient to go out. At present, no earphone capable of relieving the oppression feeling of the air pressure inside and outside the ear to the tympanic membrane under an overweight or weightless environment so as to relieve the discomfort of the body exists.
The inventor finds, through long-term research, that the acceleration of a wearing object of the headset can be represented by acquiring a first acceleration; based on the first acceleration, the audio processing mode of the headset is switched to a specified mode, and the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone is automatically switched according to the change of the acceleration of the earphone, the audio processing mode of the earphone can be adjusted in time, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Therefore, in order to improve the above problems, the inventor proposes a headphone control method, an apparatus, an electronic device, and a storage medium, which are provided by the present application, and can automatically switch the audio processing mode of the headphone according to the change of the acceleration of the headphone, so that the audio processing mode of the headphone can be adjusted in time, and the uncomfortable feeling of wearing the headphone in a special scene is reduced.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of an earphone control method according to an embodiment of the present application is shown, where the earphone control method is provided in this embodiment and can be applied to an electronic device, where the electronic device in this embodiment may be a mobile communication device with a network connection function, such as a mobile phone and a watch, or an audio device, such as an earphone. When the electronic device is a headset, the acceleration sensor can be separately arranged in the headset. The headset in this embodiment may be a bluetooth headset, and in some other possible embodiments, the headset may also be a wired headset. The method comprises the following steps:
step S110: acquiring a first acceleration, wherein the first acceleration represents the acceleration of a wearing object of the earphone.
In this embodiment, when the electronic device is a mobile phone, a watch, or the like, the mobile phone or the watch may perform data interaction with the earphone, and an accelerometer, a gyroscope, or an acceleration sensor in the mobile phone or the watch may acquire the first acceleration. An accelerometer (accelerometer) is an instrument for measuring acceleration, and consists of a detection mass (also called a sensitive mass), a support, a potentiometer, a spring, a damper and a shell. An acceleration sensor is a device that can continuously give an acceleration signal.
And when the electronic device is a headset, the first acceleration can be acquired by an acceleration sensor in the headset. The first acceleration may be an acceleration of a wearing object (i.e., a user) of the headset. When the user boards a high-speed elevator or an airplane, the first acceleration can also be understood as the real-time acceleration of the high-speed elevator or the airplane.
Step S120: switching an audio processing mode of the headset to a specified mode for balancing air pressure inside and outside the ear of the wearing subject based on the first acceleration.
In this embodiment, the audio processing mode of the earphone may include a normal mode, a pass-through mode, and a strong noise reduction mode. The earphone in the transparent mode may have no noise reduction effect, or the noise reduction effect of the earphone in the transparent mode is weaker than that of the earphone in the normal mode. The earphone in the strong noise reduction mode has a strong noise reduction effect, namely the noise reduction effect is stronger than that of the earphone in the common mode.
In this embodiment, the direction of the first acceleration may be upward or downward. Optionally, if the user boards the high-speed elevator, when the direction of obtaining the first acceleration is upward, it may be determined that the user or the high-speed elevator is in an overweight state, and when the direction of obtaining the first acceleration is downward, it may be determined that the user or the high-speed elevator is in a weightless state.
When the high-speed elevator descends, because the air pressure outside the elevator can also increase after the height is reduced, in order to keep balance, the air pressure in the elevator can also increase, thereby causing the eardrum to sink inwards, and causing the body of a user to be uncomfortable. When the high-speed elevator rises, the air pressure outside the elevator is reduced along with the rise of the height, and in order to keep balance, the air pressure outside the elevator is reduced, so that eardrums expand outwards, and the body of a user is uncomfortable. In order to improve the above problem, in this embodiment, the audio processing mode of the earphone may be adjusted based on the obtained direction of the first acceleration, so that the internal and external air pressures of the ear of the user after adjustment may be relatively balanced, thereby reducing or avoiding the uncomfortable feeling of wearing the earphone when riding a high-speed elevator.
In this embodiment, the earphone may include an ear cap, and a dynamic coil may be disposed in the ear cap, and the number of the coils may not be limited. Wherein, the flexible degree of coil can be adjusted, and the flexible degree of coil is different, and the laminating degree between earcap and the ear can be different. As one way, the degree of expansion and contraction of the coil in the earcap can be adjusted based on the obtained direction of the first acceleration, thereby realizing adjustment of the audio processing mode of the earphone.
As an embodiment, as shown in fig. 2, when the user gets on the high-speed elevator and ascends, if the direction of obtaining the first acceleration is upward, it can be determined that the elevator is in the overweight state. If the user in the elevator wears the earphones (not shown in the figure), in order to relieve the oppression to the drum membrane in the ear of the user due to the reduction of the air pressure in the rising process of the elevator, the audio processing mode of the earphones can be switched to a strong noise reduction mode, so that the air pressure in the ear of the user is increased, and the uncomfortable feeling is reduced.
In this embodiment, fall under the mode of making an uproar by force, can detect the earcap of earphone and the laminating degree of ear, if there is the gap between earcap and the ear, can calibrate the laminating degree of earcap and ear, for example, can make the earcap of earphone hug closely the ear through the mode of the flexible degree of the coil in the increase earcap, thereby airtight (closure) nature between earcap and the ear has been increased, in order to reach isolated external sound's effect, thereby can realize increasing ear internal gas pressure, and play better noise reduction effect.
Besides, the expansion degree of the coil in the earcap is increased, and the fitting processing can be actively carried out on the electric signals corresponding to the sound in the earphone (the sound of the earphone is the electric signals in the earphone) through a related algorithm (such as a positive feedback algorithm), so that the electric signals become more gentle, and further the sound signals with better hearing experience are obtained. Therefore, when the audio processing mode is switched to the strong noise reduction mode, the sound heard in the ears of the user is more comfortable, and the sound outside the ears can be better isolated, so that the uncomfortable feeling that the user wears the earphone in an overweight state is effectively relieved.
As another embodiment, as shown in fig. 3, when the user gets on the express elevator and descends, if the direction of obtaining the first acceleration is downward, it can be determined that the elevator is in a weightless state. If the user in the elevator wears the earphones (not shown in the figure) at this moment, in order to relieve the oppression on the tympanic membrane in the ear of the user due to the increase of the air pressure in the descending process of the elevator, the audio processing mode of the earphones can be switched into a transparent mode, so that the air pressure in the ear of the user is reduced, and the uncomfortable feeling is reduced. In this embodiment, under the penetrating mode, can let external environment sound spread into the ear to can hear external sound, thereby reduce the interior atmospheric pressure of ear.
It should be noted that, before the audio processing mode of the earphone is switched, the audio processing mode of the earphone may not be limited, for example, before the audio processing mode of the earphone is switched to the strong noise reduction mode, the audio processing mode of the earphone may be the normal mode or the pass-through mode, and similarly, before the audio processing mode of the earphone is switched to the pass-through mode, the audio processing mode of the earphone may be the normal mode or the strong noise reduction mode.
Optionally, if the audio processing mode of the headset is the strong noise reduction mode before the audio processing mode of the headset is switched to the strong noise reduction mode, the strong noise reduction mode may be maintained, that is, the mode is not repeatedly switched in the same state. For example, when a user gets on a high-speed elevator to ascend, the number of floors where the high-speed elevator stops may be multiple, and if the direction of the first acceleration is upward in the process of stopping the multiple floors, after the audio processing mode of the earphone is switched to the strong noise reduction mode for the first time, the audio processing mode does not need to be switched repeatedly until the elevator runs to the stopping floor at the top end.
Optionally, before the audio processing mode of the headset is switched to the designated mode, a change instruction of the audio processing mode may be sent to the headset, where the change instruction is used to prompt the headset to change the audio processing mode, and then instruct the headset to switch the audio processing mode of the headset to the designated mode based on the change instruction. For example, in a specific application scenario, if the electronic device is a mobile phone, the mobile phone and the headset may be connected in a wireless communication manner such as bluetooth, and when the mobile phone detects that the direction of the acceleration of the elevator where the user wearing the headset is located is upward, an audio processing mode change instruction may be generated, and the change instruction is sent to the headset. Correspondingly, if the mobile phone detects that the acceleration direction of the elevator where the user wearing the earphone is located is downward, a change instruction can be sent to the earphone to instruct the earphone to switch the audio processing mode into the transparent mode based on the change instruction.
According to the earphone control method provided by the embodiment, the first acceleration is obtained and represents the acceleration of a wearing object of the earphone; based on the first acceleration, the audio processing mode of the headset is switched to a specified mode, and the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone can be automatically switched according to the acceleration of the earphone, the audio processing mode of the earphone can be timely adjusted, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Referring to fig. 4, a flowchart of an earphone control method according to another embodiment of the present application is shown, where this embodiment provides an earphone control method applicable to an electronic device, and the method includes:
step S210: acquiring a first acceleration, wherein the first acceleration represents the acceleration of a wearing object of the earphone.
Step S220: and acquiring a difference value to be detected based on the first acceleration and a second acceleration, wherein the second acceleration represents the gravity acceleration.
In this embodiment, the second acceleration represents a gravitational acceleration of an environment in which the user is located. For example, when the user boards a high-speed elevator, the second acceleration may be understood as the gravitational acceleration of the elevator, and when the user boards an airplane, the second acceleration may be understood as the gravitational acceleration of the airplane. As one way, the geographical position of the elevator or the aircraft may be determined first, and then the gravitational acceleration of the elevator or the aircraft may be determined based on the geographical position.
In order to more accurately help a user to reduce the uncomfortable feeling of wearing the earphone in an overweight or weightless environment, the difference value to be detected can be obtained based on the first acceleration and the second acceleration, so that the difference value to be detected can be compared with a target threshold value subsequently, and whether the audio processing mode of the earphone is switched or not is determined according to the comparison result.
In this embodiment, an environment where a user is located is taken as an example of an elevator, when the elevator is in an overweight state, the direction of the first acceleration may be opposite to the direction of the second acceleration, and when the elevator is in a weightless state, the direction of the first acceleration may be the same as the direction of the second acceleration. Optionally, the value of the first acceleration may be greater than the value of the second acceleration, and the value of the first acceleration may also be smaller than the value of the second acceleration. When the elevator is in an overweight state, the upward direction can be taken as the positive direction, and when the elevator is in a weightless state, the downward direction can be taken as the positive direction.
As an embodiment, if the direction of the first acceleration is the same as the direction of the second acceleration (the default direction of the gravitational acceleration is vertical downward), it may be determined that the elevator is in a weightless state.
As another embodiment, if the direction of the first acceleration is opposite to the direction of the second acceleration, it can be determined that the elevator is in the overweight condition, and in this way, the second acceleration can be subtracted from the first acceleration to obtain the difference to be detected. In this embodiment, the difference to be detected is a positive value.
Step S230: and if the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone into a specified mode, wherein the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object.
The calculated difference value to be detected is compared with the target threshold value, so that whether the current air pressure in the elevator brings strong in-ear tympanic membrane pressing feeling to a user or not can be accurately judged. Optionally, if the difference to be detected is greater than the target threshold, it can be determined that the current air pressure in the elevator brings a strong sense of pressure of the tympanic membrane in the ear to the user. And when the difference value to be detected is smaller than or equal to the target threshold value, the current air pressure in the elevator can be judged to be in the range which can be borne by the ears of the user, namely the current air pressure in the elevator does not bring strong in-ear tympanic membrane pressing sense to the user.
In this embodiment, the elevator is in different states, and the corresponding target thresholds are different. When the elevator is in an overweight state, the corresponding target threshold value may be a first threshold value, and when the elevator is in a weightless state, the corresponding target threshold value may be a second threshold value, where a numerical value of the first threshold value is different from a numerical value of the second threshold value, and neither the first threshold value nor the second threshold value is limited in this embodiment.
In one embodiment, if the direction of the first acceleration is the same as the direction of the second acceleration, it indicates that the elevator is in a weightless state, and at this time, if the difference to be detected is greater than the target threshold (here, the second threshold), the audio processing mode of the earphones may be switched to the first mode (here, the pass-through mode). When the difference value to be detected is smaller than or equal to the second threshold value, the detection can be performed again, that is, the first acceleration under the weightless state is obtained again until the obtained difference value to be detected is larger than the second threshold value.
In another embodiment, if the direction of the first acceleration is opposite to the direction of the second acceleration, it indicates that the elevator is in an overweight state, and at this time, if the detected difference is greater than the target threshold (here, the first threshold), the audio processing mode of the headphones may be switched to the second mode (here, the strong noise reduction mode). When the difference value to be detected is smaller than or equal to the second threshold value, the detection can be performed again, that is, the first acceleration under the overweight condition is obtained again until the obtained difference value to be detected is larger than the first threshold value. The strong noise reduction mode is different from the transparent mode, the amount of audio allowed to pass through by the strong noise reduction mode in the embodiment is less than that allowed by the transparent mode, and the air pressure in the ears can be increased by allowing less audio to pass through the earphones, so that the noise reduction effect in the strong noise reduction mode is ensured; by allowing a greater amount of audio through the earpiece, a reduction in the air pressure within the ear can be achieved so that external sounds can be heard. Optionally, the noise reduction effect in the strong noise reduction mode is stronger than the noise reduction effect in the transparent mode.
Optionally, when the difference to be detected is smaller than or equal to the target threshold (at this time, the target threshold may be the aforementioned first threshold or the second threshold), the first acceleration may be redetected, including redetecting the first acceleration in the overweight state, or redetecting the first acceleration in the weightless state. At this time, if the number of times of re-detecting the first acceleration reaches the specified number of times (for example, 6 times, the specific numerical value of the specified number of times may not be limited), the difference to be detected is still less than or equal to the target threshold, which indicates that the first acceleration is stable at this time, the detection may not be continued, and the audio processing mode of the headphone may not be adjusted. Optionally, if the number of times of re-detecting the first acceleration reaches the specified number of times, and the difference to be detected is greater than the target threshold, the audio processing mode of the earphone may be adjusted according to the aforementioned adjustment manner, for example, the audio processing mode of the earphone in the overweight state is adjusted to a strong noise reduction mode, and the audio processing mode of the earphone in the weightless state is adjusted to a transparent mode.
As a mode, if the direction of the first acceleration is the same as the direction of the second acceleration, it represents that the elevator is in a weightless state, and at this time, when the difference to be detected is less than or equal to the target threshold, noise reduction processing on the audio frequency of the earphone may be suspended. Specifically, the noise reduction function of the earphone may be temporarily turned off, or the noise reduction processing of the current audio signal may be suspended, so that a small amount of external ear sound may enter the ear, thereby reducing the pressure in the ear and reducing the discomfort.
As another mode, if the direction of the first acceleration is opposite to the direction of the second acceleration, it indicates that the elevator is in an overweight state, and at this time, when the difference to be detected is less than or equal to the target threshold, the strength of performing noise reduction processing on the audio frequency of the earphone may be increased. Wherein, increase the dynamics of carrying out noise reduction to the audio frequency of earphone, can include: adding one or more times of noise reduction processing procedures under the current audio processing mode of the earphone, or setting a new mode, and switching the current audio processing mode of the earphone into the new mode.
For example, in a specific application scenario, the audio processing mode of the headphones may further include a "noise reduction mode" in addition to the normal mode, the strong noise reduction mode, and the pass-through mode described in the foregoing embodiments, and the noise reduction degree of the noise reduction mode may be weaker than that of the strong noise reduction mode. Optionally, under the condition that the direction of the first acceleration is opposite to the direction of the second acceleration, when the difference value to be detected is smaller than or equal to the target threshold, the audio processing mode of the earphone can be switched to the noise reduction mode, so that under the condition that the first acceleration and the second acceleration are different, the air pressure in the ear of the earphone used in the overweight state can be adjusted in time, and further discomfort is reduced.
Optionally, taking the electronic device as a watch as an example, the watch is in communication with the earphone, and if the watch detects that the difference to be detected is greater than the target threshold, a change instruction for changing the audio processing mode of the earphone may be generated, and the change instruction is sent to the earphone, so as to instruct the earphone to switch the audio processing mode of the earphone to the designated mode based on the change instruction.
Optionally, the earphone in this embodiment may include an ear cap, and a dynamic coil may be disposed in the ear cap, and the number of the coils may not be limited. Coil stretching parameters corresponding to different modes can be preset, and the coil stretching parameters corresponding to different modes are different. As a mode, the electronic device may obtain a coil stretching parameter corresponding to the specified mode and an audio signal processing parameter corresponding to the earphone, and then adjust the stretching degree of the coil according to the coil stretching parameter, or adjust the stretching degree of the coil according to the coil stretching parameter and process the audio signal of the earphone according to the audio signal processing parameter.
In a specific application scenario, please refer to fig. 5, which illustrates an exemplary effect of adjusting the stretching degree of the coil according to the coil stretching parameter provided in this embodiment. As shown in fig. 5, if the designated mode is a strong noise reduction mode, the left dotted line in fig. 5 shows the expansion degree of the coil before the audio processing mode of the earphone is switched to the strong noise reduction mode, in order to isolate the external noise as much as possible and increase the air pressure in the ear, the expansion degree of the coil can be increased according to the expansion parameter of the coil corresponding to the strong noise reduction mode, and the coil with the expansion degree shown in the right dotted line in fig. 5 is obtained, so that the earcap can be tightly attached to the ear as much as possible, a closed space is formed, and the external noise can be isolated while the air pressure in the ear is increased.
In another specific application scenario, please refer to fig. 6, which illustrates another exemplary effect of adjusting the stretch degree of the coil according to the coil stretch parameter provided in this embodiment. As shown in fig. 6, if the designated mode is the pass-through mode, the left dotted line in fig. 6 shows the expansion degree of the coil before the audio processing mode of the earphone is switched to the pass-through mode, in order to transmit the external sound into the ear as much as possible and reduce the air pressure in the ear, the expansion degree of the coil can be reduced according to the coil expansion parameter corresponding to the pass-through mode, and the coil with the expansion degree shown by the right dotted line in fig. 6 is obtained, so that the earcap can keep a gap with the ear as much as possible, and the external sound can be heard while the air pressure in the ear is reduced.
In another specific application scenario, if the designated mode is the strong noise reduction mode, on the basis of adjusting the expansion degree of the coil according to the expansion parameter of the coil corresponding to the strong noise reduction mode, the audio signal of the earphone may be processed according to the audio signal processing parameter corresponding to the earphone, for example, the quality of the audio signal of the earphone may be adjusted by a positive feedback algorithm, or the audio signal of the earphone may be subjected to fitting processing by the audio signal processing parameter, so that the audio signal is more gradual, and discomfort caused by too sharp sound is reduced.
According to the earphone control method provided by the embodiment, the first acceleration is obtained and represents the acceleration of a wearing object of the earphone; acquiring a second acceleration representing a gravity acceleration; acquiring a difference value to be detected based on the first acceleration and the second acceleration; and if the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone into a specified mode, wherein the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone can be automatically switched according to the change of the acceleration of the earphone, the audio processing mode of the earphone can be timely adjusted, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Referring to fig. 7, a flowchart of an earphone control method according to another embodiment of the present application is shown, where the embodiment provides an earphone control method applicable to an electronic device, the method includes:
step S310: acquiring a first acceleration, wherein the first acceleration represents the acceleration of a wearing object of the earphone.
Step S320: and switching the audio processing mode of the earphone into a specified mode based on the direction and the magnitude of the first acceleration, or based on the direction and the duration of the first acceleration, or based on the direction, the magnitude and the duration of the first acceleration, wherein the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object.
In this embodiment, as an implementation manner, the audio processing mode of the headphones may be switched to the designated mode based on the direction and the magnitude of the first acceleration. For example, when it is determined that the direction of the first acceleration is in an upward state, if the magnitude of the first acceleration exceeds a preset threshold, the audio processing mode of the headphone may be immediately switched to the strong noise reduction mode, and if the magnitude of the first acceleration does not exceed the preset threshold, the audio processing mode of the headphone may not be adjusted. Similarly, when the direction of the first acceleration is determined to be in a downward state, if the magnitude of the first acceleration exceeds a preset threshold, the audio processing mode of the earphone can be switched to a transparent mode immediately, so that the uncomfortable feeling of the user wearing the earphone is reduced.
As another embodiment, the audio processing mode of the headset may be switched to the specified mode based on the direction and duration of the first acceleration. For example, when it is determined that the direction of the first acceleration is the upward state, if the upward state of the first acceleration is maintained for 30 seconds (the specific time duration may not be limited), the audio processing mode of the headset may be directly switched to the strong noise reduction mode, and if the duration time does not reach 30 seconds, the audio processing mode of the headset may not be adjusted. Similarly, when it is determined that the direction of the first acceleration is the downward state, if the downward state of the first acceleration is maintained for 80 seconds (the specific duration may not be limited), the audio processing mode of the earphone may be directly switched to the pass-through mode.
As still another embodiment, the audio processing mode of the headset may be switched to a specified mode based on the direction, magnitude, and duration of the first acceleration to reduce discomfort of wearing the headset. For example, when the direction of the first acceleration is determined to be the upward state, if the magnitude of the first acceleration is 10m/s 2 (assume that the preset threshold is 8m/s 2 ) If the first acceleration is in the upward direction and has a magnitude of 10m/s 2 Lasting 30 seconds, the audio processing mode of the headset can be switched to strong directlyAnd a noise reduction mode. Similarly, when the direction of the first acceleration is determined to be the downward state, if the magnitude of the first acceleration is 12m/s 2 (assume that the preset threshold is 8m/s 2 ) If the first acceleration is downward and has a magnitude of 12m/s 2 Lasting 15 seconds, the audio processing mode of the headset can be directly switched to the pass-through mode.
According to the earphone control method provided by the embodiment, the first acceleration is obtained and represents the acceleration of a wearing object of the earphone; and switching the audio processing mode of the earphone into a specified mode based on the direction and the magnitude of the first acceleration, or based on the direction and the duration of the first acceleration, or based on the direction, the magnitude and the duration of the first acceleration, wherein the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone can be automatically switched according to the direction, the size and/or the duration of the acceleration of the earphone, so that the audio processing mode of the earphone can be adjusted in time, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Referring to fig. 8, which is a block diagram of a headset control device according to an embodiment of the present disclosure, in this embodiment, a headset control device 400 is provided, which can be operated in an electronic device, where the device 400 includes: data acquisition module 410 and control module 420:
the data obtaining module 410 is configured to obtain a first acceleration, where the first acceleration represents an acceleration of a wearing object of the headset.
Optionally, the data obtaining module 410 in this embodiment may be further configured to obtain a second acceleration, where the second acceleration represents a gravitational acceleration, before the control module 420 switches the audio processing mode of the headset to the specified mode based on the first acceleration. Alternatively, the second acceleration in this embodiment may also be a known gravitational acceleration, for example, a gravitational acceleration of an environment in which the user is located (for example, a high-speed elevator or an airplane on which the user rides). Alternatively, the gravitational acceleration may be different for different locations or different environments.
A control module 420, configured to switch an audio processing mode of the headset to a specified mode based on the first acceleration, where the specified mode is used to balance air pressures inside and outside the ear of the wearing subject.
As one manner, the control module 420 may be configured to obtain a difference value to be detected based on the first acceleration and the second acceleration; and if the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone to a specified mode. The step of obtaining the difference to be detected based on the first acceleration and the second acceleration comprises: if the direction of the first acceleration is the same as that of the second acceleration, subtracting the first acceleration from the second acceleration to obtain a difference value to be detected; and if the direction of the first acceleration is opposite to that of the second acceleration, subtracting the second acceleration from the first acceleration to obtain a difference value to be detected.
If the difference to be detected is greater than the target threshold, the step of switching the audio processing mode of the earphone to the designated mode may include: if the direction of the first acceleration is the same as that of the second acceleration, when the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone into a first mode; when the direction of the first acceleration is opposite to that of the second acceleration, if the difference value to be detected is larger than a target threshold value, the audio processing mode of the earphone is switched to a second mode, the second mode is different from the first mode, and the amount of audio allowed to pass through by the second mode is smaller than the amount of audio allowed to pass through by the first mode.
Alternatively, the control module 420 may be configured to, when the difference to be detected is smaller than or equal to a target threshold, reacquire the first acceleration until the difference to be detected is larger than the target threshold. Specifically, if the direction of the first acceleration is the same as or opposite to the direction of the second acceleration, if the difference to be detected is smaller than or equal to the target threshold, the first acceleration may be acquired again until the difference to be detected is larger than the target threshold.
As another mode, the control module 420 may be configured to suspend performing noise reduction processing on the audio of the headphone when the difference to be detected is smaller than or equal to a target threshold if the direction of the first acceleration is the same as the direction of the second acceleration; and if the direction of the first acceleration is the same as that of the second acceleration, increasing the noise reduction processing strength of the audio frequency of the earphone when the difference value to be detected is smaller than or equal to a target threshold value.
Optionally, the control module 420 may be configured to switch the audio processing mode of the headset to the specified mode based on the direction and magnitude of the first acceleration, or based on the direction and duration of the first acceleration, or based on the direction, magnitude and duration of the first acceleration.
Optionally, the control module 420 may be configured to send an instruction for changing the audio processing mode to the headset; and switching the audio processing mode of the earphone into a specified mode based on the change instruction.
The earphone in this embodiment may include an earcap with a coil disposed therein. In this manner, the data obtaining module 410 may be configured to obtain the coil stretch parameters corresponding to the specified mode and the audio signal processing parameters corresponding to the earphone. In this manner, the control module 420 may be configured to adjust the stretching degree of the coil according to the coil stretching parameter, or adjust the stretching degree of the coil according to the coil stretching parameter and process the audio signal of the earphone according to the audio signal processing parameter.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 9, based on the above earphone control method and apparatus, an embodiment of the present application further provides an electronic device 100 capable of executing the earphone control method. The electronic device 100 includes a memory 102 and one or more processors 104 (only one shown) coupled to each other, the memory 102 and the processors 104 being communicatively coupled to each other. The memory 102 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 104 can execute the program stored in the memory 102.
The processor 104 may include one or more processing cores, among other things. The processor 104 interfaces with various components throughout the electronic device 100 using various interfaces and circuitry to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 102 and invoking data stored in the memory 102. Alternatively, the processor 104 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 104 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 104, but may be implemented by a communication chip.
The Memory 102 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 102 may be used to store instructions, programs, code sets, or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the foregoing embodiments, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 500 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 500 includes a non-volatile computer-readable medium. The computer readable storage medium 500 has storage space for program code 510 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 510 may be compressed, for example, in a suitable form.
To sum up, according to the earphone control method, the earphone control device, the electronic device, and the storage medium provided in the embodiments of the present application, a first acceleration is obtained, and the first acceleration represents an acceleration of a wearing object of an earphone; based on the first acceleration, the audio processing mode of the headset is switched to a specified mode, and the specified mode is used for balancing air pressure inside and outside the ear of the wearing object. Therefore, the audio processing mode of the earphone can be automatically switched according to the acceleration of the earphone, the audio processing mode of the earphone can be timely adjusted, and the uncomfortable feeling of wearing the earphone in a special scene is reduced.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. An earphone control method is applied to an electronic device, and the method comprises the following steps:
acquiring a first acceleration representing the acceleration of a wearing object of the earphone;
based on the first acceleration, switching an audio processing mode of the headset to a specified mode for balancing air pressure inside and outside the ear of the wearing subject.
2. The method of claim 1, wherein switching the audio processing mode of the headset to a specified mode based on the first acceleration comprises:
obtaining a difference value to be detected based on the first acceleration and a second acceleration, wherein the second acceleration represents the gravity acceleration;
and if the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone to a specified mode.
3. The method according to claim 2, wherein the obtaining the difference to be detected based on the first acceleration and the second acceleration comprises:
if the direction of the first acceleration is the same as that of the second acceleration, subtracting the first acceleration from the second acceleration to obtain a difference value to be detected;
and if the direction of the first acceleration is opposite to that of the second acceleration, subtracting the second acceleration from the first acceleration to obtain a difference value to be detected.
4. The method according to claim 2, wherein if the difference to be detected is greater than a target threshold, switching the audio processing mode of the headset to a designated mode comprises:
if the direction of the first acceleration is the same as that of the second acceleration, when the difference value to be detected is larger than a target threshold value, switching the audio processing mode of the earphone into a first mode;
if the direction of the first acceleration is opposite to that of the second acceleration, when the difference value to be detected is larger than a target threshold value, the audio processing mode of the earphone is switched to a second mode, the second mode is different from the first mode, and the amount of audio allowed to pass through by the second mode is smaller than the amount of audio allowed to pass through by the first mode.
5. The method of claim 2, further comprising:
and when the difference value to be detected is smaller than or equal to a target threshold value, re-acquiring the first acceleration until the difference value to be detected is larger than the target threshold value.
6. The method of claim 2, further comprising:
if the direction of the first acceleration is the same as that of the second acceleration, when the difference value to be detected is smaller than or equal to a target threshold value, stopping noise reduction processing on the audio frequency of the earphone;
and if the direction of the first acceleration is opposite to that of the second acceleration, increasing the noise reduction processing strength of the audio of the earphone when the difference value to be detected is smaller than or equal to a target threshold value.
7. The method of claim 1, wherein switching the audio processing mode of the headset to a specified mode based on the first acceleration comprises:
and switching the audio processing mode of the earphone to a specified mode based on the direction and the magnitude of the first acceleration, or based on the direction and the duration of the first acceleration, or based on the direction, the magnitude and the duration of the first acceleration.
8. The method according to any one of claims 1-7, wherein switching the audio processing mode of the headset to a specified mode comprises:
sending an audio processing mode change instruction to the earphone;
and switching the audio processing mode of the earphone into a specified mode based on the change instruction.
9. The method of any of claims 1-7, wherein the headset includes an earcap having a coil disposed therein, and wherein prior to switching the audio processing mode of the headset to the specified mode, further comprising:
acquiring coil stretching parameters corresponding to a specified mode and audio signal processing parameters corresponding to the earphone;
the switching the audio processing mode of the earphone to a designated mode includes:
and adjusting the stretching degree of the coil according to the coil stretching parameters, or adjusting the stretching degree of the coil according to the coil stretching parameters and processing the audio signal of the earphone according to the audio signal processing parameters.
10. An earphone control apparatus, operable with an electronic device, the apparatus comprising:
the data acquisition module is used for acquiring a first acceleration, wherein the first acceleration represents the acceleration of a wearing object of the earphone;
and the control module is used for switching the audio processing mode of the earphone into a specified mode based on the first acceleration, and the specified mode is used for balancing the air pressure inside and outside the ear of the wearing object.
11. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-9.
12. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-9.
CN202110496882.5A 2021-05-07 2021-05-07 Earphone control method, earphone control device, electronic equipment and storage medium Pending CN115314790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110496882.5A CN115314790A (en) 2021-05-07 2021-05-07 Earphone control method, earphone control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110496882.5A CN115314790A (en) 2021-05-07 2021-05-07 Earphone control method, earphone control device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115314790A true CN115314790A (en) 2022-11-08

Family

ID=83853795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110496882.5A Pending CN115314790A (en) 2021-05-07 2021-05-07 Earphone control method, earphone control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115314790A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100108733A (en) * 2009-03-30 2010-10-08 주성원 Earphone with atmospheric pressure adjusting function
US20140348372A1 (en) * 2013-05-24 2014-11-27 Bujeon Co., Ltd. Canal Type Earphone with Pressure Equilibrium Means
CN111294691A (en) * 2020-03-31 2020-06-16 歌尔股份有限公司 Earphone, noise reduction method thereof and computer readable storage medium
CN112057231A (en) * 2020-08-31 2020-12-11 江苏紫米电子技术有限公司 Method and device for relieving ear pressure, electronic equipment and storage medium
CN112565964A (en) * 2020-11-30 2021-03-26 歌尔科技有限公司 Intelligent earphone and control system and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100108733A (en) * 2009-03-30 2010-10-08 주성원 Earphone with atmospheric pressure adjusting function
US20140348372A1 (en) * 2013-05-24 2014-11-27 Bujeon Co., Ltd. Canal Type Earphone with Pressure Equilibrium Means
CN111294691A (en) * 2020-03-31 2020-06-16 歌尔股份有限公司 Earphone, noise reduction method thereof and computer readable storage medium
CN112057231A (en) * 2020-08-31 2020-12-11 江苏紫米电子技术有限公司 Method and device for relieving ear pressure, electronic equipment and storage medium
CN112565964A (en) * 2020-11-30 2021-03-26 歌尔科技有限公司 Intelligent earphone and control system and control method thereof

Similar Documents

Publication Publication Date Title
EP4203515A1 (en) Communication device and hearing aid system
CN114521333A (en) Active noise reduction audio device and system
US20220335924A1 (en) Method for reducing occlusion effect of earphone, and related apparatus
US10959008B2 (en) Adaptive tapping for hearing devices
TWI629906B (en) Headphone system
CN111294691B (en) Earphone, noise reduction method thereof and computer readable storage medium
CN105163222A (en) Earphone hearing adjusting method and earphone
CN108762716B (en) Volume adjusting method and device and earphone
EP3890355A1 (en) Hearing device configured for audio classification comprising an active vent, and method of its operation
US20160330541A1 (en) Audio duplication using dual-headsets to enhance auditory intelligibility
CN112272342B (en) Automatic volume adjusting method and device, bluetooth headset and storage medium
CN114071308B (en) Headset self-adaptive tuning method and device, headset and readable storage medium
EP4270987A1 (en) Audio signal processing method and system for suppressing echo
US10397690B2 (en) Earpiece with modified ambient environment over-ride function
CN114731464A (en) Voice controlled ventilation for in-ear headphones
TW202021378A (en) Controlling headset method and headset
CN115314790A (en) Earphone control method, earphone control device, electronic equipment and storage medium
CN115605944A (en) Activity-based intelligent transparency
CN113038329A (en) Earphone radio control method, device and storage medium
EP4203514A2 (en) Communication device, terminal hearing device and method to operate a hearing aid system
CN114125625B (en) Noise reduction adjustment method, earphone and computer readable storage medium
WO2024042876A1 (en) Hearing device, control method, and program
US11782673B2 (en) Controlling audio output
CN109246507B (en) Processing method and audio output device
CN116709085A (en) Noise reduction parameter adaptation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination