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

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

Info

Publication number
CN107404753A
CN107404753A CN201710710437.8A CN201710710437A CN107404753A CN 107404753 A CN107404753 A CN 107404753A CN 201710710437 A CN201710710437 A CN 201710710437A CN 107404753 A CN107404753 A CN 107404753A
Authority
CN
China
Prior art keywords
volume
value
terminal device
volume value
mapping table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710710437.8A
Other languages
Chinese (zh)
Other versions
CN107404753B (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

Abstract

The embodiment of the invention discloses a kind of volume adjusting method, device, terminal and storage medium.Methods described includes:The residual electric quantity of terminal device is obtained every the first preset time;The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes volume mapping table corresponding to electricity;According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is the current volume value of terminal device.The volume adjusting method that the present embodiment provides, according to the output volume of the adaptive regulation terminal device of the current residual electric quantity of terminal device, the power consumption of terminal device can be saved.

Description

Volume adjusting method, device, terminal and storage medium
Technical field
The present embodiments relate to intelligent terminal applied technical field, more particularly to a kind of method of volume adjusting, Device, terminal and storage medium.
Background technology
With the development of mobile communication technology and the popularization of intelligent terminal, intelligent mobile terminal equipment such as mobile phone is Indispensable means of communication in being lived as people.
Sound in mobile terminal device, including incoming ring tone, ringing sound of text message, notifications, application notification and matchmaker Body sound etc..The volume of these sound determines that user is entering movement eventually by the system sound volume of mobile terminal device The system of end equipment is set center or adjusted by volume key after, mobile terminal device play sound volume no longer Change, until user resets or adjusted next time, this regulation to volume has many defects.
The content of the invention
The embodiment of the present invention provides a kind of method, apparatus of volume adjusting, terminal and storage medium, can save terminal and set Standby power consumption.
In a first aspect, the embodiments of the invention provide a kind of volume adjusting method, this method includes:
The residual electric quantity of terminal device is obtained every the first preset time;
The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity Volume mapping table corresponding to amount;
According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is The current volume value of terminal device.
Second aspect, the embodiment of the present invention additionally provide a kind of volume adjustment device, and the device includes:
Residual electric quantity acquisition module, for obtaining the residual electric quantity of terminal device every the first preset time;
First volume value determining module, for determining the first volume corresponding to the residual electric quantity according to the first mapping table Value, first mapping table include volume mapping table corresponding to electricity;
Output volume adjusting module, for adjusting the output of terminal device according to first volume value and the second volume value Volume, second volume value are the current volume value of terminal device.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, including first memory, first processor and storage On the first memory and the computer program that can be run on the first processor, the first processor perform institute Following steps are realized when stating computer program:
The residual electric quantity of terminal device is obtained every the first preset time;
The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity Volume mapping table corresponding to amount;
According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is The current volume value of terminal device.
Fourth aspect, the embodiment of the present invention, which additionally provides, is stored thereon with computer program, it is characterised in that the program quilt Volume adjusting method as described in relation to the first aspect is realized during computing device.
The embodiment of the present invention, the residual electric quantity of terminal device is obtained every the first preset time, is then reflected according to first Firing table determines the first volume value corresponding to residual electric quantity, finally adjusts terminal device according to the first volume value and the second volume value Output volume, the second volume value be terminal device current volume value.The technical scheme that the present embodiment provides, sets according to terminal The output volume of the adaptive regulation terminal device of standby current residual electric quantity, the power consumption of terminal device can be saved.
Brief description of the drawings
Fig. 1 is a kind of flow chart of volume adjusting method in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of volume adjusting method in the embodiment of the present invention;
Fig. 3 is a kind of flow chart of volume adjusting method in the embodiment of the present invention;
Fig. 4 is a kind of flow chart of volume adjusting method in the embodiment of the present invention;
Fig. 5 is a kind of structural representation of volume adjustment device in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal in the embodiment of the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Fig. 1 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention, and the present embodiment was applicable to end The situation that the output volume of end equipment is adjusted, this method can be performed by volume adjustment device, and the device can be intelligence Energy mobile phone, tablet personal computer etc..As shown in figure 1, this method specifically comprises the following steps:
Step 110, the residual electric quantity of terminal device is obtained every the first preset time.
Wherein, the first preset time can be configured according to the demand of user, for example, can be -2 hours 30 minutes it Between random time.Residual electric quantity can be the residual electric quantity in the battery of terminal device, and residual electric quantity can use hundred Fraction represents.
Specifically, the method for obtaining the residual electric quantity of terminal device can be voltage test method, fuel cell modelling method or storehouse Logical sequence meter method.The principle of voltage detecting method can be the magnitude of voltage of power management chip detection present battery, according to magnitude of voltage with remaining The corresponding relation of remaining electricity, obtain the residual electric quantity in present battery.The principle of fuel cell modelling method can be according to battery Discharge curve establishes tables of data, and corresponding residual electric quantity under different voltages is included in tables of data.The principle of Coulomb meter method can Be battery positive pole and negative pole concatenate a current sense resistor, electric current electrical measurement resistance by detection flow through its electric current, Obtain the residual electric quantity of battery.
Step 120, the first volume value corresponding to residual electric quantity is determined according to the first mapping table, the first mapping table includes electricity Volume mapping table corresponding to amount.
Wherein, the first mapping table includes volume mapping table corresponding to electricity, can be according to dump energy and the first volume Between corresponding relation establish mapping table.Under this application scene, the foundation rule of the first mapping table can be, in terminal device Dump energy is lower, and corresponding first volume is smaller.Volume value can be represented with percentage.Exemplary, table 1 is a kind of electricity The first mapping table that the corresponding relation of amount and volume is formed.
Table 1
Electricity 0-10% 11%-20% 21%-30% 31%-40% 41%-50%
First volume 10% 20% 30% 40% 50%
Electricity 51%-60% 61%--70% 71%-80% 81%-90% 91%-100%
First volume 60% 70% 80% 90% 100%
As shown in table 1, each residual electric quantity has corresponding volume value.It should be noted that table 1 is one of which The corresponding relation of electricity and the first volume, is not limited herein.Specifically, determine that residual electric quantity is corresponding according to the first mapping table The process of the first volume value can be, after the current dump energy of battery in terminal device is got, in the first mapping table It is middle to search the first volume value corresponding to current residual electric quantity.Exemplary, power management chip measures electricity in terminal device The current residual electric quantity in pond is 45%, 45% electricity is searched in the first mapping table corresponding to volume be 50%, then first Volume value is 50%.
Step 130, the output volume of terminal device is adjusted according to the first volume value and the second volume value, the second volume value is The current volume value of terminal device.
Wherein, the second volume value is the current volume value of terminal device.Specifically, according to the first volume value and the second volume The mode of the output volume of value regulation terminal device can be, when the first volume value is more than the second volume value, by the second volume Value is defined as the output volume of terminal device, when the first volume value is less than the second volume value, by the output volume of terminal device It is adjusted to the first volume value.
Optionally, step 130 can be implemented by following manner:
Step 131, if the first volume value is more than the second volume value, the second volume value is defined as to the output of terminal device Volume.
Under this application scene, the first volume value is more than the second volume value, i.e. volume corresponding to dump energy is set more than terminal Standby current volume, the second volume value being determined to the output volume of terminal, i.e. the output volume of terminal is still current volume, It need not adjust.Exemplary, the residual electric quantity of present terminal equipment is 90%, is in volume corresponding to the first mapping table 90%, and the current volume of terminal device is 50%, then will 50% output volume as terminal device.The benefit so done It is that, although current volume value is less than the first volume value, current volume value has been able to meet the needs of user, although eventually The corresponding higher volume of the residual electric quantity at end, but volume need not be improved, so as to avoid the unnecessary waste of the energy.
Step 132, it is the first sound by the output volume adjusting of terminal device if the first volume value is less than the second volume value Value.
Under this application scene, the first volume value is less than the second volume value, i.e. volume corresponding to dump energy is set less than terminal Standby current volume, the first volume value is defined as to the output volume of terminal device, i.e., by the output volume of terminal device by Two volume values are adjusted to the first volume value.Optionally, using the average value of the first volume and the second volume as the defeated of terminal device Go out volume.Exemplary, the residual electric quantity of present terminal equipment is 15%, is 20% in volume corresponding to the first mapping table, Then it is 20% by the output volume adjusting of terminal device and the current volume of terminal device is 50%.Advantage of this is that will Output volume adjusting is volume corresponding to dump energy, can reduce the power consumption of terminal device, so as to extend terminal device surplus Usage time under remaining electricity.
Optionally, the method for the volume adjusting also includes:
Step 140, if detecting, user adjusts terminal device volume manually, adjusts user in the second preset time Volume afterwards is defined as the output volume of terminal device;Wherein, the second preset time is more than the first preset time.
Wherein, the second preset time can be the random time between 1-3 hours, and the second preset time is pre- more than first If the time, for example, it is assumed that the first preset time is arranged to 1 hour, then the second preset time could be arranged to 2.5 hours.Specifically , when user adjusts volume manually, show that terminal device needs the volume value output volume according to user's current demand, the Volume after terminal adjusts user in two preset times is as output volume.Advantage of this is that when user is adjusted manually After volume, terminal can within a certain period of time not according to dump energy adjust volume, but the volume after user is adjusted as Output volume, so as to improve the reliability of regulation volume.
Optionally, when terminal device is in headset mode or is connected with other playback equipments, terminal device not according to Residual electric quantity adjusts volume, and output volume is determined according to the setting of user.Exemplary, when terminal device and intelligent sound box lead to After crossing wireless network foundation connection, sound is exported by intelligent sound box in terminal device, and now, user need to only adjust intelligent sound box Output volume, without adjusting the output volume of terminal.
Optionally, when terminal device is under charge mode, terminal device using current volume as output volume, Volume need not be adjusted according to residual electric quantity.
The technical scheme of the present embodiment, the residual electric quantity of terminal device is obtained every the first preset time, then foundation First mapping table determines the first volume value corresponding to residual electric quantity, is finally adjusted eventually according to the first volume value and the second volume value The output volume of end equipment, the second volume value are the current volume value of terminal device.The technical scheme that the present embodiment provides, according to The output volume of the adaptive regulation terminal device of the current residual electric quantity of terminal device, the work(of terminal device can be saved Consumption.
Fig. 2 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention.Optionally, as shown in Fig. 2 the party Method includes:
Step 210, the residual electric quantity of terminal device is obtained every the first preset time.
Step 220, the ambient sound value that terminal device is presently in environment is obtained.
Wherein, the statistical unit of ambient sound value can be decibel.Specifically, obtained by the microphone apparatus of terminal device Take the ambient sound value for being presently in environment.Process can be that terminal is set first with the microphone apparatus on terminal device The ambient sound of standby local environment is acquired, and the ambient sound collected then is converted into electric signal, utilizes signal analysis technology Electric signal is analyzed, obtains the signal parameters such as waveform, the frequency of ambient sound, ring is presently in so as to parse terminal device The ambient sound value in border.
Step 230, the 3rd volume value corresponding to ambient sound value is determined according to the second mapping table, the second mapping table includes ring Volume mapping table corresponding to the volume of border.
Wherein, the second mapping table includes volume mapping table corresponding to environmental volume, can be according to environmental volume and the 3rd The mapping table that corresponding relation between volume is established.Under this application scene, the rule that the second mapping table is established can be ambient sound Amount is higher, and corresponding 3rd volume is also higher.Exemplary, table 2 is formed for the corresponding relation of a kind of environmental volume and the 3rd volume The second mapping table.
Table 2
From table 2 it can be seen that in the second mapping table, it is existing mutual between ambient sound value and the volume of terminal device Corresponding relation, wherein, 70 decibels are that U.S. environment protects the maximum noise that can endure of the mankind as defined in administration.Need what is illustrated It is that table 2 is the corresponding relation of one of which environmental volume and terminal device volume, is not limited herein.Specifically, according to the Two mapping tables determine that the process of the 3rd volume value corresponding to ambient sound value can be, environment is presently in obtaining terminal device Ambient sound value after, the volume of terminal device corresponding to the ambient sound value, i.e. the 3rd volume are searched in the second mapping table Value.It is exemplary, it is assumed that the ambient sound value for being presently in environment of terminal device monitoring between 52-55 decibels, then its 3rd volume value corresponding in second mapping table is 50%.
Step 240, the output volume of terminal device is adjusted according to residual electric quantity and the 3rd volume value.
Specifically, obtaining the 3rd corresponding to the ambient sound value of the current residual electric quantity of terminal device and local environment After volume, the output volume of terminal device is adjusted jointly according to residual electric quantity and the 3rd volume value the two parameters.Specifically, Mode according to residual electric quantity and the output volume of the 3rd volume value regulation terminal device can be, when residual electric quantity is more than During default charge value, the 3rd volume value is defined as to the output volume of terminal device, when residual electric quantity is less than or equal to default electricity During value, according to the first volume value and the 3rd volume value, corresponding weight determines the output volume of terminal device respectively.
Optionally, step 240 can be implemented by following manner:
Step 241, if residual electric quantity is more than default charge value, the 3rd volume value is defined as to the output of terminal device Volume.
Wherein, default charge value could be arranged to the arbitrary value between 20%-30%.When the residual electric quantity of terminal device During more than default charge value, show that current dump energy is also more sufficient, terminal device can be adjusted mainly according to environmental volume Output volume, the 3rd volume value corresponding to current environment volume is defined as to the output volume of terminal device.Exemplary, it is assumed that The residual electric quantity of present terminal equipment is 70%, and the ambient sound value of current environment is 80-85 decibels, shows to be presently in ring Border is very noisy, and the dump energy in terminal device is more sufficient, then is defined as exporting by volume corresponding to ambient sound value Volume, that is, the output volume for adjusting terminal device are 100%.The benefit so done, it is ensured that the sound of terminal device output It can not heard under different environmental volumes, improve the reliability of volume adjusting.
Step 242, if residual electric quantity is less than or equal to default charge value, according to the first volume value and the 3rd volume value point Not corresponding weight determines the output volume of terminal device.
Wherein, corresponding weight can be determined by current environmental volume respectively for the first volume and the 3rd volume, work as ring When border volume value is larger, the weight of the 3rd volume is with regard to big.Exemplary, table 3 is one kind of environmental volume and the 3rd volume weight Corresponding relation.
Table 3
When dump energy is less than or equal to default charge value, show that the dump energy of present terminal equipment less fills Foot, or even into Low Power Mode.At this time, it may be necessary to according to the first volume value weight corresponding with the 3rd volume value difference Determine the output volume of terminal device.Exemplary, it is assumed that the dump energy of present terminal is 15%, corresponding first volume For 20%, current environmental volume is 53 decibels, and corresponding 3rd volume is 50%, and the weight of the 3rd volume accounts for 0.5, then eventually It is 0.5*20%+0.5*50%=35% to hold final output volume, i.e., 35% is the output volume of terminal.
The technical scheme of the present embodiment, the output volume of terminal device is adjusted according to residual electric quantity and the 3rd volume value, Both the power consumption of terminal can have been saved, can ensure that the output sound of terminal is heard by the user in residing environment again.
Fig. 3 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention.Optionally, as shown in figure 3, the party Method includes:
Step 310, the residual electric quantity of terminal device is obtained every the first preset time.
Step 320, the distance between terminal device and user value are obtained.
Specifically, the mode for obtaining the distance between terminal device and user value can be detection terminal equipment and user The distance of the wearable device of wearing obtains the distance between terminal device and user.Wherein, wearable device can be intelligence Bracelet, intelligent watch or intelligent glasses etc..After terminal device establishes bluetooth connection with wearable device, terminal device detection can The bluetooth signal intensity of wearable device, pass through the distance of bluetooth signal intensity determination between the two.
Step 330, the output volume of terminal device is adjusted according to distance value and the first volume value.
Specifically, the mode of the output volume of terminal device is adjusted according to distance value and the first volume value to be, when away from When being more than pre-determined distance value from value, the 4th volume value corresponding to distance value is determined according to the 3rd mapping table, then according to the 4th sound Corresponding weight determines the output volume of terminal device respectively for value and the first volume value.When distance value is less than or equal to pre-determined distance During value, then the output volume of terminal is determined according to the first volume value and the second volume value.
Optionally, step 330 can be implemented by following manner:
Step 331, when distance value is more than pre-determined distance value, the 4th sound corresponding to distance value is determined according to the 3rd mapping table Value, the 3rd mapping table include volume mapping table corresponding to distance.
Wherein, pre-determined distance value could be arranged to the arbitrary value between 2-4 rice, such as be arranged to 3 meters.3rd mapping table bag Volume mapping table corresponding to including distance, can be the mapping table established according to the corresponding relation between distance and the 4th volume.This Under application scenarios, the distance of terminal device and user are bigger, and corresponding 4th volume is higher.Exemplary, table 4 is a kind of distance The mapping table that corresponding relation between the 4th volume is established.
Table 4
Distance L/ rice L≤3 3 < L≤4 4 < L≤5 5 < L≤6
4th volume 20% 30% 40% 50%
Distance L/ rice 6 < L≤7 7 < L≤8 9 < L≤10 L > 10
4th volume 60% 70% 80% 90%
Explanation is needed to illustrate, table 4 is the corresponding relation of one of which distance and the 4th volume, is not limited herein It is fixed.Specifically, determine that the process of the 4th volume value corresponding to distance value can be according to the 3rd mapping table, when the terminal detected When the distance between equipment and user value are more than pre-determined distance value, the 4th sound corresponding to the distance value is searched in the 4th mapping table Value.Exemplary, it is assumed that the distance between present terminal equipment and user are 5.5 meters.It is then corresponding in the 3rd mapping table 4th volume is 50%.
Step 332, according to the 4th volume value and the first volume value, corresponding weight determines the output sound of terminal device respectively Amount.
Wherein, the 4th volume and the first volume respectively corresponding to weight can be determined according to the current dump energy of user. Exemplary, table 5 is a kind of dump energy and the corresponding relation of the first volume weight.
Table 5
Electricity 0-10% 11%-20% 21%-30% 31%-40% 41%-50%
Weight 1 0.9 0.8 0.7 0.6
Electricity 51%-60% 61%--70% 71%-80% 81%-90% 91%-100%
Weight 0.5 0.4 0.3 0.2 0.1
As shown in table 1, dump energy is higher, and the weight shared by the first volume is smaller.When between terminal device and user Distance is when being more than preset value, and according to the 4th volume value and the first volume value, corresponding weight determines the output sound of terminal device respectively Amount.Exemplary, it is assumed that the dump energy of present terminal equipment is 33%, and the distance between terminal device and user are 4 meters, then The calculation formula of output volume is 0.7*40%+0.3*30%=37%, i.e., the output volume adjusting of terminal device is 37%.
The technical scheme of the present embodiment, when the distance between terminal device and user are more than preset value, according to the 4th sound Corresponding weight determines the output volume of terminal device respectively for value and the first volume value, can save the power consumption of terminal device, When can ensure that the distance of terminal and user exceed certain value simultaneously so that the sound of terminal device can be heard by the user.
Fig. 4 is a kind of flow chart of volume adjusting method provided in an embodiment of the present invention.Enter as to above-described embodiment One step is explained, as shown in figure 4, this method includes:
Step 401, the residual electric quantity of terminal device is obtained every the first preset time.
Step 402, the first volume value corresponding to residual electric quantity is determined according to the first mapping table.
Step 403, the ambient sound value that terminal device is presently in environment is obtained.
Step 404, the 3rd volume value corresponding to ambient sound value is determined according to the second mapping table.
Step 405, judge whether residual electric quantity is more than default charge value.
Step 406, if residual electric quantity is more than default charge value, the 3rd volume value is defined as to the output of terminal device Volume.
Step 407, if residual electric quantity is less than or equal to default charge value, according to the first volume value and the 3rd volume value point Not corresponding weight determines the output volume of terminal device.
Or
Step 401, the residual electric quantity of terminal device is obtained every the first preset time.
Step 402, the first volume value corresponding to residual electric quantity is determined according to the first mapping table.
Step 408, the distance between terminal device and user value are obtained.
Step 409, whether judging distance value is more than pre-determined distance value.
Step 410, when distance value is more than pre-determined distance value, the 4th sound corresponding to distance value is determined according to the 3rd mapping table Value.
Step 411, according to the 4th volume value and the first volume value, corresponding weight determines the output sound of terminal device respectively Amount.
Step 412, when distance value is less than or equal to pre-determined distance value, adjusted eventually according to the first volume value and the second volume value The output volume of end equipment.
Fig. 5 is a kind of structural representation of volume adjustment device provided in an embodiment of the present invention, as shown in figure 5, the device Including:Residual electric quantity acquisition module 510, the first volume value determining module 520 and output volume adjusting module 530.
Residual electric quantity acquisition module 510, for obtaining the residual electric quantity of terminal device every the first preset time;
First volume value determining module 520, for determining the first volume corresponding to residual electric quantity according to the first mapping table Value, the first mapping table include volume mapping table corresponding to electricity;
Output volume adjusting module 530, for adjusting the output of terminal device according to the first volume value and the second volume value Volume, the second volume value are the current volume value of terminal device.
Optionally, output volume adjusting module 530, it is additionally operable to:
If the first volume value is more than the second volume value, the second volume value is defined as to the output volume of terminal device;
It is the first volume value by the output volume adjusting of terminal device if the first volume value is less than the second volume value.
Optionally, in addition to:
Ambient sound value acquisition module, the ambient sound value of environment is presently in for obtaining terminal device;
The 3rd certain module of volume value, the 3rd volume value corresponding to ambient sound value is determined according to the second mapping table, second Mapping table includes volume mapping table corresponding to environmental volume;
Output volume adjusting module 530, it is additionally operable to adjust the defeated of terminal device according to residual electric quantity and the 3rd volume value Go out volume.
Optionally, output volume adjusting module 530, it is additionally operable to:
If residual electric quantity is more than default charge value, the 3rd volume value is defined as to the output volume of terminal device;
If residual electric quantity is less than or equal to default charge value, corresponding respectively with the 3rd volume value according to the first volume value Weight determines the output volume of terminal device.
Optionally, in addition to:
Distance value acquisition module, for obtaining the distance between terminal device and user value;
Output volume adjusting module 530, it is additionally operable to the output sound according to distance value and the first volume value regulation terminal device Amount.
Optionally, output volume adjusting module 530, it is additionally operable to:
When distance value is more than pre-determined distance value, the 4th volume value corresponding to distance value is determined according to the 3rd mapping table, the Three mapping tables include volume mapping table corresponding to distance;
According to the 4th volume value and the first volume value, corresponding weight determines the output volume of terminal device respectively.
Optionally, output volume adjusting module 530 is additionally operable to:
If detecting, user adjusts terminal device volume manually, the volume after user is adjusted in the second preset time It is defined as the output volume of terminal device;Wherein, the second preset time is more than the first preset time.
The method that the executable foregoing all embodiments of the present invention of said apparatus are provided, it is corresponding to possess the execution above method Functional module and beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the foregoing all implementations of the present invention The method that example is provided.
Fig. 6 is a kind of structural representation of terminal provided in an embodiment of the present invention, as shown in fig. 6, the terminal can include: Housing (not shown), first memory 601, the first central processing unit (Central Processing Unit, CPU) 602 (also known as first processor, hereinafter referred to as CPU), it is stored on first memory 601 and can be run on first processor 602 Computer program, circuit board (not shown) and power circuit (not shown).The circuit board is placed in the housing The interior volume surrounded;The CPU602 and the first memory 601 are arranged on the circuit board;The power circuit, For each circuit or the device power supply for the terminal;The first memory 601, for storing executable program code; The CPU602 is run and the executable journey by reading the executable program code stored in the first memory 601 Program corresponding to sequence code, for performing:
The residual electric quantity of terminal device is obtained every the first preset time;
The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity Volume mapping table corresponding to amount;
According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is The current volume value of terminal device.
The terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit 606th, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls Equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that graphic terminal 600 is only an example of terminal, and terminal 600 can have than figure Shown in more or less parts, two or more parts can be combined, or can have different portions Part configures.Various parts shown in figure can be including one or more signal transactings and/or application specific integrated circuit Hardware, software or hardware and software combination in realize.
The terminal for volume adjusting provided below with regard to the present embodiment is described in detail, and the terminal is with smart mobile phone Exemplified by.
First memory 601, the first memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and described One memory 601 can include high random access first memory, can also include non-volatile first memories, such as one Individual or multiple disk first memory parts, flush memory device or other volatile solid-state first memory parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and the by Peripheral Interface 603, the Peripheral Interface 603 One memory 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612 With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091 For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 6092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Wherein, according to touch-screen operation principle and transmission information medium classification, touch-screen 612 can be resistance-type, Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch-screen 612 can be:It is external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch-screen 612 can be:Vector pressure sensing technology touch-screen, resistive technologies are touched Touch screen, capacitance technology touch-screen, infrared technology touch-screen or surface acoustic wave technique touch-screen.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user terminal and user, can It can include figure, text, icon, video etc. to user, visual output depending on output display.Optionally, touch-screen 612 is by user The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to first processor 602.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612 Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091 The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 605, it is mainly used in establishing the communication of intelligent sound box and wireless network (i.e. network side), realizes intelligent sound box Data receiver and transmission with wireless network.Such as transmitting-receiving short message, Email etc..
Voicefrequency circuit 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving intelligent sound box from wireless network by RF circuits 605, it is reduced to Sound simultaneously plays the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
In the present embodiment, central first processor 602 is used for:
The residual electric quantity of terminal device is obtained every the first preset time;
The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity Volume mapping table corresponding to amount;
According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is The current volume value of terminal device.
Further, the output volume that terminal device is adjusted according to first volume value and the second volume value, bag Include:
If first volume value is more than second volume value, the second volume value is defined as to the output of terminal device Volume;
It is the first sound by the output volume adjusting of terminal device if first volume value is less than second volume value Value.
Further, after the residual electric quantity of terminal device is obtained every the first preset time, including:
Obtain the ambient sound value that terminal device is presently in environment;
The 3rd volume value corresponding to the ambient sound value is determined according to the second mapping table, second mapping table includes ring Volume mapping table corresponding to the volume of border;
According to the residual electric quantity and the output volume of the 3rd volume value regulation terminal device.
Further, the output volume of terminal device, bag are adjusted according to the residual electric quantity and the 3rd volume value Include:
If the residual electric quantity is more than default charge value, the 3rd volume value is defined as to the output sound of terminal device Amount;
If the residual electric quantity is less than or equal to default charge value, according to first volume value and the 3rd volume Corresponding weight determines the output volume of terminal device to value respectively.
Further, after the residual electric quantity of terminal device is obtained every the first preset time, in addition to:
Obtain the distance between terminal device and user value;
According to the distance value and the output volume of first volume value regulation terminal device.
Further, the output volume of terminal device is adjusted according to the distance value and first volume value, including:
When the distance value is more than pre-determined distance value, the 4th sound corresponding to the distance value is determined according to the 3rd mapping table Value, the 3rd mapping table include volume mapping table corresponding to distance;
According to the 4th volume value and first volume value, corresponding weight determines the output sound of terminal device respectively Amount.
Further, in addition to:
If detecting, user adjusts terminal device volume manually, the volume after user is adjusted in the second preset time It is defined as the output volume of terminal device;Wherein, second preset time is more than first preset time.
The computer-readable storage medium of the embodiment of the present invention, any of one or more computer-readable media can be used Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any includes or the tangible medium of storage program, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground is performed, partly performed on the user computer on the user computer, the software kit independent as one performs, partly existed Subscriber computer upper part is performed or performed completely on remote computer or server on the remote computer.It is being related to In the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To pass through Internet connection).
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. volume adjusting method, it is characterised in that including:
    The residual electric quantity of terminal device is obtained every the first preset time;
    The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity pair The volume mapping table answered;
    According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is terminal The current volume value of equipment.
  2. 2. volume adjusting method according to claim 1, it is characterised in that described according to first volume value and second Volume value adjusts the output volume of terminal device, including:
    If first volume value is more than second volume value, the second volume value is defined as to the output sound of terminal device Amount;
    It is the first volume by the output volume adjusting of terminal device if first volume value is less than second volume value Value.
  3. 3. volume adjusting method according to claim 1, it is characterised in that set obtaining terminal every the first preset time After standby residual electric quantity, including:
    Obtain the ambient sound value that terminal device is presently in environment;
    The 3rd volume value corresponding to the ambient sound value is determined according to the second mapping table, second mapping table includes ambient sound Volume mapping table corresponding to amount;
    According to the residual electric quantity and the output volume of the 3rd volume value regulation terminal device.
  4. 4. volume adjusting method according to claim 3, it is characterised in that according to the residual electric quantity and the described 3rd Volume value adjusts the output volume of terminal device, including:
    If the residual electric quantity is more than default charge value, the 3rd volume value is defined as to the output volume of terminal device;
    If the residual electric quantity is less than or equal to default charge value, according to first volume value and the 3rd volume value point Not corresponding weight determines the output volume of terminal device.
  5. 5. volume adjusting method according to claim 1, it is characterised in that set obtaining terminal every the first preset time After standby residual electric quantity, in addition to:
    Obtain the distance between terminal device and user value;
    According to the distance value and the output volume of first volume value regulation terminal device.
  6. 6. volume adjusting method according to claim 5, it is characterised in that according to the distance value and first volume The output volume of value regulation terminal device, including:
    When the distance value is more than pre-determined distance value, the 4th volume corresponding to the distance value is determined according to the 3rd mapping table Value, the 3rd mapping table include volume mapping table corresponding to distance;
    According to the 4th volume value and first volume value, corresponding weight determines the output volume of terminal device respectively.
  7. 7. volume adjusting method according to claim 1, it is characterised in that also include:
    If detecting, user adjusts terminal device volume manually, and the volume after user is adjusted in the second preset time determines For the output volume of terminal device;Wherein, second preset time is more than first preset time.
  8. A kind of 8. volume adjustment device, it is characterised in that including:
    Residual electric quantity acquisition module, for obtaining the residual electric quantity of terminal device every the first preset time;
    First volume value determining module, for determining the first volume value corresponding to the residual electric quantity according to the first mapping table, First mapping table includes volume mapping table corresponding to electricity;
    Output volume adjusting module, for adjusting the output sound of terminal device according to first volume value and the second volume value Amount, second volume value are the current volume value of terminal device.
  9. 9. a kind of terminal, including first memory, first processor and it is stored on the first memory and can be described The computer program run on one processor, it is characterised in that the first processor is realized when performing the computer program Following steps:
    The residual electric quantity of terminal device is obtained every the first preset time;
    The first volume value corresponding to the residual electric quantity is determined according to the first mapping table, first mapping table includes electricity pair The volume mapping table answered;
    According to first volume value and the output volume of the second volume value regulation terminal device, second volume value is terminal The current volume value of equipment.
  10. 10. a kind of storage medium, is stored thereon with computer program, it is characterised in that the program is realized when being executed by processor Volume adjusting method as described in any in claim 1-7.
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 true CN107404753A (en) 2017-11-28
CN107404753B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052305A (en) * 2017-11-29 2018-05-18 广东欧珀移动通信有限公司 Volume adjusting method, 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
CN109361982A (en) * 2018-11-26 2019-02-19 歌尔股份有限公司 The driving circuit and heart rate earphone of earphone
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium
US11689655B2 (en) 2018-10-15 2023-06-27 Huawei Technologies Co., Ltd. Method for adjusting parameter of audio service and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011131640A2 (en) * 2010-04-19 2011-10-27 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Device and method for determining a physical quantity
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN104219392A (en) * 2014-09-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Intelligent incoming ring adjusting method, intelligent incoming ring adjusting system and mobile terminal
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011131640A2 (en) * 2010-04-19 2011-10-27 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Device and method for determining a physical quantity
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN104219392A (en) * 2014-09-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Intelligent incoming ring adjusting method, intelligent incoming ring adjusting system and mobile terminal
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052305A (en) * 2017-11-29 2018-05-18 广东欧珀移动通信有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium
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
CN109361982A (en) * 2018-11-26 2019-02-19 歌尔股份有限公司 The driving circuit and heart rate earphone of earphone
CN112671967A (en) * 2020-12-22 2021-04-16 英华达(上海)科技有限公司 Bluetooth headset control method, system, device and medium

Also Published As

Publication number Publication date
CN107404753B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN107404753A (en) Volume adjusting method, device, terminal and storage medium
US20200186114A1 (en) Audio Signal Adjustment Method, Storage Medium, and Terminal
CN110166871B (en) Earphone charging box, TWS earphone, working state switching method and storage medium
CN104506702B (en) A kind of volume adjusting method
CN108886653B (en) Earphone sound channel control method, related equipment and system
CN106791067B (en) Call volume adjusting method and device and mobile terminal
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN107343076A (en) Volume adjusting method, device, storage medium and mobile terminal
CN103714824A (en) Audio processing method, audio processing device and terminal equipment
CN109005480A (en) Information processing method and related product
CN104954965B (en) The detection method and device of earphone keystroke
CN109542380A (en) Control method, device, storage medium and the terminal of display pattern
CN107508979A (en) volume adjusting method, device, terminal and storage medium
CN105744609B (en) Improve the method and device of mobile terminal power consumption
CN107402625A (en) Touch screen scanning method, device, terminal and computer-readable recording medium
CN107508983A (en) volume adjusting method, device, storage medium and terminal device
CN108287605A (en) charge control method, device, terminal device and storage medium
CN108234738A (en) volume adjusting method, device, terminal and storage medium
CN107508996A (en) Safe locating device, method, terminal device and storage medium
CN107526569A (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN104301824A (en) Drive-by-wire device, controller, method and device
CN105786439A (en) Method and device for controlling sound in terminal
CN106603870A (en) Control method and device of playing equipment, playing equipment and mobile terminal
CN108668018A (en) Mobile terminal, method for controlling volume and Related product

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