CN111263263A - Earphone loudness gain adjustment method and device, computer equipment and storage medium - Google Patents

Earphone loudness gain adjustment method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111263263A
CN111263263A CN202010371223.4A CN202010371223A CN111263263A CN 111263263 A CN111263263 A CN 111263263A CN 202010371223 A CN202010371223 A CN 202010371223A CN 111263263 A CN111263263 A CN 111263263A
Authority
CN
China
Prior art keywords
earphone
air pressure
value
playing
right earphone
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
CN202010371223.4A
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.)
Shenzhen Youjie Zhixin Technology Co ltd
Original Assignee
Shenzhen Youjie Zhixin Technology Co 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 Shenzhen Youjie Zhixin Technology Co ltd filed Critical Shenzhen Youjie Zhixin Technology Co ltd
Priority to CN202010371223.4A priority Critical patent/CN111263263A/en
Publication of CN111263263A publication Critical patent/CN111263263A/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/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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Abstract

The application relates to the technical field of earphones, and provides an earphone loudness gain adjustment method, an earphone loudness gain adjustment device, computer equipment and a storage medium, wherein the method comprises the following steps: playing a single-frequency signal through the left earphone and the right earphone; respectively acquiring the air pressure value in the ear canal corresponding to the playing of the left earphone and the right earphone or the voltage value of a single-frequency signal played in the corresponding earphones when a playing stopping instruction is received; calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure value or the voltage value; to adjust the loudness of the left and right earphones. The loudness gain difference value of left earphone and right earphone is obtained, namely left earphone and right earphone can be adjusted through different gains, and the loudness of left earphone and right earphone is adjusted more reasonably so as to meet the actual demands of users.

Description

