CN114979360A - Volume adjusting method, device, terminal and storage medium - Google Patents

Volume adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN114979360A
CN114979360A CN202110193531.7A CN202110193531A CN114979360A CN 114979360 A CN114979360 A CN 114979360A CN 202110193531 A CN202110193531 A CN 202110193531A CN 114979360 A CN114979360 A CN 114979360A
Authority
CN
China
Prior art keywords
earphone
volume
preset
environmental
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110193531.7A
Other languages
Chinese (zh)
Inventor
陈盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110193531.7A priority Critical patent/CN114979360A/en
Publication of CN114979360A publication Critical patent/CN114979360A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention relates to a volume adjusting method, a volume adjusting device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring environmental parameters under the current environment; judging whether the environmental parameters meet preset environmental conditions or not; if the environmental parameters meet the preset environmental conditions, judging whether to access the earphone; and if the earphone is accessed, adjusting the playing volume of the earphone according to the environment parameters. When the terminal accesses the earphone, the playing volume of the earphone is adjusted according to the environmental parameters, so that the user can not wear the earphone in a quiet environment before sleeping, and the user experience is effectively improved.

Description

Volume adjusting method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminal equipment, in particular to a volume adjusting method, a volume adjusting device, a terminal and a storage medium.
Background
With the rapid development of terminal equipment, the terminal equipment is more and more intelligent, people's life can not leave the terminal equipment, for example, after turning off the light at night, the user often is used to lie in bed and use the smart mobile phone to see the image-text news, and the life interest is adjusted.
However, when people watch long-time image-text news, an interested video is brushed, the user forgets to tune the sound when the user opens the earphone, and as a result, the sound is loud and very obtrusive, and people can easily tune a room friend if the user closes the earphone, or the user can also forget to tune the sound to cause the problem of loud video playing sound before wearing the earphone, and although other people cannot be tuned, the user experience of the earphone wearer is not very friendly.
Disclosure of Invention
The embodiment of the invention aims to provide a volume adjusting method, a volume adjusting device, a terminal and a storage medium, which can properly adjust the playing volume of the terminal when the surrounding environment of a user changes.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, where the method includes:
acquiring environmental parameters under the current environment;
judging whether the environmental parameters meet preset environmental conditions or not;
if the environmental parameters meet the preset environmental conditions, judging whether to access the earphone;
and if the earphone is accessed, adjusting the playing volume of the earphone according to the environment parameters.
In some embodiments, after the determining whether to access the headset, the method further comprises:
if the earphone is not accessed, detecting the current volume value;
determining a first pre-tuning volume value according to the environment parameter;
adjusting the current volume value to the first pre-adjusted volume value.
In some embodiments, the adjusting, if the headset is connected, the playing volume of the headset according to the environment parameter includes:
if the earphone is accessed, detecting the current state of the earphone;
and if the current state is detected to be a preset state or the current state is changed into the preset state, adjusting the playing volume of the earphone according to the environment parameters.
In some embodiments, the preset state is a state in which an included angle between a central axis of the earphone and an abscissa of a world coordinate system is smaller than a preset angle.
In some embodiments, said adjusting the playback volume of said headphones according to said environmental parameter comprises:
detecting a current playing volume value of the earphone;
calculating a second pre-tuning volume value according to the environment parameter;
adjusting the current playback volume value to the second pre-adjusted volume value.
In some embodiments, the method further comprises:
and after the current volume value is adjusted to the first pre-tone value or the current playing volume value is adjusted to the second pre-tone value, pushing a volume adjustment notice to a screen.
In some embodiments, the environmental parameter includes an environmental noise value and/or an environmental illumination intensity, and the obtaining the environmental parameter in the current environment includes:
acquiring an environmental noise value under the current environment through a noise sensor; and/or
And acquiring the ambient illumination intensity under the current environment through an ambient light sensor.
In some embodiments, the determining whether the environmental parameter meets a preset environmental condition includes:
judging whether the environmental noise value is smaller than a preset noise value or not; and/or
Judging whether the ambient illumination intensity is smaller than a preset illumination intensity;
and if the environmental noise value is smaller than the preset noise value and/or the environmental illumination intensity is smaller than the preset illumination intensity, judging that the environmental parameter meets the preset environmental condition.
In a second aspect, an embodiment of the present invention further provides a volume adjustment device, where the device includes:
the environment parameter acquisition module is used for acquiring environment parameters under the current environment;
the first judgment module is used for judging whether the environmental parameters meet preset environmental conditions or not;
the second judgment module is used for judging whether to access the earphone or not if the environmental parameters meet the preset environmental conditions;
and the earphone volume adjusting module is used for adjusting the playing volume of the earphone according to the environment parameters if the earphone is connected.
In a third aspect, an embodiment of the present invention further provides a chip, including:
and the processor is used for calling and running the computer program from the memory so that the equipment provided with the chip executes the method.
In a fourth aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
at least one processor, and
a memory communicatively coupled to the at least one processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
In a fifth aspect, the present invention also provides a non-transitory computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a terminal, the terminal executes the method described above.
In a sixth aspect, the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a terminal, the terminal is caused to execute the method described above.
Compared with the prior art, the application has the following beneficial effects at least: the volume adjusting method, the volume adjusting device, the terminal and the storage medium of the embodiment of the invention obtain the environmental parameters in the current environment, for example, the environmental parameters can include an environmental noise value and/or an environmental illumination intensity, judge whether the environmental parameters meet the preset environmental conditions, if so, indicate that the environment where the user is located is a quieter environment with darker light and/or lower noise, at this time, judge whether the terminal is connected to an earphone, and adjust the playing volume of the earphone according to the environmental parameters when the terminal is connected to the earphone, so that the earphone worn by the user can not be played loudly in the quieter environment before sleeping, and the user experience is effectively improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of an embodiment of a terminal of the present invention;
FIG. 2 is a flow chart diagram illustrating one embodiment of a volume adjustment method of the present invention;
FIG. 3 is a schematic diagram of a headset according to an embodiment of the volume adjustment method of the present invention;
FIG. 4 is a schematic diagram of a headset according to an embodiment of the volume adjustment method of the present invention
Fig. 5 is a schematic structural view of an embodiment of the volume adjusting apparatus of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of the volume adjusting device of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminal can be a mobile phone, a tablet personal computer and an electronic device with a visual screen and/or a communication function. The terminal can be connected with a headset or other sound playing equipment, and the headset can be a wireless headset such as a Bluetooth headset or other wired headsets. When the surrounding environment of the terminal of the user changes, the playing volume of the terminal is properly adjusted.
Fig. 1 schematically shows a hardware structure of the terminal 100, and as shown in fig. 1, the terminal 100 includes a memory 11 and a processor 12, and the processor 12 is connected to the memory 11. Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of the terminal, which may include more or fewer components than those shown, or some components may be combined, some components may be split, or a different arrangement of components may be used.
The memory 11, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 11 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 11 may optionally include memory located remotely from the processor 12, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 12 is a control center of the terminal, connects various parts of the whole terminal by using various interfaces and lines, and executes various functions and processes data of the terminal by running or executing software programs and/or modules stored in the memory 11 and calling the data stored in the memory 11, thereby performing overall monitoring of the terminal, for example, implementing the volume adjustment method according to any embodiment of the present invention.
The number of the processors 12 may be one or more, and one processor 12 is illustrated in fig. 1. The processor 12 and the memory 11 may be connected by a bus or other means, such as the bus connection in fig. 1. The processor 12 may include a Central Processing Unit (CPU), Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), controller, Field Programmable Gate Array (FPGA) device, or the like. The processor 12 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The method, the apparatus, the terminal and the storage medium for adjusting the volume according to the embodiments of the present invention may be performed by the terminal 100, and in particular, in some embodiments, the method may be performed by the processor 12.
Fig. 2 is a schematic flow chart of a volume adjustment method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
101: and acquiring environmental parameters under the current environment.
The terminal may obtain an environmental parameter in a current environment, specifically, the environmental parameter may include an environmental noise value and/or an environmental illumination intensity, and the obtaining of the environmental parameter in the current environment may include:
acquiring an environmental noise value under the current environment through a noise sensor; and/or
And acquiring the ambient light intensity in the current environment through an ambient light sensor.
The terminal can be provided with a noise sensor and/or an ambient light sensor, the noise sensor is used for acquiring an ambient noise value of the terminal in the current environment, and/or the ambient light sensor is used for acquiring the ambient light intensity of the terminal in the current environment.
In the division of the environmental noise values, the noise level is 30-40 decibels, and the normal environment is quite quiet; if the sleeping time exceeds 50 decibels, the sleeping and the rest can be influenced, and the normal physiological function can be influenced to a certain extent due to insufficient rest and incapability of eliminating fatigue; conversation is interfered by more than 70 decibels, so that the mind and the spirit are not concentrated, the working efficiency is influenced, and even accidents occur; a noisy environment, working for a long time or living above 90 db, can seriously affect hearing and cause other diseases.
The ambient light intensity can be determined by light sensation data collected by an ambient light sensor.
The illumination intensity refers to the luminous flux of visible light received per unit area, in Lux or lx, and is used to indicate the intensity of illumination and the amount of illumination on the surface area of an object.
The ambient light intensity is generally classified into the following classes: at night: 0.001-0.02; and (4) at night: 0.02-0.3; in a cloudy day: 5 to 50; outside a cloudy day: 50-500; indoor in a sunny day: 100 to 1000; illuminance under sunlight at noon in summer: about 10 x 9 to the power; the required illumination when reading books and periodicals: 50-60.
After the environmental noise value and/or the environmental illumination intensity in the current environment are/is obtained, the current environment where the user is located can be determined according to the environmental noise value and/or the environmental illumination intensity, for example, if the environmental noise value is small, the user is in a quieter environment, and a large volume does not need to be turned on; if the ambient light level is weak, indicating that the user is in a darker environment, such as when the user may have turned off the lights and is preparing to sleep, a relatively quiet environment is also desirable, without turning on a loud volume.
102: and judging whether the environmental parameters meet preset environmental conditions.
After obtaining the environmental parameter, determining whether the environmental parameter satisfies a preset environmental condition may include:
judging whether the environmental noise value is smaller than a preset noise value or not; and/or
Judging whether the ambient illumination intensity is smaller than a preset illumination intensity;
and if the environmental noise value is smaller than the preset noise value and/or the environmental illumination intensity is smaller than the preset illumination intensity, judging that the environmental parameter meets the preset environmental condition.
For example, the preset noise value is 40 db, when the user is ready to sleep at night, the external environment is generally quite, usually 30-40 db, for example, the user lives with other buddies, when the user is ready to sleep, the user usually reduces his/her own volume, or does not speak, and at this time, the noise value of the current environment is usually smaller than the preset noise value by 40 db. When the environmental noise value is less than the preset noise value, it may be determined that the environmental parameter satisfies the preset environmental condition.
For another example, the preset ambient light intensity is 1.2lux, and when the ambient light intensity is less than 1.2lux, the user can be considered to be in a darker environment, for example, the user turns off the light to prepare for sleeping, and at this time, if the user uses the terminal to brush the video, if the user externally emits sound, the louder sound is obviously generated to the roommates; or, if the user wears the headset, the volume of the headset also does not need to be too large if the user is in a dark environment or a dark and quiet environment (i.e., the ambient noise value is less than the preset noise value), and the user feels that the sound of the headset is too large when wearing the headset because the ambient environment is quiet.
Therefore, when the ambient light intensity is smaller than the preset light intensity and/or the ambient noise value is smaller than the preset noise value, the environmental parameter is judged to meet the preset environmental condition. Whether environmental parameter satisfies when predetermineeing the ambient condition, can adjust the broadcast volume, for example, for the sound state of playing outside when the terminal, can be with broadcast volume control for not disturbing other people's volume, for example again, insert the earphone when the terminal, when the user listened to the sound at terminal through the earphone, can be with the broadcast volume control of earphone for the volume that can not amazing people's ear.
Correspondingly, if the environmental noise value is not less than the preset noise value and/or the environmental illumination intensity is not less than the preset illumination intensity, it is determined that the environmental parameter does not satisfy the preset environmental condition, for example, the environmental noise value is greater than the preset noise value, which indicates that the user is still in a relatively noisy environment, and the volume can be maintained at the originally adjusted position of the user, so that the user can clearly listen to the played content; for another example, the ambient light intensity is not less than the preset light intensity, which indicates that the user is still in a brighter environment, e.g., turning on the lamp state, which indicates that the user is not ready to sleep, and the volume can be maintained at the original position adjusted by the user; for another example, the ambient noise value is greater than the preset noise value, and the ambient illumination intensity is not less than the preset illumination intensity, which indicates that the user is in a relatively noisy and relatively bright environment, and the volume can be maintained at the original position adjusted by the user.
103: and if the environmental parameters meet the preset environmental conditions, judging whether to access the earphone.
And when the environmental noise value in the environmental parameters is smaller than the preset noise value and/or the environmental illumination intensity is smaller than the preset illumination intensity, judging whether the terminal is accessed to the earphone.
Because the environment parameter indicates the environment where the user is located, for example, when the current environment is quiet and/or the environment after turning off the light at night, the state that the user swipes the mobile phone before sleep can be determined, and at this time, whether the terminal is connected to the earphone or not can be determined.
The user can use the earphone to connect the terminal, listen to the audio and video of the terminal, the terminal can also be in the sound external playing state, namely the state of not connecting the earphone, the sound of the audio and video is played out directly.
In some embodiments, after the determining whether to access the headset, the method further comprises:
if the earphone is not accessed, detecting the current volume value;
determining a first pre-tuning volume value according to the environment parameter;
adjusting the current volume value to the first pre-adjusted volume value.
Specifically, when the terminal detects that the earphone is not accessed, the terminal is in a sound playing state at present, a current volume value of the terminal is detected, namely the playing volume of the terminal is detected, a first preset volume value is calculated according to environmental parameters, and the current volume value is adjusted to the first preset volume value.
The dimensionless range of the volume value of the terminal is defined as 0% -100%, for example, the corresponding environmental noise value is 0-100 decibels, and the corresponding environmental illumination intensity is 0-1 lux; if it is detected that the terminal is not connected to the headset, it is detected that the current volume value is 80% of the total volume value, then, according to the environmental parameter, for example, according to the environmental noise being 30 db and/or the environmental illumination intensity being 0.4lux, it may be determined that the first preset volume value is 30% when the first preset volume value is 100%/3%, and then, the current volume value is adjusted to 30% of the first preset volume value 80%. Of course, the adjustment range of the volume is not limited to the above corresponding relationship, and other corresponding relationships may be used as long as the current volume value can be adjusted to a mode that the user can hear the current volume value and the volume value of the surrounding roommates is not affected.
When the earphone access is not detected, the terminal is determined to be in an external sound playing state, and the user can be considered to be in a state after the light is turned off before the user falls asleep because the user is in a quite and dim scene, and at the moment, the current volume value of the terminal is adjusted to the first preset volume, so that the external sound playing of the terminal cannot influence other people, and the user can listen to the external sound.
104: and if the earphone is accessed, adjusting the playing volume of the earphone according to the environment parameters.
In some embodiments, after detecting that the terminal accesses the headset, adjusting the playing volume of the headset according to the environmental parameter may include:
if the earphone is accessed, detecting the current state of the earphone;
and if the current state is detected to be a preset state or the current state is changed into the preset state, adjusting the playing volume of the earphone according to the environment parameters.
Specifically, after detecting that the earphone is accessed, the terminal is in an earphone playing state, and at this time, the current state of the earphone may be detected. The current state of the headset may be detected by a built-in gyroscope.
Taking a bluetooth headset as an example, when a user sits or stands, as shown in fig. 3, L in fig. 3 is a central axis of the headset, the central axis refers to a central line of an axisymmetric figure, a building and other articles, and all axisymmetric articles are folded and folded on the central axis and coincide with each other. If the central axis L of the earphone is 90 degrees or close to 90 degrees with respect to the abscissa x-axis of the world coordinate system and the user is in a state of lying on his side or lying on his back, the ears of the user will tilt with respect to the human body, so that the earphone will tilt with respect to the human body, as shown in fig. 4, at this time, an included angle is formed between the central axis L of the earphone and the abscissa x-axis of the world coordinate system, and if the preset angle is 30 degrees or less, it can be basically determined that the user is in a state of lying on his back, then, when the current state of the earphone is detected, the preset state is a state in which the included angle between the central axis L of the earphone and the abscissa x-axis of the world coordinate system is less than the preset angle of 30 degrees, or the user changes from a current sitting state, i.e., in which the central axis L of the earphone and the abscissa x-axis of the world coordinate system are 90 degrees, to a state in which the included angle between the central axis L of the earphone and the abscissa x-axis of the world coordinate system is less than the preset angle of 30 degrees I.e. it is determined that the user changes from a sitting or standing state to a lying state, then the playback volume of the headphones is adjusted according to the environmental parameters.
In some embodiments, adjusting the playing volume of the earphone according to the environment parameter may include:
detecting a current playing volume value of the earphone;
calculating a second pre-tuning volume value according to the environment parameter;
adjusting the current playback volume value to the second pre-tone value.
Specifically, the volume adjustment mode when the earphone is not used can be referred to, and because the user is in a quiet and dim scene, the user can be considered to be in a state after turning off the light before sleeping, and at this time, the current playing volume value of the earphone is adjusted to the second preset volume, so that the volume transmitted to the earphone by the terminal is not too large, and the ear canal of the user is not comfortable.
In some embodiments, after the current volume value is adjusted to the first preset volume value or the current playing volume value is adjusted to the second preset volume value, a volume adjustment notification is pushed to the screen, so that the user knows that the terminal automatically adjusts the volume, and the user can adjust the volume again according to the user's own needs.
The volume adjusting method of the embodiment of the invention obtains the environmental parameters in the current environment, for example, the environmental parameters can include an environmental noise value and/or an environmental illumination intensity, judges whether the environmental parameters meet preset environmental conditions, if so, indicates that the environment where the user is located is a quieter environment with darker light and/or lower noise, at this time, judges whether the terminal is connected to an earphone, and adjusts the playing volume of the earphone according to the environmental parameters when the terminal is connected to the earphone, so that the earphone worn by the user is not played loudly in the quieter environment before sleeping, and the user experience is effectively improved.
Accordingly, as shown in fig. 5, an embodiment of the present invention further provides a volume adjustment device, which can be applied to a terminal, such as the terminal 100 shown in fig. 1, where the volume adjustment device 800 includes:
an environment parameter obtaining module 801, configured to obtain an environment parameter in a current environment;
a first determining module 802, configured to determine whether the environmental parameter meets a preset environmental condition;
a second determining module 803, configured to determine whether to access the earphone if the environment parameter satisfies the preset environment condition;
and the earphone volume adjusting module 804 is configured to adjust the playing volume of the earphone according to the environment parameter if the earphone is connected.
The volume adjusting method, the volume adjusting device, the terminal and the storage medium of the embodiment of the invention obtain the environmental parameters in the current environment, for example, the environmental parameters can include an environmental noise value and/or an environmental illumination intensity, judge whether the environmental parameters meet the preset environmental conditions, if so, indicate that the environment where the user is located is a quieter environment with darker light and/or lower noise, at this time, judge whether the terminal is connected to an earphone, and adjust the playing volume of the earphone according to the environmental parameters when the terminal is connected to the earphone, so that the earphone worn by the user can not be played loudly in the quieter environment before sleeping, and the user experience is effectively improved.
In some embodiments, referring to fig. 6, the volume adjustment apparatus 800 further includes:
an outgoing volume adjustment module 805 configured to:
if the earphone is not accessed, detecting the current volume value;
determining a first pre-tuning volume value according to the environment parameter;
adjusting the current volume value to the first pre-adjusted volume value.
In some embodiments, the headphone volume adjustment module 804 is further configured to:
if the earphone is accessed, detecting the current state of the earphone;
and if the current state is detected to be a preset state or the current state is changed into the preset state, adjusting the playing volume of the earphone according to the environment parameters.
In some embodiments, the preset state is a state in which an included angle between a central axis of the earphone and an abscissa of a world coordinate system is smaller than a preset angle.
In some embodiments, the headphone volume adjustment module 804 is further configured to:
detecting a current playing volume value of the earphone;
calculating a second pre-tuning volume value according to the environment parameter;
adjusting the current playback volume value to the second pre-adjusted volume value.
In some embodiments, referring to fig. 6, the volume adjustment apparatus 800 further includes:
a notification module 806, configured to push a volume adjustment notification to a screen after adjusting the current volume value to the first preset volume value or adjusting the current playing volume value to the second preset volume value.
In some embodiments, the environmental parameter includes an environmental noise value and/or an environmental illumination intensity, and the environmental parameter obtaining module 801 is further configured to:
acquiring an environmental noise value under the current environment through a noise sensor; and/or
And acquiring the ambient illumination intensity under the current environment through an ambient light sensor.
In some other embodiments, the first determining module 802 is further configured to:
judging whether the environmental noise value is smaller than a preset noise value or not; and/or
Judging whether the ambient illumination intensity is smaller than a preset illumination intensity;
and if the environmental noise value is smaller than the preset noise value and/or the environmental illumination intensity is smaller than the preset illumination intensity, judging that the environmental parameter meets the preset environmental condition.
It should be noted that the device has the corresponding functional modules and beneficial effects of the method. For technical details which are not described in detail in the device embodiments, reference is made to the methods provided in the embodiments of the present application.
Embodiments of the present application further provide a non-transitory computer-readable storage medium, which stores computer-executable instructions, which are executed by one or more processors, such as one of the processors 12 in fig. 1, and which enable the one or more processors to perform the volume adjustment method in any of the method embodiments, for example, to perform the method steps 101 to 104 in fig. 2 described above; the functions of the modules 801 and 804 in fig. 5 and the modules 801 and 806 in fig. 6 are realized.
The above-described embodiments of the apparatus are merely illustrative, and 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 position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, it is clear to those skilled in the art that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method of volume adjustment, the method comprising:
acquiring environmental parameters under the current environment;
judging whether the environmental parameters meet preset environmental conditions or not;
if the environmental parameters meet the preset environmental conditions, judging whether to access the earphone;
and if the earphone is accessed, adjusting the playing volume of the earphone according to the environment parameters.
2. The volume adjustment method of claim 1, wherein after the determining whether to access a headset, the method further comprises:
if the earphone is not accessed, detecting the current volume value;
determining a first pre-tuning volume value according to the environment parameter;
adjusting the current volume value to the first pre-adjusted volume value.
3. The method of claim 1, wherein the adjusting the playback volume of the headset according to the environment parameter if the headset is connected comprises:
if the earphone is accessed, detecting the current state of the earphone;
and if the current state is detected to be a preset state or the current state is changed into the preset state, adjusting the playing volume of the earphone according to the environment parameters.
4. The volume adjustment method according to claim 3, wherein the preset state is a state in which an included angle between a central axis of the earphone and an abscissa of a world coordinate system is smaller than a preset angle.
5. The volume adjustment method of claim 1, wherein the adjusting the playing volume of the earphone according to the environment parameter comprises:
detecting a current playing volume value of the earphone;
calculating a second pre-tuning volume value according to the environment parameter;
adjusting the current playback volume value to the second pre-tone value.
6. The volume adjustment method according to any one of claims 2 to 5, characterized in that the method further comprises:
and after the current volume value is adjusted to the first preset volume value or the current playing volume value is adjusted to the second preset volume value, pushing a volume adjustment notice to a screen.
7. The volume adjustment method according to claim 1, wherein the environment parameter includes an environment noise value and/or an environment illumination intensity, and the obtaining the environment parameter in the current environment includes:
acquiring an environmental noise value under the current environment through a noise sensor; and/or
And acquiring the ambient illumination intensity under the current environment through an ambient light sensor.
8. The method of claim 7, wherein the determining whether the environmental parameter satisfies a predetermined environmental condition comprises:
judging whether the environmental noise value is smaller than a preset noise value or not; and/or
Judging whether the ambient illumination intensity is smaller than a preset illumination intensity;
and if the environmental noise value is smaller than the preset noise value and/or the environmental illumination intensity is smaller than the preset illumination intensity, judging that the environmental parameters meet the preset environmental conditions.
9. A volume adjustment device, characterized in that the device comprises:
the environment parameter acquisition module is used for acquiring environment parameters under the current environment;
the first judgment module is used for judging whether the environmental parameters meet preset environmental conditions or not;
the second judgment module is used for judging whether to access the earphone or not if the environmental parameters meet the preset environmental conditions;
and the earphone volume adjusting module is used for adjusting the playing volume of the earphone according to the environment parameters if the earphone is connected.
10. A terminal, characterized in that the terminal comprises:
at least one processor, and
a memory communicatively coupled to the at least one processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method of any of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a terminal, cause the terminal to perform the method of any one of claims 1-8.
CN202110193531.7A 2021-02-20 2021-02-20 Volume adjusting method, device, terminal and storage medium Pending CN114979360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110193531.7A CN114979360A (en) 2021-02-20 2021-02-20 Volume adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110193531.7A CN114979360A (en) 2021-02-20 2021-02-20 Volume adjusting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114979360A true CN114979360A (en) 2022-08-30

