CN113938795B - Method and device for adjusting volume of earphone, earphone and storage medium - Google Patents

Method and device for adjusting volume of earphone, earphone and storage medium Download PDF

Info

Publication number
CN113938795B
CN113938795B CN202111060917.7A CN202111060917A CN113938795B CN 113938795 B CN113938795 B CN 113938795B CN 202111060917 A CN202111060917 A CN 202111060917A CN 113938795 B CN113938795 B CN 113938795B
Authority
CN
China
Prior art keywords
sound pressure
pressure level
earphone
noise
environment
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.)
Active
Application number
CN202111060917.7A
Other languages
Chinese (zh)
Other versions
CN113938795A (en
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 Feikedi System Development Co Ltd
Original Assignee
Shenzhen Feikedi System Development 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 Feikedi System Development Co Ltd filed Critical Shenzhen Feikedi System Development Co Ltd
Priority to CN202111060917.7A priority Critical patent/CN113938795B/en
Publication of CN113938795A publication Critical patent/CN113938795A/en
Priority to PCT/CN2022/089539 priority patent/WO2023035626A1/en
Application granted granted Critical
Publication of CN113938795B publication Critical patent/CN113938795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The application is applicable to the technical field of headphones and provides a method and device for adjusting volume of headphones, the headphones and a computer-readable storage medium. The method comprises the following steps: acquiring an audio digital signal input to an earphone; calculating the output sound pressure level of the earphone according to the audio digital signal; acquiring an environmental noise signal; calculating a noise sound pressure level from the ambient noise signal; acquiring a corresponding safety sound pressure level according to the noise sound pressure level; and adjusting the output sound pressure level according to the safety sound pressure level. According to the method and the device, the corresponding safe sound pressure level can be obtained according to the noise sound pressure level, meanwhile, the output sound pressure level of the earphone is calculated according to the audio digital signal of the input earphone, and the output sound pressure level of the earphone is adjusted according to the safe sound pressure level, so that a user can be ensured to hear clearly, and the hearing protection of the user is facilitated.

Description

Method and device for adjusting volume of earphone, earphone and storage medium
Technical Field
The application belongs to the technical field of headphones, and particularly relates to a method and device for adjusting volume of headphones, the headphones and a computer-readable storage medium.
Background
The current crowd wearing the earphone is bigger and bigger, the use scene is also more and more, and some children have also started to use the earphone in the study life. However, most people usually have no concept of hearing protection, and in order to hear more clearly and cover surrounding noise, the volume of the earphone is increased, so that the output intensity of the earphone sound field is too high, and the hearing loss of the human ear is easily caused after long-term use.
Since many people's ears are not very sensitive to sound, the magnitude of the sound pressure level cannot be subjectively determined during listening. Even for people with sensitive ears, after listening at high volume for a long time, the ears are adapted to the environment with high volume, and whether the volume is too high cannot be accurately judged.
Existing hearing protection headphones on the market typically achieve the effect that the instantaneous sound pressure is not too high by limiting the maximum output sound pressure level, for example by limiting the sound pressure level (Sound press level, SPL) to below 85 dB. But in some quiet scenes 85dB is also a fairly high volume. The hearing of the human ear is affected not only by the instantaneous sound pressure, but also by the listening time, and generally speaking, the lower the listening sound pressure level is, the shorter the listening time is, the healthier the listening is.
However, the sound pressure level of the listening sound cannot be reduced without limitation, and the listening sound is not only clear but also hearing-protecting, which is an ideal effect.
Disclosure of Invention
The embodiment of the application provides a method and device for adjusting the volume of an earphone, the earphone and a computer readable storage medium, and the output sound pressure level of the earphone can be controlled within a safe sound pressure level range.
In a first aspect, an embodiment of the present application provides a method for adjusting a volume of an earphone, including:
acquiring an audio digital signal input to an earphone;
calculating the output sound pressure level of the earphone according to the audio digital signal;
acquiring an environmental noise signal;
calculating a noise sound pressure level from the ambient noise signal;
acquiring a corresponding safety sound pressure level according to the noise sound pressure level;
and adjusting the output sound pressure level according to the safety sound pressure level.
Wherein calculating the output sound pressure level of the earphone according to the audio digital signal comprises:
acquiring a frequency response curve of the earphone;
according to the frequency response curve, performing frequency response weighting processing on the audio digital signal to obtain an original sound pressure level of the audio digital signal relative to a tympanic membrane reference point after the audio digital signal passes through the earphone;
and performing frequency weighting on the original sound pressure level relative to the tympanic membrane reference point according to the selected frequency weighting mode to obtain the output sound pressure level of the earphone at the human eardrum membrane.
The frequency weighting mode comprises A weighting, B weighting, C weighting or linear weighting.
As a possible implementation manner, after obtaining the original sound pressure level of the audio digital signal relative to the tympanic membrane reference point after passing through the earphone, the method further includes:
converting the original sound pressure level relative to the tympanic membrane reference point into an original sound pressure level under a scattering field;
and carrying out frequency weighting on the original sound pressure level under the scattering field according to the selected frequency weighting mode to obtain the output sound pressure level of the earphone under the scattering field.
Correspondingly, calculating the noise sound pressure level according to the environmental noise signal comprises:
and carrying out frequency weighting on the environmental noise signals by adopting the same frequency weighting mode to obtain the noise sound pressure level.
The method for acquiring the corresponding safe sound pressure level according to the noise sound pressure level comprises the following steps:
determining a listening environment according to the noise sound pressure level, wherein the listening environment comprises a quiet environment, a daily environment and a strong noise environment;
when the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level;
when the listening environment is a daily environment, determining a second safety sound pressure level according to the noise sound pressure level and a preset linear relation, wherein the preset linear relation is the linear relation between the noise sound pressure level and the safety sound pressure level;
when the listening environment is a strong noise environment, calculating the used sound dose of the earphone in a preset time according to the output sound pressure level; a third safe sound pressure level is determined based on the noise sound pressure level and the used sound dose.
Further, determining a third safe sound pressure level based on the noise sound pressure level and the used sound dose, comprising:
calculating a ratio of the used acoustic dose to a reference acoustic dose within the preset time;
selecting a corresponding volume output control curve according to the interval where the ratio is located;
and determining a third safety sound pressure level according to the noise sound pressure level and the selected volume output control curve.
Wherein adjusting the output sound pressure level according to the safety sound pressure level comprises:
judging whether the output sound pressure level is smaller than or equal to the safety sound pressure level;
if not, compressing the output sound pressure level to the safe sound pressure level to obtain a compressed sound pressure level;
if so, judging whether the output sound pressure level of the previous frame is compressed, if so, restoring the compressed sound pressure level to the output sound pressure level, otherwise, not adjusting the output sound pressure level.
Wherein compressing the output sound pressure level to the safe sound pressure level comprises: gradually compressing the output sound pressure level to the safety sound pressure level after a preset starting time;
wherein restoring the compressed sound pressure level to the output sound pressure level comprises: and gradually recovering the compressed sound pressure level to the output sound pressure level after a preset release time.
In a second aspect, an embodiment of the present application provides an apparatus for adjusting a volume of an earphone, including:
the audio signal acquisition module is used for acquiring an audio digital signal input to the earphone;
the noise signal acquisition module is used for acquiring an environmental noise signal;
the sound pressure analysis module is used for calculating and obtaining the output sound pressure level of the earphone according to the audio digital signal; the noise sound pressure level is calculated according to the environmental noise signal;
and the output sound pressure level control module is used for acquiring a corresponding safety sound pressure level according to the noise sound pressure level and adjusting the output sound pressure level according to the safety sound pressure level.
Wherein the apparatus further comprises: and the sound dose analysis module is used for calculating the used sound dose of the earphone in the preset time according to the output sound pressure level.
The output sound pressure level control module includes: an environment determining unit, a safe sound pressure level determining unit and a sound pressure level control unit;
the environment determining unit is used for determining a listening environment according to the noise sound pressure level, wherein the listening environment comprises a quiet environment, a daily environment and a strong noise environment;
the safe sound pressure level determination unit is used for: when the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level; when the listening environment is a daily environment, determining a second safety sound pressure level according to the noise sound pressure level and a preset linear relation, wherein the preset linear relation is the linear relation between the noise sound pressure level and the safety sound pressure level; and when the listening environment is a strong noise environment, determining a third safe sound pressure level according to the noise sound pressure level and the used sound dosage.
The sound pressure level control unit is used for: judging whether the output sound pressure level is smaller than the safety sound pressure level; if not, compressing the output sound pressure level to the safe sound pressure level to obtain a compressed sound pressure level; if yes, judging whether the output sound pressure level of the audio digital signal of the previous frame is compressed, if yes, recovering the compressed sound pressure level to the output sound pressure level, otherwise, not adjusting the output sound pressure level.
In a third aspect, an embodiment of the present application provides an earphone, including: a memory, a processor, and a computer program stored in the memory and executable on the processor;
the processor, when executing the computer program, implements a method of adjusting the volume of headphones as described above.
As a possible implementation manner, the earphone further includes a display module, where the display module is an indicator light or a display, and is configured to display the output sound pressure level;
the number of the indicator lamps is plural, and/or the colors of the indicator lamps are plural.
As a possible implementation, the memory stores horn calibration data of the earphone, which is used to calibrate the original sound pressure level.
As a possible implementation manner, the earphone further includes a time service module, where the time service module is configured to provide an occurrence time of the output sound pressure level when the output sound pressure level is stored in the memory.
As a possible implementation manner, the earphone further includes a communication module, where the communication module is in communication connection with an electronic device, and is configured to obtain an audio digital signal from the electronic device, and further configured to send the output sound pressure level and an occurrence time of the output sound pressure level to the electronic device for display and/or storage.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a method of adjusting the volume of headphones as described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a headset, causes the headset to perform the method of adjusting the volume of the headset of the first aspect described above.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the noise sound pressure level is calculated by acquiring the noise signals of the environment, the corresponding safety sound pressure level is obtained according to the noise sound pressure level, meanwhile, the output sound pressure level of the earphone is calculated according to the audio digital signals input into the earphone, and the output sound pressure level of the earphone is regulated by referring to the safety sound pressure level, so that the hearing of a user can be ensured to be clear, and the hearing protection of the user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for adjusting the volume of a headset according to an embodiment of the present application;
FIG. 2 is a volume control graph according to one embodiment of the present application;
FIG. 3 is another volume control graph provided by an embodiment of the present application;
fig. 4 is a block diagram of a device for adjusting the volume of an earphone according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an earphone according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The embodiment provides a method for adjusting the volume of an earphone, which is suitable for various earphone types such as in-ear type earphone, semi-in-ear type earphone, head-wearing type earphone and the like, and is implemented by a device for adjusting the volume of the earphone, wherein a module of the device is integrated in the earphone, or a part of the module is integrated in the earphone, and another part of the module is integrated in a terminal device for providing audio.
Fig. 1 is a flowchart of a method for adjusting the volume of an earphone according to the present embodiment. As shown in fig. 1, the method for adjusting the volume of the earphone comprises the following steps:
s11, acquiring an audio digital signal input to the earphone.
The earphone establishes wired or wireless connection with an electronic device having a multimedia function such as a mobile phone, a computer, etc., and the electronic device outputs audio to the earphone, acquires an original audio digital signal input to the earphone through wireless communication, or acquires an audio analog signal input to the earphone through wired communication, and converts the audio analog signal into an audio digital signal.
S12, calculating the output sound pressure level of the earphone according to the audio digital signal.
The sound pressure generated by the earphone increases or decays with the change in audio frequency, the associated change in sound pressure with frequency being referred to as the frequency response. Each earphone has its audio characteristic, and the frequency response curve is one of the parameters representing the audio characteristic of the earphone, and the frequency response characteristic of the earphone is measured by an acoustic instrument and stored in the form of a frequency response curve (frequency response curve for short).
Different earphones play the same audio, and the generated sound pressure is not identical because of different frequency response curves, so that the audio digital signal is required to be subjected to frequency response weighting processing according to the frequency response curves of the earphones, and corresponding gain coefficients are overlapped at different frequencies to obtain the original sound pressure level of the audio digital signal after passing through the earphones. For example, the same-6 dB signal, the sound pressure level output is different when driving 1Khz and 6 Khz. The specific weighting algorithm may use a weighting algorithm in the time domain or a weighting algorithm in the frequency domain.
If the earphone is placed in the artificial ear device to test the sound pressure level, the sound pressure level measured at the eardrum reference point of the artificial ear device is the original sound pressure level of the audio digital signal relative to the eardrum reference point after passing through the earphone.
Whereas the response of the subjective perception of the human ear to different frequencies is not flat, the original sound pressure level measured is the sound pressure level measured by the instrument, and not the sound pressure level perceived by the human ear. Therefore, the original sound pressure level needs to be subjected to frequency weighting according to the health requirements of different crowds, different listening environments and/or different health standards, and the sound pressure level obtained after the frequency weighting is the sound pressure level which is more similar to the perception of human ears. If the earphone is worn on the human ear, performing frequency weighting on the original sound pressure level relative to the tympanic membrane reference point, and obtaining the output sound pressure level of the earphone at the human ear drum membrane.
Some health standards use the sound pressure level at the scattering field as a sound pressure level measure, and then it is necessary to convert the original sound pressure level relative to the tympanic membrane reference point to the original sound pressure level at the scattering field, and increase the conversion from the tympanic membrane reference point to the scattering field. The original sound pressure level relative to the tympanic membrane reference point is converted to the original sound pressure level under the scattering field using the modified transfer function from the tympanic membrane reference point to the scattering field. And carrying out frequency weighting on the original sound pressure level under the scattering field according to the selected frequency weighting mode to obtain the output sound pressure level of the earphone under the scattering field.
Similarly, the original sound pressure level of the tympanic membrane reference point can be converted into the original sound pressure level under the corresponding sound field according to the different sound fields.
The frequency weighting mode comprises A weighting, B weighting, C weighting or linear weighting. The weight A, the weight B and the weight C respectively correspond to equal response curves of pure tones of 40 parties, 70 parties and 100 parties, and the linear weight represents that the weight network is not used. The equal-loudness curve is stored in the earphone, and a proper frequency weighting mode is selected for frequency weighting according to crowd, listening environment and/or health standard. For example, a conventional environment selects a meter, a high noise environment selects C meter, and so on.
As another possible implementation manner, after obtaining the original sound pressure level of the audio digital signal after passing through the earphone, the method further includes: and calibrating the original sound pressure level according to the loudspeaker calibration data of the earphone. Specifically, because of individual differences of the earphone, especially differences generated by devices, a product individual can cause a certain deviation of output sound pressure level under the same condition, and each loudspeaker is calibrated in the production process and calibration data are stored in a storage module of the earphone, in use, more accurate sound pressure level calculation is realized by compensating the output mode of the loudspeaker.
S13, acquiring an environmental noise signal.
The external ambient sound is picked up using a microphone carried by the earphone or by a microphone of a terminal device connected to the earphone, an ambient noise signal is obtained.
S14, calculating the noise sound pressure level according to the environmental noise signal.
And performing frequency weighting on the environmental noise signals to obtain noise sound pressure level. In order to make the noise sound pressure level and the output sound pressure level of the earphone more comparable, when the environmental noise signal is subjected to frequency weighting, the same frequency weighting mode as that of the audio digital signal is adopted.
S15, acquiring a corresponding safety sound pressure level according to the noise sound pressure level.
And determining the listening environment according to the noise sound pressure level. And determining the safe sound pressure level according to the listening environment, and preventing the ears from being damaged by strong sounds under the condition of obtaining a better signal-to-noise ratio.
In this embodiment, the listening environment is classified into a quiet environment, a daily environment, and a loud noise environment. Quiet environments such as libraries, night bedrooms, etc., everyday environments such as coffee shops, offices, etc., and high noise environments such as worksites, roads with greater traffic, etc. Illustratively, a noise sound pressure level of less than 50dB is a quiet environment, a noise sound pressure level between 50dB and 70dB is a daily environment, and a noise sound pressure level of greater than 70dB is a strong noise environment.
Fig. 2 is a volume control chart provided in the present embodiment.
When the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level. In this embodiment, as shown in the section X of fig. 2, the first safe sound pressure level has a value of 70dB, and in practical application, the first safe sound pressure level may also float up or float down appropriately according to the listening habit of the user.
When the listening environment is a daily environment, the second safe sound pressure level is determined according to the noise sound pressure level and a preset linear relationship, wherein the preset linear relationship is a linear relationship between the noise sound pressure level and the safe sound pressure level, as shown in a section Y in fig. 2.
When the listening environment is a loud noise environment, a third safe sound pressure level may be determined based on the Z-section of fig. 2.
Further, in a noisy environment, the used sound dose of the earphone in a preset time is calculated according to the output sound pressure level. When the remaining available sound dose is abundant and the external environment is noisier than the reference sound dose within the same preset time, the listening can be performed by using a higher sound pressure level; when the used acoustic dose approaches or exceeds the limit, it is necessary to properly reduce the safe output sound pressure level to achieve the effect of protecting hearing.
Sound Exposure (Sound Exposure), also known as acoustic dose (Dosage), refers to the time integral of the square of the Sound pressure over a certain time interval (between t1 and t 2) or process. Acoustic doseP A (t) is the instantaneous a-weighted sound pressure of the audio signal, t=t2-t 1. The sound pressure level is the logarithm of the ratio of sound pressure to a reference sound pressure, in dB, the reference sound pressure p being typically 20 μpa, +>
And calculating corresponding sound pressure according to the output sound pressure level, and performing time integration on the square of the sound pressure to obtain the sound dose.
Specifically, determining the third safe sound pressure level based on the noise sound pressure level and the used sound dose includes:
calculating a ratio of the used acoustic dose to a reference acoustic dose for a preset time; selecting a corresponding volume output control curve according to the interval where the ratio is; and determining a third safety sound pressure level according to the noise sound pressure level and the selected volume output control curve.
Fig. 3 is another volume control graph provided by the present embodiment. As shown in fig. 3, the middle portion of the circle is a volume control curve suitable for use in a high noise environment. The intervals in which the ratio is located include a first interval (0 to 75%), a second interval (75 to 100%), and a third interval (100% or more) as examples. In fig. 3, Z1 is a first volume output control curve corresponding to a first section, Z2 is a second volume output control curve corresponding to a second section, and Z3 is a third volume output control curve corresponding to a third section. For example, when the sound dose has been used for 50% on the day, the third safety sound pressure level is determined using the first volume output control curve Z1, when the sound dose has been used for more than 75% on the day, the third safety sound pressure level is determined using the second volume output control curve Z2, and when the sound dose has been used for more than 100% on the day, the third safety sound pressure level is determined using the third volume output control curve Z3.
S16, adjusting the output sound pressure level according to the safety sound pressure level.
The safety sound pressure level of the earphone is the maximum volume that the earphone can output, and the user can use the volume up/down button to adjust the volume, but when the output sound pressure level exceeds the safety sound pressure level, the output sound pressure level will be suppressed to the safety sound pressure level.
Specifically, whether the output sound pressure level is smaller than or equal to the safety sound pressure level is judged; if not, compressing the output sound pressure level to a safe sound pressure level by adopting a sound pressure level compression algorithm to obtain a compressed sound pressure level; if yes, judging whether the output sound pressure level of the previous frame of audio digital signal is compressed, if yes, recovering the compressed sound pressure level to the output sound pressure level, otherwise, not adjusting the output sound pressure level, and playing the audio according to the output sound pressure level selected by the user.
For example, if the output sound pressure level of the earphone is less than or equal to the safety sound pressure level, the output sound pressure level is not adjusted, and the audio is played according to the output sound pressure level selected by the user. When the user increases the playing volume of the earphone to exceed the safe sound pressure level, the output sound pressure level of the earphone is compressed to the safe sound pressure level, the attenuation is the difference between the output sound pressure level and the safe sound pressure level, and the compressed sound pressure level=the output sound pressure level-attenuation. Thereafter, if the user decreases the playing volume of the earphone (or the volume of the audio itself is decreased) so as to be smaller than the safe sound pressure level, it is obviously unreasonable to continue to compress the volume, and the listening experience of the user may be affected, the attenuation amount is gradually decreased, and the volume is restored from the compressed sound pressure level to the due output sound pressure level.
According to the method, on the basis of a conventional earphone sound pressure level testing method, a proper frequency weighting mode is selected to perform frequency weighting on an original sound pressure level processed by earphone frequency response, so that an output sound pressure level of the earphone is obtained, the response of human ears to pure tones with different loudness is simulated by the frequency weighting, and the finally obtained sound pressure level is more close to the real feeling of the human ears; according to the volume adjustment suggestion made by the output sound pressure level, the volume adjustment suggestion is closer to the actual use scene of the user, and is more beneficial to the hearing protection of the user.
As a possible implementation manner, the method is improved on the basis of the above embodiment, and in order to avoid generating a sudden change in volume when adjusting the output sound pressure level, a certain means is required to make the volume change smoother and more comfortable to sound.
Specifically, compressing the output sound pressure level to a safe sound pressure level includes: and gradually compressing the output sound pressure level to a safe sound pressure level after the preset starting time.
The Attack time (Attack time) refers to the time taken for the current output sound pressure level to gradually compress to the safe sound pressure level when the output sound pressure level increases and is higher than the safe sound pressure level. For example, the current ambient noise is 50dB, the current safe sound pressure level is 70dB, the next audio to be played is 80dB, and the starting time is the time taken to gradually compress the output sound pressure level 80dB to 70 dB.
Specifically, restoring the compressed sound pressure level to the output sound pressure level includes: and gradually recovering the compressed sound pressure level to the output sound pressure level after the preset release time.
When the output sound pressure level is reduced and is lower than the safety sound pressure level, judging whether the output sound pressure level of the audio digital signal of the previous frame is compressed, if so, recovering the compressed sound pressure level to the output sound pressure level, and the Release Time (ReleaseTime) is the Time taken for recovering the compressed sound pressure level to the output sound pressure level. For example, the current environmental noise is 50dB, the current safety sound pressure level is 70dB, the output sound pressure level of the audio digital signal of the previous frame is 80dB, the attenuation amount of the output sound pressure level compressed to the safety sound pressure level is-10 dB, and the compressed sound pressure level is 70dB; the output sound pressure level of the audio digital signal of the next frame is changed to 65dB, which is smaller than the safe sound pressure level, if the compressed sound pressure level is 55dB according to the attenuation of-10 dB, the hearing feeling of a user can be affected, and the compressed sound pressure level needs to be gradually restored to the output sound pressure level, and the release time is the time for restoring the compressed sound pressure level of 55dB to the output sound pressure level of 65 dB.
Further, in other embodiments, the method further includes: the output sound pressure level is displayed by the number and/or color of the indicator lights of the headset, or is displayed by the display of the headset, or is transmitted to the electronic device for display via a communication connection with the electronic device. The displayed output sound pressure level may be the instantaneous actual output sound pressure level or an equivalent sound pressure level over a period of time.
For example, the sound dose E has an equivalent continuous a-weighted sound pressure level over the time integration interval t=t2-T1PA (t) is the instantaneous a-weighted sound pressure of the audio signal, and p is the reference sound pressure of 20 μpa.
Corresponding to the method for adjusting the volume of the earphone in the above embodiment, fig. 4 shows a block diagram of a device for adjusting the volume of the earphone according to the embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 4, the apparatus includes:
an audio signal acquisition module 21 for acquiring an audio digital signal input to the headphones;
a noise signal acquisition module 22 for acquiring an environmental noise signal;
the sound pressure level analysis module 23 is used for calculating to obtain the output sound pressure level of the earphone according to the audio digital signal; the method is also used for calculating and obtaining the noise sound pressure level according to the environmental noise signals;
the output sound pressure level control module 24 is configured to obtain a corresponding safety sound pressure level according to the noise sound pressure level, and adjust the output sound pressure level according to the safety sound pressure level.
Wherein the apparatus further comprises: the sound dose analysis module 25 is configured to calculate a used sound dose of the earphone in a preset time according to the output sound pressure level.
The output sound pressure level control module 24 includes: an environment determining unit, a safe sound pressure level determining unit and a sound pressure level control unit;
the environment determining unit is used for determining a listening environment according to the noise sound pressure level, wherein the listening environment comprises a quiet environment, a daily environment and a strong noise environment.
The safe sound pressure level determining unit is used for: when the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level; when the listening environment is a daily environment, determining a second safety sound pressure level according to a noise sound pressure level and a preset linear relation, wherein the preset linear relation is a linear relation between the noise sound pressure level and the safety sound pressure level; when the listening environment is a loud noise environment, a third safe sound pressure level is determined based on the noise sound pressure level and the used sound dose.
The sound pressure level control unit is used for: judging whether the output sound pressure level is smaller than the safety sound pressure level; if not, compressing the output sound pressure level to a safe sound pressure level to obtain a compressed sound pressure level; if yes, judging whether the output sound pressure level of the audio digital signal of the previous frame is compressed, if yes, recovering the compressed sound pressure level to the output sound pressure level, otherwise, not adjusting the output sound pressure level.
As a possible implementation manner, the device for adjusting the volume of the earphone further comprises a time service module; the time service module is used for providing the occurrence time of the output sound pressure level when the output sound pressure level is stored in the memory.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional modules in the embodiment may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit, where the integrated unit may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional modules are only for distinguishing from each other, and are not used for limiting the protection scope of the application. The specific working process of the modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides an earphone, as shown in fig. 5, which includes: at least one processor 31, a memory 32 and a computer program stored in the memory 32 and executable on the at least one processor, the processor 31 implementing the steps of any of the various method embodiments described above when the computer program is executed.
The memory 32 stores the frequency response curve of the earphone, which is measured by acoustic instrumentation.
As a possible implementation, the earphone further includes a display module 34, where the display module 34 is an indicator light or a display for displaying the output sound pressure level. The number of the indicator lamps is plural, and/or the colors of the indicator lamps are plural.
As one possible implementation, the memory 32 stores horn calibration data for the headphones, which is used to calibrate the original sound pressure level.
As a possible implementation, the earphone further includes a time service module 35, where the time service module 35 is configured to provide an occurrence time of the output sound pressure level when the memory 32 stores the output sound pressure level.
As a possible implementation manner, the earphone further includes a communication module 33, where the communication module 33 is communicatively connected to the electronic device, and is configured to obtain the audio digital signal from the electronic device, and further configured to send the output sound pressure level and the occurrence time of the output sound pressure level to the electronic device for display and/or storage.
The processor may be a central processing unit (Central Processing Unit, CPU), it may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory is an internal storage unit of the earphone, and is used for storing the computer program corresponding to the method embodiment and the data necessary for running the computer program, for example, the program code of the computer program, the frequency response curve, the equal response curve and the like of the earphone. The memory may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application also provide a computer readable storage medium storing a computer program, which when executed by a processor, implements the steps of the above-described method embodiments.
Embodiments of the present application provide a computer program product which, when run on a headset, causes a mobile terminal to perform the steps of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a terminal device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. A method of adjusting the volume of an earphone, comprising:
acquiring an audio digital signal input to an earphone;
calculating the output sound pressure level of the earphone according to the audio digital signal;
acquiring an environmental noise signal;
calculating a noise sound pressure level from the ambient noise signal;
acquiring a corresponding safety sound pressure level according to the noise sound pressure level;
adjusting the output sound pressure level according to the safety sound pressure level;
the obtaining the corresponding safe sound pressure level according to the noise sound pressure level includes:
determining a listening environment according to the noise sound pressure level, wherein the listening environment comprises a quiet environment, a daily environment and a strong noise environment;
when the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level;
when the listening environment is a daily environment, determining a second safety sound pressure level according to the noise sound pressure level and a preset linear relation, wherein the preset linear relation is the linear relation between the noise sound pressure level and the safety sound pressure level;
when the listening environment is a strong noise environment, calculating the used sound dose of the earphone in a preset time according to the output sound pressure level; determining a third safe sound pressure level based on the noise sound pressure level and the used sound dose;
said determining a third safe sound pressure level from said noise sound pressure level and said used sound dose, comprising:
calculating a ratio of the used acoustic dose to a reference acoustic dose within the preset time;
selecting a corresponding volume output control curve according to the interval where the ratio is located;
and determining a third safety sound pressure level according to the noise sound pressure level and the selected volume output control curve.
2. The method of adjusting the volume of a headset of claim 1, wherein calculating the output sound pressure level of the headset from the audio digital signal comprises:
acquiring a frequency response curve of the earphone;
according to the frequency response curve, performing frequency response weighting processing on the audio digital signal to obtain an original sound pressure level of the audio digital signal relative to a tympanic membrane reference point after the audio digital signal passes through the earphone;
according to the selected frequency weighting mode, performing frequency weighting on the original sound pressure level relative to the tympanic membrane reference point to obtain the output sound pressure level of the earphone at the human eardrum membrane;
the frequency weighting mode comprises A weighting, B weighting, C weighting or linear weighting.
3. The method of adjusting the volume of an earphone of claim 2, wherein after deriving the original sound pressure level of the audio digital signal relative to a tympanic membrane reference point after passing through the earphone, further comprising:
converting the original sound pressure level relative to the tympanic membrane reference point into an original sound pressure level under a scattering field;
and carrying out frequency weighting on the original sound pressure level under the scattering field according to the selected frequency weighting mode to obtain the output sound pressure level of the earphone under the scattering field.
4. A method of adjusting the volume of headphones as claimed in claim 2 or 3, characterized in that calculating the noise sound pressure level from the ambient noise signal comprises:
and carrying out frequency weighting on the environmental noise signals by adopting the same frequency weighting mode to obtain the noise sound pressure level.
5. The method of adjusting the volume of an earphone of claim 1, wherein adjusting the output sound pressure level according to the safety sound pressure level comprises:
judging whether the output sound pressure level is smaller than or equal to the safety sound pressure level;
if not, gradually compressing the output sound pressure level to the safe sound pressure level after the preset starting time to obtain a compressed sound pressure level;
if yes, judging whether the output sound pressure level of the previous frame of audio digital signal is compressed, if yes, gradually recovering the compressed sound pressure level to the output sound pressure level after the preset release time, otherwise, not adjusting the output sound pressure level.
6. An apparatus for adjusting the volume of an earphone, comprising:
the audio signal acquisition module is used for acquiring an audio digital signal input to the earphone;
the noise signal acquisition module is used for acquiring an environmental noise signal;
the sound pressure analysis module is used for calculating and obtaining the output sound pressure level of the earphone according to the audio digital signal; the noise sound pressure level is calculated according to the environmental noise signal;
the sound dose analysis module is used for calculating the used sound dose of the earphone in preset time according to the output sound pressure level;
the output sound pressure level control module is used for acquiring a corresponding safety sound pressure level according to the noise sound pressure level and adjusting the output sound pressure level according to the safety sound pressure level; the output sound pressure level control module includes: an environment determination unit, a security sound pressure level determination unit;
the environment determining unit is used for determining a listening environment according to the noise sound pressure level, wherein the listening environment comprises a quiet environment, a daily environment and a strong noise environment;
the safe sound pressure level determination unit is used for: when the listening environment is a quiet environment, the safe sound pressure level is a first safe sound pressure level; when the listening environment is a daily environment, determining a second safety sound pressure level according to the noise sound pressure level and a preset linear relation, wherein the preset linear relation is the linear relation between the noise sound pressure level and the safety sound pressure level; when the listening environment is a strong noise environment, determining a third safe sound pressure level according to the noise sound pressure level and the used sound dosage;
said determining a third safe sound pressure level from said noise sound pressure level and said used sound dose, comprising:
calculating a ratio of the used acoustic dose to a reference acoustic dose within the preset time;
selecting a corresponding volume output control curve according to the interval where the ratio is located;
and determining a third safety sound pressure level according to the noise sound pressure level and the selected volume output control curve.
7. An earphone, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor;
the processor, when executing the computer program, implements the method of any one of claims 1 to 5.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 5.
CN202111060917.7A 2021-09-10 2021-09-10 Method and device for adjusting volume of earphone, earphone and storage medium Active CN113938795B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111060917.7A CN113938795B (en) 2021-09-10 2021-09-10 Method and device for adjusting volume of earphone, earphone and storage medium
PCT/CN2022/089539 WO2023035626A1 (en) 2021-09-10 2022-04-27 Method and apparatus for adjusting volume of earphone, and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111060917.7A CN113938795B (en) 2021-09-10 2021-09-10 Method and device for adjusting volume of earphone, earphone and storage medium

Publications (2)

Publication Number Publication Date
CN113938795A CN113938795A (en) 2022-01-14
CN113938795B true CN113938795B (en) 2024-01-12

Family

ID=79275334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111060917.7A Active CN113938795B (en) 2021-09-10 2021-09-10 Method and device for adjusting volume of earphone, earphone and storage medium

Country Status (2)

Country Link
CN (1) CN113938795B (en)
WO (1) WO2023035626A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938795B (en) * 2021-09-10 2024-01-12 深圳市飞科笛系统开发有限公司 Method and device for adjusting volume of earphone, earphone and storage medium
CN117692843B (en) * 2024-02-02 2024-04-16 江西斐耳科技有限公司 Sound automatic adjusting method, system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014030140A (en) * 2012-07-31 2014-02-13 Yamaha Corp Ambient noise estimation device, sound volume adjusting device, ambient noise estimation method, and ambient noise estimation program
CN106101929A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 A kind of protection human ear audition method and mobile terminal
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
WO2021115006A1 (en) * 2019-12-11 2021-06-17 荣耀终端有限公司 Method and apparatus for protecting user hearing, and electronic device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200620817A (en) * 2004-12-10 2006-06-16 Quanta Comp Inc Audio output method and device for portable communication apparatus
WO2007143580A2 (en) * 2006-06-01 2007-12-13 Personics Holdings Inc. Ear input sound pressure level monitoring system
WO2008153589A2 (en) * 2007-06-01 2008-12-18 Personics Holdings Inc. Earhealth monitoring system and method iv
US8437480B2 (en) * 2009-12-17 2013-05-07 Stmicroelectronics Asia Pacific Pte Ltd. Adaptive loudness levelling for digital audio signals
CN105119582B (en) * 2015-09-02 2018-03-23 广东小天才科技有限公司 A kind of method and device for automatically adjusting terminal sound
CN106775553A (en) * 2016-11-15 2017-05-31 深圳Tcl新技术有限公司 Sound-volume control system and method for controlling volume
KR20190107902A (en) * 2018-03-13 2019-09-23 주식회사 케이티 System, method and computer program for controlling volume of guidance voice based on environment
CN110972012A (en) * 2019-11-28 2020-04-07 歌尔股份有限公司 Earphone control method and earphone
CN113613122B (en) * 2021-03-18 2023-10-20 深圳市冠旭电子股份有限公司 Volume adjusting method, volume adjusting device, earphone and storage medium
CN113938795B (en) * 2021-09-10 2024-01-12 深圳市飞科笛系统开发有限公司 Method and device for adjusting volume of earphone, earphone and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014030140A (en) * 2012-07-31 2014-02-13 Yamaha Corp Ambient noise estimation device, sound volume adjusting device, ambient noise estimation method, and ambient noise estimation program
CN106101929A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 A kind of protection human ear audition method and mobile terminal
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
WO2021115006A1 (en) * 2019-12-11 2021-06-17 荣耀终端有限公司 Method and apparatus for protecting user hearing, and electronic device

Also Published As

Publication number Publication date
CN113938795A (en) 2022-01-14
WO2023035626A1 (en) 2023-03-16

Similar Documents

Publication Publication Date Title
US9943253B2 (en) System and method for improved audio perception
EP2640095B1 (en) Method for fitting a hearing aid device with active occlusion control to a user
US8447042B2 (en) System and method for audiometric assessment and user-specific audio enhancement
US7564979B2 (en) Listener specific audio reproduction system
US8170228B2 (en) Methods and devices for hearing damage notification and intervention II
US20210266684A1 (en) Auditory device assembly
CN113938795B (en) Method and device for adjusting volume of earphone, earphone and storage medium
KR20060075134A (en) Method for compensating audio frequency characteristic in real-time and sound system thereof
KR20130133790A (en) Personal communication device with hearing support and method for providing the same
US11607155B2 (en) Method to estimate hearing impairment compensation function
CN113613121B (en) Method and device for obtaining sound pressure level of earphone and earphone
US11109169B2 (en) Method for selecting and adjusting in a customized manner a hearing aid
CN113613122B (en) Volume adjusting method, volume adjusting device, earphone and storage medium
US20140153754A1 (en) Otic sensory detection and protection system, device and method
KR100632236B1 (en) gain fitting method for a hearing aid
CN114286252B (en) Method for calibrating frequency response of playing equipment
CN112673648B (en) Processing device, processing method, reproduction method, and storage medium
TW201313039A (en) Hearing signal process system for assisting listening device and hearing curve adjusting unit thereof
Fierro Adaptive loudness compensation in audio reproduction
Fisher Speech referenced dynamic compression limiting: improving loudness comfort and acoustic safety
Eskelinen Fast Measurement of Hearing Sensitivity
Völk Threshold-Based Headphone Equalization
SE2250090A1 (en) Adaptive hearing health control
KR20210053236A (en) Audio signal processing method and apparatus for frequency spectrum correction
Moore The Value of Speech Mapping in Hearing-Aid Fitting

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
GR01 Patent grant
GR01 Patent grant