Earphone loudness gain adjustment method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of earphone technologies, and in particular, to a method and an apparatus for adjusting earphone loudness gain, a computer device, and a storage medium.
Background
At present, earphones on the market are mostly turned on and turned off through a physical button or a Hall switch, so that the earphones are obviously single in function and occupy the design space.
After the earphone is used for a period of time, due to aging of the earphone body or insufficient effect of certain software configuration during leaving factory, the loudness of left and right ears of a consumer or a user is different when the earphone is used, and the experience is influenced; meanwhile, for some hearing-impaired people, the sensitivity of the left eardrum and the right eardrum of the hearing-impaired people is different, and the hearing-impaired people need to wear earphones with different loudness of the left ear and the right ear, so that the hearing-impaired people can enjoy wonderful music; on the current product, the loudness of the earphone is subjected to laboratory test or production line test, and is adjusted in advance through software, so that secondary adjustment cannot be performed, once the loudness problem occurs, the earphone can only be repaired, and the loudness gain of the earphone cannot be adjusted reasonably.
Disclosure of Invention
The application mainly aims to provide a method and a device for adjusting the loudness gain of a headphone, a computer device and a storage medium, and aims to solve the technical problem that the loudness gain of a left headphone and a right headphone cannot be reasonably adjusted at present.
In order to achieve the above object, the present application provides a method for adjusting loudness and gain of headphones, the headphones including a left headphone and a right headphone, the method comprising the steps of:
playing a single-frequency signal through the left earphone and the right earphone;
respectively acquiring the air pressure value in the ear canal corresponding to the playing of the left earphone and the right earphone or the voltage value of a single-frequency signal played in the corresponding earphones when a playing stopping instruction is received;
calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure value or the voltage value;
and adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
Further, the step of playing a single frequency signal through the left earphone and the right earphone includes:
respectively playing single-frequency signals with set duration and set voltage values through the left earphone and the right earphone;
respectively acquire the step of corresponding the atmospheric pressure value in the duct when left earphone and right earphone broadcast or receiving the single-frequency signal's that plays in the corresponding earphone voltage value that stops broadcasting the instruction, include:
detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the step of calculating the loudness gain difference of the left earphone and the right earphone according to the air pressure value or the voltage value comprises the following steps:
comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure difference value.
Further, before the step of playing a single frequency signal through the left earphone and the right earphone, the method includes:
detecting the air pressure value in the corresponding ear canal by air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone;
judging whether the air pressure value is greater than a threshold value;
and if so, controlling the earphone to be started.
Further, the step of playing a single frequency signal through the left earphone and the right earphone includes:
respectively playing a single-frequency signal with set duration and gradually increased voltage value through the left earphone and the right earphone;
respectively acquire the step of corresponding the atmospheric pressure value in the duct when left earphone and right earphone broadcast or receiving the single-frequency signal's that plays in the corresponding earphone voltage value that stops broadcasting the instruction, include:
when the left earphone and the right earphone receive a playing stopping instruction sent by a user, acquiring voltage values of corresponding single-frequency signals, wherein the voltage values are a first voltage value and a second voltage value respectively;
the step of calculating the loudness gain difference of the left earphone and the right earphone according to the air pressure value or the voltage value comprises the following steps:
comparing the voltage difference of the first voltage value and the second voltage value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the voltage difference value.
Further, the stop playing instruction received by the left earphone includes:
a command is sent when a user presses a button on the left earphone, or a touch signal is generated when the user touches a touch sensor on the left earphone;
the stop playing instruction received by the right earphone comprises:
and a command is sent when the user presses a button on the right earphone, or a touch signal is generated when the user touches a touch sensor on the right earphone.
Furthermore, the earphone is connected with an intelligent terminal, and the intelligent terminal is provided with a client;
the playing stopping instruction received by the left earphone and the right earphone comprises:
and the user triggers a stop instruction through the client on the intelligent terminal.
The application also provides an earphone loudness gain adjustment device, is applied to on the earphone, the earphone includes left earphone and right earphone, the device includes:
the playing unit is used for playing single-frequency signals through the left earphone and the right earphone;
the acquisition unit is used for respectively acquiring the air pressure value in the corresponding ear canal when the left earphone and the right earphone play or the voltage value of a single-frequency signal played in the corresponding earphones when a play stopping instruction is received;
the calculating unit is used for calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure value or the voltage value;
and the adjusting unit is used for adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
Furthermore, the front cavities of the left earphone and the right earphone are provided with air pressure sensors;
the playing unit is specifically configured to:
respectively playing single-frequency signals with set duration and set voltage values through the left earphone and the right earphone;
the obtaining unit is configured to:
detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the calculation unit is then configured to:
comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure difference value.
Further, still include:
the detection unit is used for detecting the air pressure value in the corresponding auditory canal through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone;
the judging unit is used for judging whether the air pressure value is larger than a threshold value or not;
and the control unit is used for controlling the earphone to be started if the voltage is larger than the preset voltage.
Further, the playing unit is specifically configured to:
respectively playing a single-frequency signal with set duration and gradually increased voltage value through the left earphone and the right earphone;
the obtaining unit is configured to:
when the left earphone and the right earphone receive a playing stopping instruction sent by a user, acquiring voltage values of corresponding single-frequency signals, wherein the voltage values are a first voltage value and a second voltage value respectively;
the calculation unit is then configured to:
comparing the voltage difference of the first voltage value and the second voltage value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the voltage difference value.
Further, buttons or touch sensors are arranged on the left earphone and the right earphone;
the left earphone receives a play stop instruction, which comprises:
a command is sent when a user presses a button on the left earphone, or a touch signal is generated when the user touches a touch sensor on the left earphone;
the stop playing instruction received by the right earphone comprises:
and a command is sent when the user presses a button on the right earphone, or a touch signal is generated when the user touches a touch sensor on the right earphone.
Furthermore, the earphone is connected with an intelligent terminal, and the intelligent terminal is provided with a client;
the playing stopping instruction received by the left earphone and the right earphone comprises:
and the user triggers a stop instruction through the client on the intelligent terminal.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
The method, the device, the computer equipment and the storage medium for adjusting the loudness gain of the earphone provided by the application comprise the following steps: playing a single-frequency signal through the left earphone and the right earphone; respectively acquiring the air pressure value in the ear canal corresponding to the playing of the left earphone and the right earphone or the voltage value of a single-frequency signal played in the corresponding earphones when a playing stopping instruction is received; calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure value or the voltage value; and adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone. This application calculates the loudness gain difference of left earphone and right earphone through the form of obtaining the auditory canal internal gas pressure or single-frequency signal voltage value, can adjust left earphone and right earphone with the gain of difference promptly, adjusts the loudness of left earphone and right earphone more rationally to be applicable to user's actual demand.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a method for adjusting loudness gain of a headphone according to an embodiment of the present application;
fig. 2 is a schematic diagram of an internal circuit structure of an earphone according to an embodiment of the present application;
fig. 3 is a block diagram of a structure of a loudness gain adjusting device of a headphone according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, in an embodiment of the present application, a method for adjusting loudness and gain of headphones is provided, where the headphones include a left headphone and a right headphone, and the method includes the following steps:
step S1, playing a single-frequency signal through the left earphone and the right earphone;
step S2, respectively obtaining the air pressure value corresponding to the ear canal when the left earphone and the right earphone are played or the voltage value corresponding to the single-frequency signal played in the earphone when the playing stopping instruction is received;
step S3, calculating the loudness gain difference of the left earphone and the right earphone according to the air pressure value or the voltage value;
and step S4, adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
In this embodiment, since some users have hearing impairment or the left and right ear sensitivities are different, it is obvious that for this type of users, the left and right earphones need to be adjusted to different loudness gains.
Specifically, as stated in step S1, when the earphone is worn on the ear of the user, the single-frequency signal is played through the left earphone and the right earphone, and since the single-frequency signal is played in the ear of the user, the air pressure in the ear canal of the user is prompted to change, that is, the air pressure in the ear canal can feed back the single-frequency signal; or the single-frequency signal can stimulate the hearing of the user, and the user can actively feed back according to the hearing of the user. As described in the step S2, when the single-frequency signals are different, the feedback generated for the single-frequency signals is also different, and the air pressure values in the ear canals corresponding to the left earphone and the right earphone at this time are obtained according to the different feedback for the single-frequency signals; or when the user actively stops playing the single-frequency signal, acquiring the voltage values of the single-frequency signals played in the corresponding left earphone and the right earphone. It can be understood that, because the left ear and the right ear of the user are different, the generated air pressure changes differently under the stimulation of the same single-frequency signal, and therefore the difference between the left ear and the right ear can be obtained according to the difference between the air pressures in the two ear canals. Similarly, if the sensitivity of the user to the single-frequency signals with different voltage values is different, the difference between the left ear and the right ear can be obtained from the difference of the voltage values. Further, as described in the above steps S3-S4, the loudness gain difference between the left earphone and the right earphone can be calculated according to the difference between the air pressure value and the voltage value, and the loudness of the left earphone and the right earphone is adjusted according to the loudness gain difference between the left earphone and the right earphone. Thereby make left earphone and right earphone can adopt different gains to adjust, rationally adjust the loudness of left earphone and right earphone more to be applicable to user's actual demand more. That is, in the present embodiment, when adjusting the loudness of the left headphone and the right headphone, the adjustment needs to be performed according to the sensitivity difference of the user to the sound, rather than according to the playing volume of the current left headphone and the current right headphone. For example, when the left ear is sensitive, the loudness gain of the left ear is smaller than that of the right ear.
Specifically, in one embodiment, the front cavities of the left earphone and the right earphone are both provided with air pressure sensors; the air pressure sensor is used for detecting air pressure in the auditory canal.
Specifically, when the left headphone or the right headphone plays a single-frequency signal with electric power w, the sound pressure at a certain time is P.
Wherein the content of the first and second substances,
Figure 850491DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure 439735DEST_PATH_IMAGE004
the voice volume is a constant, Lp is the sound pressure level, and the auditory characteristic of the human ear is a logarithmic characteristic, so that the voice volume is expressed logarithmically, and the voice volume is more consistent with the auditory habit of distinguishing the change of the voice volume by the human ear.
When the earphone is worn on the ear of a user, the earphone plays a single-frequency signal to generate vibration on the eardrum of the user, but the vibration of the eardrum cannot be directly measured, and the vibration of the eardrum can influence the air pressure change in the ear canal; therefore, the sound pressure in the auditory canal (namely, the air pressure of the air in the auditory canal after the sound wave interference) can be measured by measuring the air pressure in the auditory canal, and the difference value of the air pressure in the two auditory canals is equal to the difference value of the sound pressure in the two auditory canals; meanwhile, since the loudness gain is in accordance with the sound pressure, that is, the gain value is in accordance with the sound pressure value (only in different units), when performing the loudness gain, in order to make the left and right ear sounds consistent, the gain difference should be equal to the sound pressure difference.
Specifically, in an embodiment, the voltage values of the single-frequency signals played in the left earphone and the right earphone are adjustable, and preferably, the voltage values are gradually increased in an actual adjusting process.
In particular, the amount of the solvent to be used,
Figure 395971DEST_PATH_IMAGE006
r is the direct current resistance of a loudspeaker in the earphone and is a constant;
wherein the content of the first and second substances,
Figure 728863DEST_PATH_IMAGE008
is a constant, and Lw is the power level of the earphone;
it can be known from the above that, the power difference of the two earphones depends on the voltage of the single-frequency signal played in the two earphones, and because the left ear and the right ear of the user have different sensitivities to sounds with different powers, the difference of the two ears can be determined according to the voltage value of the current single-frequency signal, so as to determine the loudness gain difference of the two ears.
In this embodiment, it is noted that, at present, it is generally adopted to directly measure the loudness of the left earphone and the right earphone, so as to adjust the loudness gain. However, in this process, the characteristics of the user's ears are ignored, the sensitivities of the user's left ear and right ear are not exactly the same, and sounds with the same loudness may have different sensory experiences for the user. Therefore, in this embodiment, from the perspective of the user, the sensitivity difference of the left ear and the right ear of the user to the single-frequency signal is obtained, so as to calculate the loudness gain difference between the left earphone and the right earphone; it will be appreciated that the more sensitive the human ear, the lower the corresponding loudness gain should be.
The step S1 of playing a single frequency signal through the left earphone and the right earphone includes:
step S101, respectively playing single-frequency signals with set duration and set voltage values through the left earphone and the right earphone;
step S2 of respectively obtaining the air pressure value in the corresponding ear canal when the left earphone and the right earphone are played or the voltage value of the single-frequency signal played in the corresponding earphone when the playing stopping instruction is received includes:
step S102, detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the step S3 of calculating the loudness gain difference between the left earphone and the right earphone according to the air pressure value or the voltage value includes:
step S103, comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and step S104, calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure difference value.
In this embodiment, when the earphone is worn on an ear of a person and is in an on state, the left earphone and the right earphone play a single-frequency signal (e.g., a single-frequency signal with a duration of 0.5 second and 1000 Hz) with a set time length and a set voltage value V, at this time, the air pressure sensors built in the left earphone and the right earphone can pick up the air pressure mean values in the ear canal corresponding to the set time period (e.g., within 0.5 second), which are the left ear air pressure mean value AL and the right ear air pressure mean value AR, respectively, compare the left ear air pressure mean value and the right ear air pressure mean value, and if AL-AR = c, control the total loudness gain reduction c of the left earphone in the earphone; otherwise, the same descriptions are omitted here. It should be understood that the voltage value V is a value determined by taking as a standard that a single frequency signal (for example, a single frequency signal with a duration of 0.5 second at 1000 Hz) is not annoying when a human ear wears the earphone.
In this embodiment, before the step S1 of playing a single frequency signal through the left earphone and the right earphone, the method includes:
step Sa, detecting the air pressure value in the corresponding auditory canal through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone;
step Sb, judging whether the air pressure value is larger than a threshold value or not;
and step Sc, if the current time is greater than the preset time, controlling the earphone to be started.
In this embodiment, by adding the air pressure sensor to the front cavity of the earphone, when the user does not wear the earphone, the air pressure sensor can detect that an atmospheric pressure value is a, when the user wears the earphone, the air pressure sensor can detect that an ear pressure value in the ear canal is b, and since the user wears the earphone, a is a certain sealed state between the earphone and the ear, so b > a, so that a can be used as a detection threshold for determining whether the earphone is worn, and when the air pressure sensor respectively arranged in the front cavity of the left earphone or the right earphone detects that the air pressure value in the corresponding ear canal is greater than the atmospheric pressure value a, it indicates that the earphone is currently worn, and the earphone is controlled to be turned on. If the pressure is not greater than the atmospheric pressure value a, the earphone is kept to be powered off.
In a specific embodiment, with reference to fig. 2, a schematic diagram of a partial circuit structure in the above-mentioned headset is shown. The earphone at least comprises a memory, a power module, a main control chip and a power amplifier module, wherein the left earphone head (namely a left earphone) and the right earphone head (namely a right earphone) are arranged in the earphone; the main control chip is integrated with a DSP (Digital Signal Processing) module.
Wherein the memory: the earphone is used for storing the air pressure value and the air pressure mean value acquired by the air pressure sensor and the gains of the left earphone and the right earphone;
a main control chip: the earphone comprises a DSP module and is responsible for realizing the method to complete the function control of the whole earphone;
a DSP module: calling related data in the memory, calculating and processing, and sending a result instruction to the power amplifier module;
a power amplifier module: executing the instruction on the left earphone and the right earphone according to the instruction given by the DSP module;
a power supply module: the power amplifier is used for providing power for the memory, the main control chip and the power amplifier module.
Specifically, after the air pressure value in the auditory canal is acquired by the air pressure sensor, the air pressure value is immediately transmitted to the DSP module, the DSP module judges that the air pressure value in the auditory canal is larger than the atmospheric pressure a through a preset algorithm, namely the wearing state of the user is obtained, the DSP module sends a starting-up instruction, the main control chip starts up to work, and the earphone is started up. If the air pressure value in the auditory canal is judged to be not more than the atmospheric pressure a, the earphone is kept in the power-off state.
In an embodiment, the step S1 of playing a single frequency signal through the left earphone and the right earphone includes:
step S201, respectively playing a single-frequency signal with a set duration and a gradually increased voltage value through the left earphone and the right earphone;
step S2 of respectively obtaining the air pressure value in the corresponding ear canal when the left earphone and the right earphone are played or the voltage value of the single-frequency signal played in the corresponding earphone when the playing stopping instruction is received includes:
step S202, when the left earphone and the right earphone receive a playing stopping instruction sent by a user, acquiring voltage values of corresponding single-frequency signals, wherein the voltage values are a first voltage value and a second voltage value respectively;
the step S3 of calculating the loudness gain difference between the left earphone and the right earphone according to the air pressure value or the voltage value includes:
step S203, comparing the voltage difference value of the first voltage value and the second voltage value;
and step S204, calculating the loudness gain difference value of the left earphone and the right earphone according to the voltage difference value.
In this embodiment, the above method applies loudness gain adjustment for users with hearing impairments. The sensitivity of the left and right ears of a user with hearing impairment is different. Therefore, a single-frequency signal (for example, a single-frequency signal with a duration of 1000Hz and a duration of 0.5 second) with a set duration and a gradually increasing voltage value is played through the left earphone until the left ear of the user just hears the sound, at this time, the user can make a feedback instruction to stop playing the single-frequency signal, and when the instruction to stop playing the single-frequency signal is received, the first voltage value of the single-frequency signal currently played in the left earphone is obtained as V1;
the single-frequency signal with set duration and gradually increased voltage value is played through the right earphone (taking 1000Hz, 0.5 second duration single-frequency signal as an example), until the right ear of the user just hears the sound, the user can make a feedback instruction to stop playing the single-frequency signal at this time, and when the instruction of stopping playing the single-frequency signal is received, the second voltage value of the single-frequency signal played in the current right earphone is obtained to be V2.
Further, comparing the difference between the first voltage value and the second voltage value, if V1-V2= d, the right earphone is d lower than the left earphone in the total gain configuration of the left earphone and the right earphone, otherwise, the same process is not repeated.
In this embodiment, the above-mentioned scheme of adjusting the loudness of the left earphone and the right earphone by obtaining the air pressure value to calculate the loudness gain difference between the left earphone and the right earphone is a scheme of automatically adjusting the loudness gain; the above-mentioned voltage value of the single-frequency signal that obtains playing in the corresponding earphone when receiving and stopping playing the order, and then carry out the calculation of the loudness gain difference of left earphone and right earphone, thus the scheme of adjusting the loudness of left earphone and right earphone is the scheme that a user initiatively adjusted the loudness gain. It can be understood that the above-mentioned automatic adjustment and active adjustment modes can be performed alternately, that is, the active adjustment can be performed first, and then the automatic adjustment can be performed; or the automatic adjustment is carried out firstly and then the active adjustment is carried out. The combination of the two adjusting modes is adopted, so that the accuracy in adjusting is improved, and the flexibility is higher.
In one embodiment, the left earphone and the right earphone are provided with buttons or touch sensors;
the left earphone receives a play stop instruction, which comprises:
the user presses a button on the left earphone, or the user touches a touch signal of a touch sensor on the left earphone;
the stop playing instruction received by the right earphone comprises:
and pressing a button on the right earphone by a user, or touching a touch signal of a touch sensor on the right earphone by the user.
In this embodiment, the left earphone and the right earphone are provided with buttons or touch sensors, and when a single-frequency signal with a set duration and a gradually increasing voltage value is played in the left earphone and the right earphone respectively, when a user just hears a sound, an instruction for stopping playing the single-frequency signal can be triggered on the client to send a feedback signal to the earphones. And when the earphone receives the feedback signal, acquiring the voltage value of the current single-frequency signal and stopping playing the single-frequency signal.
In another embodiment, the earphone is connected with an intelligent terminal, and the intelligent terminal is provided with a client;
the playing stopping instruction received by the left earphone and the right earphone comprises:
and the user triggers a stop instruction through the client on the intelligent terminal.
In this embodiment, the earphone is connected to the intelligent terminal, the intelligent terminal is provided with a client, and when the single-frequency signal with a set duration and a gradually increasing voltage value is played in the left earphone and the right earphone respectively, the button can be pressed or the touch sensor can be touched or clicked to send a feedback signal when a user just hears sound. When the earphone receives the feedback signal, the voltage value of the current single-frequency signal is obtained, and the playing of the single-frequency signal is stopped.
In one embodiment, the left earphone and the right earphone are provided with touch areas; after the step S4 of adjusting the loudness of the left headphone and the right headphone according to the loudness gain difference of the left headphone and the right headphone, the method includes:
step S5, when a touch signal that the user touches the left earphone or the right earphone is received, gradually increasing the loudness gain of the corresponding left earphone or the right earphone until a touch signal that the user touches the corresponding left earphone or the right earphone is received again.
In this embodiment, when the user wears the headphones, if the loudness of the left headphone and the loudness of the right headphone are inconsistent, the user needs to perform the optimal adjustment again. For example, if the user feels that the loudness of the left headphone is lower than that of the right headphone, the user may touch the touch area of the left headphone to trigger the touch signal, and then gradually increase the loudness gain of the left headphone. When the user feels that the loudness of the left earphone is consistent with the loudness of the right earphone, the touch area of the left earphone can be triggered again, and the loudness gain of the left earphone stops increasing.
Referring to fig. 4, an embodiment of the present application further provides a loudness gain adjusting apparatus for headphones, where the apparatus is applied to headphones, where the headphones include a left headphone and a right headphone, and the apparatus includes:
a playing unit 10, configured to play a single frequency signal through the left earphone and the right earphone;
the acquiring unit 20 is configured to acquire an air pressure value in an ear canal corresponding to the playing of the left earphone and the right earphone, or a voltage value of a single-frequency signal played in the corresponding earphones when a playing stop instruction is received;
the calculating unit 30 is configured to calculate a loudness gain difference between the left earphone and the right earphone according to the air pressure value or the voltage value;
and the adjusting unit 40 is used for adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
In one embodiment, the front cavities of the left earphone and the right earphone are provided with air pressure sensors;
the playing unit 10 is specifically configured to:
respectively playing a single-frequency signal with a set time length and a set voltage value through the left earphone and the right earphone;
the obtaining unit 20 is configured to:
detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the calculation unit 30 is then configured to:
comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure difference value.
In one embodiment, the method further comprises:
the detection unit is used for detecting the air pressure value in the corresponding auditory canal through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone;
the judging unit is used for judging whether the air pressure value is larger than a threshold value or not;
and the control unit is used for controlling the earphone to be started if the voltage is larger than the preset voltage.
In an embodiment, the playing unit 10 is specifically configured to:
respectively playing a single-frequency signal with set duration and gradually increased voltage value through the left earphone and the right earphone;
the obtaining unit 20 is configured to:
when the left earphone and the right earphone receive a playing stopping instruction sent by a user, acquiring voltage values of corresponding single-frequency signals, wherein the voltage values are a first voltage value and a second voltage value respectively;
the calculating unit 30 is then configured to:
comparing the voltage difference of the first voltage value and the second voltage value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the voltage difference value.
In one embodiment, the left earphone and the right earphone are provided with buttons or touch sensors;
the left earphone receives a play stop instruction, which comprises:
a command is sent when a user presses a button on the left earphone, or a touch signal is generated when the user touches a touch sensor on the left earphone;
the stop playing instruction received by the right earphone comprises:
and a command is sent when the user presses a button on the right earphone, or a touch signal is generated when the user touches a touch sensor on the right earphone.
In one embodiment, the earphone is connected with an intelligent terminal, and the intelligent terminal is provided with a client;
the playing stopping instruction received by the left earphone and the right earphone comprises:
and the user triggers a stop instruction through the client on the intelligent terminal.
In this embodiment, please refer to the method described in the above embodiment for the specific implementation of each unit in the above apparatus embodiment, which is not described herein again.
Referring to fig. 4, a computer device, which may be a server and whose internal structure may be as shown in fig. 4, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing air pressure data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a method of headphone loudness gain adjustment.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is only a block diagram of some of the structures associated with the present solution and is not intended to limit the scope of the present solution as applied to computer devices.
An embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of headphone loudness gain adjustment. It is to be understood that the computer-readable storage medium in the present embodiment may be a volatile-readable storage medium or a non-volatile-readable storage medium.
In summary, the method, apparatus, computer device and storage medium for adjusting loudness gain of headphones provided in the embodiments of the present application include: playing a single-frequency signal through the left earphone and the right earphone; respectively acquiring the air pressure value in the ear canal corresponding to the playing of the left earphone and the right earphone or the voltage value of a single-frequency signal played in the corresponding earphones when a playing stopping instruction is received; calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure value or the voltage value; and adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone. This application calculates the loudness gain difference of left earphone and right earphone through the form of obtaining the auditory canal internal gas pressure or single-frequency signal voltage value, can adjust left earphone and right earphone with the gain of difference promptly, adjusts the loudness of left earphone and right earphone more rationally to be applicable to user's actual demand.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only for the preferred embodiment of the present application and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A method of loudness gain adjustment for headphones comprising a left headphone and a right headphone, the method comprising the steps of:
playing a single-frequency signal through the left earphone and the right earphone;
respectively acquiring the air pressure value in the ear canal corresponding to the playing of the left earphone and the right earphone or the voltage value of a single-frequency signal played in the corresponding earphones when a playing stopping instruction is received;
calculating loudness gain difference values of the left earphone and the right earphone according to the air pressure value or the voltage value;
and adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
2. The headphone loudness gain adjustment method of claim 1,
the step of playing a single frequency signal through the left earphone and the right earphone includes:
respectively playing single-frequency signals with set duration and set voltage values through the left earphone and the right earphone;
respectively acquire the step of corresponding the atmospheric pressure value in the duct when left earphone and right earphone broadcast or receiving the single-frequency signal's that plays in the corresponding earphone voltage value that stops broadcasting the instruction, include:
detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the step of calculating the loudness gain difference of the left earphone and the right earphone according to the air pressure value or the voltage value comprises the following steps:
comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure difference value.
3. The method of headphone loudness gain adjustment according to claim 2, wherein the step of playing a single frequency signal through the left and right headphones is preceded by the steps of:
detecting the air pressure value in the corresponding ear canal by air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone;
judging whether the air pressure value is greater than a threshold value;
and if so, controlling the earphone to be started.
4. The method of headphone loudness gain adjustment according to claim 1, wherein the step of playing a single frequency signal through the left and right headphones comprises:
respectively playing a single-frequency signal with set duration and gradually increased voltage value through the left earphone and the right earphone;
respectively acquire the step of corresponding the atmospheric pressure value in the duct when left earphone and right earphone broadcast or receiving the single-frequency signal's that plays in the corresponding earphone voltage value that stops broadcasting the instruction, include:
when the left earphone and the right earphone receive a playing stopping instruction sent by a user, acquiring voltage values of corresponding single-frequency signals, wherein the voltage values are a first voltage value and a second voltage value respectively;
the step of calculating the loudness gain difference of the left earphone and the right earphone according to the air pressure value or the voltage value comprises the following steps:
comparing the voltage difference of the first voltage value and the second voltage value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the voltage difference value.
5. The method of claim 1 wherein the left headphone loudness gain adjustment comprises a stop play instruction received by the left headphone:
a command is sent when a user presses a button on the left earphone, or a touch signal is generated when the user touches a touch sensor on the left earphone;
the stop playing instruction received by the right earphone comprises:
and a command is sent when the user presses a button on the right earphone, or a touch signal is generated when the user touches a touch sensor on the right earphone.
6. The method for adjusting the loudness gain of the earphones according to the claim 1, wherein the earphones are connected with an intelligent terminal, and the intelligent terminal is provided with a client;
the playing stopping instruction received by the left earphone and the right earphone comprises:
and the user triggers a stop instruction through the client on the intelligent terminal.
7. An earphone loudness gain adjusting device applied to earphones, wherein the earphones comprise a left earphone and a right earphone, and the device comprises:
the playing unit is used for playing single-frequency signals through the left earphone and the right earphone;
the acquisition unit is used for respectively acquiring the air pressure value in the corresponding ear canal when the left earphone and the right earphone play or the voltage value of a single-frequency signal played in the corresponding earphones when a play stopping instruction is received;
the calculating unit is used for calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure value or the voltage value;
and the adjusting unit is used for adjusting the loudness of the left earphone and the right earphone according to the loudness gain difference value of the left earphone and the right earphone.
8. The earphone loudness gain adjustment device according to claim 7, wherein the front cavities of the left earphone and the right earphone are provided with air pressure sensors;
the playing unit is specifically configured to:
respectively playing single-frequency signals with set duration and set voltage values through the left earphone and the right earphone;
the obtaining unit is configured to:
detecting air pressure values in the set time length in the corresponding auditory canals through air pressure sensors respectively arranged in the front cavities of the left earphone and the right earphone, and respectively calculating air pressure mean values in the set time length, namely a left ear air pressure mean value and a right ear air pressure mean value;
the calculation unit is then configured to:
comparing the air pressure difference values of the left ear air pressure mean value and the right ear air pressure mean value;
and calculating the loudness gain difference value of the left earphone and the right earphone according to the air pressure difference value.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010371223.4A 2020-05-06 2020-05-06 Earphone loudness gain adjustment method and device, computer equipment and storage medium Pending CN111263263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010371223.4A CN111263263A (en) 2020-05-06 2020-05-06 Earphone loudness gain adjustment method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010371223.4A CN111263263A (en) 2020-05-06 2020-05-06 Earphone loudness gain adjustment method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111263263A true CN111263263A (en) 2020-06-09