Family

ID=82954758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110193531.7A Pending CN114979360A (en) 2021-02-20 2021-02-20 Volume adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114979360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495040A (en) * 2022-10-09 2022-12-20 湖南捷力泰科技有限公司 Scene type-based sound control method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957790A (en) * 2011-08-25 2013-03-06 北京爱国者信息技术有限公司 Automatic regulation module of mobile terminal and implementation method thereof
CN104869218A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and device and electronic equipment
CN105430191A (en) * 2015-12-24 2016-03-23 北京奇虎科技有限公司 Volume adjusting method and device
CN106027809A (en) * 2016-07-27 2016-10-12 维沃移动通信有限公司 Volume adjusting method and mobile terminal
CN107508986A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN112004172A (en) * 2020-07-10 2020-11-27 奇酷互联网络科技(深圳)有限公司 Earphone control method, earphone and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957790A (en) * 2011-08-25 2013-03-06 北京爱国者信息技术有限公司 Automatic regulation module of mobile terminal and implementation method thereof
CN104869218A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and device and electronic equipment
CN105430191A (en) * 2015-12-24 2016-03-23 北京奇虎科技有限公司 Volume adjusting method and device
CN106027809A (en) * 2016-07-27 2016-10-12 维沃移动通信有限公司 Volume adjusting method and mobile terminal
CN107508986A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN112004172A (en) * 2020-07-10 2020-11-27 奇酷互联网络科技(深圳)有限公司 Earphone control method, earphone and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495040A (en) * 2022-10-09 2022-12-20 湖南捷力泰科技有限公司 Scene type-based sound control method and related device

