CN107508986B - Volume adjusting method and device, storage medium and terminal equipment - Google Patents
Volume adjusting method and device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN107508986B CN107508986B CN201710726753.4A CN201710726753A CN107508986B CN 107508986 B CN107508986 B CN 107508986B CN 201710726753 A CN201710726753 A CN 201710726753A CN 107508986 B CN107508986 B CN 107508986B
- Authority
- CN
- China
- Prior art keywords
- volume
- value
- environment
- terminal equipment
- volume adjustment
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a volume adjusting method and device, a storage medium and terminal equipment. The method comprises the following steps: determining an environment brightness value under the current environment through a light sensing device of the terminal equipment, and determining an environment type under the current environment according to the environment brightness value; determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table; and adjusting the volume of the terminal equipment according to the volume adjusting information. The invention has the advantages of improving the volume adjusting efficiency of the terminal equipment and reducing the power consumption of the terminal equipment.
Description
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a volume adjusting method, a volume adjusting device, a storage medium and terminal equipment.
Background
With the development of mobile networks, terminal devices are gradually popularized in the lives of people, wherein the most common terminal device is a smart phone, and in the prior art, the volume of the smart phone is generally adjusted through physical keys on the smart phone or through a screen control button of the smart phone; such a volume adjustment method is not flexible enough and needs to be further improved.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method and device, a storage medium and a terminal device, which improve the volume adjusting efficiency of the terminal device and reduce the power consumption of the terminal device.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, including:
determining an environment brightness value under the current environment through a light sensing device of the terminal equipment, and determining an environment type under the current environment according to the environment brightness value;
determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table;
and adjusting the volume of the terminal equipment according to the volume adjusting information.
In a second aspect, an embodiment of the present invention provides a volume adjustment device, including:
the environment determining module is used for determining an environment brightness value under the current environment through a light sensing device of the terminal equipment and determining an environment type under the current environment according to the environment brightness value;
the volume adjustment determining module is used for determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table;
and the adjusting module is used for adjusting the volume of the terminal equipment according to the volume adjusting information.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a volume adjustment method according to an embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the volume adjustment method according to the embodiment of the present invention.
According to the volume adjusting method provided by the embodiment of the invention, the environment type of the terminal device is judged by acquiring the environment brightness value of the terminal device, and the volume of the terminal device is adjusted according to the environment type. By adopting the technical scheme, the volume adjusting efficiency of the terminal equipment is improved, and the power consumption of the terminal equipment is reduced.
Drawings
Fig. 1 is a schematic flow chart of a volume adjustment method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of volume adjustment according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another volume adjustment provided by the embodiment of the present invention;
FIG. 5 is a schematic diagram of another volume adjustment provided by the embodiment of the present invention;
fig. 6 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 8 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 9 is a block diagram of a volume adjustment device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The volume adjustment function of the existing smart phone is passive, and the volume of the smart phone can be adjusted generally only by manually adjusting a volume key by a user; for example, when a user is indoors, the user is generally in a relatively quiet environment, so the user generally turns the volume down, when the user goes from indoors to outdoors, the user is generally noisy outdoors, and when the user enters a noisy environment, if the user forgets to turn the volume of the smartphone up, the user may miss an incoming call or information. The volume adjusting method provided by the embodiment of the invention can well solve the problem that the volume control is passive.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present invention, where the method may be executed by a volume control device, where the volume control device may be implemented by software and/or hardware, and may be generally integrated in a terminal device. As shown in fig. 1, the method includes:
as shown in fig. 3 to 5, a light sensation value is obtained by the light sensation device 10 of the terminal device 00, and an environment brightness value in the current environment is determined by the light sensation value; the environment types include a brighter environment, a normal environment, a darker environment, a dark environment, and the like; for example, a sunny outdoor environment belongs to a brighter environment, a sunny indoor environment belongs to a common environment, a cloudy outdoor environment belongs to a darker environment, and a dark environment at night.
Alternatively, as shown in fig. 2, step 101 may be implemented by:
101b, selecting the maximum light sensation value in the light sensation values of the preset times, and determining the maximum light sensation value as an environment brightness value in the current environment;
and step 101c, determining the environment type under the current environment according to the environment brightness value.
The angular velocity data is acquired through a gyroscope of the terminal device so as to judge whether the terminal device moves. When a user uses a terminal device such as a mobile phone, the light sensation value detected by the light sensation device of the mobile phone changes when the user walks or rotates the using angle of the mobile phone, so that the wrong judgment of the environment type is likely to occur. If the terminal device is detected to move, for example, the preset number of times is 5, the light sensation values of the light sensation devices are obtained 5 times at intervals of every 1 second, then the maximum light sensation value is selected from the 5 light sensation values, and the maximum light sensation value is determined as the environment brightness value in the current environment; the movement within a short period of time, which is generally in the same environment, is selected so that the maximum of several light sensitivity values can be determined more accurately to the nearest ambient brightness value. Therefore, the judgment error of the environment type caused by the fact that the user walks or rotates the using angle of the mobile phone can be avoided, and accurate judgment is achieved.
the stored preset adjusting table comprises a relational mapping table of environment types and volume adjusting information; for example, the environment type is a bright environment, and at this time, the user may be outdoors in a clear weather, so the corresponding volume adjustment information is adjusted to 10 (the volume range of the terminal device is 0-10), as shown in fig. 3, the volume adjustment to a large volume may enable the user to hear the sound of the mobile phone outdoors; for another example, when the environment type is a dark environment, and the user may be indoors at night, the corresponding volume adjustment information is adjusted to 3, as shown in fig. 4, the volume is adjusted to be smaller, and the sound of the mobile phone can also be heard.
And 103, adjusting the volume of the terminal equipment according to the volume adjusting information.
Optionally, the manner of adjusting the volume of the terminal device includes:
firstly, increasing and/or decreasing the current volume value of the terminal equipment according to a first preset adjusting value in the volume adjusting information; or
Setting the current volume value of the terminal equipment as a second preset adjusting value in the volume adjusting information; or
And thirdly, increasing and/or decreasing the current volume value of the terminal equipment according to the volume adjustment coefficient in the volume adjustment information.
For example, the volume range of the terminal device is 0-10, the first preset adjustment value in the volume adjustment information is 3, and the adjustment attribute is increased; the current volume value of the terminal device is 5, as shown in fig. 5; after the first execution mode, the volume value of the terminal device will be adjusted to 8. Accordingly, if the first preset adjustment value in the volume adjustment information is 3 and the adjustment attribute is decreasing, the volume value of the terminal device will be adjusted to 2 after the first execution mode.
For another example, the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; then after the second implementation the volume value of the terminal device will be adjusted directly to 7.
If the volume adjustment coefficient in the volume adjustment information is 1.2 and the current volume value of the terminal device is 5, the volume value of the terminal device will be adjusted to 6(5 × 1.2) after the third execution mode; if the volume adjustment factor in the volume adjustment information is 0.8 and the current volume value of the terminal device is 5, the volume value of the terminal device will be adjusted to 4(5 × 0.8) after the third execution mode.
Optionally, when the current volume value of the terminal device is not equal to the second preset adjustment value, setting the current volume value of the terminal device as the second preset adjustment value in the volume adjustment information.
Alternatively, as shown in fig. 2, step 103 may also be implemented by:
103a, determining a noise value under the current environment through a sound sensor of the terminal equipment;
the noise value is specifically a sound decibel value in the environment, for example, a noise value of a common office is 50 decibels, and a noise value of a street is 60 decibels.
for example, 0-20 decibels are barely perceptible sounds; 20-40 decibels are the sound of quiet, whisper; 40-60 decibels are the sound of a normal room conversation; 60-60 decibels are noisy and nerve-damaging sounds; 60-90 db is noisy and the nerve cells are damaged. The noise value within 0-40 dB does not influence the hearing of the user on the volume of the mobile phone, 40-60 dB slightly influences the hearing of the user, 60-60 dB greatly influences the hearing of the user, and 60-90 dB greatly influences the hearing of the user.
As shown in table 1, the preset scaling factor corresponding to the noise value of 0-40 db is 0; the preset proportionality coefficient corresponding to the noise value of 40-60 decibels is 0.006, and the preset proportionality coefficient corresponding to the noise value of 60-60 decibels is 0.012; the preset scaling factor for a noise value of 60-90 db is 0.02. And multiplying the noise value by a corresponding preset proportional coefficient according to the difference of the noise value, and summing the noise value and the volume adjusting information to obtain second volume adjusting information.
TABLE 1
Noise value/decibel | Preset scale factor |
0-40 | 0 |
40-60 | 0.006 |
60-60 | 0.012 |
60-90 | 0.02 |
For example, the first preset adjustment value in the volume adjustment information is 3, the adjustment attribute is increase, and the current volume value of the terminal device is 5; the noise value under the current environment is 50, and the corresponding preset proportionality coefficient is 0.006, then the noise value is multiplied by the preset proportionality coefficient, and then the sum is summed with the first preset adjustment value in the volume adjustment information: 50 0.006+3 equals 3.3, the second volume adjustment information is obtained as an increase of 3.3, and the volume value of the terminal device is adjusted to 8.3.
For another example, the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; multiplying the noise value by a preset proportionality coefficient, and then summing with a second preset adjusting value in the volume adjusting information: 50 × 0.006+7 ═ 7.3; after the adjustment, the volume value of the terminal device is 7.3.
And 103c, adjusting the volume of the terminal equipment according to the second volume adjusting information.
The specific adjustment process can be referred to the above related description.
Fig. 6 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention, as shown in fig. 6, the method includes:
and step 204, adjusting the volume of the terminal equipment according to the volume adjusting information.
For example, when the user is in the middle of the night, the user puts the mobile phone under a desk lamp, which results in that the environment type determined by the light sensing device of the terminal device is a brighter environment, and the corresponding volume adjustment information is adjusted to 3 by acquiring the current system time of the terminal device as 11:30pm as shown in table 2. For another example, a user puts a mobile phone in a pocket outdoors in a clear weather, so that the environment type determined by the light sensing device of the terminal equipment is a dark environment; and the corresponding volume adjustment information is adjusted to 5 by acquiring that the current system time of the terminal device is 11:30 am.
Fig. 7 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention, as shown in fig. 7, the method includes:
and step 304, adjusting the volume of the terminal equipment according to the volume adjusting information.
For example, if the environment type in the current environment determined by the light sensing device of the terminal device is a bright environment and the weather data acquired through the weather data interface is rainy weather, it can be determined that the user is indoors, as shown in table 2, and the corresponding volume adjustment information is adjusted to 5.
Fig. 8 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention, as shown in fig. 8, the method includes:
and step 403, determining corresponding volume adjustment information according to the meteorological data, the system time, the environment type and a stored preset adjustment table.
And step 404, adjusting the volume of the terminal equipment according to the volume adjusting information.
For example, the environment type in the current environment determined by the light sensing device of the terminal device is a brighter environment, the weather data acquired through the weather data interface is rainy weather, and the system time is 11:30pm, as shown in table 2, the corresponding volume adjustment information is adjusted to 3; during the late night in rainy days, it is necessary to adjust to a smaller volume value.
TABLE 2
Type of environment | System time | Weather data | Volume adjustment information |
Brighter environment | null | null | Adjusted to 10 |
Brighter environment | 11:30pm | null | Adjusted to 3 |
Brighter environment | null | Weather of overcast and rainy | Adjusted to 5 |
Brighter environment | 11:30pm | Weather of overcast and rainy | Adjusted to 3 |
Fig. 9 is a block diagram of a volume adjusting apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal device, and as shown in fig. 9, the apparatus includes:
the environment determining module 501 is configured to determine an environment brightness value in the current environment through a light sensing device of the terminal device, and determine an environment type in the current environment according to the environment brightness value;
a volume adjustment determining module 502, configured to determine corresponding volume adjustment information according to the environment type and a stored preset adjustment table;
and an adjusting module 503, configured to adjust the volume of the terminal device according to the volume adjustment information.
The volume adjusting device provided by the embodiment of the invention judges the environment type of the terminal equipment by acquiring the environment brightness value of the terminal equipment, and then adjusts the volume of the terminal equipment according to the environment type. By adopting the technical scheme, the volume adjusting efficiency of the terminal equipment is improved, and the power consumption of the terminal equipment is reduced.
Optionally, the environment determining module is specifically configured to:
when the terminal equipment is detected to move, regularly acquiring light sensation values of preset times from a light sensation device of the terminal equipment, selecting the maximum light sensation value in the light sensation values of the preset times, and determining the maximum light sensation value as the environment brightness value in the current environment.
Optionally, the volume adjustment determination module is further configured to:
before determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table, acquiring the current system time of the terminal equipment;
the volume adjustment determination module is specifically configured to:
and determining corresponding volume adjustment information according to the system time, the environment type and a stored preset adjustment table.
Optionally, the volume adjustment determination module is further configured to:
acquiring meteorological data through a meteorological data interface of the terminal equipment before determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table;
the volume adjustment determination module is specifically configured to:
and determining corresponding volume adjustment information according to the meteorological data, the environment type and a stored preset adjustment table.
Optionally, the adjusting module is specifically configured to:
and determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient, summing the noise value and the volume adjustment information to obtain second volume adjustment information, and adjusting the volume of the terminal equipment according to the second volume adjustment information.
Optionally, the adjusting module is specifically configured to:
increasing and/or decreasing the current volume value of the terminal equipment according to a first preset adjusting value in the volume adjusting information; or
Setting the current volume value of the terminal equipment as a second preset adjusting value in the volume adjusting information; or
And increasing and/or decreasing the current volume value of the terminal equipment according to the volume adjustment coefficient in the volume adjustment information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the volume adjustment operation described above, and may also perform related operations in the volume adjustment method provided by any embodiment of the present invention.
The embodiment of the invention provides terminal equipment, and the terminal equipment can be integrated with the volume adjusting device provided by the embodiment of the invention. Fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 10, the terminal device may include: a casing (not shown), a touch screen (not shown), touch keys (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory 601 is used for storing executable program codes; the CPU602 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 601 to implement the steps of:
determining an environment brightness value under the current environment through a light sensing device of the terminal equipment, and determining an environment type under the current environment according to the environment brightness value;
determining corresponding volume adjustment information according to the environment type and a stored preset adjustment table;
and adjusting the volume of the terminal equipment according to the volume adjusting information.
The terminal device further includes: peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external ports 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal device 600 is only one example of a terminal device, and that the terminal device 600 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal device for volume adjustment provided in this embodiment, and the terminal device is a mobile phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal device and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The terminal equipment provided by the embodiment of the invention improves the volume adjusting efficiency of the terminal equipment and reduces the power consumption of the terminal equipment.
The volume adjusting device, the storage medium and the terminal device provided in the above embodiments can execute the volume adjusting method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a volume adjustment method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (4)
1. A method of adjusting volume, comprising:
acquiring a light sensitivity value through a light sensing device of the terminal equipment, determining an environment brightness value under the current environment through the light sensitivity value, and determining an environment type under the current environment according to the environment brightness value, wherein the environment type comprises a brighter environment, a common environment, a darker environment and a dark environment;
acquiring meteorological data through a meteorological data interface of the terminal equipment, and acquiring the current system time of the terminal equipment;
determining corresponding volume adjustment information according to the environment type, the meteorological data, the system time and a stored preset adjustment table;
adjusting the volume of the terminal equipment according to the volume adjusting information;
the method comprises the following steps of obtaining a light sensation value through a light sensation device of the terminal equipment, and determining an environment brightness value under the current environment through the light sensation value, wherein the method comprises the following steps:
when the terminal equipment is detected to move, regularly acquiring light sensation values of preset times from a light sensation device of the terminal equipment, selecting a maximum light sensation value in the light sensation values of the preset times, and determining the maximum light sensation value as an environment brightness value in the current environment;
adjusting the volume of the terminal device according to the volume adjustment information comprises:
determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient, and summing the noise value and the volume adjustment information to obtain second volume adjustment information;
adjusting the volume of the terminal equipment according to the second volume adjustment information;
the volume adjustment information comprises a first preset value, the noise value is multiplied by a preset proportionality coefficient, then the noise value and the volume adjustment information are summed to obtain second volume adjustment information, and the adjustment of the volume of the terminal equipment according to the second volume adjustment information comprises the following steps:
multiplying the noise value by a preset proportionality coefficient, adding the noise value and a first preset value to obtain second volume adjusting information, and increasing and/or decreasing the current volume value of the terminal equipment according to the second volume adjusting information; or the like, or, alternatively,
the volume adjustment information comprises a second preset value, the noise value is multiplied by a preset proportionality coefficient, then the noise value and the volume adjustment information are summed to obtain second volume adjustment information, and the adjustment of the volume of the terminal equipment according to the second volume adjustment information comprises the following steps:
and multiplying the noise value by a preset proportionality coefficient, adding the noise value and a second preset value to obtain second volume adjustment information, and setting the current volume of the terminal equipment as the second volume adjustment information.
2. A volume adjustment device, comprising:
the environment determining module is used for acquiring a light sensation value through a light sensation device of the terminal equipment, determining an environment brightness value under the current environment through the light sensation value, and determining an environment type under the current environment according to the environment brightness value, wherein the environment type comprises a brighter environment, a common environment, a darker environment and a dark environment;
the method comprises the following steps of obtaining a light sensation value through a light sensation device of the terminal equipment, and determining an environment brightness value under the current environment through the light sensation value, wherein the method comprises the following steps:
when the terminal equipment is detected to move, regularly acquiring light sensation values of preset times from a light sensation device of the terminal equipment, selecting a maximum light sensation value in the light sensation values of the preset times, and determining the maximum light sensation value as an environment brightness value in the current environment;
the volume adjustment determining module is used for acquiring meteorological data through a meteorological data interface of the terminal equipment, acquiring the current system time of the terminal equipment, and determining corresponding volume adjustment information according to the environment type, the meteorological data, the system time and a stored preset adjustment table;
the adjusting module is used for adjusting the volume of the terminal equipment according to the volume adjusting information, wherein the adjusting the volume of the terminal equipment according to the volume adjusting information comprises the following steps:
determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient, and summing the noise value and the volume adjustment information to obtain second volume adjustment information;
adjusting the volume of the terminal equipment according to the second volume adjustment information;
the volume adjustment information comprises a first preset value, the noise value is multiplied by a preset proportionality coefficient, then the noise value and the volume adjustment information are summed to obtain second volume adjustment information, and the adjustment of the volume of the terminal equipment according to the second volume adjustment information comprises the following steps:
multiplying the noise value by a preset proportionality coefficient, adding the noise value and a first preset value to obtain second volume adjusting information, and increasing and/or decreasing the current volume value of the terminal equipment according to the second volume adjusting information; or the like, or, alternatively,
the volume adjustment information comprises a second preset value, the noise value is multiplied by a preset proportionality coefficient, then the noise value and the volume adjustment information are summed to obtain second volume adjustment information, and the adjustment of the volume of the terminal equipment according to the second volume adjustment information comprises the following steps:
and multiplying the noise value by a preset proportionality coefficient, adding the noise value and a second preset value to obtain second volume adjustment information, and setting the current volume of the terminal equipment as the second volume adjustment information.
3. A computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the volume adjustment method of claim 1.
4. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the volume adjustment method of claim 1 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710726753.4A CN107508986B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710726753.4A CN107508986B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107508986A CN107508986A (en) | 2017-12-22 |
CN107508986B true CN107508986B (en) | 2020-12-08 |
Family
ID=60692392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710726753.4A Expired - Fee Related CN107508986B (en) | 2017-08-18 | 2017-08-18 | Volume adjusting method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107508986B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111405114A (en) * | 2020-03-18 | 2020-07-10 | 捷开通讯(深圳)有限公司 | Method and device for automatically adjusting volume, storage medium and terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4124037B2 (en) * | 2003-06-30 | 2008-07-23 | 日本電気株式会社 | Portable terminal device, operation control method thereof, and program |
CN1728753A (en) * | 2005-07-29 | 2006-02-01 | 上海贝豪通讯电子有限公司 | Mobile terminal capable of adjusting volume of ring automatically, and method |
CN101969299A (en) * | 2010-08-25 | 2011-02-09 | 青岛海信电器股份有限公司 | Volume adjusting method and electronic equipment |
CN102025833B (en) * | 2010-11-25 | 2013-06-05 | 北京播思软件技术有限公司 | Method and device for automatically reminding weather change based on mobile terminal |
KR101866774B1 (en) * | 2011-12-22 | 2018-06-19 | 삼성전자주식회사 | Apparatus and method for controlling volume in portable terminal |
KR20140072927A (en) * | 2012-11-15 | 2014-06-16 | 엘지전자 주식회사 | Mobile terminal and method of controlling the same |
CN103701990A (en) * | 2013-12-20 | 2014-04-02 | 上海卓悠网络科技有限公司 | Method and device for muted response of incoming call |
CN106572228A (en) * | 2016-11-01 | 2017-04-19 | 乐视控股(北京)有限公司 | Volume adjusting method, volume adjusting device and mobile terminal |
CN106775553A (en) * | 2016-11-15 | 2017-05-31 | 深圳Tcl新技术有限公司 | Sound-volume control system and method for controlling volume |
-
2017
- 2017-08-18 CN CN201710726753.4A patent/CN107508986B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN107508986A (en) | 2017-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110716592B (en) | Temperature control method and related equipment | |
CN106782431B (en) | Screen backlight brightness adjusting method and device and mobile terminal | |
CN107562405B (en) | Audio playing control method and device, storage medium and mobile terminal | |
US9549264B2 (en) | Portable terminal for controlling hearing aid and method therefor | |
EP3435199B1 (en) | Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen | |
US20130078976A1 (en) | Adjustable mobile phone settings based on environmental conditions | |
CN111179861B (en) | Brightness calibration method and device, storage medium and terminal | |
CN107450801B (en) | Screen display control method and device, storage medium and mobile terminal | |
CN105955700A (en) | Sound effect adjusting method and user terminal | |
CN108810749B (en) | Player control method, device, terminal equipment and storage medium | |
CN107371102B (en) | Audio playing volume control method and device, storage medium and mobile terminal | |
CN107508983B (en) | Volume adjusting method and device, storage medium and terminal equipment | |
CN107404753B (en) | Volume adjusting method, device, terminal and storage medium | |
CN107888765B (en) | Method for switching scene mode and mobile terminal | |
CN110427165B (en) | Icon display method and mobile terminal | |
KR20180123879A (en) | Electronic device and method for controlling audio output according to type of earphone | |
CN108769401B (en) | Signal detection method and related product | |
CN109343066B (en) | Control method and device of proximity sensor, storage medium and mobile terminal | |
CN107040661A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN108055644B (en) | Positioning control method and device, storage medium and terminal equipment | |
CN107508978B (en) | Volume adjusting method and device, storage medium and terminal equipment | |
CN106937371B (en) | Method and device for saving electricity by switching background gray scales and mobile terminal | |
CN107239184B (en) | Touch screen touch device and method and mobile terminal | |
CN112394901A (en) | Audio output mode adjusting method and device and electronic equipment | |
CN107508986B (en) | Volume adjusting method and device, storage medium and terminal equipment |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201208 |
|
CF01 | Termination of patent right due to non-payment of annual fee |