Family

ID=70951699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010371223.4A Pending CN111263263A (en) 2020-05-06 2020-05-06 Earphone loudness gain adjustment method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111263263A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153534A (en) * 2020-09-11 2020-12-29 Oppo(重庆)智能科技有限公司 Call quality adjusting method and device, computer equipment and storage medium
CN113613139A (en) * 2021-07-30 2021-11-05 深圳市时商创展科技有限公司 Air pressure detection self-adaptive tuning earphone and control method thereof
WO2023029301A1 (en) * 2021-08-30 2023-03-09 歌尔科技有限公司 Hearing effect calibration method and apparatus for earphone, and device and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100310101A1 (en) * 2009-06-09 2010-12-09 Dean Robert Gary Anderson Method and apparatus for directional acoustic fitting of hearing aids
CN101924977A (en) * 2008-11-04 2010-12-22 Gn瑞声达A/S Asymmetric adjustment
CN103873974A (en) * 2014-03-05 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Method for protecting hearing of human ears, earphone and mobile terminal
CN105554674A (en) * 2015-12-28 2016-05-04 努比亚技术有限公司 Microphone calibration method, device and mobile terminal
CN105792085A (en) * 2015-01-13 2016-07-20 奥迪康医疗有限公司 Hearing aid system with an aligned auditory perception
CN106714017A (en) * 2015-07-17 2017-05-24 中兴通讯股份有限公司 Method and device for adjusting earphone sound field, terminal, and earphone
CN108810787A (en) * 2018-05-28 2018-11-13 Oppo广东移动通信有限公司 Foreign matter detecting method and device based on audio frequency apparatus, terminal
CN108810717A (en) * 2018-08-21 2018-11-13 歌尔科技有限公司 A kind of left and right acoustic channels degree of balance adjusting method, device, control chip and earphone
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN210129945U (en) * 2019-08-30 2020-03-06 湖南国声声学科技股份有限公司 Earphone host and bluetooth headset

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924977A (en) * 2008-11-04 2010-12-22 Gn瑞声达A/S Asymmetric adjustment
US20100310101A1 (en) * 2009-06-09 2010-12-09 Dean Robert Gary Anderson Method and apparatus for directional acoustic fitting of hearing aids
CN103873974A (en) * 2014-03-05 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Method for protecting hearing of human ears, earphone and mobile terminal
CN105792085A (en) * 2015-01-13 2016-07-20 奥迪康医疗有限公司 Hearing aid system with an aligned auditory perception
CN106714017A (en) * 2015-07-17 2017-05-24 中兴通讯股份有限公司 Method and device for adjusting earphone sound field, terminal, and earphone
CN105554674A (en) * 2015-12-28 2016-05-04 努比亚技术有限公司 Microphone calibration method, device and mobile terminal
CN108810787A (en) * 2018-05-28 2018-11-13 Oppo广东移动通信有限公司 Foreign matter detecting method and device based on audio frequency apparatus, terminal
CN108810717A (en) * 2018-08-21 2018-11-13 歌尔科技有限公司 A kind of left and right acoustic channels degree of balance adjusting method, device, control chip and earphone
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN210129945U (en) * 2019-08-30 2020-03-06 湖南国声声学科技股份有限公司 Earphone host and bluetooth headset

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153534A (en) * 2020-09-11 2020-12-29 Oppo(重庆)智能科技有限公司 Call quality adjusting method and device, computer equipment and storage medium
CN112153534B (en) * 2020-09-11 2022-03-15 Oppo(重庆)智能科技有限公司 Call quality adjusting method and device, computer equipment and storage medium
CN113613139A (en) * 2021-07-30 2021-11-05 深圳市时商创展科技有限公司 Air pressure detection self-adaptive tuning earphone and control method thereof
WO2023029301A1 (en) * 2021-08-30 2023-03-09 歌尔科技有限公司 Hearing effect calibration method and apparatus for earphone, and device and medium

Similar Documents

Publication Publication Date Title
CN111263263A (en) Earphone loudness gain adjustment method and device, computer equipment and storage medium
US9628893B2 (en) Method of auto-pausing audio/video content while using headphones
CA2841646C (en) Improved hearing aid devices with reduced backround and feedback noises
CN111448803A (en) On/off-head detection using capacitive sensing
WO2017137344A1 (en) Method of fitting a hearing aid system capable of detecting auditory neuro-synaptopathy, a hearing aid fitting system and a computerized device
KR101551664B1 (en) A Hearing Aid Capable of Self Hearing Test and Self Fitting and A Self Hearing Test and Self Fitting System Using the Same
CN112954115A (en) Volume adjusting method and device, electronic equipment and storage medium
US20110051964A1 (en) Self-adjustment of a hearing aid and hearing aid
CN111464911B (en) Earphone left and right volume adjusting method, earphone and storage medium
EP4035415A1 (en) Voice controlled venting for insert headphones
TW201901411A (en) Smart earphone device personalization system and using method thereof
CN112291664A (en) Volume adjusting method, device and system of head-mounted display equipment
CN111666061A (en) Method for controlling volume of digital earphone, electronic terminal and digital earphone
US10045132B2 (en) Method of fitting a hearing aid system, a hearing aid fitting system and a computerized device
CN113613147B (en) Hearing effect correction and adjustment method, device, equipment and medium of earphone
KR101490331B1 (en) Hearing aid for providing fitting sequence and fitting method using the same
CN110099326B (en) Headset with play function and adjusting method and device thereof
EP3707919B1 (en) A hearing device adapted to perform a self-test and a method for testing a hearing device
CN115970158A (en) System and method for adjusting auditory prosthesis based on haptic response
JP6197593B2 (en) Signal processing device
CN112399319A (en) Earphone calibration method and device, storage medium and intelligent terminal
US8238591B2 (en) Method for determining a time constant of the hearing and method for adjusting a hearing apparatus
CN113507678B (en) Bluetooth answering method and device of hearing aid
US11082782B2 (en) Systems and methods for determining object proximity to a hearing system
US10993056B1 (en) Preprogrammed hearing assistance device with preselected algorithm

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609

RJ01 Rejection of invention patent application after publication