Volume adjustment method, device, apparatus and readable storage medium
By acquiring and setting a volume value suitable for the user's hearing ability in a non-noise environment, the problem of the inability to intelligently adjust the volume in existing technologies is solved, thus achieving hearing protection and cognitive enhancement.
Patent Information
- Application Number
- CN202211192691.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2042-09-28
AI Technical Summary
Existing audio and video software and headphone devices cannot intelligently control the volume range to suit the individual hearing ability of users, resulting in damage to users' ears and brains.
In a non-noise environment, by acquiring the preset volume values corresponding to different preset decibel values, the target preset decibel value is determined based on the decibel value of the audio to be played, and the volume of the headphone device is adjusted to the target volume value, taking into account the user's auditory discrimination ability and the difference in sound source volume.
It effectively protects users' hearing from damage caused by high-intensity noise, reduces discomfort from environmental noise, and enhances users' cognitive abilities regarding sound signals, including memory, attention, and comprehension.
Smart Images

Figure CN115550781B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent volume adjustment, and in particular to a volume adjustment method, device, equipment and readable storage medium. BACKGROUND
[0002] Experiments show that a human ear has a total of 15500 tiny hair cells called "static hair", which send signals to the brain along the auditory nerve. Once these hair cells are damaged, it will be irreparable. Sound is a force that can destroy the "static hair" in the ear. It can also affect the human brain. The brain works very high on the environment sound. A suitable sound environment can effectively improve the thinking ability of the brain and reduce the pressure of the brain. Scientifically, the sound threshold that each person can accept from birth is different. The sound threshold that an individual can accept will change with physiological development and external factors. The sound threshold of minors changes at least every 30 days. The sound threshold suitable for adults may be noise in the ears of children. The sound threshold suitable for hearing impaired people may be noise in the ears of people with normal hearing.
[0003] The existing audio and video software and earphone devices, such as general music or audiobook software, only remind the user when the user adjusts the earphone device volume to a volume threshold such as 75% or above. Such a sound environment cannot fully adapt to the individual hearing ability of most users. The general earphone device only records the user's recent use volume, and automatically adjusts to the user's last setting volume after disconnecting and reconnecting. The above software and devices do not jointly consider the user's subjective volume preference, the user's objective hearing resolution, and the volume difference of the audio sound source to be played. They also cannot intelligently control the volume range suitable for the user's individual hearing ability, that is, they cannot provide a sound environment that is guaranteed and promotes the user's hearing health and cognitive development. In the long run, it will cause irreparable damage to the user's ears and brain, such as significant hearing loss. SUMMARY
[0004] The main purpose of the present application is to provide a volume adjustment method, device, equipment and readable storage medium, which aims to solve the technical problem that the existing audio and video software and earphone devices cannot intelligently control the volume range suitable for the user's individual hearing ability based on the user's volume preference, the user's hearing resolution and the volume difference of the audio sound source, resulting in damage to the user's ear hearing and brain.
[0005] In a first aspect, the present application provides a volume adjustment method, which comprises the following steps:
[0006] In a non-noise environment, obtaining preset volume values corresponding to different preset decibel values respectively;
[0007] determine a target preset decibel value based on a decibel value of the audio to be played;
[0008] adjust the volume of the earphone device to a target volume value corresponding to the target preset decibel value.
[0009] Optionally, before the step of obtaining preset volume values corresponding to different preset decibel values in the non-noise environment, the method further comprises:
[0010] obtaining an environmental volume value collected by the earphone device;
[0011] determining whether the environmental volume value is greater than a preset noise threshold value;
[0012] if the environmental volume value is greater than the preset noise threshold value, determining that the current environment belongs to a noise environment;
[0013] if the environmental volume value is not greater than the preset noise threshold value, determining that the current environment belongs to a non-noise environment.
[0014] Optionally, before the step of obtaining preset volume values corresponding to different preset decibel values in the non-noise environment, the method further comprises:
[0015] playing first test audio of different preset decibel values of a preset segment, and recording volume positions of the earphone device adjusted by a user under each segment of the first test audio;
[0016] determining evaluation volume values corresponding to different preset decibel values based on decibel values of each segment of the first test audio and corresponding recorded volume positions;
[0017] maintaining the volume positions of the earphone device adjusted by the user under each segment of the first test audio, playing second test audio corresponding to different preset decibel values of the preset segment and containing different decibel value differences, respectively, and recording minimum decibel value differences that can be distinguished by the user under each segment of the second test audio, taking the minimum decibel value differences as evaluation sensitivity values corresponding to different preset decibel values, respectively;
[0018] subtracting the evaluation sensitivity values from the evaluation volume values corresponding to different preset decibel values to obtain preset volume values corresponding to different preset decibel values, respectively.
[0019] Optionally, before the step of obtaining preset volume values corresponding to different preset decibel values in the non-noise environment, the method further comprises:
[0020] determining whether the preset volume values corresponding to different preset decibel values are within an effective time range;
[0021] If the preset volume values corresponding to the different preset decibel values are all within the effective time range, the step of obtaining the preset volume values corresponding to the different preset decibel values in the non-noise environment is performed.
[0022] Optionally, the step of determining whether the preset volume values corresponding to the different preset decibel values are within the effective time range comprises:
[0023] If the preset volume values corresponding to the different preset decibel values exceed the effective time range, a first prompt information is outputted to prompt the user to re-evaluate the preset volume values corresponding to the different preset decibel values.
[0024] Optionally, the step of determining the target preset decibel value based on the decibel value of the audio to be played comprises:
[0025] determining the preset decibel value closest to the decibel value of the audio to be played;
[0026] If there is only one preset decibel value closest to the decibel value of the audio to be played, the closest preset decibel value is taken as the target preset decibel value;
[0027] If there are two preset decibel values closest to the decibel value of the audio to be played, the preset decibel value with the smallest decibel value among the two preset decibel values is taken as the target preset decibel value.
[0028] Optionally, the step of adjusting the volume of the earphone device to the target volume value comprises:
[0029] When a set volume value inputted by the user is received, the volume of the earphone device is maintained as the target volume value, and the set volume value is compared with the target volume value;
[0030] If the set volume value is smaller than the target volume value, a second prompt information is outputted to prompt the user that the current volume is too low;
[0031] If the set volume value is greater than the target volume value, a third prompt information is outputted to prompt the user that the current volume is too high.
[0032] In a second aspect, the present application further provides a volume adjusting device, which comprises:
[0033] an obtaining module, configured to obtain preset volume values corresponding to different preset decibel values in a non-noise environment;
[0034] a determining module, configured to determine a target preset decibel value based on a decibel value of an audio to be played;
[0035] an adjusting module, configured to take the preset volume value corresponding to the target preset decibel value as a target volume value, and adjust the volume of the earphone device to the target volume value.
[0036] Optionally, the volume adjusting apparatus further comprises a first judging module, configured to:
[0037] acquire an ambient volume value collected by the earphone device;
[0038] judge whether the ambient volume value is greater than a preset noise threshold value;
[0039] if the ambient volume value is greater than the preset noise threshold value, determine that the current environment belongs to a noise environment;
[0040] if the ambient volume value is not greater than the preset noise threshold value, determine that the current environment belongs to a non-noise environment.
[0041] Optionally, the volume adjusting apparatus further comprises an evaluation module, configured to:
[0042] play a first test audio of a preset segment and different preset decibel values, and record the volume position of the earphone device adjusted by the user under each segment of the first test audio;
[0043] determine an evaluation volume value corresponding to each different preset decibel value based on the decibel value of each segment of the first test audio and the corresponding recorded volume position;
[0044] maintain the volume position of the earphone device adjusted by the user under each segment of the first test audio, play a second test audio of a preset segment and different preset decibel values corresponding to different decibel value differences, and record the minimum decibel value difference that can be distinguished by the user under each segment of the second test audio, taking the minimum decibel value difference as an evaluation sensitivity value corresponding to each different preset decibel value;
[0045] subtract the evaluation sensitivity value from the evaluation volume value corresponding to each different preset decibel value to obtain a preset volume value corresponding to each different preset decibel value.
[0046] Optionally, the volume adjusting apparatus further comprises a second judging module, configured to:
[0047] judge whether the preset volume value corresponding to each different preset decibel value is within an effective time range;
[0048] if the preset volume value corresponding to each different preset decibel value is within the effective time range, execute the step of acquiring the preset volume value corresponding to each different preset decibel value in the non-noise environment.
[0049] Optionally, the volume adjusting apparatus further comprises a first prompting module, configured to:
[0050] if the preset volume value corresponding to each different preset decibel value exceeds the effective time range, output a first prompt information to prompt the user to re-evaluate the preset volume value corresponding to each different preset decibel value.
[0051] Optionally, the determining module is further configured to:
[0052] determine a preset decibel value closest to the decibel value of the audio to be played;
[0053] if there is only one preset decibel value closest to the decibel value of the audio to be played, take the closest preset decibel value as the target preset decibel value;
[0054] if there are two preset decibel values closest to the decibel value of the audio to be played, take the preset decibel value with the smallest decibel value as the target preset decibel value.
[0055] Optionally, the volume adjusting apparatus further comprises a second prompting module configured to:
[0056] when receiving the set volume value input by the user, maintain the volume of the earphone device as the target volume value, and compare the set volume value with the target volume value;
[0057] if the set volume value is smaller than the target volume value, output a second prompt information to prompt the user that the current volume is too low;
[0058] if the set volume value is greater than the target volume value, output a third prompt information to prompt the user that the current volume is too high.
[0059] In a third aspect, the present application further provides a volume adjusting apparatus, which comprises a processor, a memory, and a volume adjusting program stored in the memory and executable by the processor, wherein the volume adjusting program, when executed by the processor, implements the steps of the volume adjusting method as described above.
[0060] In a fourth aspect, the present application further provides a readable storage medium, which stores a volume adjusting program, wherein the volume adjusting program, when executed by a processor, implements the steps of the volume adjusting method as described above.
[0061] The present application provides a volume adjustment method, device, equipment and readable storage medium, the volume adjustment method comprises: in a non-noise environment, obtaining preset volume values corresponding to different preset decibel values respectively; based on the decibel value of the audio to be played, determining a target preset decibel value; taking the preset volume value corresponding to the target preset decibel value as a target volume value, and adjusting the volume of the earphone device to the target volume value. When the user prepares to play audio and video through various audio and video software using the earphone device, the audio can be played within a reasonable volume, thereby effectively protecting the user's hearing from high-intensity noise damage, and reducing the discomfort caused by environmental noise. In addition, when the user enters the learning mode through the earphone device, the reasonable volume can also effectively improve the user's cognitive ability of sound signals, including memory, attention, understanding, etc., and improve the ability and efficiency of the brain in processing auditory signals. BRIEF DESCRIPTION OF DRAWINGS
[0062] Figure 1 The hardware structure diagram of the volume adjustment device involved in the embodiment of the present application is shown.
[0063] Figure 2 The flowchart of the volume adjustment method of an embodiment of the present application is shown.
[0064] Figure 3 The flowchart of the volume adjustment method of another embodiment of the present application is shown.
[0065] Figure 4 The flowchart of the volume adjustment method of another embodiment of the present application is shown.
[0066] Figure 5 The functional module diagram of the volume adjustment device of an embodiment of the present application is shown.
[0067] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0068] It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0069] In a first aspect, the embodiment of the present application provides a volume adjustment device.
[0070] Reference Figure 1 , Figure 1This is a schematic diagram of the hardware structure of a volume control device involved in an embodiment of the present invention. In this embodiment, the volume control device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement communication between these components; the user interface 1003 may include a display screen or an input unit such as a keyboard; the network interface 1004 may optionally include a standard wired interface or a wireless interface (e.g., Wireless Fidelity, Wi-Fi); the memory 1005 may be high-speed random access memory (RAM) or stable memory (non-volatile memory), such as a disk storage device. Alternatively, the memory 1005 may also be a storage device independent of the aforementioned processor 1001. Those skilled in the art will understand that… Figure 1 The hardware structure shown does not constitute a limitation of the invention and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0071] Continue to refer to Figure 1 , Figure 1 The memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a volume adjustment program. The processor 1001 can call the volume adjustment program stored in the memory 1005 and execute the volume adjustment method provided in this embodiment of the invention.
[0072] Secondly, embodiments of the present invention provide a volume adjustment method.
[0073] Reference Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the volume adjustment method of the present invention.
[0074] In one embodiment of the volume adjustment method of the present invention, the volume adjustment method includes:
[0075] Step S10: In a non-noise environment, obtain the preset volume values corresponding to different preset decibel values;
[0076] Step S20: Determine the target preset decibel value based on the decibel value of the audio to be played;
[0077] Step S30: Using the preset volume value corresponding to the target preset decibel value as the target volume value, adjust the volume of the headphone device to the target volume value.
[0078] In this embodiment, considering that existing audio and video software and earphone devices cannot intelligently adjust the volume to a volume range suitable for the individual hearing ability of a user, and that the corresponding sound environment cannot provide targeted protection and promotion for the hearing health and cognitive development of the user, over time this can lead to damage to the user's ears and brain that cannot be repaired, such as a significant decrease in hearing. Therefore, in order to solve the above problems, in this embodiment, when a user is preparing to play audio and video through an earphone device using corresponding audio and video software, the volume of the earphone device will be automatically adjusted to a volume range suitable for the user, thereby effectively protecting the user's hearing from damage.
[0079] Specifically, in order to reduce the discomfort caused by environmental noise, in a non-noise environment, preset volume values corresponding to different preset decibel values are obtained, wherein the preset volume values are volume values obtained by the user through a hearing test system under test audio corresponding to different preset decibel values (such as 30, 40, 50, 60, 70, and 80 decibels), and the above-mentioned preset volume values are adjustable volume values most suitable for the current hearing ability of the user under different preset decibel values. After obtaining the preset volume values corresponding to the different preset decibel values in the non-noise environment, a target preset decibel value in the different preset decibel values is determined based on the to-be-played audio, and the preset volume value corresponding to the target preset decibel value is the adjustable volume value most suitable for the current hearing ability of the user when playing the to-be-played audio in the future.
[0080] Therefore, the preset volume value corresponding to the above-mentioned target preset decibel value is taken as a target volume value, and the volume of the earphone device is adjusted to the above-mentioned target volume value. That is, the audio can be played within a reasonable volume, thereby effectively protecting the user's hearing from damage, while reducing the discomfort caused by environmental noise. In addition, when the user enters a learning mode through the earphone device, a reasonable volume can also effectively improve the user's cognitive ability of sound signals, including memory, attention, understanding, etc., and improve the ability and efficiency of the brain when processing auditory signals.
[0081] Further, in an embodiment, before the step S10, the following steps are included:
[0082] Obtaining the environmental volume collected by the earphone device;
[0083] Determining whether the environmental volume is greater than a preset noise threshold;
[0084] If the environmental volume is greater than the preset noise threshold, it is determined that the current environment belongs to a noise environment;
[0085] If the environmental volume is not greater than the preset noise threshold, it is determined that the current environment belongs to a non-noise environment.
[0086] In the embodiment, before the step of obtaining the preset volume values corresponding to the different preset decibel values in the non-noise environment, it is further needed to determine whether the current environment is in the non-noise environment to determine whether the earphone device needs to be further adjusted in volume. Specifically, the environment volume collected by the earphone device is obtained, and it is determined whether the obtained environment volume is greater than a preset noise threshold, that is, it is determined whether the current environment belongs to the non-noise environment. The preset noise threshold can be 80db defined by scientific indicators. The 80 decibel environment background sound is the sound intensity level at which noise-induced hearing loss begins to occur. The sound background (including higher intensity) forces the user to adjust the volume to be higher than 80 decibels to mask the noise and hear the target speech or music, which in turn exposes the user to high-intensity sound for a long time and causes irreversible damage to the hearing. Therefore, 80 decibels is determined as the judgment threshold, which conforms to the scientific law. If the obtained environment volume is not greater than the preset noise threshold, for example, the environment volume corresponding to the current environment does not exceed 80db, it is determined that the current environment belongs to the non-noise environment, and the earphone device can be calculated and adjusted in volume. If the obtained environment volume is greater than the preset noise threshold, for example, the environment volume corresponding to the current environment exceeds 80db, it is determined that the current environment belongs to the noise environment, and it is not suitable for the user to use the earphone device to use the corresponding audio and video software in the noisy environment, so the user is prompted to change the environment for subsequent operation.
[0087] Further, in an embodiment, with reference to Figure 3 Before the step S10, it further includes:
[0088] Step S01, playing a first test audio of a preset segment and different preset decibel values, and recording the volume position of the earphone device adjusted by the user under each segment of the first test audio;
[0089] Step S02, determining the evaluation volume values corresponding to the different preset decibel values based on the decibel values of each segment of the first test audio and the corresponding recorded volume positions;
[0090] Step S03, maintaining the volume position of the earphone device adjusted by the user under each segment of the first test audio, playing a second test audio of a preset segment and different preset decibel values corresponding to different decibel value differences, and recording the minimum decibel value difference that can be distinguished by the user under each segment of the second test audio, taking the minimum decibel value difference as the evaluation sensitivity value corresponding to the different preset decibel values;
[0091] Step S04, subtracting the evaluation sensitivity value from the evaluation volume value corresponding to the different preset decibel values to obtain the preset volume values corresponding to the different preset decibel values.
[0092] In the embodiment, before the step of obtaining the preset volume values corresponding to the different preset decibel values in the non-noise environment, the user needs to be tested by the hearing test system in advance to obtain the preset volume values corresponding to the different preset decibel values. Specifically, the step of obtaining the preset volume values corresponding to the different preset decibel values by testing includes: in the non-noise environment, playing a preset segment of first test audio with different preset decibel values to the user, and recording the volume position of the earphone device adjusted by the user under each segment of the first test audio.
[0093] For example, 6 segments of first test audio are played (the 6 segments of first test audio are designed according to the normal decibel range of human ear hearing, and the corresponding preset decibel values are 30, 40, 50, 60, 70 and 80 decibels, which correspond to the input audio sound intensity levels represented by the 6 preset audios), and the volume position of the earphone device adjusted by the user under each segment of the first test audio is recorded, such as the volume position of the earphone device adjusted by the user under the first test audio corresponding to the sound intensity level of 30 decibel value is x1, the volume position of the earphone device adjusted by the user under the first test audio corresponding to the sound intensity level of 40 decibel value is x2, and so on. The volume position of the earphone device adjusted by the user under the first test audio corresponding to the sound intensity level of 80 decibel value is x6. Based on the decibel values of each segment of the first test audio and the corresponding recorded volume positions, the evaluation volume values corresponding to the different preset decibel values can be determined. Theoretically, the evaluation volume values are the most suitable volume values for the user's current hearing ability under different preset decibel values.
[0094] The present scheme considers that the sensitivity of the user to perceive the subtle sound intensity difference under different preset decibel values is different, so based on the different preset decibel values obtained by testing each segment of the first test audio, the second test audio is played to test the sensitivity of the user to perceive the subtle sound intensity difference under different preset decibel values. Specifically, the step of testing the sensitivity of the user to perceive the subtle sound intensity difference under different preset decibel values includes: keeping the volume position of the earphone device adjusted by the user under each segment of the first test audio, and playing a preset segment of second test audio with different preset decibel values corresponding to different decibel value differences. And record the minimum decibel value difference that the user can distinguish under each segment of the second test audio, take the minimum decibel value difference as the evaluation sensitivity value corresponding to the different preset decibel values, and the evaluation sensitivity value corresponds to the sensitivity of the user to perceive the subtle sound intensity difference under different preset decibel values.
[0095] For example, when playing a first test audio with a preset decibel value of 30, the user adjusts the volume position of the earphone device to x1, and the volume position of the earphone device is kept at x1, and a second test audio with different decibel value differences (such as 1, 2, … decibel value differences) based on the 30 decibel value sound intensity level is played, and the minimum decibel value difference (such as 1 decibel value difference) that the user (selected by the user) can distinguish under each segment of the second test audio is recorded, which is the evaluation sensitivity value of the user perceiving the subtle sound intensity difference under the 30 decibel value sound intensity level. By analogy, the evaluation sensitivity values corresponding to different preset decibel values can be tested and obtained.
[0096] After obtaining the evaluation volume values and the evaluation sensitivity values corresponding to different preset decibel values, the preset volume values corresponding to different preset decibel values can be obtained by subtracting the evaluation sensitivity values from the evaluation volume values. The preset volume values are lower than the evaluation volume values and are difficult to be perceived, so that the individual subjective preference of the user for the volume can be retained, the volume is actually reduced, and the differences between the to-be-played audios from different sources and with different sound intensities are coordinated. Therefore, the preset volume values are actually the most suitable volume values for the current hearing ability of the user under different preset decibel values.
[0097] Further, in an embodiment, before the step S10, the method further comprises:
[0098] determining whether the preset volume values corresponding to different preset decibel values are within the effective time range;
[0099] If the preset volume values corresponding to different preset decibel values are within the effective time range, the step of obtaining the preset volume values corresponding to different preset decibel values in a non-noise environment is performed.
[0100] In the embodiment, considering that the individual hearing ability of the user will change with physiological development and external factors, in order to ensure that the tested and calculated preset volume values are real-time and accurate, before obtaining the preset volume values corresponding to different preset decibel values in a non-noise environment, an effective time range is set for the tested preset volume values, that is, each time the preset volume value is tested and calculated, a test time stamp is correspondingly obtained.
[0101] In a case where the interval length between the test timestamp and the current acquisition time is less than the preset length, i.e. within the valid time range, it indicates that the preset volume value currently acquired is valid data, and the step of acquiring the preset volume value corresponding to each preset decibel value in the non-noise environment can be executed, so that the target volume value for subsequent volume adjustment of the volume device is suitable for the current hearing ability of the user. The hearing threshold of a minor changes at least every 180 days, and therefore the above valid time range can be 6 months for a minor user.
[0102] Further, in an embodiment, the step of determining whether the preset volume value corresponding to each preset decibel value is within the valid time range comprises:
[0103] If the preset volume value corresponding to each preset decibel value exceeds the valid time range, a first prompt information is output to prompt the user to re-evaluate the preset volume value corresponding to each preset decibel value.
[0104] In the embodiment, after the step of determining whether the preset volume value corresponding to each preset decibel value is within the valid time range, if the interval length between the test timestamp and the current acquisition time is greater than the preset length, the preset volume value currently acquired is not within the valid time range, i.e. invalid data. At this time, in order to ensure that the test and the calculated preset volume value are real-time and accurate, the step of acquiring the preset volume value corresponding to each preset decibel value in the non-noise environment is not executed, but a first prompt information is output to prompt the user to re-test the evaluation volume value and the evaluation sensitivity, so as to calculate and determine the preset volume value most suitable for the current hearing ability of the user at the current time under each preset decibel value.
[0105] Further, in an embodiment, the step of determining the target preset decibel value corresponding to the to-be-played audio comprises: Figure 4 The step S20 comprises:
[0106] Step S201, determining the preset decibel value closest to the decibel value of the to-be-played audio;
[0107] Step S202, if there is only one preset decibel value closest to the decibel value of the to-be-played audio, taking the closest preset decibel value as the target preset decibel value;
[0108] Step S203, if there are two preset decibel values closest to the decibel value of the to-be-played audio, taking the preset decibel value with the smallest decibel value as the target preset decibel value.
[0109] In the embodiment, specifically, the step of determining the target preset decibel value based on the decibel value of the audio to be played includes: determining a preset decibel value closest to the decibel value of the audio to be played, such as comparing the decibel value of the audio to be played with six different preset decibel values and taking the preset decibel value closest to the decibel value. If there is only one preset decibel value closest to the decibel value of the audio to be played, the closest preset decibel value is taken as the target preset decibel value. For example, if the decibel value of the audio to be played is 33 decibel values, the preset decibel value of the 30 decibel value sound intensity level is closest, and the preset decibel value of the 30 decibel value sound intensity level is taken as the target preset decibel value. If there are two preset decibel values closest to the decibel value of the audio to be played, the preset decibel value with the smallest decibel value of the two preset decibel values is taken as the target preset decibel value. For example, if the decibel value of the audio to be played is 45 decibel values, the preset decibel value of the 40 decibel value sound intensity level and the preset decibel value of the 50 decibel value sound intensity level are both relatively close, and the preset decibel value of the 40 decibel value sound intensity level is taken as the target preset decibel value.
[0110] Further, in an embodiment, the step S30 is followed by:
[0111] When receiving the set volume value input by the user, the volume of the earphone device is maintained as the target volume value, and the set volume value is compared with the target volume value.
[0112] If the set volume value is less than the target volume value, a second prompt information is output to prompt the user that the current volume is too low.
[0113] If the set volume value is greater than the target volume value, a third prompt information is output to prompt the user that the current volume is too high.
[0114] In the embodiment, after the step of automatically adjusting the volume value of the earphone device to the determined target volume value, when receiving the set volume value input by the user, in order to protect the user's hearing from being damaged, the volume of the earphone device is still maintained as the target volume value, and the set volume value is compared with the target volume value. If the set volume value is less than the target volume value, a second prompt information is output to prompt the user that the current volume is too low and is not suitable for entering the learning mode. If the set volume value is greater than the target volume value, a third prompt information is output to prompt the user that the current volume is too high and will damage the hearing. Through the above-mentioned way of giving the user corresponding prompts for volume adjustment, the user has a better experience.
[0115] The embodiment of the present application provides a volume adjusting method, which comprises the following steps: acquiring preset volume values corresponding to different preset decibel values in a non-noise environment; determining a target preset decibel value based on a decibel value of audio to be played; and adjusting the volume of a headset device to a target volume value which is the preset volume value corresponding to the target preset decibel value.
[0116] In a third aspect, the embodiment of the present application further provides a volume adjusting device.
[0117] With reference to Figure 5 , a functional module schematic diagram of an embodiment of the volume adjusting device.
[0118] In the embodiment, the volume adjusting device comprises:
[0119] The acquisition module 10 is configured to acquire preset volume values corresponding to different preset decibel values in a non-noise environment.
[0120] The determination module 20 is configured to determine a target preset decibel value based on a decibel value of audio to be played.
[0121] The adjusting module 30 is configured to adjust the volume of a headset device to a target volume value which is the preset volume value corresponding to the target preset decibel value.
[0122] Further, in an embodiment, the volume adjusting device further comprises a first judgment module configured to:
[0123] acquire an environmental volume value collected by the headset device;
[0124] determine whether the environmental volume value is greater than a preset noise threshold value;
[0125] if the environmental volume value is greater than the preset noise threshold value, it is determined that the current environment belongs to a noise environment;
[0126] if the environmental volume value is not greater than the preset noise threshold value, it is determined that the current environment belongs to a non-noise environment.
[0127] Further, in an embodiment, the volume adjusting device further comprises an evaluation module configured to:
[0128] playing first test audios of different preset decibel values in each preset segment, and recording the volume position of the earphone device adjusted by the user under each segment of the first test audios;
[0129] determining the evaluation volume value corresponding to each of the different preset decibel values based on the decibel value of each segment of the first test audios and the corresponding recorded volume position;
[0130] maintaining the volume position of the earphone device adjusted by the user under each segment of the first test audios, playing second test audios with different decibel value differences corresponding to each of the preset segments of different preset decibel values, and recording the minimum decibel value difference that can be distinguished by the user under each segment of the second test audios, taking the minimum decibel value difference as the evaluation sensitivity value corresponding to each of the different preset decibel values;
[0131] subtracting the evaluation sensitivity value from the evaluation volume value corresponding to each of the different preset decibel values to obtain the preset volume value corresponding to each of the different preset decibel values.
[0132] Further, in an embodiment, the volume adjusting apparatus further comprises a second judgment module configured to:
[0133] judging whether the preset volume value corresponding to each of the different preset decibel values is within the effective time range;
[0134] if the preset volume value corresponding to each of the different preset decibel values is within the effective time range, performing the step of obtaining the preset volume value corresponding to each of the different preset decibel values in the non-noise environment.
[0135] Further, in an embodiment, the volume adjusting apparatus further comprises a first prompt module configured to:
[0136] if the preset volume value corresponding to each of the different preset decibel values exceeds the effective time range, outputting a first prompt information to prompt the user to re-evaluate the preset volume value corresponding to each of the different preset decibel values.
[0137] Further, in an embodiment, the determining module 20 is further configured to:
[0138] determining the preset decibel value closest to the decibel value of the audio to be played;
[0139] if there is only one preset decibel value closest to the decibel value of the audio to be played, taking the closest preset decibel value as the target preset decibel value;
[0140] if there are two preset decibel values closest to the decibel value of the audio to be played, taking the preset decibel value with the smallest decibel value among the two preset decibel values as the target preset decibel value.
[0141] Further, in an embodiment, the volume adjusting apparatus further comprises a second prompt module configured to:
[0142] when receiving the set volume value input by the user, maintaining the volume of the earphone device as the target volume value, and comparing the set volume value with the target volume value;
[0143] if the set volume value is less than the target volume value, outputting second prompt information to prompt the user that the current volume is too low;
[0144] if the set volume value is greater than the target volume value, outputting third prompt information to prompt the user that the current volume is too high.
[0145] Corresponding to each step in the volume adjustment method embodiments, the functions of each module in the volume adjustment device are implemented, and the functions and implementation processes are not repeated here.
[0146] In a fourth aspect, the embodiments of the present application also provide a readable storage medium.
[0147] The readable storage medium of the present application stores a volume adjustment program, wherein the volume adjustment program is executed by a processor to implement the steps of the volume adjustment method described above.
[0148] The method implemented when the volume adjustment program is executed can refer to each embodiment of the volume adjustment method of the present application, and is not repeated here.
[0149] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles, or systems that include a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles, or systems. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or system that includes the element.
[0150] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
[0151] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and necessary general hardware platforms, of course, they can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, an optical disk) as described above, and includes a plurality of instructions for causing a terminal device to execute the methods described in each embodiment of the present application.
[0152] The above merely describes the preferred embodiments of the present application, and is not intended to limit the patent scope of the present application, and any equivalent structure or equivalent process conversion, or direct or indirect application in other related technical fields, which are made by using the content of the present application specification and drawings, are also included in the patent protection scope of the present application.
Claims
1. A method of adjusting volume, characterized by, The volume adjusting method comprises: In a non-noise environment, obtaining preset volume values corresponding to different preset decibel values respectively; Based on the decibel value of the audio to be played, determining a target preset decibel value; Taking the preset volume value corresponding to the target preset decibel value as a target volume value, adjusting the volume of the earphone device to the target volume value; Before the step of obtaining the preset volume values corresponding to the different preset decibel values respectively in the non-noise environment, the method further comprises: Playing first test audios of different preset decibel values in preset segments, and recording the volume positions of the earphone device adjusted by the user under each segment of the first test audios; Based on the decibel values of each segment of the first test audios and the corresponding recorded volume positions, determining evaluation volume values corresponding to different preset decibel values respectively; Keeping the volume positions of the earphone device adjusted by the user under each segment of the first test audios, playing second test audios corresponding to different preset decibel values in preset segments and containing different decibel value differences respectively, and recording the minimum decibel value difference that can be distinguished by the user under each segment of the second test audios, taking the minimum decibel value difference as an evaluation sensitivity value corresponding to different preset decibel values respectively; Subtracting the evaluation sensitivity value from the evaluation volume values corresponding to different preset decibel values to obtain the preset volume values corresponding to different preset decibel values respectively.
2. The volume adjusting method of claim 1, wherein, Before the step of obtaining the preset volume values corresponding to the different preset decibel values respectively in the non-noise environment, the method comprises: Obtaining an environmental volume value collected by the earphone device; Determining whether the environmental volume value is greater than a preset noise threshold value; If the environmental volume value is greater than the preset noise threshold value, it is determined that the current environment belongs to a noise environment; If the environmental volume value is not greater than the preset noise threshold value, it is determined that the current environment belongs to a non-noise environment.
3. The volume adjusting method of claim 1, wherein, Before the step of obtaining the preset volume values corresponding to the different preset decibel values respectively in the non-noise environment, the method comprises: Determining whether the preset volume values corresponding to different preset decibel values respectively are within an effective time range; If the preset volume values corresponding to different preset decibel values respectively are within the effective time range, the step of obtaining the preset volume values corresponding to the different preset decibel values respectively in the non-noise environment is executed.
4. The volume adjusting method of claim 3, wherein, After the step of determining whether the preset volume values corresponding to different preset decibel values respectively are within the effective time range, the method comprises: If the preset volume values corresponding to different preset decibel values respectively exceed the effective time range, outputting a first prompt information to prompt the user to re-evaluate the preset volume values corresponding to different preset decibel values respectively.
5. The volume adjusting method of claim 1, wherein, The step of determining a target preset decibel value based on the decibel value of the audio to be played comprises: Determining a preset decibel value closest to the decibel value of the audio to be played; If there is only one preset decibel value closest to the decibel value of the audio to be played, taking the closest preset decibel value as the target preset decibel value; If there are two preset decibel values closest to the decibel value of the audio to be played, taking the preset decibel value with the smallest decibel value among the two preset decibel values as the target preset decibel value.
6. The volume adjusting method of claim 1, wherein, After the step of adjusting the volume of the earphone device to the target volume value, the method comprises: When a user inputted setting volume value is received, the volume of the earphone device is maintained as a target volume value, and the setting volume value is compared with the target volume value; If the setting volume value is less than the target volume value, second prompt information is outputted to prompt the user that the current volume is too low; If the setting volume value is greater than the target volume value, third prompt information is outputted to prompt the user that the current volume is too high.
7. A volume adjusting apparatus for implementing the steps of the volume adjusting method according to any one of claims 1 to 6, characterized by, The volume adjusting device comprises: an acquisition module, configured to acquire preset volume values corresponding to different preset decibel values in a non-noise environment; a determination module, configured to determine a target preset decibel value based on a decibel value of an audio to be played; an adjusting module, configured to adjust the volume of the earphone device to a target volume value corresponding to the target preset decibel value.
8. A volume adjusting apparatus characterized by comprising: The volume adjusting device comprises a processor, a memory, and a volume adjusting program stored in the memory and executable by the processor, wherein the volume adjusting program, when executed by the processor, implements the steps of the volume adjusting method according to any one of claims 1 to 6.
9. A readable storage medium, characterized by, The readable storage medium has a volume adjusting program stored thereon, wherein the volume adjusting program, when executed by a processor, implements the steps of the volume adjusting method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for protecting hearing of human ears, earphone and mobile terminal
CN103873974A
Volume automatic adjustment method and device
CN105812581A
Volume control method and device
CN113827228A