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

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

Info

Publication number
CN107404753B
CN107404753B CN201710710437.8A CN201710710437A CN107404753B CN 107404753 B CN107404753 B CN 107404753B CN 201710710437 A CN201710710437 A CN 201710710437A CN 107404753 B CN107404753 B CN 107404753B
Authority
CN
China
Prior art keywords
volume
value
electric quantity
mapping table
terminal equipment
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
Application number
CN201710710437.8A
Other languages
Chinese (zh)
Other versions
CN107404753A (en
Inventor
严锋贵
许钊铵
甘高亭
郑志勇
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710710437.8A priority Critical patent/CN107404753B/en
Publication of CN107404753A publication Critical patent/CN107404753A/en
Application granted granted Critical
Publication of CN107404753B publication Critical patent/CN107404753B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/042Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations with variable loudness of the ringing tone, e.g. variable envelope or amplitude of ring signal
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a volume adjusting method, a volume adjusting device, a terminal and a storage medium. The method comprises the following steps: acquiring a residual electric quantity value of the terminal equipment every other first preset time; determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity; and adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment. The volume adjusting method provided by the embodiment adaptively adjusts the output volume of the terminal device according to the current residual electric quantity value of the terminal device, so that the power consumption of the terminal device can be saved.

Description

Volume adjusting method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of intelligent terminal equipment application, in particular to a volume adjusting method, a volume adjusting device, a terminal and a storage medium.
Background
With the development of mobile communication technology and the popularization of intelligent terminal devices, intelligent mobile terminal devices such as mobile phones have become indispensable communication tools in people's lives.
The sound in the mobile terminal device includes incoming call ring, short message ring, system notification, application program notification, media sound, and the like. The volume of the sound is determined by the system volume of the mobile terminal device, and after the user enters the system setting of the mobile terminal device or adjusts the volume through a volume key, the volume of the sound played by the mobile terminal device is not changed any more until the next time the user resets or adjusts the volume, which has many defects.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for volume adjustment, which can save the power consumption of terminal equipment.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, where the method includes:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
and adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment.
In a second aspect, an embodiment of the present invention further provides a volume adjustment device, where the volume adjustment device includes:
the residual electric quantity value acquisition module is used for acquiring the residual electric quantity value of the terminal equipment at intervals of first preset time;
the first volume value determining module is used for determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, and the first mapping table comprises a volume mapping table corresponding to the electric quantity;
and the output volume adjusting module is used for adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment.
In a third aspect, an embodiment of the present invention further provides a terminal, including a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, where the first processor implements the following steps when executing the computer program:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
and adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment.
In a fourth aspect, an embodiment of the present invention further provides a computer program stored thereon, where the computer program is executed by a processor to implement the volume adjustment method according to the first aspect.
According to the embodiment of the invention, the residual electric quantity value of the terminal equipment is obtained every other first preset time, then the first volume value corresponding to the residual electric quantity value is determined according to the first mapping table, and finally the output volume of the terminal equipment is adjusted according to the first volume value and the second volume value, wherein the second volume value is the current volume value of the terminal equipment. According to the technical scheme provided by the embodiment, the output volume of the terminal equipment is adaptively adjusted according to the current residual electric quantity value of the terminal equipment, so that the power consumption of the terminal equipment can be saved.
Drawings
Fig. 1 is a flow chart of a volume adjustment method in an embodiment of the present invention;
fig. 2 is a flow chart of a volume adjustment method in an embodiment of the present invention;
fig. 3 is a flow chart of a volume adjustment method in an embodiment of the present invention;
fig. 4 is a flow chart of a volume adjustment method in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a volume adjustment device in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. 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.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present invention, where the embodiment is applicable to adjusting an output volume of a terminal device, and the method may be executed by a volume adjustment device, where the device may be a smart phone, a tablet computer, or the like. As shown in fig. 1, the method specifically includes the following steps:
and step 110, acquiring the residual electric quantity value of the terminal equipment every other first preset time.
The first preset time can be set according to the requirement of the user, and can be any time between 30 minutes and 2 hours, for example. The remaining electric quantity value may be a remaining electric quantity value in a battery of the terminal device, and the remaining electric quantity value may be expressed in percentage.
Specifically, the method for acquiring the residual electric quantity value of the terminal device may be a voltage testing method, a battery modeling method or a coulometry method. The principle of the voltage detection method can be that the power management chip detects the voltage value of the current battery and obtains the residual electric quantity value of the current battery according to the corresponding relation between the voltage value and the residual electric quantity. The principle of the battery modeling method can be that a data table is established according to the discharge curve of the battery, and the data table contains corresponding residual electric quantity values under different voltages. The coulometry method can be based on the principle that a current detection resistor is connected in series with the anode and the cathode of the battery, and the residual electric quantity value of the battery is obtained by detecting the current flowing through the current detection resistor.
Step 120, determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, where the first mapping table includes a volume mapping table corresponding to the electric quantity.
The first mapping table includes a volume mapping table corresponding to the electric quantity, and may be a mapping table established according to a corresponding relationship between the remaining electric quantity and the first volume. In this application scenario, the rule for establishing the first mapping table may be that the lower the remaining power in the terminal device is, the smaller the corresponding first volume is. The volume value may be expressed in percentage. Illustratively, table 1 is a first mapping table formed by corresponding relationships between electric quantity and volume.
TABLE 1
Electric quantity 0-10% 11%-20% 21%-30% 31%-40% 41%-50%
A first volume 10% 20% 30% 40% 50%
Electric quantity 51%-60% 61%--70% 71%-80% 81%-90% 91%-100%
A first volume 60% 70% 80% 90% 100%
As shown in table 1, each remaining electric quantity value has a corresponding volume value. It should be noted that table 1 is only a corresponding relationship between one of the electric quantities and the first volume, and is not limited herein. Specifically, the process of determining the first volume value corresponding to the remaining power value according to the first mapping table may be that, after the current remaining power of the battery in the terminal device is obtained, the first volume value corresponding to the current remaining power value is searched in the first mapping table. For example, the power management chip in the terminal device measures that the current remaining capacity value of the battery is 45%, and finds that the volume corresponding to 45% of the capacity in the first mapping table is 50%, so that the first volume value is 50%.
And step 130, adjusting the output volume of the terminal device according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal device.
And the second volume value is the current volume value of the terminal equipment. Specifically, the manner of adjusting the output volume of the terminal device according to the first volume value and the second volume value may be that, when the first volume value is greater than the second volume value, the second volume value is determined as the output volume of the terminal device, and when the first volume value is less than the second volume value, the output volume of the terminal device is adjusted to the first volume value.
Alternatively, step 130 may be implemented by:
step 131, if the first volume value is greater than the second volume value, determining the second volume value as the output volume of the terminal device.
In the application scenario, the first volume value is larger than the second volume value, that is, the volume corresponding to the remaining power is larger than the current volume of the terminal device, and the second volume value is used to determine the output volume of the terminal, that is, the output volume of the terminal is still the current volume, and adjustment is not required. Illustratively, if the remaining power value of the current terminal device is 90%, the corresponding volume in the first mapping table is 90%, and the current volume of the terminal device is 50%, 50% is still used as the output volume of the terminal device. This has the advantage that although the current volume value is smaller than the first volume value, the current volume value already meets the user's requirements, and although the remaining power value of the terminal corresponds to a higher volume, the volume does not need to be increased, thereby avoiding unnecessary waste of energy.
In step 132, if the first volume value is smaller than the second volume value, the output volume of the terminal device is adjusted to the first volume value.
In this application scenario, the first volume value is smaller than the second volume value, that is, the volume corresponding to the remaining power is smaller than the current volume of the terminal device, and the first volume value is determined as the output volume of the terminal device, that is, the output volume of the terminal device is adjusted from the second volume value to the first volume value. Optionally, an average value of the first volume and the second volume is used as the output volume of the terminal device. For example, if the remaining power value of the current terminal device is 15%, the volume corresponding to the first mapping table is 20%, and the current volume of the terminal device is 50%, the output volume of the terminal device is adjusted to 20%. The advantage of doing so is, adjust the output volume to the volume that the surplus electric quantity corresponds, can reduce terminal equipment's consumption to the live time of extension terminal equipment under the surplus electric quantity.
Optionally, the volume adjusting method further includes:
step 140, if it is detected that the user manually adjusts the volume of the terminal device, determining the volume adjusted by the user as the output volume of the terminal device within a second preset time; and the second preset time is greater than the first preset time.
The second preset time may be any time between 1 and 3 hours, and the second preset time is greater than the first preset time, for example, assuming that the first preset time is set to 1 hour, the second preset time may be set to 2.5 hours. Specifically, when the user manually adjusts the volume, it indicates that the terminal device needs to output the volume according to the volume value currently required by the user, and the terminal takes the volume adjusted by the user as the output volume within a second preset time. The advantage of doing so is that after the user adjusted the volume manually, the terminal can be in a certain time not according to remaining power volume adjustment volume, but with the volume after the user adjusted as output volume to improve the reliability of adjusting the volume.
Optionally, when the terminal device is in the earphone mode or is connected with other playing devices, the terminal device does not adjust the volume according to the residual electric quantity value, and determines the output volume according to the setting of the user. Exemplarily, after the terminal device and the smart speaker are connected through the wireless network, sound in the terminal device is output through the smart speaker, and at this time, the user only needs to adjust the output volume of the smart speaker, and does not need to adjust the output volume of the terminal.
Optionally, when the terminal device is in the charging mode, the terminal device may use the current volume as the output volume, and the volume does not need to be adjusted according to the remaining electric quantity value.
According to the technical scheme of the embodiment, the residual electric quantity value of the terminal equipment is obtained every other first preset time, then the first volume value corresponding to the residual electric quantity value is determined according to the first mapping table, finally the output volume of the terminal equipment is adjusted according to the first volume value and the second volume value, and the second volume value is the current volume value of the terminal equipment. According to the technical scheme provided by the embodiment, the output volume of the terminal equipment is adaptively adjusted according to the current residual electric quantity value of the terminal equipment, so that the power consumption of the terminal equipment can be saved.
Fig. 2 is a flowchart of a volume adjustment method according to an embodiment of the present invention. Optionally, as shown in fig. 2, the method includes:
and step 210, acquiring the residual electric quantity value of the terminal equipment at intervals of a first preset time.
Step 220, obtaining the environmental volume value of the current environment of the terminal device.
Wherein, the statistical unit of the environmental sound volume value can be decibel. Specifically, the ambient sound volume value of the current environment is acquired through a microphone device of the terminal device. The process may be that, firstly, a microphone device on the terminal device is used to collect the environmental sound of the environment where the terminal device is located, then the collected environmental sound is converted into an electrical signal, and the electrical signal is analyzed by using a signal analysis technology to obtain signal parameters such as waveform and frequency of the environmental sound, so as to analyze the environmental sound value of the current environment where the terminal device is located.
Step 230, determining a third volume value corresponding to the ambient volume value according to a second mapping table, where the second mapping table includes a volume mapping table corresponding to the ambient volume.
The second mapping table includes a volume mapping table corresponding to the environment volume, and may be a mapping table established according to a correspondence between the environment volume and the third volume. In this application scenario, the rule established by the second mapping table may be that the higher the ambient volume is, the higher the corresponding third volume is. Illustratively, table 2 is a second mapping table formed by the corresponding relationship between the ambient volume and the third volume.
TABLE 2
As can be seen from table 2, in the second mapping table, there is a mutual correspondence between the ambient sound volume value and the sound volume of the terminal device, where 70 db is the maximum noise that humans can tolerate as specified by the us environmental protection agency. It should be noted that table 2 is only a corresponding relationship between the ambient volume and the terminal device volume, and is not limited herein. Specifically, the process of determining the third volume value corresponding to the environment volume value according to the second mapping table may be that, after the environment volume value of the environment where the terminal device is currently located is obtained, the volume of the terminal device corresponding to the environment volume value, that is, the third volume value, is searched in the second mapping table. For example, assuming that the environmental volume value of the current environment monitored by the terminal device is between 52-55 db, the corresponding third volume value in the second mapping table is 50%.
And step 240, adjusting the output volume of the terminal equipment according to the residual electric quantity value and the third volume value.
Specifically, after the current residual electric quantity value of the terminal device and the third volume corresponding to the environmental volume value of the environment where the terminal device is located are obtained, the output volume of the terminal device is adjusted according to the residual electric quantity value and the third volume value. Specifically, the output volume of the terminal device is adjusted according to the remaining power value and the third power value, where the third power value is determined as the output volume of the terminal device when the remaining power value is greater than the preset power value, and the output volume of the terminal device is determined according to the weights corresponding to the first power value and the third power value when the remaining power value is less than or equal to the preset power value.
Alternatively, step 240 may be implemented by:
and 241, if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment.
Wherein the preset electric quantity value can be set to any value between 20% and 30%. When the residual electric quantity value of the terminal equipment is larger than the preset electric quantity value, the current residual electric quantity is sufficient, the terminal equipment can adjust the output volume mainly according to the environment volume, and the third volume value corresponding to the current environment volume is determined as the output volume of the terminal equipment. For example, assuming that the remaining power value of the current terminal device is 70%, the environmental sound volume value of the current environment is 80-85 db, which indicates that the current environment is very noisy, and the remaining power in the terminal device is sufficient, the volume corresponding to the environmental sound volume value is determined as the output volume, i.e., the output volume of the terminal device is adjusted to be 100%. The advantage of doing so can guarantee that the sound that terminal equipment output can be listened to clearly under different environment volume, improves the reliability of volume control.
In step 242, if the remaining power value is less than or equal to the preset power value, determining the output volume of the terminal device according to the weights corresponding to the first and third power values, respectively.
The weights corresponding to the first volume and the third volume may be determined by the current ambient volume, and when the ambient volume value is larger, the weight of the third volume is larger. Illustratively, table 3 shows a correspondence between the ambient volume and the third volume weight.
TABLE 3
When the residual capacity is less than or equal to the preset capacity value, the residual capacity of the current terminal equipment is indicated to be insufficient, or even a low-capacity mode is entered. At this time, the output volume of the terminal device needs to be determined according to the weights corresponding to the first volume value and the third volume value, respectively. For example, assuming that the remaining power of the terminal is 15%, the corresponding first volume is 20%, the current ambient volume is 53 db, the corresponding third volume is 50%, and the weight of the third volume is 0.5, the final output volume of the terminal is 0.5 × 20% +0.5 × 50% ═ 35%, that is, 35% is the output volume of the terminal.
According to the technical scheme of the embodiment, the output volume of the terminal device is adjusted according to the residual electric quantity value and the third volume value, so that the power consumption of the terminal can be saved, and the output sound of the terminal can be guaranteed to be heard by a user in the environment.
Fig. 3 is a flowchart of a volume adjustment method according to an embodiment of the present invention. Optionally, as shown in fig. 3, the method includes:
and step 310, acquiring the residual electric quantity value of the terminal equipment every first preset time.
And step 320, acquiring a distance value between the terminal equipment and the user.
Specifically, the manner of obtaining the distance value between the terminal device and the user may be to detect a distance between the terminal device and a wearable device worn by the user, and obtain a distance between the terminal device and the user. Wherein, wearable equipment can be intelligent bracelet, intelligent wrist-watch or intelligent glasses etc.. After the terminal equipment and the wearable equipment are connected through the Bluetooth, the terminal equipment detects the Bluetooth signal intensity of the wearable equipment, and the distance between the terminal equipment and the wearable equipment is determined through the Bluetooth signal intensity.
And step 330, adjusting the output volume of the terminal device according to the distance value and the first volume value.
Specifically, the output volume of the terminal device may be adjusted according to the distance value and the first volume value by determining a fourth volume value corresponding to the distance value according to the third mapping table when the distance value is greater than the preset distance value, and then determining the output volume of the terminal device according to weights respectively corresponding to the fourth volume value and the first volume value. And when the distance value is smaller than or equal to the preset distance value, determining the output volume of the terminal according to the first volume value and the second volume value.
Alternatively, step 330 may be implemented by:
step 331, when the distance value is greater than the preset distance value, determining a fourth volume value corresponding to the distance value according to a third mapping table, where the third mapping table includes a volume mapping table corresponding to the distance.
Wherein the preset distance value can be set to any value between 2-4 meters, for example, to 3 meters. The third mapping table includes a volume mapping table corresponding to the distance, which may be a mapping table established according to a correspondence relationship between the distance and the fourth volume. In this application scenario, the greater the distance between the terminal device and the user, the higher the corresponding fourth volume. Illustratively, table 4 is a mapping table established by the correspondence between the distance and the fourth volume.
TABLE 4
Distance L/m L≤3 3<L≤4 4<L≤5 5<L≤6
Fourth sound volume 20% 30% 40% 50%
Distance L/m 6<L≤7 7<L≤8 9<L≤10 L>10
Fourth sound volume 60% 70% 80% 90%
It should be noted that table 4 is only a corresponding relationship between one of the distances and the fourth volume, and is not limited herein. Specifically, the process of determining the fourth volume value corresponding to the distance value according to the third mapping table may be that, when the detected distance value between the terminal device and the user is greater than a preset distance value, the fourth volume value corresponding to the distance value is searched in the fourth mapping table. For example, assume that the distance between the current terminal device and the user is 5.5 meters. The corresponding fourth volume in the third mapping table is 50%.
And step 332, determining the output volume of the terminal device according to the weights corresponding to the fourth volume value and the first volume value respectively.
The weights corresponding to the fourth volume and the first volume respectively can be determined according to the current remaining capacity of the user. Illustratively, table 5 shows a relationship between the remaining power and the first volume weight.
TABLE 5
Electric quantity 0-10% 11%-20% 21%-30% 31%-40% 41%-50%
Weight of 1 0.9 0.8 0.7 0.6
Electric quantity 51%-60% 61%--70% 71%-80% 81%-90% 91%-100%
Weight of 0.5 0.4 0.3 0.2 0.1
As shown in table 1, the higher the remaining capacity is, the smaller the weight occupied by the first volume is. And when the distance between the terminal equipment and the user is greater than a preset value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the fourth volume value and the first volume value. For example, assuming that the remaining capacity of the current terminal device is 33% and the distance between the terminal device and the user is 4 meters, the output volume is calculated as 0.7 × 40% +0.3 × 30% — 37%, i.e., the output volume of the terminal device is adjusted to 37%.
According to the technical scheme of the embodiment, when the distance between the terminal equipment and the user is larger than the preset value, the output volume of the terminal equipment is determined according to the weights corresponding to the fourth volume value and the first volume value respectively, so that the power consumption of the terminal equipment can be saved, and meanwhile, when the distance between the terminal equipment and the user exceeds a certain value, the sound of the terminal equipment can be heard by the user.
Fig. 4 is a flowchart of a volume adjustment method according to an embodiment of the present invention. As a further explanation of the above embodiment, as shown in fig. 4, the method comprises:
step 401, acquiring a remaining electric quantity value of the terminal device every a first preset time.
Step 402, determining a first volume value corresponding to the residual electric quantity value according to a first mapping table.
And step 403, acquiring the environmental volume value of the current environment of the terminal device.
Step 404, determining a third volume value corresponding to the ambient volume value according to the second mapping table.
In step 405, it is determined whether the remaining power value is greater than a predetermined power value.
In step 406, if the remaining power value is greater than the preset power value, determining the third power value as the output power of the terminal device.
Step 407, if the remaining power value is less than or equal to the preset power value, determining the output volume of the terminal device according to the weights corresponding to the first and third power values, respectively.
Or,
step 401, acquiring a remaining electric quantity value of the terminal device every a first preset time.
Step 402, determining a first volume value corresponding to the residual electric quantity value according to a first mapping table.
And step 408, acquiring a distance value between the terminal equipment and the user.
Step 409, judging whether the distance value is larger than a preset distance value.
In step 410, when the distance value is greater than the preset distance value, a fourth volume value corresponding to the distance value is determined according to the third mapping table.
And 411, determining the output volume of the terminal device according to the weights corresponding to the fourth volume value and the first volume value respectively.
And step 412, when the distance value is smaller than or equal to the preset distance value, adjusting the output volume of the terminal device according to the first volume value and the second volume value.
Fig. 5 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present invention, and as shown in fig. 5, the volume adjustment device includes: a remaining power value obtaining module 510, a first volume value determining module 520 and an output volume adjusting module 530.
A remaining power value obtaining module 510, configured to obtain a remaining power value of the terminal device every first preset time;
a first volume value determining module 520, configured to determine a first volume value corresponding to the remaining electric quantity value according to a first mapping table, where the first mapping table includes a volume mapping table corresponding to the electric quantity;
and an output volume adjusting module 530, configured to adjust an output volume of the terminal device according to the first volume value and a second volume value, where the second volume value is a current volume value of the terminal device.
Optionally, the output volume adjusting module 530 is further configured to:
if the first volume value is larger than the second volume value, determining the second volume value as the output volume of the terminal equipment;
and if the first volume value is smaller than the second volume value, adjusting the output volume of the terminal equipment to the first volume value.
Optionally, the method further includes:
the environment volume value acquisition module is used for acquiring the environment volume value of the current environment where the terminal equipment is located;
a third volume value determining module for determining a third volume value corresponding to the environment volume value according to a second mapping table, wherein the second mapping table comprises a volume mapping table corresponding to the environment volume;
and the output volume adjusting module 530 is further configured to adjust the output volume of the terminal device according to the remaining power value and the third volume value.
Optionally, the output volume adjusting module 530 is further configured to:
if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment;
and if the residual electric quantity value is less than or equal to the preset electric quantity value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the first volume value and the third volume value.
Optionally, the method further includes:
the distance value acquisition module is used for acquiring a distance value between the terminal equipment and a user;
and the output volume adjusting module 530 is further configured to adjust the output volume of the terminal device according to the distance value and the first volume value.
Optionally, the output volume adjusting module 530 is further configured to:
when the distance value is larger than the preset distance value, determining a fourth volume value corresponding to the distance value according to a third mapping table, wherein the third mapping table comprises a volume mapping table corresponding to the distance;
and determining the output volume of the terminal equipment according to the weights respectively corresponding to the fourth volume value and the first volume value.
Optionally, the output volume adjusting module 530 is further configured to:
if the fact that the user manually adjusts the volume of the terminal equipment is detected, determining the volume adjusted by the user as the output volume of the terminal equipment within second preset time; and the second preset time is greater than the first preset time.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 6, the terminal may include: a housing (not shown), a first memory 601, a first Central Processing Unit (CPU) 602 (also called a first processor, hereinafter referred to as CPU), a computer program stored in the first memory 601 and operable on the first processor 602, 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 first 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; the first memory 601, configured to store executable program codes; the CPU602 executes a program corresponding to the executable program code by reading the executable program code stored in the first memory 601, to perform:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
and adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment.
The terminal further comprises: 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 600 is merely one example of a terminal and that the terminal 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 for volume adjustment provided in this embodiment, and the terminal is a smart phone as an example.
A first memory 601, said first memory 601 being accessible by the CPU602, the peripheral interface 603, etc., said first memory 601 may comprise a high speed random access first memory, and may further comprise a non-volatile first memory, such as one or more magnetic disk first storage devices, flash memory devices, or other volatile solid state first storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the first 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.
The touch screen 612 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. Classified by the installation method, the touch screen 612 may be: external hanging, internal or integral. Classified according to technical principles, the touch screen 612 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 612 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the first processor 602.
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 smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
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 restore the voice signal received by the smart speaker from the wireless network through the RF circuit 605 to 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.
In this embodiment, the central first processor 602 is configured to:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
and adjusting the output volume of the terminal equipment according to the first volume value and a second volume value, wherein the second volume value is the current volume value of the terminal equipment.
Further, the adjusting the output volume of the terminal device according to the first volume value and the second volume value includes:
if the first volume value is larger than the second volume value, determining the second volume value as the output volume of the terminal equipment;
and if the first volume value is smaller than the second volume value, adjusting the output volume of the terminal equipment to be the first volume value.
Further, after the obtaining of the remaining electric quantity value of the terminal device every first preset time, the method includes:
acquiring an environment volume value of the current environment of the terminal equipment;
determining a third volume value corresponding to the environment volume value according to a second mapping table, wherein the second mapping table comprises a volume mapping table corresponding to the environment volume;
and adjusting the output volume of the terminal equipment according to the residual electric quantity value and the third volume value.
Further, adjusting the output volume of the terminal device according to the residual electric quantity value and the third volume value includes:
if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment;
and if the residual electric quantity value is less than or equal to a preset electric quantity value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the first volume value and the third volume value.
Further, after obtaining the remaining electric quantity value of the terminal device every first preset time, the method further includes:
acquiring a distance value between the terminal equipment and a user;
and adjusting the output volume of the terminal equipment according to the distance value and the first volume value.
Further, adjusting the output volume of the terminal device according to the distance value and the first volume value comprises:
when the distance value is larger than a preset distance value, determining a fourth volume value corresponding to the distance value according to a third mapping table, wherein the third mapping table comprises a volume mapping table corresponding to the distance;
and determining the output volume of the terminal equipment according to the weights corresponding to the fourth volume value and the first volume value respectively.
Further, still include:
if the fact that the user manually adjusts the volume of the terminal equipment is detected, determining the volume adjusted by the user as the output volume of the terminal equipment within second preset time; and the second preset time is greater than the first preset time.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 (6)

1. A method of adjusting volume, comprising:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
obtaining the environmental volume value of the current environment of the terminal equipment;
determining a third volume value corresponding to the environment volume value according to a second mapping table, wherein the second mapping table comprises a volume mapping table corresponding to the environment volume;
if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment;
and if the residual electric quantity value is less than or equal to a preset electric quantity value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the first volume value and the third volume value.
2. A method of adjusting volume, comprising:
acquiring the residual electric quantity value of the terminal equipment at intervals of a first preset time:
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
acquiring a distance value between the terminal equipment and a user;
when the distance value is larger than a preset distance value, determining a fourth volume value corresponding to the distance value according to a third mapping table, wherein the third mapping table comprises a volume mapping table corresponding to the distance;
determining the output volume of the terminal equipment according to the weights corresponding to the fourth volume value and the first volume value respectively;
when the distance value is smaller than a preset distance value, adjusting the output volume of the terminal equipment according to the first volume value and the second volume value; the second volume value is the current volume value of the terminal device.
3. The volume adjustment method according to claim 1, further comprising:
if the fact that the user manually adjusts the volume of the terminal equipment is detected, determining the volume adjusted by the user as the output volume of the terminal equipment within second preset time; and the second preset time is greater than the first preset time.
4. A volume adjustment device, comprising:
the residual electric quantity value acquisition module is used for acquiring the residual electric quantity value of the terminal equipment at intervals of first preset time;
the first volume value determining module is used for determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, and the first mapping table comprises a volume mapping table corresponding to the electric quantity;
further comprising:
the environment volume value acquisition module is used for acquiring the environment volume value of the current environment where the terminal equipment is located;
a third volume value determining module for determining a third volume value corresponding to the environment volume value according to a second mapping table, wherein the second mapping table comprises a volume mapping table corresponding to the environment volume;
the output volume adjusting module is further used for:
if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment;
and if the residual electric quantity value is less than or equal to the preset electric quantity value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the first volume value and the third volume value.
5. A terminal comprising a first memory, a first processor and a computer program stored on the first memory and executable on the first processor, wherein the first processor when executing the computer program implements the steps of:
acquiring a residual electric quantity value of the terminal equipment every other first preset time;
determining a first volume value corresponding to the residual electric quantity value according to a first mapping table, wherein the first mapping table comprises a volume mapping table corresponding to the electric quantity;
obtaining the environmental volume value of the current environment of the terminal equipment;
determining a third volume value corresponding to the environment volume value according to a second mapping table, wherein the second mapping table comprises a volume mapping table corresponding to the environment volume;
if the residual electric quantity value is larger than the preset electric quantity value, determining a third sound volume value as the output sound volume of the terminal equipment;
and if the residual electric quantity value is less than or equal to a preset electric quantity value, determining the output volume of the terminal equipment according to the weights respectively corresponding to the first volume value and the third volume value.
6. A storage medium on which a computer program is stored, which program, when executed by a processor, carries out a volume adjustment method as claimed in any one of claims 1 to 3.
CN201710710437.8A 2017-08-18 2017-08-18 Volume adjusting method, device, terminal and storage medium Expired - Fee Related CN107404753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710710437.8A CN107404753B (en) 2017-08-18 2017-08-18 Volume adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710710437.8A CN107404753B (en) 2017-08-18 2017-08-18 Volume adjusting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107404753A CN107404753A (en) 2017-11-28
CN107404753B true CN107404753B (en) 2019-12-31

Family

ID=60396497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710710437.8A Expired - Fee Related CN107404753B (en) 2017-08-18 2017-08-18 Volume adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107404753B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052305B (en) * 2017-11-29 2021-02-05 Oppo广东移动通信有限公司 Volume adjusting method and device, electronic equipment and computer readable storage medium
CN108984147A (en) * 2018-07-02 2018-12-11 Oppo(重庆)智能科技有限公司 Method for controlling volume, electronic device and computer readable storage medium
US11689655B2 (en) 2018-10-15 2023-06-27 Huawei Technologies Co., Ltd. Method for adjusting parameter of audio service and terminal
CN109361982B (en) * 2018-11-26 2020-04-10 歌尔股份有限公司 Drive circuit and rhythm of heart earphone of earphone
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN204206465U (en) * 2014-11-08 2015-03-11 周震海 A kind of condition monitoring system for wireless microphone
CN104978166A (en) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 Volume adjusting method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102010028510A1 (en) * 2010-04-19 2011-12-01 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Device for determining physical quantity e.g. position from erroneous measured values, has evidence determiner which determines overall evidence for measured values based on redundancy contained in subgroup
CN104219392B (en) * 2014-09-29 2017-06-20 宇龙计算机通信科技(深圳)有限公司 A kind of incoming ring tone intelligent adjusting method, system and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN204206465U (en) * 2014-11-08 2015-03-11 周震海 A kind of condition monitoring system for wireless microphone
CN104978166A (en) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 Volume adjusting method and device

Also Published As

Publication number Publication date
CN107404753A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN107404753B (en) Volume adjusting method, device, terminal and storage medium
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
CN106786962B (en) Charging control method and device and terminal
CN103414488B (en) A kind of control method, device and equipment of mobile device antenna
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN109947497A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN106155557B (en) A kind of virtual key display methods and mobile terminal
CN111373726B (en) Parameter adjustment method and terminal for audio service
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
CN107508979B (en) Volume adjusting method, device, terminal and storage medium
WO2018214871A1 (en) Radio frequency interference processing method and electronic device
CN107508996B (en) Safety positioning device, method, terminal equipment and storage medium
CN106569916A (en) Data backup method and mobile terminal
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110830658A (en) Mobile terminal control method and device, mobile terminal and storage medium
CN110754097B (en) Call control method, device, terminal equipment and storage medium
CN107508986B (en) Volume adjusting method and device, storage medium and terminal equipment
CN113593602B (en) Audio processing method and device, electronic equipment and storage medium
CN111309224B (en) Sound effect adjusting method and device, storage medium and mobile terminal
CN108958829B (en) Pre-loaded resource control method, device, storage medium and terminal

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
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.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191231