CN109451166A - Volume adjusting method and device - Google Patents
Volume adjusting method and device Download PDFInfo
- Publication number
- CN109451166A CN109451166A CN201811441092.1A CN201811441092A CN109451166A CN 109451166 A CN109451166 A CN 109451166A CN 201811441092 A CN201811441092 A CN 201811441092A CN 109451166 A CN109451166 A CN 109451166A
- Authority
- CN
- China
- Prior art keywords
- volume
- length
- audio
- volume level
- volume adjustment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000004044 response Effects 0.000 claims abstract description 8
- 230000007613 environmental effect Effects 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 10
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 8
- 238000003780 insertion Methods 0.000 claims description 6
- 230000037431 insertion Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 16
- 238000004590 computer program Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 13
- 230000009467 reduction Effects 0.000 description 9
- 230000015654 memory Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 235000015170 shellfish Nutrition 0.000 description 1
- 238000009331 sowing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
Present disclose provides a kind of volume adjusting methods, are applied to electronic equipment, the electronic equipment includes volume adjustment key.The described method includes: receiving the first user's operation to the volume adjustment key;In response to first user's operation, audio volume level of current volume under the conditions of currently playing is obtained;Based on the audio volume level, volume adjustment step-length is determined;And the current volume is adjusted according to the volume adjustment step-length.The disclosure additionally provides a kind of volume adjustment device.
Description
Technical field
This disclosure relates to a kind of volume adjusting method and device.
Background technique
People often listen to music equal audio datas using electronic equipment (for example, mobile phone) in different environments.Not
Under same acoustic surrounding, people are different to the volume and volume change susceptibility of sound.For example, sometimes environment ratio is worked as
When preceding sound disturbs by making noise very much, mobile phone volume just needs to tune up as early as possible.Sometimes environment is quieter, and the ear of people is to sound at this time
Amount variation is more sensitive, and the volume of mobile phone may only need some fine tunings that can arrive suitable degree.However, current people are common
The volume add-substract key of electronic equipment is all fixed step size come volume when adjusting volume, to add deduct each time.In this way, if wishing
The sound of electronic equipment is adjusted to suitable volume under different condition, it is always necessary to take some twists and turns.
Summary of the invention
An aspect of this disclosure provides a kind of volume adjusting method, is applied to electronic equipment, the electronic equipment packet
Include volume adjustment key.The method includes receiving the first user's operation to the volume adjustment key, used in response to described first
Family operation obtains audio volume level of current volume under the conditions of currently playing, determines that volume adjustment walks based on the audio volume level
It is long, and the current volume is adjusted according to the volume adjustment step-length.
Optionally, the audio volume level for obtaining current volume under the conditions of currently playing, including detection is in the electronics
Whether it is inserted into earphone in equipment, determines that the currently playing condition is that earphone plays mould in the case where detecting insertion earphone
Formula, and obtain audio volume level of the current volume under the earphone play mode.
Optionally, the method also includes in the case where earphone is not detected, determining that the currently playing condition is outer
Mode playback, and obtain audio volume level of the current volume under the outer mode playback.
Optionally, the audio volume level for obtaining the current volume under the outer mode playback, including the detection electricity
Environmental noise where sub- equipment, and based on the current volume compared with the environmental noise, obtain the volume water
It is flat.
Optionally, the method also includes the corresponding relationship of audio volume level and volume adjustment step-length is arranged.It is described to be based on institute
Audio volume level is stated, determines volume adjustment step-length, including according to the corresponding relationship, search volume corresponding with the audio volume level
Adjust step-length.
Optionally, the method also includes one or more audio volume level threshold values are arranged.It is described to be based on the audio volume level
It determines volume adjustment step-length, when being included in the audio volume level more than or equal to first threshold, determines the volume adjustment step-length
For the first step-length, and when the audio volume level is less than the first threshold, determine that the volume adjustment step-length is second step
It is long.Wherein, the first threshold belongs to one or more of audio volume level threshold values, and the first step is long to be greater than the second step
It is long.
Optionally, the volume adjustment key includes increasing volume key or reduction volume key.It is described to be based on the volume water
It is flat to determine volume adjustment step-length, described in determining when first user's operation is to the operation for increasing volume key
Volume adjustment step-length is volume increase step-length, or when first user's operation is to the operation for reducing volume key,
Determine that the volume adjustment step-length is volume down step-length, wherein the volume increases step-length and the volume down step-length phase
Deng or it is unequal.
Another aspect of the present disclosure provides a kind of volume adjustment device, is set to electronic equipment, the electronic equipment packet
Include volume adjustment key.Described device includes user's operation receiving module, audio volume level acquisition module, step-length determining module and tune
Save module.User's operation receiving module is used to receive the first user's operation to the volume adjustment key.Audio volume level obtains mould
Block is used to obtain audio volume level of current volume under the conditions of currently playing in response to first user's operation.Step-length determines
Module is used to be based on the audio volume level, determines volume adjustment step-length.Adjustment module is used for according to the volume adjustment step-length tune
Save the current volume.
Optionally, the audio volume level for obtaining current volume under the conditions of currently playing, including detection is in the electronics
Whether it is inserted into earphone in equipment, determines that the currently playing condition is that earphone plays mould in the case where detecting insertion earphone
Formula, and obtain audio volume level of the current volume under the earphone play mode.
Optionally, the audio volume level for obtaining current volume under the conditions of currently playing, further includes that ear is being not detected
In the case where machine, determine that the currently playing condition is outer mode playback, and obtain the current volume in the outer mode playback
Under audio volume level.
Optionally, the audio volume level for obtaining the current volume under the outer mode playback, including the detection electricity
Environmental noise where sub- equipment, and based on the current volume compared with the environmental noise, obtain the volume water
It is flat.
Optionally, described device further includes relationship setup module.The relationship setup module for be arranged audio volume level with
The corresponding relationship of volume adjustment step-length.The step-length determining module is specifically used for being searched and the sound according to the corresponding relationship
The horizontal corresponding volume adjustment step-length of amount.
Optionally, the volume adjustment key includes increasing volume key or reduction volume key.The step-length determining module, tool
Body is used to determine that the volume adjustment step-length is volume when first user's operation is to the operation for increasing volume key
Increase step-length, or when first user's operation is to the operation for reducing volume key, determines the volume adjustment step
A length of volume down step-length, wherein the volume increases step-length and the volume down step-length is equal or unequal.
Optionally, described device further includes threshold setting module.The threshold setting module is for being arranged one or more
Audio volume level threshold value.The step-length determining module is specifically used for determining when the audio volume level is greater than or equal to first threshold
The volume adjustment step-length is the first step-length, and when the audio volume level is less than the first threshold, determines the volume
Adjusting step-length is the second step-length, wherein the first threshold belongs to one or more of audio volume level threshold values, the first step
It is long to be greater than second step-length.
Another aspect of the present disclosure provides a kind of sound volume regulating system.The sound volume regulating system includes volume adjustment
Key, one or more memories and one or more processors for being stored with computer executable instructions.The volume adjustment
Key executes described instruction for receiving the first user's operation, the processor to realize volume adjusting method as described above.
Another aspect of the present disclosure provides a kind of computer readable storage medium, is stored with computer executable instructions,
Described instruction is when executed for realizing volume adjusting method as described above.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to
It enables, described instruction is when executed for realizing volume adjusting method as described above.
Detailed description of the invention
In order to which the disclosure and its advantage is more fully understood, referring now to being described below in conjunction with attached drawing, in which:
Fig. 1 diagrammatically illustrates the application scenarios of volume adjusting method and device according to the embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the flow chart of the volume adjusting method according to the embodiment of the present disclosure;
Fig. 3 diagrammatically illustrate obtained in the volume adjusting method of Fig. 2 it is currently playing under the conditions of audio volume level method
Flow chart;
Fig. 4 diagrammatically illustrates the method flow of the audio volume level outside the acquisition according to one embodiment of the disclosure under mode playback
Figure;
Fig. 5 diagrammatically illustrates the flow chart of the volume adjusting method according to another embodiment of the disclosure;
Fig. 6 diagrammatically illustrates the corresponding relationship of the audio volume level and volume adjustment step-length according to one embodiment of the disclosure
Schematic diagram;
Fig. 7 diagrammatically illustrates the flow chart of the volume adjusting method according to disclosure another embodiment;
Fig. 8 diagrammatically illustrates the schematic diagram that volume adjustment step-length is determined according to threshold value according to the embodiment of the present disclosure;
Fig. 9 diagrammatically illustrates the block diagram of the volume adjustment device according to the embodiment of the present disclosure;And
Figure 10 diagrammatically illustrates the frame of the computer system for being adapted to carry out volume adjustment according to the embodiment of the present disclosure
Figure.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary
, and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining
Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin
It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid
Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein
The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of
Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood
Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification
Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to
Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C "
Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or
System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come
Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least
One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have
B and C, and/or the system with A, B, C etc.).
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart
Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer,
The processor of special purpose computer or other programmable data processing units, so that these instructions are when executed by this processor can be with
Creation is for realizing function/operation device illustrated in these block diagrams and/or flow chart.The technology of the disclosure can be hard
The form of part and/or software (including firmware, microcode etc.) is realized.In addition, the technology of the disclosure, which can be taken, is stored with finger
The form of computer program product on the computer readable storage medium of order, the computer program product is for instruction execution system
System uses or instruction execution system is combined to use.
Embodiment of the disclosure provides a kind of volume adjusting method and device, is applied to electronic equipment, the electronic equipment
Including volume adjustment key.This method includes the first user's operation received to the volume adjustment key, is grasped in response to first user
Make, obtains audio volume level of current volume under the conditions of currently playing, volume adjustment step-length is determined based on the audio volume level, and
The current volume is adjusted according to the volume adjustment step-length.
In accordance with an embodiment of the present disclosure, user in the prior art can at least be partially solved and pass through operation volume adjustment key
When carrying out volume adjustment, each adjusting step-length is fixed, and leads to the problem that volume adjustment is inflexible.
Volume adjusting method and device according to an embodiment of the present disclosure, can according to the currently playing condition of sound, when
Audio volume level of the preceding volume under the playing condition determines current volume adjustment step-length, to carry out volume adjustment.To sound
Amount adjusts step-length and not immobilizes, but can flexibly be changed according to specific playing condition etc..
The sound to identical volume and volume change susceptibility are different under various circumstances by people, i.e., the sound of identical decibel
User impression of the sound under different acoustic surroundings can be entirely different.Based on this consideration, in embodiment of the disclosure, meeting
The audio volume level of current volume is judged under specific playing condition.Wherein the audio volume level for example can be in the broadcasting item
Percentage of the current volume relative to permitted max volume under the playing condition under part.For example, 40 decibels of volume exists
Audio volume level can be 30% under outer mode playback, and the audio volume level under headset mode can be 60%.According to the disclosure
Embodiment can determine volume tune according to audio volume level of the current volume under specific playing condition when carrying out volume adjustment
Step-length is saved, the volume adjustment demand under different acoustic surroundings can be better adapted to.
Fig. 1 diagrammatically illustrates the application scenarios 100 of volume adjusting method and device according to the embodiment of the present disclosure.It needs
It is noted that being only the example that can apply the scene of the embodiment of the present disclosure shown in Fig. 1, to help skilled in the art to understand
The technology contents of the disclosure, but it is not meant to that the embodiment of the present disclosure may not be usable for other equipment, system, environment or scene.
As shown in Figure 1, the application scenarios 100 include electronic equipment 1.The electronic equipment 1 includes volume adjustment key 10.Specifically
Ground, which, which can specifically include, increases volume key 11 and/or reduction volume key 12.User can be increased by operation
Big volume key 11 can also reduce volume by operation reduction volume key 12 to increase volume or user.
It, can when determining volume adjustment step-length when current volume is adjusted according to some embodiments of the present disclosure
It is to increase volume key 11 or reduce volume key 12 with do not distinguish user's operation.It is right according to other embodiments of the disclosure
It can be that increase volume key 11 or reduction volume key 12 are specific to determine according to user's operation when current volume is adjusted
Volume adjustment step-length.For example, when the audio volume level of current volume is larger, it, can if user's operation increases volume key 11
So that the increase step-length of volume is smaller, to be finely adjusted again towards the direction that volume increases on the basis of current volume;Alternatively,
If user's operation reduces volume key 11, the reduction step-length of volume can be made larger, such case is felt suitable for such as user
It is too big to obtain current volume, needs the case where volume is quickly turned down by biggish step-length.
The application scenarios 100 can also include earphone 2.Electronic equipment 1 can be inserted in earphone 2, and such electronic equipment 1 is just located
In earphone play mode.Alternatively, electronic equipment 1 may be at outer mode playback when earphone 2 is not inserted into electronic equipment 1.
It can be applied to electronic equipment 1 according to the volume adjusting method of the embodiment of the present disclosure, accordingly based upon disclosure reality
The volume adjustment device for applying example can be set in electronic equipment 1.
It should be noted that exemplary electronic equipment 1 is that MP3 is merely illustrative in Fig. 1.In accordance with an embodiment of the present disclosure, electric
Sub- equipment 1 can be any one the electronic equipment such as MP3, sound equipment, mobile phone, TV, laptop, Ipad, the disclosure pair
This is not limited.In addition, it should also be noted that, in the description of the disclosure, in the case where being not specific to, volume adjustment key 10
Can indicate increase volume key 11 and reduce volume key 12 in it is any at least one.
Fig. 2 diagrammatically illustrates the flow chart of the volume adjusting method according to the embodiment of the present disclosure.
As shown in Fig. 2, the volume adjusting method includes operation S210~operation S240.
In operation S210, the first user's operation to volume adjustment key 10 is received.
Then sound of current volume under the conditions of currently playing is obtained in response to first user's operation in operation S220
Amount is horizontal.
Then in operation S230, it is based on the audio volume level, determines volume adjustment step-length.
And in operation S240, the current volume is adjusted according to the volume adjustment step-length.
In accordance with an embodiment of the present disclosure, which includes increasing volume key 11 or reduction volume key 12.Behaviour
Making S230 specifically can be, and when first user's operation is to the operation for increasing volume key 11, determine the volume adjustment step-length
Increase step-length for volume;Or when first user's operation is to the operation for reducing volume key 12, determine that the volume adjustment walks
A length of volume down step-length, wherein the volume increases step-length and the volume down step-length is equal or unequal.According to the disclosure
Embodiment such as can be, when the volume increases step-length and the unequal volume down step-length in the volume water of current volume
When putting down bigger, volume down step-length be greater than volume increase step-length, if in this way user's operation be increase volume key 11, Ke Yijin
Row volume increase fine tuning, if user's operation be reduce volume key 12, can quickly reduce volume.
Volume adjusting method and device according to an embodiment of the present disclosure, can according to the currently playing condition of sound, when
Audio volume level of the preceding volume under the playing condition determines current volume adjustment step-length, to carry out volume adjustment.To sound
Amount adjusts step-length and not immobilizes, but can flexibly be changed according to specific playing condition etc..
Fig. 3 diagrammatically illustrate Fig. 2 volume adjusting method operation S220 in obtain it is currently playing under the conditions of volume water
Flat method flow diagram.
As shown in figure 3, whether operation S220 specifically can be inserted into earphone 2 according to operation S301 electronic equipment to be divided into two greatly
Class situation is realized.
Specifically, in operation S301, whether detection is inserted into earphone 2 in the electronic device 1.
When the testing result for operating S301 is to be, operation S302 and operation S303 are executed.Specifically, exist in operation S302
In the case where detecting insertion earphone 2, determine that the current playing condition is earphone play mode.In operation S303, acquisition is deserved
Audio volume level of the preceding volume under the earphone play mode.For example, obtaining current volume relative to ear under earphone play mode
The percentage of max volume under machine sowing mode playback, such as can be by reading on the volume control progress bar in electronic equipment 1
Volume percentage obtain.
Alternatively, when the result for operating S301 is no, executing operation S304 and behaviour according to other embodiments of the disclosure
Make S305.Specifically, in operation S304, in the case where earphone 2 are not detected, determine that the current playing condition is to put mould outside
Formula.In operation S305, audio volume level of the current volume under the outer mode playback is obtained.For example, acquisition is worked as under outer mode playback
Percentage of the preceding volume relative to the max volume under outer mode playback.For example, can read currently, electronics is set under outer mode playback
The volume percentage on volume control progress bar in standby 1.
In accordance with an embodiment of the present disclosure, it is contemplated that people is different to the esthesis of sound under different acoustic surroundings, according to electricity
Whether sub- equipment 1 is inserted into earphone 2 to distinguish different playing conditions.Then audio volume level is judged under specific playing condition,
And then volume adjustment step-length is determined again, so that volume adjustment is more reasonable.
Fig. 4 diagrammatically illustrates the audio volume level obtained under outer mode playback in the operation S305 according to one embodiment of the disclosure
Method flow diagram.
As shown in figure 4, in accordance with an embodiment of the present disclosure, operation S305 may include operation S401 and operation S402.
Environmental noise where operation S401, detection electronic equipment 1.
The audio volume level is obtained based on the current volume compared with the environmental noise in operation S402.According to the disclosure
Embodiment audio volume level can be obtained based on the relative size of current volume and environmental noise under outer mode playback.For example,
If current volume is 50 decibels, and environmental noise has just reached 45 decibels, and current volume is only higher by 5 points than environmental noise at this time
Shellfish.After user wants operation increase volume key 11 at this time, current volume adjustment step-length can be made larger, outer put quickly is turned up
Volume.On the contrary, and environmental noise only has 20 decibels, in this case 50 decibels of the volume if current volume is 50 decibels
It is bigger, if user's operation increase volume key 11 at this time, current volume can be made to adjust step-length smaller.
Fig. 5 diagrammatically illustrates the flow chart of the volume adjusting method according to another embodiment of the disclosure;
As shown in figure 5, the volume adjusting method other than operating S210~operation S240, can also include operation
S510.In addition, operation S230 specifically can be operation S530.
In operation S510, the corresponding relationship of audio volume level and volume adjustment step-length is set.
Volume adjustment step-length is determined based on the audio volume level in operation S230, specifically can be operation S530, it is right according to this
It should be related to, search volume adjustment step-length corresponding with the audio volume level.
Fig. 6 diagrammatically illustrates the corresponding relationship of the audio volume level and volume adjustment step-length according to one embodiment of the disclosure
Schematic diagram.
It is non-linear relation between audio volume level and volume adjustment step-length, and for same sound in example in Fig. 6
Amount is horizontal, and it is different from volume down step-length that volume increases step-length.
For example, volume increase step-length is larger, so that volume may be implemented according to user's operation when audio volume level is smaller
Quickly increase.And when audio volume level is sufficiently large, such as when already close to 100%, it is smaller or several to increase step-length for volume at this time
It is zero, the fine tuning of volume increase may be implemented when user's operation increases volume key 11 at this time.
Similarly, for the relationship of volume down step-length and audio volume level, for example, when audio volume level is smaller, volume down
Small step-length can the smaller fine tuning to realize volume down;And when audio volume level is larger, volume down step-length can it is larger with
Realize the quick reduction of volume.
In accordance with an embodiment of the present disclosure, operation S510 be provided with audio volume level and volume adjustment step-length corresponding relationship it
It afterwards, can be according to current volume level, from audio volume level for example shown in fig. 6 and volume adjustment step-length in operation S530
Corresponding volume adjustment step-length is searched in corresponding relationship.
It should be noted that Fig. 6 signal be only audio volume level and volume adjustment step-length corresponding relationship a kind of example
The property ground form of expression.The corresponding relationship of audio volume level and volume adjustment step-length be also possible to for example with tabular form show from
Dissipate functional relation or linear relationship or step function relationship etc..
Fig. 7 diagrammatically illustrates the flow chart of the volume adjusting method according to disclosure another embodiment.
As shown in fig. 7, the volume adjusting method other than operating S210~operation S240, can also include operation
S710.In addition, operation S230 specifically can be operation S730A or operation S730B.
In operation S710, one or more audio volume level threshold values are set.
In addition, determining that volume adjustment step-length is specifically as follows operation S730A or behaviour based on the audio volume level in operation S230
Make S730B.In operation S730A, when the audio volume level is greater than or equal to first threshold, determine that the volume adjustment step-length is first
Step-length.In operation S730B, when the audio volume level is less than the first threshold, determine that the volume adjustment step-length is the second step-length.Its
In, which belongs to the one or more audio volume level threshold value, and the first step is long to be greater than second step-length.It specifically can be with
With reference to the signal of Fig. 8.
Fig. 8 diagrammatically illustrates the schematic diagram that volume adjustment step-length is determined according to threshold value according to the embodiment of the present disclosure.
As shown in figure 8, such as corresponding audio volume level of the first threshold is 50%.So, if the volume water of current volume
When putting down more than or equal to 50%, the first step-length of volume adjustment step-length can be made.If the audio volume level of current volume is less than 50%
When, second step-length of the volume adjustment step-length less than the first step-length can be made.For example, when user is inserting what earphone 2 listened to music
When, such as when needing to reduce volume, if the audio volume level of current volume is bigger (for example, being greater than 50%), press
The volume adjustment step-length of volume adjustment key 10 can be larger, if the smaller (example of the audio volume level of current volume
Such as, less than 50%), then the volume adjustment step-length for pressing a volume adjustment key 10 can be smaller.
In some embodiments, more volume thresholds can be set, according to the audio volume level of current volume and not unisonance
The comparison result of threshold value is measured, to determine different volume adjustment step-lengths.In this way, pressing the volume adjustment of a volume adjustment key 10
Step-length may be corresponded to there are many different volume adjustment step-lengths, can adjust volume more flexiblely.
Fig. 9 diagrammatically illustrates the block diagram of the volume adjustment device 900 according to the embodiment of the present disclosure.
As shown in figure 9, in accordance with an embodiment of the present disclosure, which can be set in electronic equipment 1,
Electronic equipment 1 includes volume adjustment key 10.The device 900 may include user's operation receiving module 910, audio volume level acquisition mould
Block 920, step-length determining module 930 and adjustment module 940.According to other embodiments of the disclosure, which can be with
Including relationship setup module 950.According to other embodiments of the disclosure, which also may include threshold setting module
960.In accordance with an embodiment of the present disclosure, which can be used to implement the volume adjusting method according to the embodiment of the present disclosure.
Specifically, user's operation receiving module 910 can for example execute operation S210, for receiving to volume adjustment key 10
The first user's operation.
Audio volume level, which obtains module 920, can for example execute operation S220, for obtaining in response to first user's operation
Audio volume level of current volume under the conditions of currently playing.Specifically, in accordance with an embodiment of the present disclosure, audio volume level obtains module
920 can be used for executing operation S301, operation S302 and operation S303;Alternatively, audio volume level, which obtains module 920, can specifically use
S301, operation S304 and operation S305 are operated in executing.Specifically can be used for for example, audio volume level obtains module 920: detection exists
It whether is inserted into earphone 2 in electronic equipment 1, determines that the current playing condition is broadcast for earphone in the case where detecting insertion earphone 2
Mode playback, and obtain audio volume level of the current volume under the earphone play mode;Alternatively, earphone 2 is not detected
In the case of, determine that the current playing condition is outer mode playback, and obtain volume water of the current volume under the outer mode playback
It is flat.In accordance with an embodiment of the present disclosure, audio volume level of the current volume under the outer mode playback, including detection electronic equipment are obtained
Environmental noise where 1, and based on the current volume compared with the environmental noise, obtain the audio volume level.
Step-length determining module 930 can for example execute operation S230, for being based on the audio volume level, determine that volume adjustment walks
It is long.In accordance with an embodiment of the present disclosure, volume adjustment key 10 includes increasing volume key 11 or reduction volume key 12.The step-length determines
Module 930 is specifically used for determining that the volume adjustment step-length is when first user's operation is to the operation for increasing volume key 11
Volume increases step-length, or when first user's operation is to the operation for reducing volume key 12, determines the volume adjustment step-length
For volume down step-length, wherein the volume increases step-length and the volume down step-length is equal or unequal.
Adjustment module 940 can for example execute operation S240, for adjusting the current volume according to the volume adjustment step-length.
Relationship setup module 950 can for example execute operation S510, for audio volume level and volume adjustment step-length to be arranged
Corresponding relationship.Correspondingly, step-length determining module 930 can specifically execute operation S530, for according to the corresponding relationship, search with
The corresponding volume adjustment step-length of the audio volume level.
Threshold setting module 960 can for example execute operation S710, for one or more audio volume level threshold values to be arranged.Phase
Ying Di, step-length determining module 930 can specifically execute operation S730A or operation S730B, specifically for being greater than in the audio volume level
Or when being equal to first threshold, determine that the volume adjustment step-length is the first step-length, and be less than the first threshold in the audio volume level
When, determining that the volume adjustment step-length is the second step-length, wherein the first threshold belongs to the one or more audio volume level threshold value,
The first step is long to be greater than second step-length.
In accordance with an embodiment of the present disclosure, which can be according to the volume under current volume in this prior playing condition
Level, which determines, adjusts step-length, carries out flexible modulation to current volume, specific descriptions may refer to retouching above with reference to Fig. 2~Fig. 8
It states, is not repeated herein.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement
A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son
Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule,
Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate
Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity
Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real
Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality
It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement
Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, user's operation receiving module 910, audio volume level obtain module 920, step-length determining module 930, adjustment module
940, relationship setup module 950, any number of may be incorporated in a module in threshold setting module 960 are realized, or
Any one module therein can be split into multiple modules.Alternatively, one or more modules in these modules are at least
Partial function can be combined at least partly function of other modules, and be realized in a module.According to the reality of the disclosure
Example is applied, user's operation receiving module 910, audio volume level obtain module 920, step-length determining module 930, adjustment module 940, relationship
At least one of setup module 950, threshold setting module 960 can at least be implemented partly as hardware circuit, such as existing
Field programmable gate array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation,
Specific integrated circuit (ASIC), or can by circuit carry out the hardware such as any other rational method that is integrated or encapsulating or
Firmware realizes, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriate
Combination is to realize.Alternatively, user's operation receiving module 910, audio volume level obtain module 920, step-length determining module 930, adjust
At least one of module 940, relationship setup module 950, threshold setting module 960 can at least be implemented partly as calculating
Machine program module can execute corresponding function when the computer program module is run.
Figure 10 diagrammatically illustrates the computer system 1000 for being adapted to carry out volume adjustment according to the embodiment of the present disclosure
Block diagram.Computer system 1000 shown in Figure 10 is only an example, should not function and use to the embodiment of the present disclosure
Range band carrys out any restrictions.
As shown in Figure 10, computer system 1000 includes processor 1010, computer readable storage medium 1020, Yi Jiyin
Measure adjusting key 1030.Wherein volume adjustment key 10 can be a kind of specific embodiment of volume adjustment key 1030.The department of computer science
System 1000 can execute the volume adjusting method according to the embodiment of the present disclosure.
Specifically, processor 1010 for example may include general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processor 1010 can also include for caching
The onboard storage device of purposes.Processor 1010 can be the different movements for executing the method flow according to the embodiment of the present disclosure
Single treatment unit either multiple processing units.
Computer readable storage medium 1020, such as can be non-volatile computer readable storage medium, specifically show
Example includes but is not limited to: magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory,
Such as random access memory (RAM) or flash memory;Etc..
Computer readable storage medium 1020 may include computer program 1021, which may include
Code/computer executable instructions executes processor 1010 and is implemented according to the disclosure
The volume adjusting method of example or its any deformation.
Computer program 1021 can be configured to have the computer program code for example including computer program module.Example
Such as, in the exemplary embodiment, the code in computer program 1021 may include one or more program modules, for example including
1021A, module 1021B ....It should be noted that the division mode and number of module are not fixed, those skilled in the art
It can be combined according to the actual situation using suitable program module or program module, when these program modules are combined by processor
When 1010 execution, processor 1010 is executed according to the volume adjusting method of the embodiment of the present disclosure or its any deformation.
In accordance with an embodiment of the present disclosure, volume adjustment key 1030 is used to receive the first user behaviour that user carries out volume adjustment
Make.Processor 1010 can be interacted with volume adjustment key 1030, to execute the volume adjustment side according to the embodiment of the present disclosure
Method or its any deformation.
According to an embodiment of the invention, user's operation receiving module 910, audio volume level obtain module 920, step-length determines mould
At least one of block 930, adjustment module 940, relationship setup module 950, threshold setting module 960 can be implemented as with reference to figure
Corresponding operating described above may be implemented when being executed by processor 1010 in the computer program module of 10 descriptions.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned reality
It applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/
In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quilts
When execution, the volume adjusting method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage medium
Matter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can
To carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, exist
In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can
To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Although the disclosure, art technology has shown and described referring to the certain exemplary embodiments of the disclosure
Personnel it should be understood that in the case where the spirit and scope of the present disclosure limited without departing substantially from the following claims and their equivalents,
A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment,
But should be not only determined by appended claims, also it is defined by the equivalent of appended claims.
Claims (10)
1. a kind of volume adjusting method is applied to electronic equipment, the electronic equipment includes volume adjustment key, the method packet
It includes:
Receive the first user's operation to the volume adjustment key;
In response to first user's operation, audio volume level of current volume under the conditions of currently playing is obtained;
Based on the audio volume level, volume adjustment step-length is determined;And
The current volume is adjusted according to the volume adjustment step-length.
2. according to the method described in claim 1, wherein, obtaining audio volume level of current volume under the conditions of currently playing, packet
It includes:
Whether detection is inserted into earphone in the electronic equipment;
In the case where detecting insertion earphone, determine that the currently playing condition is earphone play mode;And
Obtain audio volume level of the current volume under the earphone play mode.
3. according to the method described in claim 2, further include:
In the case where earphone is not detected, determine that the currently playing condition is outer mode playback;And
Obtain audio volume level of the current volume under the outer mode playback.
4. according to the method described in claim 3, wherein, obtaining volume water of the current volume under the outer mode playback
It is flat, comprising:
Detect the environmental noise where the electronic equipment;And
Based on the current volume compared with the environmental noise, the audio volume level is obtained.
5. according to the method described in claim 1, wherein:
The method also includes: the corresponding relationship of setting audio volume level and volume adjustment step-length;
It is described to be based on the audio volume level, determine volume adjustment step-length, comprising:
According to the corresponding relationship, volume adjustment step-length corresponding with the audio volume level is searched.
6. according to the method described in claim 1, wherein:
The method also includes: one or more audio volume level threshold values are set;
It is described to be based on the audio volume level, determine volume adjustment step-length, comprising:
When the audio volume level is greater than or equal to first threshold, determine that the volume adjustment step-length is the first step-length, wherein institute
It states first threshold and belongs to one or more of audio volume level threshold values;And
When the audio volume level is less than the first threshold, determine that the volume adjustment step-length is the second step-length;
Wherein:
The first step is long to be greater than second step-length.
7. method described in any one according to claim 1~6, wherein the volume adjustment key include increase volume key or
Person reduces volume key, described to be based on the audio volume level, determines that volume adjustment step-length includes:
When first user's operation is to the operation for increasing volume key, determine the volume adjustment step-length for volume increasing
Big step-length;Or
When first user's operation is to the operation for reducing volume key, determine that the volume adjustment step-length is volume down
Small step-length;
Wherein:
The volume increases step-length and the volume down step-length is equal or unequal.
8. a kind of volume adjustment device, is set to electronic equipment, the electronic equipment includes volume adjustment key, described device packet
It includes:
User's operation receiving module, for receiving the first user's operation to the volume adjustment key;
Audio volume level obtains module, for obtaining current volume under the conditions of currently playing in response to first user's operation
Audio volume level;
Step-length determining module determines volume adjustment step-length for being based on the audio volume level;And
Adjustment module, for adjusting the current volume according to the volume adjustment step-length.
9. device according to claim 8, wherein obtain audio volume level packet of current volume under the conditions of currently playing
It includes:
Whether detection is inserted into earphone in the electronic equipment;
In the case where detecting insertion earphone, determine that the currently playing condition is earphone play mode;
Obtain audio volume level of the current volume under the earphone play mode.
10. device according to claim 8, further includes:
Threshold setting module, for one or more audio volume level threshold values to be arranged;
The step-length determining module is specifically used for:
When the audio volume level is greater than or equal to first threshold, determine that the volume adjustment step-length is the first step-length, wherein institute
It states first threshold and belongs to one or more of audio volume level threshold values;And
When the audio volume level is less than the first threshold, determine that the volume adjustment step-length is the second step-length;
Wherein:
The first step is long to be greater than second step-length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811441092.1A CN109451166A (en) | 2018-11-28 | 2018-11-28 | Volume adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811441092.1A CN109451166A (en) | 2018-11-28 | 2018-11-28 | Volume adjusting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109451166A true CN109451166A (en) | 2019-03-08 |
Family
ID=65555950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811441092.1A Pending CN109451166A (en) | 2018-11-28 | 2018-11-28 | Volume adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109451166A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111654783A (en) * | 2020-06-10 | 2020-09-11 | 珠海格力电器股份有限公司 | Method and device for adjusting volume of loudspeaker of kitchen electrical equipment and range hood |
CN111683277A (en) * | 2019-03-11 | 2020-09-18 | 深圳Tcl新技术有限公司 | Volume adjusting method, smart television and storage medium |
CN113741855A (en) * | 2020-05-27 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Audio playing method and terminal |
CN118075509A (en) * | 2024-01-18 | 2024-05-24 | 深圳市维尔晶科技有限公司 | Volume control system based on sensor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101552595A (en) * | 2008-03-31 | 2009-10-07 | 联想(北京)有限公司 | Electronic product volume regulating method and device thereof |
CN103633960A (en) * | 2013-12-05 | 2014-03-12 | 无锡焺通微电子有限公司 | Method for controlling linear power electronic volume of audio frequency power amplifying circuit |
CN104035651A (en) * | 2013-03-05 | 2014-09-10 | 联想(北京)有限公司 | Control method and electronic device |
CN107613146A (en) * | 2017-11-10 | 2018-01-19 | 维沃移动通信有限公司 | A volume adjustment method, device and mobile terminal |
CN108777745A (en) * | 2018-06-05 | 2018-11-09 | 珠海市魅族科技有限公司 | A kind of volume adjusting method and device |
-
2018
- 2018-11-28 CN CN201811441092.1A patent/CN109451166A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101552595A (en) * | 2008-03-31 | 2009-10-07 | 联想(北京)有限公司 | Electronic product volume regulating method and device thereof |
CN104035651A (en) * | 2013-03-05 | 2014-09-10 | 联想(北京)有限公司 | Control method and electronic device |
CN103633960A (en) * | 2013-12-05 | 2014-03-12 | 无锡焺通微电子有限公司 | Method for controlling linear power electronic volume of audio frequency power amplifying circuit |
CN107613146A (en) * | 2017-11-10 | 2018-01-19 | 维沃移动通信有限公司 | A volume adjustment method, device and mobile terminal |
CN108777745A (en) * | 2018-06-05 | 2018-11-09 | 珠海市魅族科技有限公司 | A kind of volume adjusting method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683277A (en) * | 2019-03-11 | 2020-09-18 | 深圳Tcl新技术有限公司 | Volume adjusting method, smart television and storage medium |
CN113741855A (en) * | 2020-05-27 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Audio playing method and terminal |
CN113741855B (en) * | 2020-05-27 | 2023-10-31 | 青岛海信移动通信技术有限公司 | Audio playing method and terminal |
CN111654783A (en) * | 2020-06-10 | 2020-09-11 | 珠海格力电器股份有限公司 | Method and device for adjusting volume of loudspeaker of kitchen electrical equipment and range hood |
CN111654783B (en) * | 2020-06-10 | 2021-11-16 | 珠海格力电器股份有限公司 | Method and device for adjusting volume of loudspeaker of kitchen electrical equipment and range hood |
CN118075509A (en) * | 2024-01-18 | 2024-05-24 | 深圳市维尔晶科技有限公司 | Volume control system based on sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230053140A1 (en) | Detecting media watermarks in magnetic field data | |
US10762904B2 (en) | Electronic device and method of operating the same | |
CN109451166A (en) | Volume adjusting method and device | |
US10051364B2 (en) | Single channel or multi-channel audio control interface | |
CN104471960B (en) | For the system of back compatible audio coding, method, equipment and computer-readable media | |
US20160155455A1 (en) | A shared audio scene apparatus | |
US9918174B2 (en) | Wireless exchange of data between devices in live events | |
US10834503B2 (en) | Recording method, recording play method, apparatuses, and terminals | |
US10283104B2 (en) | Method and apparatus for controlling earphone noise reduction | |
CN109616135B (en) | Audio processing method, device and storage medium | |
CN109243488B (en) | Audio detection method, device and storage medium | |
US9654757B2 (en) | Method, apparatus, and computer program product for including device playback preferences in multimedia metadata | |
US9195740B2 (en) | Audio scene selection apparatus | |
US10405114B2 (en) | Automated detection of an active audio output | |
EP3350790B1 (en) | System and method for determining proximity of a controller to a media rendering device | |
CN111179984B (en) | Audio data processing method and device and terminal equipment | |
US20150339008A1 (en) | Method for controlling display and electronic device | |
CN114040319B (en) | Method, device, equipment and medium for optimizing playback quality of terminal equipment | |
EP2849341A1 (en) | Loudness control at audio rendering of an audio signal | |
CN108668011B (en) | Output method, output device and electronic device | |
US10136235B2 (en) | Method and system for audio quality enhancement | |
US10372333B2 (en) | Electronic device and method for storing a file in a plurality of memories | |
EP4002088A1 (en) | Controlling an audio source device | |
HK40025500B (en) | Combined active noise cancellation and noise compensation in headphone |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |