CN113938795A - 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
CN113938795A
CN113938795A CN202111060917.7A CN202111060917A CN113938795A CN 113938795 A CN113938795 A CN 113938795A CN 202111060917 A CN202111060917 A CN 202111060917A CN 113938795 A CN113938795 A CN 113938795A
Authority
CN
China
Prior art keywords
sound pressure
pressure level
earphone
noise
output
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.)
Granted
Application number
CN202111060917.7A
Other languages
Chinese (zh)
Other versions
CN113938795B (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

Images

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 earphones, and provides a method and a device for adjusting earphone volume, an earphone 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 according to the environment 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. This application can obtain corresponding safe sound pressure level according to noise sound pressure level, simultaneously, calculates the output sound pressure level of earphone according to the audio digital signal of input earphone, refers to safe sound pressure level and adjusts the output sound pressure level of earphone, can guarantee that the user can hear clearly, is favorable to user's hearing protection again.

Description

Method and device for adjusting volume of earphone, earphone and storage medium
Technical Field
The present application belongs to the field of earphone technologies, and in particular, to a method and an apparatus for adjusting earphone volume, an earphone, and a computer-readable storage medium.
Background
The current crowd who wears the earphone is bigger and bigger, and the use scene is also more and more, and some children have also begun to use the earphone in study life. However, most people usually do not have the concept of hearing protection, and in order to hear more clearly and cover surrounding noise, the volume of the earphone is adjusted to be high, so that the output intensity of the sound field of the earphone is too high, and hearing loss of human ears is easily caused after long-term use.
Since the ears of many people 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 with large volume for a long time, the ears adapt to the environment with large volume, and whether the volume is too large cannot be accurately judged.
The existing hearing protection earphones on the market usually achieve the effect that the instantaneous Sound pressure is not too high by limiting the maximum output Sound pressure level, for example, limiting the Sound Pressure Level (SPL) below 85 dB. But in some quiet scenes 85dB is also a fairly high volume. The influence of human ear hearing is not only related to the instantaneous sound pressure but also to the listening time, generally speaking, the lower the listening sound pressure level and the shorter the listening time, the healthier the listening is.
However, listening sound pressure level cannot be reduced without limit, and the sound is a perfect effect to be heard clearly and to be protected.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting the volume of an earphone, the earphone and a computer readable storage medium, which can control the output sound pressure level of the earphone 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 according to the environment 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.
Wherein calculating an output sound pressure level of the headphone from the audio digital signal comprises:
acquiring a frequency response curve of the earphone;
according to the frequency response curve, carrying out frequency response weighting processing on the audio digital signal to obtain an original sound pressure level of the audio digital signal relative to an eardrum reference point after the audio digital signal passes through the earphone;
and according to the selected frequency weighting mode, carrying out 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 tympanic membrane of the human ear.
The frequency weighting mode comprises A weighting, B weighting, C weighting or linear weighting.
As a possible implementation manner, after obtaining an original sound pressure level of the audio digital signal relative to an eardrum reference point after passing through the earphone, the method further includes:
converting the original sound pressure level relative to the tympanic membrane reference point to an original sound pressure level under the scattered field;
and according to the selected frequency weighting mode, carrying out frequency weighting on the original sound pressure level under the scattered field to obtain the output sound pressure level of the earphone under the scattered field.
Correspondingly, calculating a 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.
Wherein, according to the noise sound pressure level, obtaining a corresponding safe sound pressure level comprises:
determining listening environments according to the noise sound pressure level, wherein the listening environments comprise 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 safe sound pressure level according to the linear relation between 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 safe 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 safety sound pressure level based on the noise sound pressure level and the used sound dose.
Further, determining a third safety sound pressure level based on the noise sound pressure level and the used sound dose, comprising:
calculating the 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 of the ratio;
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:
determining whether the output sound pressure level is less than or equal to the safe 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 safe sound pressure level after a preset starting time;
wherein restoring the compressed sound pressure level to the output sound pressure level comprises: gradually restoring 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 level analysis module is used for calculating to obtain the output sound pressure level of the earphone according to the audio digital signal; the system is also used for calculating and obtaining the noise sound pressure level according to the environment noise signal;
and the output sound pressure level control module is used for acquiring a corresponding safe sound pressure level according to the noise sound pressure level and adjusting the output sound pressure level according to the safe 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 preset time according to the output sound pressure level.
The output sound pressure level control module includes: an environment determination unit, a safety sound pressure level determination unit and a sound pressure level control unit;
the environment determination unit is used for determining listening environments according to the noise sound pressure level, wherein the listening environments comprise a quiet environment, a daily environment and a strong noise environment;
the safety sound pressure level determination unit is configured to: 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 safe sound pressure level according to the linear relation between 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 safe sound pressure level; determining a third safe sound pressure level based on the noise sound pressure level and the used sound dose when the listening environment is a loud noise environment.
The sound pressure level control unit is configured to: determining whether the output sound pressure level is less than the safe 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 of audio digital signal is compressed, if so, restoring 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 the method of adjusting the volume of a headset 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 used for displaying the output sound pressure level;
the number of the indicator lights is multiple, and/or the colors of the indicator lights are multiple.
As a possible implementation manner, the memory stores speaker calibration data of the earphone, and the speaker calibration data of the earphone is used for calibrating the original sound pressure level.
As a possible implementation manner, the earphone further includes a time service module, and the time service module is configured to provide an occurrence time of the output sound pressure level when the memory stores the output sound pressure level.
As a possible implementation manner, the headset further includes a communication module, where the communication module is in communication connection with an electronic device, and is configured to acquire an 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.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for adjusting the volume of a headphone as described above.
In a fifth aspect, the present application provides a computer program product, which when run on a headset, causes the headset to perform the method for adjusting the volume of the headset of the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of calculating the noise sound pressure level by acquiring the noise signal of the environment, obtaining the corresponding safe sound pressure level according to the noise sound pressure level, calculating the output sound pressure level of the earphone according to the audio digital signal input into the earphone, and adjusting the output sound pressure level of the earphone according to the safe sound pressure level, so that the user can be enabled to hear clearly, and the hearing protection of the user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for adjusting volume of a headset according to an embodiment of the present application;
FIG. 2 is a graph of volume control provided by an embodiment of the present application;
FIG. 3 is another graph of volume control provided by an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of an apparatus for adjusting a volume of a headphone according to an embodiment of the present disclosure;
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 structures, 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 will 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 and includes any and all possible combinations of one or more of the associated listed items.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 earphones of various styles such as an in-ear type, a semi-in-ear type and a head-mounted type and is executed 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 the audio digital signal input to the earphone.
The earphone is in wired or wireless connection with electronic equipment with a multimedia function, such as a mobile phone, a computer and the like, the electronic equipment 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.
And 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 attenuates with the change of audio frequency, and the associated change relationship of the sound pressure and the frequency is called frequency response. Each earphone has its audio characteristics, and a frequency response curve is one of the parameters representing the audio characteristics of the earphone, and the frequency response characteristics of the earphone are 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 completely the same due to different frequency response curves, so that the audio digital signal needs to be subjected to frequency response weighting processing according to the frequency response curves of the earphones, and corresponding gain coefficients are superposed at different frequencies to obtain the original sound pressure level of the audio digital signal after passing through the earphones. For example, for the same-6 dB signal, the sound pressure levels output when driving 1Khz and 6Khz are different. The specific weighting algorithm may be a time-domain weighting algorithm or a frequency-domain weighting algorithm.
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 the audio digital signal passes through the earphone.
The subjective perception of the human ear is not flat in response to different frequencies, and the original sound pressure level measured is the sound pressure level measured by the instrument, not the sound pressure level perceived by the human ear. Therefore, it is necessary to perform frequency weighting on the original sound pressure level according to the health requirements of different people, different listening environments and/or different health standards on the sound pressure level, and the sound pressure level obtained after the frequency weighting is closer to the sound pressure level felt by human ears. If the earphone is worn on the human ear, the original sound pressure level relative to the tympanic membrane reference point is subjected to frequency weighting, and the output sound pressure level of the earphone at the tympanic membrane of the human ear is obtained.
There are health standards that use the sound pressure level at the fringe field as a measure of the sound pressure level, and it is desirable to convert the original sound pressure level relative to the tympanic membrane reference point to the original sound pressure level at the fringe field, and to increase the conversion between the tympanic membrane reference point to the fringe field. The original sound pressure level relative to the tympanic reference point is converted to an original sound pressure level under the scattered field using a modified transfer function from the tympanic reference point to the scattered field. And according to the selected frequency weighting mode, carrying out frequency weighting on the original sound pressure level under the scattered field to obtain the output sound pressure level of the earphone under the scattered field.
Similarly, the original sound pressure level of the tympanic membrane reference point may be converted to the original sound pressure level in the corresponding sound field according to the different sound fields employed.
The frequency weighting method includes A weighting, B weighting, C weighting or linear weighting. The weighting A, the weighting B and the weighting C respectively correspond to equal loudness curves of pure tones of 40, 70 and 100, and the linear weighting represents that the weighting network is not used. And storing the equal loudness curve in an earphone, and selecting a proper frequency weighting mode to carry out frequency weighting according to the crowd, the listening environment and/or the health standard. For example, the normal environment selects the a weight, the high noise environment selects the C weight, and so on.
As another possible implementation manner, after obtaining an 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 the individual difference of earphone, the difference that the device produced especially can cause the product individual to have certain deviation at the output sound pressure level under the same condition, through calibrate every loudspeaker in process of production to with calibration data storage in the memory module of earphone, in use through the mode of compensating loudspeaker output, realize more accurate sound pressure level and calculate.
And S13, acquiring an environment noise signal.
The ambient noise signal is obtained by picking up external ambient sound using a microphone carried by the headset or by a microphone of a terminal device connected to the headset.
S14, a noise sound pressure level is calculated from the ambient noise signal.
And carrying out frequency weighting on the environmental noise signal to obtain the noise sound pressure level. In order to make the noise sound pressure level more comparable to the output sound pressure level of the earphone, the same frequency weighting mode as the audio digital signal is adopted when the frequency weighting is carried out on the environmental noise signal.
And 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. According to the listening environment, the safe sound pressure level is determined, and the ear is prevented from being damaged by strong sound under the condition of obtaining a better signal to noise ratio.
In this embodiment, the listening environment is divided 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 strong noise environments such as construction sites, highways with large traffic flows, etc. Illustratively, a quiet environment is a noise sound pressure level less than 50dB, a daily environment is a noise sound pressure level between 50dB and 70dB, and a strong noise environment is a noise sound pressure level greater than 70 dB.
Fig. 2 is a volume control graph according to 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 section X in fig. 2, the first safe sound pressure level takes 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 habits of the user.
When the listening environment is a daily environment, the second safe sound pressure level is determined according to the linear relationship between the noise sound pressure level and the preset linear relationship, which is the linear relationship between the noise sound pressure level and the safe sound pressure level, as shown in section Y in fig. 2.
When the listening environment is a loud noise environment, a third safe sound pressure level may be determined as indicated by the segment Z in fig. 2.
Further, under the strong noise environment, the used sound dose of the earphone in the preset time is calculated according to the output sound pressure level. When the residual available sound dose is abundant and the external environment noise is large, the sound can be listened by using a higher sound pressure level compared with the reference sound dose in the same preset time; when the amount of used sound dose approaches or exceeds the limit, the safe output sound pressure level needs to be lowered appropriately to achieve the effect of hearing protection.
Acoustic Exposure (Sound Exposure), also known as acoustic dose (Dosage), refers to the time integral of the square of the acoustic pressure over a certain time interval (between t1 and t 2) or process. Acoustic dose
Figure BDA0003256327500000091
PA(t) is the instantaneous a-weighted sound pressure of the audio signal, t-t 2-t 1. The sound pressure level is the logarithm of the ratio of the sound pressure to a reference sound pressure, in dB, the reference sound pressure p being typically 20 Pa,
Figure BDA0003256327500000092
and calculating corresponding sound pressure according to the output sound pressure level, and performing time integration on the sound pressure square to obtain the sound dose.
Specifically, determining a third safety sound pressure level based on the noise sound pressure level and the used sound dose comprises:
calculating the ratio of the used acoustic dose to a reference acoustic dose within a preset time; selecting a corresponding volume output control curve according to the interval of the ratio; 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 in 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. Illustratively, the range of the ratio includes a first range (0-75%), a second range (75-100%) and a third range (more than 100%). In fig. 3, Z1 is a first volume output control curve corresponding to the first interval, Z2 is a second volume output control curve corresponding to the second interval, and Z3 is a third volume output control curve corresponding to the third interval. For example, the third safety sound pressure level is determined using the first volume output control curve Z1 when the dose has been used at 50% of the day, the second volume output control curve Z2 when the dose has been used at more than 75% of the day, and the third safety sound pressure level is determined using the third volume output control curve Z3 when the dose has been used at more than 100% of the day.
And S16, adjusting the output sound pressure level according to the safety sound pressure level.
The safe sound pressure level of the earphone is the maximum volume which can be output by the earphone, and a user can adjust the volume by using a volume increasing/decreasing button, but when the output sound pressure level exceeds the safe sound pressure level, the output sound pressure level is suppressed to the safe sound pressure level.
Specifically, whether the output sound pressure level is less than or equal to the safe sound pressure level is judged; if not, the output sound pressure level can be compressed to a safe sound pressure level by adopting a sound pressure level compression algorithm to obtain a compressed sound pressure level; if so, judging whether the output sound pressure level of the previous frame of audio digital signal is compressed, if so, restoring the compressed sound pressure level to the output sound pressure level, otherwise, playing the audio according to the output sound pressure level selected by the user without adjusting the output sound pressure level.
For example, if the output sound pressure level of the earphone is less than or equal to the safe sound pressure level, the audio is played according to the output sound pressure level selected by the user without adjusting the output sound pressure level. When the user increases the 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 amount is the difference between the output sound pressure level and the safe sound pressure level, and the compressed sound pressure level is the output sound pressure level-the attenuation amount. Thereafter, if the user decreases the volume of the earphone (or the volume of the audio itself) to be less than the safe sound pressure level, and then continues to compress the volume, which is obviously unreasonable, and may affect the listening experience of the user, the attenuation amount is gradually decreased, and the volume is restored from the compressed sound pressure level to the output sound pressure level.
On the basis of a conventional earphone sound pressure level testing method, a proper frequency weighting mode is selected to perform frequency weighting on the original sound pressure level subjected to earphone frequency response processing to obtain the output sound pressure level of the earphone, and the frequency weighting simulates the response of human ears to pure tones with different loudness, so that the finally obtained sound pressure level is closer to the real feeling of the human ears; the volume adjustment suggestion made according to the output sound pressure level is closer to the real 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 abrupt volume change when adjusting the output sound pressure level, a certain measure is needed to make the volume change more gradual and comfortable to sound.
Specifically, compressing the output sound pressure level to a safe sound pressure level includes: after a preset start time, the output sound pressure level is gradually compressed to a safe sound pressure level.
The Attack time (Attack time) is the time it takes for the current output sound pressure level to gradually compress to the safe sound pressure level when the output sound pressure level increases above the safe sound pressure level. For example, the current ambient noise level is 50dB, the current safe sound pressure level is 70dB, the audio to be played next is 80dB, and the start-up time is the time it takes 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: after a preset release time, the compressed sound pressure level is gradually restored to the output sound pressure level.
When the output sound pressure level is reduced and is lower than the safe sound pressure level, whether the output sound pressure level of the previous frame of audio digital signal is compressed or not is judged, if yes, the compressed sound pressure level is recovered to the output sound pressure level, and the Release Time (Release Time) is the Time taken for the compressed sound pressure level to recover to the output sound pressure level. For example, the current environmental noise is 50dB, the current safe sound pressure level is 70dB, the output sound pressure level of the previous frame of audio digital signal is 80dB, the attenuation amount of compressing the output sound pressure level to the safe sound pressure level is-10 dB, and the compressed sound pressure level is 70 dB; the output sound pressure level of the audio digital signal of the next frame is changed to 65dB, which is already smaller than the safe sound pressure level, if the compression is continued according to the attenuation of-10 dB, the compressed sound pressure level is 55dB, which may affect the listening feeling of the user, the compressed sound pressure level needs to be gradually restored to the output sound pressure level, and the release time is the time taken for restoring the compressed sound pressure level 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 headphones, or by the display of the headphones, or by a communication connection with the electronic device, and is sent to the electronic device for display. 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, equivalent continuous A-weighted sound pressure levels of dose E over time integration interval T-T2-T1
Figure BDA0003256327500000121
Pa (t) is the instantaneous a-weighted sound pressure of the audio signal, p is a reference sound pressure of 20 μ Pa.
Fig. 4 shows a block diagram of a device for adjusting the volume of a headset according to an embodiment of the present application, which corresponds to the method for adjusting the volume of a headset according to the above embodiment, and only shows the parts related to the embodiment of the present application for convenience of description.
Referring to fig. 4, the apparatus includes:
an audio signal acquisition module 21, configured to acquire an audio digital signal input to the earphone;
a noise signal acquisition module 22, configured to acquire an environmental noise signal;
the sound pressure level analysis module 23 is configured to calculate an output sound pressure level of the earphone according to the audio digital signal; the system is also used for calculating to obtain the noise sound pressure level according to the environment noise signal;
and the output sound pressure level control module 24 is configured to obtain a corresponding safe sound pressure level according to the noise sound pressure level, and adjust the output sound pressure level according to the safe sound pressure level.
Wherein, the device still includes: and the sound dose analysis module 25 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 24 includes: an environment determination unit, a safety sound pressure level determination unit and a sound pressure level control unit;
the environment determination unit is used for determining listening environments according to the noise sound pressure level, wherein the listening environments comprise a quiet environment, a daily environment and a strong noise environment.
The safety sound pressure level determination unit is configured to: 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 safe 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 safe 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 amount of used sound.
The sound pressure level control unit is configured to: judging whether the output sound pressure level is less than the safe 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 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.
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 memory stores the output sound pressure level.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional blocks is merely illustrated, and in practical applications, the above distribution of functions may be performed by different functional blocks according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the functions described above. Each functional module in the embodiments may be integrated in one processing unit, or each module may exist alone physically, or two or more modules are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the modules in the system may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
An embodiment of the present application further provides an earphone, as shown in fig. 5, the earphone 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 steps of any of the various method embodiments described above being implemented when the computer program is executed by the processor 31.
The memory 32 stores the frequency response curve of the earphone, which is measured by the acoustic instrument.
As a possible implementation, the earphone further includes a display module 34, and the display module 34 is an indicator light or a display for displaying the output sound pressure level. There are a plurality of indicator lights and/or a plurality of indicator light colors.
As a possible implementation, the memory 32 stores speaker calibration data of the headset, which is used to calibrate the original sound pressure level.
As a possible implementation manner, the earphone further includes a time service module 35, and 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 headset further includes a communication module 33, and the communication module 33 is communicatively connected to the electronic device, and is configured to acquire 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 displaying and/or storing.
The Processor may be a Central Processing Unit (CPU), or other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. 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 the memory is used for storing a computer program corresponding to the above method embodiment and data necessary for running the computer program, such as program codes of the computer program, a frequency response curve, an 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 further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
Embodiments of the present application provide a computer program product, which when running on a headset, enables a mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a terminal device, recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of adjusting the volume of a headset, 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 according to the environment 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.
2. The method of adjusting the volume of a headphone as recited in claim 1, wherein calculating the output sound pressure level of the headphone from the audio digital signal comprises:
acquiring a frequency response curve of the earphone;
according to the frequency response curve, carrying out frequency response weighting processing on the audio digital signal to obtain an original sound pressure level of the audio digital signal relative to an eardrum reference point after the audio digital signal passes through the earphone;
according to the selected frequency weighting mode, carrying out frequency weighting on the original sound pressure level relative to an eardrum reference point to obtain the output sound pressure level of the earphone at the eardrum of the human ear;
the frequency weighting mode comprises A weighting, B weighting, C weighting or linear weighting.
3. The method of adjusting the volume of an earphone according to claim 2, wherein after obtaining the original sound pressure level of the audio digital signal relative to the reference point of the eardrum after passing through the earphone, the method further comprises:
converting the original sound pressure level relative to the tympanic membrane reference point to an original sound pressure level under the scattered field;
and according to the selected frequency weighting mode, carrying out frequency weighting on the original sound pressure level under the scattered field to obtain the output sound pressure level of the earphone under the scattered field.
4. A method of adjusting the volume of a headphone as claimed in claim 2 or 3, wherein calculating a 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 a headphone as recited in claim 1, wherein obtaining a corresponding safe sound pressure level based on the noise sound pressure level comprises:
determining listening environments according to the noise sound pressure level, wherein the listening environments comprise 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 safe sound pressure level according to the linear relation between 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 safe 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 safety sound pressure level based on the noise sound pressure level and the used sound dose.
6. The method of adjusting the volume of a headphone of claim 5 wherein determining a third safe sound pressure level based on the noise sound pressure level and the used sound dose comprises:
calculating the 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 of the ratio;
and determining a third safety sound pressure level according to the noise sound pressure level and the selected volume output control curve.
7. The method of adjusting the volume of a headphone of claim 1, wherein adjusting the output sound pressure level in accordance with the safe sound pressure level comprises:
determining whether the output sound pressure level is less than or equal to the safe sound pressure level;
if not, after a preset starting time, gradually 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 of audio digital signal is compressed, if so, gradually restoring the compressed sound pressure level to the output sound pressure level after a preset release time, otherwise, not adjusting the output sound pressure level.
8. An apparatus for adjusting the volume of a headphone, 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 level analysis module is used for calculating to obtain the output sound pressure level of the earphone according to the audio digital signal; the system is also used for calculating and obtaining the noise sound pressure level according to the environment noise signal;
and the output sound pressure level control module is used for acquiring a corresponding safe sound pressure level according to the noise sound pressure level and adjusting the output sound pressure level according to the safe sound pressure level.
9. 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 of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
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 true CN113938795A (en) 2022-01-14
CN113938795B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023035626A1 (en) * 2021-09-10 2023-03-16 深圳市冠旭电子股份有限公司 Method and apparatus for adjusting volume of earphone, and earphone

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117692843B (en) * 2024-02-02 2024-04-16 江西斐耳科技有限公司 Sound automatic adjusting method, system, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037797A1 (en) * 2006-06-01 2008-02-14 Personics Holdings Inc. Ear input sound pressure level monitoring system
US20080144842A1 (en) * 2006-06-01 2008-06-19 Personics Holdings Inc. Earhealth monitoring system and method iv
US20110150242A1 (en) * 2009-12-17 2011-06-23 Stmicroelectronics Asia Pacific Pte Ltd. Adaptive loudness levelling for digital audio signals
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 (7)

* 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
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037797A1 (en) * 2006-06-01 2008-02-14 Personics Holdings Inc. Ear input sound pressure level monitoring system
US20080144842A1 (en) * 2006-06-01 2008-06-19 Personics Holdings Inc. Earhealth monitoring system and method iv
US20110150242A1 (en) * 2009-12-17 2011-06-23 Stmicroelectronics Asia Pacific Pte Ltd. Adaptive loudness levelling for digital audio signals
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023035626A1 (en) * 2021-09-10 2023-03-16 深圳市冠旭电子股份有限公司 Method and apparatus for adjusting volume of earphone, and earphone

Also Published As

Publication number Publication date
CN113938795B (en) 2024-01-12
WO2023035626A1 (en) 2023-03-16

Similar Documents

Publication Publication Date Title
US9943253B2 (en) System and method for improved audio perception
US8447042B2 (en) System and method for audiometric assessment and user-specific audio enhancement
US7564979B2 (en) Listener specific audio reproduction system
US9319814B2 (en) Method for fitting a hearing aid device with active occlusion control to a user
KR101779641B1 (en) Personal communication device with hearing support and method for providing the same
KR102302683B1 (en) Sound output apparatus and signal processing method thereof
CN113938795B (en) Method and device for adjusting volume of earphone, earphone and storage medium
US11607155B2 (en) Method to estimate hearing impairment compensation function
WO2004004414A1 (en) Method of calibrating an intelligent earphone
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
CN114205724B (en) Hearing aid earphone debugging method, device and equipment
CN113613122A (en) Volume adjusting method and device, earphone and storage medium
TWI455605B (en) Hearing signal process system for assisting listening device and hearing curve adjusting unit thereof
KR100632236B1 (en) gain fitting method for a hearing aid
CN112673648B (en) Processing device, processing method, reproduction method, and storage medium
CN114286252B (en) Method for calibrating frequency response of playing equipment
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
CN117119341A (en) Method and system for estimating ambient noise attenuation
CN116264658A (en) Audio adjusting system and audio adjusting method
Moore The Value of Speech Mapping in Hearing-Aid Fitting
PL225391B1 (en) Circuit for improving the quality of sound in the digital electronic devices

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