Similar Documents

Publication Publication Date Title
US7868757B2 (en) Method for the monitoring of sleep using an electronic device
CN108989931B (en) Hearing protection earphone, hearing protection method thereof and computer readable storage medium
CN108810788B (en) Wearing condition detection method and device of wireless earphone and wireless earphone
CN108540906A (en) Volume adjusting method, earphone and computer readable storage medium
CN208908482U (en) The earphone of adjustable noise reduction
CN110678921A (en) Dynamic text-to-speech response from smart speakers
CN109788388A (en) Earphone noise-reduction method, smart bluetooth earphone and computer readable storage medium
CN106375573B (en) Method and device for switching call mode
CN112087685A (en) Control method and device of sleep-aiding earphone
CN112911487B (en) In-ear detection method for wireless headset, wireless headset and storage medium
CN103458113A (en) Method and terminal for adjusting communication volume
CN106470374A (en) Volume adjusting method, wearable device, terminal unit and sound volume regulating system
CN106791181A (en) A kind of contextual model adjusting method and device based on mobile terminal
CN105657595A (en) Earphone capable of automatically adjusting volume and method for automatically adjusting volume of earphone
CN103531214A (en) Control method and control device of indoor equipment
CN103401985A (en) Voice control method and terminal
WO2016074438A1 (en) Terminal shutdown method and device
CN107018230A (en) A kind of back light brightness regulating method and terminal
CN107872586A (en) A kind of volume adjusting method and system
CN114979360A (en) Volume adjusting method, device, terminal and storage medium
CN113596657A (en) Earphone in-ear detection method, terminal and computer readable storage medium
CN108234738A (en) volume adjusting method, device, terminal and storage medium
CN113676595B (en) Volume adjustment method, terminal device, and computer-readable storage medium
CN113949956A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
CN110995925A (en) Method, system, mobile terminal and storage medium for adjusting volume

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