CN110187861A - A kind of volume adjusting method, electronic equipment and computer readable storage medium - Google Patents

A kind of volume adjusting method, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110187861A
CN110187861A CN201910448170.9A CN201910448170A CN110187861A CN 110187861 A CN110187861 A CN 110187861A CN 201910448170 A CN201910448170 A CN 201910448170A CN 110187861 A CN110187861 A CN 110187861A
Authority
CN
China
Prior art keywords
sound volume
electronic equipment
gain
level
volume
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
CN201910448170.9A
Other languages
Chinese (zh)
Other versions
CN110187861B (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 CN201910448170.9A priority Critical patent/CN110187861B/en
Publication of CN110187861A publication Critical patent/CN110187861A/en
Application granted granted Critical
Publication of CN110187861B publication Critical patent/CN110187861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3005Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
    • H03G3/301Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers the gain being continuously variable

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the present application discloses a kind of volume adjusting method, electronic equipment and computer readable storage medium, it can be the different adjustable gain range of audio equalizer configuration according to different level of sound volume, biggish adjustable gain range is configured in amount of bass grade, and lesser adjustable gain range is configured in high volume levels.In this way, when the level of sound volume of electronic equipment is in higher level adjust audio balanced device, can to avoid due to audio equalizer gain be arranged it is excessive, cause electronic equipment system sound volume be more than defined safe volume upper limit value.

Description

A kind of volume adjusting method, electronic equipment and computer readable storage medium
Technical field
This application involves volume controlling technique more particularly to a kind of volume adjusting methods, electronic equipment and computer-readable Storage medium.
Background technique
The sound audio requirement that user exports terminal is higher and higher, and current sound export technique can be exported in sound Doby panorama sound, prevalence, rock and roll or metal different-style sound are superimposed in the basic volume of unit (such as loudspeaker, earphone) output Sound is that user brings better audio enhancing experience.But (hereinafter referred to as " safety ") is provided according to the earphone security protection of European Union, It is required that the maximum analog output no more than 150mv of earphone, but in existing audio enhancing technology, when level of sound volume is in higher etc. When grade (for example volume is more than 50%), that there are sound intensities is too big when carrying out audio enhancing, and earphone is exported can not expire more than 150mV Sufficient safety requirement influences user's audiovisual experience and hearing.
Summary of the invention
In order to solve the above technical problems, the embodiment of the present application is intended to provide a kind of volume adjusting method, electronic equipment and meter Calculation machine readable storage medium storing program for executing.
The technical solution of the application is achieved in that
In a first aspect, providing a kind of volume adjusting method, it is applied to electronic equipment, which comprises
Control the adjustment interface that display interface shows audio balanced device;Wherein, the adjustable gain model of the audio balanced device Enclose be based on the electronic equipment level of sound volume determine, at least partly level of sound volume of the electronic equipment corresponds to different Adjustable gain range;
Receive the gain adjustment parameter that user inputs from the adjustment interface of the audio balanced device;
Basic volume and the gain adjustment parameter based on the electronic equipment, determine the system sound of the electronic equipment Amount.
Second aspect, provides a kind of electronic equipment, and the electronic equipment includes:
Control unit shows the adjustment interface of audio balanced device for controlling display interface;Wherein, the audio balanced device Adjustable gain range be based on the electronic equipment level of sound volume determine, at least partly volume of the electronic equipment etc. The corresponding different adjustable gain range of grade;
Input unit, the gain adjustment parameter inputted for receiving user from the adjustment interface of the audio balanced device;
Processing unit determines the electricity for basic volume and the gain adjustment parameter based on the electronic equipment The system sound volume of sub- equipment.
The third aspect provides a kind of electronic equipment in the embodiment of the present application again, comprising: processor and is configured to storage energy The memory of enough computer programs run on a processor, wherein the processor is configured to run the computer program When, execute preceding method the step of.
Fourth aspect additionally provides a kind of computer storage medium in the embodiment of the present application, is stored thereon with computer journey Sequence, when which is executed by processor the step of realization preceding method.
It by adopting the above technical scheme, is the different adjustable gain range of equalizer setting according to different level of sound volume, especially It is in high volume levels for the lesser adjustable gain range of equalizer setting, is that equalizer setting is larger in amount of bass grade Adjustable gain range, in this way, the level of sound volume of electronic equipment gone when being in higher level adjustment balanced device gain, can keep away Exempt to be arranged due to equalizer gain excessive, upper limit value of the system sound volume for causing electronic equipment to export more than security regulations.
Detailed description of the invention
Fig. 1 is the flow diagram 1 of volume adjusting method in the embodiment of the present application;
Fig. 2 is a kind of user interface schematic diagram in the embodiment of the present application;
Fig. 3 is the adjustment interface schematic diagram of intelligent equalization device in the embodiment of the present application;
Fig. 4 is the adjustment interface schematic diagram of graphic equalizer in the embodiment of the present application;
Fig. 5 is the flow diagram 2 of volume adjusting method in the embodiment of the present application;
Fig. 6 is the composed structure schematic diagram 1 of electronic equipment in the embodiment of the present application;
Fig. 7 is the composed structure schematic diagram 2 of electronic equipment in the embodiment of the present application;
Fig. 8 is the composed structure schematic diagram 3 of electronic equipment in the embodiment of the present application.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present application and technology contents, with reference to the accompanying drawing to this Shen Please the realization of embodiment be described in detail, appended attached drawing purposes of discussion only for reference is not used to limit the embodiment of the present application.
In existing audio enhancing technology, level of sound volume and graphic equalizer (Graphic Equalize, GEQ) adjustable gain The mapping relations of the yield value of range and intelligent equalization device (Intelligent Equalize, IEQ) are as shown in table 1.
Table 1
By taking the sound effect technology scheme of Doby panorama sound as an example, intelligent equalization device and graphic equalizer are serially to be superimposed upon basis On volume.Since above-mentioned different level of sound volume correspond to identical GEQ adjustable gain range and identical IEQ gain, in volume It is the excessive gain of equalizer setting when user adjusts audio using balanced device when grade is in higher level (such as 16 grades) System sound volume (i.e. system sound volume) loudness that will lead to earphone output is too big, and the analog voltage of output is unable to satisfy more than 150mV Safety requirement.
Embodiment one
In order to solve the above technical problems, the embodiment of the present application provides a kind of volume adjusting method, as shown in Figure 1, the sound Amount adjustment method can specifically include:
Step 101: control display interface shows the adjustment interface of audio balanced device;Wherein, the audio balanced device can Adjusting gain ranging is the level of sound volume determination based on the electronic equipment, at least partly level of sound volume pair of the electronic equipment Answer different adjustable gain ranges;
Step 102: receiving the gain adjustment parameter that user inputs from the adjustment interface of the audio balanced device;
Step 103: basic volume and the gain adjustment parameter based on the electronic equipment determine the electronic equipment System sound volume.
Here, the executing subject of step 101 to step 103 can be the processor of electronic equipment.Electronic equipment can be Has the electronic equipment of audio output function, for example, mobile phone, tablet computer, laptop, desktop computer, intelligent sound box etc..
Balanced device is a kind of equipment that can adjust various frequency content electric signal amplification quantities respectively, by it is various not The adjusting of the electric signal of same frequency compensates and modifies various sound sources, adjusts the output effect of audio signal.
In practical application, this method further include: pre-establish level of sound volume mapping table;It wherein, include at least in mapping table The mapping relations of two kinds of level of sound volume and adjustable gain range, the corresponding adjustable gain range of at least two level of sound volume are incomplete Identical, a kind of level of sound volume corresponds to the adjustable gain range of at least one balanced device.Level of sound volume and adjustable gain in mapping table The corresponding relationship experimenter of range can set according to experimental result and practical experience.
In some embodiments, the adjustable gain method of determining range of the audio balanced device includes: to obtain the electricity The level of sound volume of sub- equipment;Based on the level of sound volume, the determining level of sound volume is corresponding from level of sound volume mapping table can Adjust gain ranging;Wherein, the adjustable gain range of the level of sound volume mapping table Hi-Mid amount grade is not more than amount of bass grade Adjustable gain range;Using the corresponding adjustable gain range of the level of sound volume as the adjustable gain model of the audio balanced device It encloses.
Further, the level of sound volume of the electronic equipment is obtained, comprising: when detecting volume adjustment event, directly read The current volume level of electronic equipment is taken, or according to history level of sound volume and volume change amount, determines current volume level.
Correspondingly, the adjustable gain range includes at least one of the following: the first adjustable gain range, the second adjustable gain Range;Wherein, the first adjustable gain range is for configuring the first balanced device, and the second adjustable gain range is for configuring Second balanced device.That is, a level of sound volume corresponds to the adjustable gain range of at least one balanced device in mapping table.
For example, the mapping relations in mapping table are as shown in table 2, the first balanced device is graphic equalizer (GEQ), and second is balanced Device is intelligent equalization device (IEQ), and when level of sound volume is 0-11, the adjustable gain range of GEQ is the gain of -6dB value+6dB, IEQ For 6dB;When level of sound volume is greater than 11, the adjustable gain range of GEQ is gradually successively decreased with the increase of level of sound volume, the increasing of IEQ Benefit also with level of sound volume increase and gradually successively decrease.Here, due to including a variety of gain modes, every kind of gain mode in IEQ It is corresponding with fixed gain, therefore, adjustable range of the adjustable gain range in addition to characterizing gain can also characterize only a kind of optional Current gain value.The GEQ gain that GEQ coefficient C (n)=(X*16) is adjusted divided by 6, X for user in table 2.
Table 2
The embodiment of the present application is the different adjustable gain range of equalizer setting according to different level of sound volume, especially in height It is equalizer setting lesser adjustable gain range when level of sound volume, it is biggish adjustable for equalizer setting in amount of bass grade Gain ranging, in this way, level of sound volume goes the gain of adjustment balanced device when being in higher level, it can be to avoid due to equalizer gain Excessive, upper limit value of the system sound volume for causing electronic equipment to export more than security regulations is set.
In some embodiments, when the audio balanced device includes graphic equalizer, the gain adjustment parameter includes figure The gain adjustment ratio of shape balanced device;The basic volume and the gain adjustment parameter based on the electronic equipment determines The system sound volume of the electronic equipment, comprising: the adjustable gain model based on the gain adjustment parameter and the graphic equalizer It encloses, determines corresponding first amount of gain of the graphic equalizer;Based on basic volume and first amount of gain, the electricity is determined The system sound volume of sub- equipment.
For example, graphic equalizer can timing, system sound volume S (n)=B (n)+X*C (n), B (n) are basic volume, and X is The GEQ gain adjustment ratio that user is adjusted, C (n) are GEQ coefficient (being equal to adjustable gain range), the system sound of earphone output It measures S (n) corresponding analog voltage and is less than 150mV.
In further embodiments, when the audio balanced device includes intelligent equalization device, the gain adjustment parameter includes The target gain mode of intelligent equalization device;Wherein, the intelligent equalization device includes at least two gain modes;It is described based on described The basic volume of electronic equipment and the gain adjustment parameter, determine the system sound volume of the electronic equipment, comprising: based on described The adjustable gain range of target gain mode and the intelligent equalization device determines corresponding second gain of the intelligent equalization device Amount;Based on second amount of gain and the basic volume, system sound volume is determined.
For example, intelligent equalization device can timing, system sound volume S (n)=B (n)+D (n), D (n) be user selection target The corresponding gain of gain mode, the corresponding analog voltage of system sound volume S (n) are less than 150mV.
In some embodiments, the level of sound volume of the electronic equipment be highest level of sound volume when, the system sound volume with The sum of volume surplus is less than or equal to volume threshold.
For example, volume surplus is 0.5dB, the corresponding analog voltage of S (n) is 145mV, i.e. volume surplus is 5mV, S (n) with The sum of volume surplus is no more than safety 150mV.
In some embodiments, when the audio balanced device includes graphic equalizer and intelligent equalization device, the method is also It include: the selection instruction for receiving user and being inputted from input unit;When the selection instruction is the first instruction, the display is controlled Showing interface first indicates information;Wherein, it is adjustable and described to be used to indicate the graphic equalizer for the first instruction information Intelligent equalization device is non-adjustable;When the selection instruction is the second instruction, controls the display interface and show second indication information;Its In, the second indication information is used to indicate that the intelligent equalization device is adjustable and the graphic equalizer is non-adjustable.
That is, when comprising multiple adjustable balanced devices, user can choose wherein 1 be adjusted.Figure is equal Weighing apparatus and intelligent equalization device mutual exclusion configuration, i.e., one wherein be in adjustable state when, another is in non-adjustable state, is in The balanced device of adjustable state can adjust system sound volume, and the balanced device in non-adjustable state can not adjust system sound volume.
In practical application, when graphic equalizer and intelligent equalization device mutual exclusion configure, the first instruction information and the second instruction letter Breath can be image instruction, color instruction, text instruction or transparency instruction.For example, when user selects intelligent equalization device, intelligence Energy balanced device is enable, and user can choose wherein customized balanced device, and graphic equalizer disable, 40% is not Transparency, user can not adjust the sliding block in graphic equalizer.When user selects graphic equalizer, graphic equalizer is Enable, user can drag slide position to adjust the amount of gain of different frequency, and intelligent equalization device is disable, 40% Opacity, user can not select wherein customized balanced device.
Here, when switching between graphic equalizer and intelligent equalization device, retain the gain adjustment parameter of user setting.
Graphic equalizer and intelligent equalization device can be superimposed with non-exclusive configuration, two balanced device volume adjustment effects Output.When this method can also include: that the selection instruction instructs for third, controls the display interface and show third instruction letter Breath;Wherein, the third instruction information is used to indicate the graphic equalizer and the intelligent equalization device is adjustable.
In practical application, when graphic equalizer and the non-exclusive configuration of intelligent equalization device.Third indicates that information instruction figure is equal Weighing apparatus is identical with the display effect of the adjustment interface of intelligent equalization device, third instruction information can indicate for image, color indicates, Text instruction or transparency instruction.
Fig. 2 is a kind of user interface schematic diagram in the embodiment of the present application, may include audio on user interface Switch control area, intelligent equalization device select area and graphic equalizer regulatory region, these regions can show aobvious at one simultaneously Show on interface, perhaps shows that the control operation in these regions on different display interfaces can grasp for touch control operation or key Make.
Fig. 3 is the display effect schematic diagram of intelligent equalization device in the embodiment of the present application, the intelligence that user passes through the click upper left corner The selection key of energy balanced device, chooses intelligent equalization device, chooses operation control intelligent equalization device to be in adjustable shape according to user State, and the selection target gain mode from plurality of customized gain mode, customized gain mode include tool Have open, abundant, full and close these four audios, each gain mode has pre-defined the gain of audio signal different frequency Amount, user can be by the circles before selected gain mode, and selection target increases directly from these four customized gain modes Beneficial mode realizes the quick adjustment to system sound volume.
Fig. 4 is the display effect schematic diagram of graphic equalizer in the embodiment of the present application, the figure that user passes through the click upper left corner The selection key of shape balanced device chooses graphic equalizer, and chooses operation control graphic equalizer to be in adjustable according to user State needs in graphic equalizer user to adjust the amount of gain of audio signal different frequency respectively, is ten sections of balanced devices in Fig. 4, Adjustable frequency includes: 31Hz, 62Hz, 125Hz, 250Hz, 500Hz, 1kHz, 2kHz, 4kHz, 8kHz and 16kHz, graphic equalization The adjustable gain range shown in device is determined according to current level of sound volume, for example, level of sound volume can adjust when being 0-11 Beneficial range is -6dB value+6dB, and adjustable gain range is gradually successively decreased when level of sound volume is greater than 11.
By (being also possible to the combination of the two under intelligent equalization device or graphic equalizer mode, being also possible to other classes Enhance technology like audio) lower adjustable gain range (or adjustment factor) is arranged to more high volume levels, it is ensured that most Under the conditions of big level of sound volume, safety requirement can still be met by adjusting intelligent equalization device or graphic equalizer gain.By reasonably using Balanced device adjusting method after family interface (User Interface, UI) interaction design and optimization, that is, meet the requirement of safety, It also ensures sound effect, accomplishes the balance between safety and audio.
Embodiment two
In order to further embody technical scheme, the application is further lifted on the basis of example 1 Example, as shown in figure 5, the volume adjusting method can specifically include:
Step 201: obtaining the level of sound volume of the electronic equipment;
Here, the method for obtaining level of sound volume specifically includes: when detecting volume adjustment event, directly reading electronics and sets Standby current volume level, or according to history level of sound volume and volume change amount, determine current volume level.
In practical application, before the step further include: pre-establish level of sound volume mapping table;Wherein, include in mapping table The mapping relations of at least two level of sound volume and adjustable gain range, the corresponding adjustable gain range of at least two level of sound volume is not Identical, a kind of level of sound volume corresponds to the adjustable gain range of at least one balanced device.Here, the method for foundation can be Product development stage determines adjustable gain range of the different balanced devices under different level of sound volume according to experimental result, alternatively, Product service stage, by user's sets itself.
Here, a level of sound volume corresponds to the adjustable gain range of at least one balanced device in mapping table.For example, described can Gain ranging is adjusted to include at least one of the following: the first adjustable gain range, the second adjustable gain range;It wherein, described first can Adjust gain ranging for configuring the first balanced device, the second adjustable gain range is for configuring the second balanced device.
Step 202: being based on the level of sound volume, determine that the level of sound volume is corresponding adjustable from level of sound volume mapping table Gain ranging;Wherein, the adjustable gain range of the level of sound volume mapping table Hi-Mid amount grade is no more than amount of bass grade Adjustable gain range;
It in some embodiments, include the first set and second set of level of sound volume in the mapping table;Wherein, described Different level of sound volume correspond to identical adjustable gain range in first set, at least partly level of sound volume pair in the second set Answer different adjustable gain ranges;Level of sound volume in the second set is higher than the level of sound volume in the first set.
That is, level of sound volume classification can be divided first, the identical level of sound volume of adjustable gain range is divided in In one set, the different level of sound volume of adjustable gain range is divided in second set.Adjustable gain model in second set Enclose configured adjustable gain range reduces with the raising of level of sound volume, and adjacent level of sound volume adjusts in second set Beneficial range can be entirely different, or part is different, for example, 12 grades and 13 grades are all ± 5dB, 14 grades and 15 grades are all ± 4dB, 16 grades are ± 3dB.
In practical application, the mapping table further includes the corresponding basic volume of level of sound volume;The method for obtaining level of sound volume It may include: to determine the basic volume of electronic equipment when detecting volume adjustment event;By the corresponding volume of the basis volume Level of sound volume of the grade as electronic equipment.
It when playing sound, needs to calculate the basic volume of audio stream plays, is reflected according to the basic volume inquiry being calculated Firing table to obtain corresponding GEQ gain ranging (or IEQ gain), and sends configuration-direct to configuration unit, for configuring GEQ adjustable gain range (or IEQ gain).
As shown in table 3, different basic volumes correspond to different level of sound volume and different adjustable gain ranges, according to electricity The current basic volume of sub- equipment can determine current volume level and GEQ adjustable gain range and IEQ gain.
Table 3
Level of sound volume Basic volume GEQ adjustable gain range IEQ gain
16 -1.5dB ±1dB 1dB
15 -3.6dB ±2dB 6dB
14 -5.7dB ±3dB 6dB
13 -7.8dB ±4dB 6dB
12 -10.4dB ±5dB 6dB
1 -47dB ±6dB 6dB
0 -60dB ±6dB 6dB
In the case where meeting safety requirement, when the level of sound volume of user's selection is different, then the adjustable gain range of GEQ is different.Example It is such as ± 1dB when level of sound volume is 16 grades of corresponding GEQ adjustable gain ranges, 15 grades of corresponding GEQ adjustable gain ranges are ± 2dB, 14 grades of corresponding GEQ adjustable gain ranges are ± 3dB, and 13 grades of corresponding GEQ adjustable gain ranges are ± 2dB, and 12 grades of corresponding GEQ are adjustable Gain ranging is ± 1dB, 11 grades and following level correspond to GEQ adjustable gain range as ± 6dB.
11 grades are system default value, and fixed GEQ adjustable gain range is ± 6dB, by GEQ coefficient come the actual setting that converts To the value of system bottom.For example, being at least divided to two intervals controls, first interval is set as fixed value, and second interval is set as passing Depreciation, and the corresponding adjustable gain range of max volume grade for limiting second interval is less than the fixed value of first interval.
Step 203: using the corresponding adjustable gain range of the level of sound volume as the adjustable gain range of audio balanced device;
Step 204: control display interface shows the adjustment interface of the audio balanced device;
In practical application, when the audio balanced device includes graphic equalizer and intelligent equalization device, the method also includes: Receive the selection instruction that user inputs from input unit;When the selection instruction is the first instruction, the display interface is controlled Show the first instruction information;Wherein, the first instruction information is used to indicate that the graphic equalizer is adjustable and the intelligence Balanced device is non-adjustable;When the selection instruction is the second instruction, controls the display interface and show second indication information;Wherein, The second indication information is used to indicate that the intelligent equalization device is adjustable and the graphic equalizer is non-adjustable.
That is, when comprising multiple adjustable balanced devices, user can choose wherein 1 be adjusted.Figure is equal Weighing apparatus and intelligent equalization device mutual exclusion configuration, i.e., one wherein be in adjustable state when, another is in non-adjustable state, is in The balanced device of adjustable state can adjust system sound volume, and the balanced device in non-adjustable state can not adjust system sound volume.
Step 205: receiving the gain adjustment parameter that user inputs from the adjustment interface of the audio balanced device;
In practical application, this method further include: whether detection volume adjusting function is opened, if opening, judgement is GEQ effective Or IEQ is effective, if GEQ is effective, it is disable, 40% opacity that IEQ, which is arranged,;If IEQ is effective, GEQ, which is arranged, is Disable, 40% opacity;If detecting the operation that switches between IEQ and GEQ, keep original IEQ adjustment parameter or GEQ adjustment parameter is constant.
Specifically, user is on adjustment interface after control display interface shows the adjustment interface of the audio balanced device Gain adjustment parameter is set, for example, selecting " open, abundant or full " for intelligent equalization device as shown in Figure 3, as shown in Figure 4 Gain is arranged for different frequency by sliding slider for graphic equalizer.
Step 206: basic volume and the gain adjustment parameter based on the electronic equipment determine the electronic equipment System sound volume.
In some embodiments, when the audio balanced device includes graphic equalizer, the gain adjustment parameter includes figure The gain adjustment ratio of shape balanced device;The basic volume and the gain adjustment parameter based on the electronic equipment determines The system sound volume of the electronic equipment, comprising: the adjustable gain model based on the gain adjustment parameter and the graphic equalizer It encloses, determines corresponding first amount of gain of the graphic equalizer;Based on basic volume and first amount of gain, the electricity is determined The system sound volume of sub- equipment.
In further embodiments, when the audio balanced device includes intelligent equalization device, the gain adjustment parameter includes The target gain mode of intelligent equalization device;Wherein, the intelligent equalization device includes at least two gain modes;It is described based on described The basic volume of electronic equipment and the gain adjustment parameter, determine the system sound volume of the electronic equipment, comprising: based on described The adjustable gain range of target gain mode and the intelligent equalization device determines corresponding second gain of the intelligent equalization device Amount;Based on second amount of gain and the basic volume, system sound volume is determined.
In some embodiments, the level of sound volume of the electronic equipment be highest level of sound volume when, the system sound volume with The sum of volume surplus is less than or equal to volume threshold.
Here, if audio balanced device regulatory function is not switched on, system sound volume is the corresponding root of current volume level Amount, if audio balanced device regulatory function is opened, system sound volume is to be superimposed sound in the corresponding basic volume of current volume level It is obtained after flow gain.
For example, for example, graphic equalizer can timing, system sound volume S (n)=B (n)+X*C (n), B (n) are basic sound Amount, X are the GEQ gain adjustment ratio that user is adjusted, and C (n) is GEQ coefficient (being equal to adjustable gain range), earphone output The corresponding analog voltage of system sound volume S (n) is less than 150mV.Intelligent equalization device can timing, system sound volume S (n)=B (n)+D (n), D (n) is the corresponding gain of target gain mode of user's selection, and the corresponding analog voltage of system sound volume S (n) is less than 150mV.In practical application, S (n) reserves 0.5dB, and corresponding analog voltage is 145mV (i.e. reserved 5mV).
In playing process, when user adjusts level of sound volume, the system that can trigger recalculates basic volume, according to calculating To basic volume inquire mapping table again, to obtain corresponding GEQ gain ranging (or IEQ gain), and to configuration unit Configuration-direct is sent, for configuring GEQ adjustable gain range (or IEQ gain).
In further embodiments, the preGain value of audio-frequency information can also be corresponded in mapping table including level of sound volume;Institute The method of stating includes: to determine the preGain value of audio-frequency information when detecting volume adjustment event;It is determined based on the preGain value Level of sound volume and adjustable gain range.
As shown in table 4, under Doby panorama sound system frame, different preGain values correspond to different level of sound volume and difference Basic volume, current volume level and GEQ adjustable gain model can be determined according to the current preGain value of electronic equipment It encloses and IEQ gain.
Table 4
It when playing sound, needs to calculate the preGain value of audio stream plays, is inquired according to the preGain value being calculated Mapping table to obtain corresponding IEQ gain, and sends configuration-direct to configuration unit, and the IEQ for configuring target equalizer increases Benefit.
In playing process, when user adjusts level of sound volume, the system that can trigger recalculates preGain value.According to calculating Obtained basic volume inquires mapping table again, to obtain corresponding IEQ gain, and sends configuration-direct to configuration unit, uses In the IEQ gain of configuration target equalizer.
Here, the executing subject of step 201 to step 206 can be the processor of electronic equipment.Electronic equipment can be Has the electronic equipment of audio output function, for example, mobile phone, tablet computer, laptop, desktop computer, intelligent sound box etc..
It by adopting the above technical scheme, is the different adjustable gain range of equalizer setting according to different level of sound volume, especially It is in high volume levels for the lesser adjustable gain range of equalizer setting, is that equalizer setting is larger in amount of bass grade Adjustable gain range, in this way, the level of sound volume of electronic equipment gone when being in higher level adjustment balanced device gain, can keep away Exempt to be arranged due to equalizer gain excessive, upper limit value of the system sound volume for causing electronic equipment to export more than security regulations.
Embodiment three
Method to realize the embodiment of the present application, the embodiment of the present application also provides a kind of electronics based on the same inventive concept Equipment, as shown in fig. 6, the electronic equipment 60 includes:
Control unit 601 shows the adjustment interface of audio balanced device for controlling display interface;Wherein, the audio is equal The adjustable gain range of weighing apparatus is the level of sound volume determination based on the electronic equipment, at least partly sound of the electronic equipment Amount grade corresponds to different adjustable gain ranges;
Input unit 602, the gain adjustment parameter inputted for receiving user from the adjustment interface of the audio balanced device;
Processing unit 603, for basic volume and the gain adjustment parameter based on the electronic equipment, determine described in The system sound volume of electronic equipment.
In some embodiments, the processing unit is also used to obtain the level of sound volume of the electronic equipment;Based on described Level of sound volume determines the corresponding adjustable gain range of the level of sound volume from level of sound volume mapping table;Wherein, described volume etc. The adjustable gain range of grade mapping table Hi-Mid amount grade is not more than the adjustable gain range of amount of bass grade;By described volume etc. Adjustable gain range of the corresponding adjustable gain range of grade as the audio balanced device.
It in some embodiments, include the first set and second set of level of sound volume in the mapping table;Wherein, described Different level of sound volume correspond to identical adjustable gain range in first set, at least partly level of sound volume pair in the second set Answer different adjustable gain ranges;Level of sound volume in the second set is higher than the level of sound volume in the first set.
In some embodiments, when the audio balanced device includes graphic equalizer, the gain adjustment parameter includes figure The gain adjustment ratio of shape balanced device;The processing unit is specifically used for equal based on the gain adjustment parameter and the figure The adjustable gain range of weighing apparatus determines corresponding first amount of gain of the graphic equalizer;Based on basic volume and described first Amount of gain determines the system sound volume of the electronic equipment.
In some embodiments, when the audio balanced device includes intelligent equalization device, the gain adjustment parameter includes intelligence The target gain mode of energy balanced device;Wherein, the intelligent equalization device includes at least two gain modes;The processing unit, Specifically for the adjustable gain range based on the target gain mode and the intelligent equalization device, the intelligent equalization device is determined Corresponding second amount of gain;Based on second amount of gain and the basic volume, system sound volume is determined.
In some embodiments, when the audio balanced device includes graphic equalizer and intelligent equalization device, the control is single Member is also used to receive the selection instruction that user inputs from input unit;When the selection instruction is the first instruction, described in control Display interface shows the first instruction information;Wherein, it is adjustable to be used to indicate the graphic equalizer for the first instruction information, and The intelligent equalization device is non-adjustable;When the selection instruction is the second instruction, controls the display interface and show the second instruction letter Breath;Wherein, the second indication information is used to indicate that the intelligent equalization device is adjustable and the graphic equalizer is non-adjustable.
In some embodiments, the level of sound volume of the electronic equipment be highest level of sound volume when, the system sound volume with The sum of volume surplus is less than or equal to volume threshold.
It by adopting the above technical scheme, is the different adjustable gain range of equalizer setting according to different level of sound volume, especially It is in high volume levels for the lesser adjustable gain range of equalizer setting, is that equalizer setting is larger in amount of bass grade Adjustable gain range, in this way, the level of sound volume of electronic equipment gone when being in higher level adjustment balanced device gain, can keep away Exempt to be arranged due to equalizer gain excessive, upper limit value of the system sound volume for causing electronic equipment to export more than security regulations.
Example IV
Based on the hardware realization of each unit in above-mentioned electronic equipment, the embodiment of the present application also provides another electronics to set It is standby, as shown in fig. 7, the electronic equipment 70 includes: processor 701 and is configured to store the computer that can be run on a processor The memory 702 of program;
Wherein, when processor 701 is configured to operation computer program, the method and step in previous embodiment is executed.
Certainly, when practical application, as shown in fig. 7, the various components in the electronic equipment 70 are coupled by bus system 703 Together.It is understood that bus system 703 is for realizing the connection communication between these components.It includes data that bus system 703, which is removed, It further include power bus, control bus and status signal bus in addition except bus.It, will in Fig. 7 but for the sake of clear explanation Various buses are all designated as bus system 703.
In practical applications, above-mentioned processor can be application-specific IC (ASIC, Application Specific Integrated Circuit), digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array At least one of (Field-Programmable Gate Array, FPGA), controller, microcontroller, microprocessor.It can To understand ground, for different equipment, the electronic device for realizing above-mentioned processor function can also be other, the application reality Example is applied to be not especially limited.
Above-mentioned memory can be volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory);Or nonvolatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid State hard disk (SSD, Solid-State Drive);Or the combination of the memory of mentioned kind, and to processor provide instruction and Data.
It is above-mentioned be based on above-mentioned electronic equipment on the basis of, electronic equipment can also include other hardware cells, such as Fig. 8 institute Show, electronic equipment 80 includes processor, parallel interface, voicefrequency circuit, earphone interface and display;
Processor is connected by parallel interface with voicefrequency circuit, for being exported audio-frequency information by voicefrequency circuit to earphone Interface, or obtain the collected audio-frequency information of earphone interface.
Processor is connected with display, shows that the adjustment interface of audio balanced device, display can be with for controlling display Have touch control operation interface, the selection instruction of user is obtained as input unit.
In addition, electronic equipment can also include loudspeaker, loudspeaker can also be used as the output unit of audio-frequency information.
The embodiment of the present application also provides a kind of computer readable storage mediums, for storing computer program.
Optionally, which can be applied to any one electronic equipment in the embodiment of the present application, And the computer program makes computer execute the respective streams realized in each method of the embodiment of the present application by electronic equipment Journey, for sake of simplicity, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, can be fully integrated into a processing module in each functional unit in each embodiment of the application, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.This Field those of ordinary skill, which is understood that, realizes that all or part of the steps of above method embodiment can be by program instruction phase The hardware of pass is completed, and program above-mentioned can be stored in a computer readable storage medium, which when being executed, holds Row step including the steps of the foregoing method embodiments;And storage medium above-mentioned include: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
Disclosed method in several embodiments of the method provided herein, in the absence of conflict can be any group It closes, obtains new embodiment of the method.
Disclosed feature in several product embodiments provided herein, in the absence of conflict can be any group It closes, obtains new product embodiments.
Disclosed feature in several methods provided herein or apparatus embodiments, in the absence of conflict can be with Any combination obtains new embodiment of the method or apparatus embodiments.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of volume adjusting method is applied to electronic equipment, which comprises
Control the adjustment interface that display interface shows audio balanced device;Wherein, the adjustable gain range of the audio balanced device is It is determined based on the level of sound volume of the electronic equipment, at least partly level of sound volume of the electronic equipment corresponds to different adjustable Gain ranging;
Receive the gain adjustment parameter that user inputs from the adjustment interface of the audio balanced device;
Basic volume and the gain adjustment parameter based on the electronic equipment, determine the system sound volume of the electronic equipment.
2. the method according to claim 1, wherein the determination side of the adjustable gain range of the audio balanced device Method includes:
Obtain the level of sound volume of the electronic equipment;
Based on the level of sound volume, the corresponding adjustable gain range of the level of sound volume is determined from level of sound volume mapping table;Its In, the adjustable gain range of the level of sound volume mapping table Hi-Mid amount grade is not more than the adjustable gain model of amount of bass grade It encloses;
Using the corresponding adjustable gain range of the level of sound volume as the adjustable gain range of the audio balanced device.
3. according to the method described in claim 2, it is characterized in that, in the mapping table including level of sound volume first set and Second set;Wherein, different level of sound volume correspond to identical adjustable gain range in the first set, in the second set At least partly level of sound volume corresponds to different adjustable gain ranges;Level of sound volume in the second set is higher than first collection Level of sound volume in conjunction.
4. described the method according to claim 1, wherein when the audio balanced device includes graphic equalizer Gain adjustment parameter includes the gain adjustment ratio of graphic equalizer;
The basic volume and the gain adjustment parameter based on the electronic equipment, determines the system sound of the electronic equipment Amount, comprising:
Adjustable gain range based on the gain adjustment parameter and the graphic equalizer determines that the graphic equalizer is corresponding The first amount of gain;
Based on basic volume and first amount of gain, the system sound volume of the electronic equipment is determined.
5. described the method according to claim 1, wherein when the audio balanced device includes intelligent equalization device Gain adjustment parameter includes the target gain mode of intelligent equalization device;Wherein, the intelligent equalization device includes at least two gains Mode;
The basic volume and the gain adjustment parameter based on the electronic equipment, determines the system sound of the electronic equipment Amount, comprising:
Adjustable gain range based on the target gain mode and the intelligent equalization device determines that the intelligent equalization device is corresponding The second amount of gain;
Based on second amount of gain and the basic volume, system sound volume is determined.
6. the method according to claim 1, wherein the audio balanced device includes that graphic equalizer and intelligence are equal When weighing apparatus, the method also includes:
Receive the selection instruction that user inputs from input unit;
When the selection instruction is the first instruction, controls the display interface and show the first instruction information;Wherein, described first refers to Show that information is used to indicate that the graphic equalizer is adjustable and the intelligent equalization device is non-adjustable;
When the selection instruction is the second instruction, controls the display interface and show second indication information;Wherein, described second refers to Show that information is used to indicate that the intelligent equalization device is adjustable and the graphic equalizer is non-adjustable.
7. the method according to claim 1, wherein the level of sound volume of the electronic equipment is highest level of sound volume When, the sum of the system sound volume and volume surplus are less than or equal to volume threshold.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Control unit shows the adjustment interface of audio balanced device for controlling display interface;Wherein, the audio balanced device can Adjusting gain ranging is the level of sound volume determination based on the electronic equipment, at least partly level of sound volume pair of the electronic equipment Answer different adjustable gain ranges;
Input unit, the gain adjustment parameter inputted for receiving user from the adjustment interface of the audio balanced device;
Processing unit determines that the electronics is set for basic volume and the gain adjustment parameter based on the electronic equipment Standby system sound volume.
9. a kind of electronic equipment, the electronic equipment includes: processor and is configured to store the meter that can be run on a processor The memory of calculation machine program,
Wherein, when the processor is configured to run the computer program, perform claim requires any one of 1 to 7 the method The step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of claim 1 to 7 described in any item methods are realized when processor executes.
CN201910448170.9A 2019-05-27 2019-05-27 Volume adjusting method, electronic equipment and computer readable storage medium Active CN110187861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910448170.9A CN110187861B (en) 2019-05-27 2019-05-27 Volume adjusting method, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910448170.9A CN110187861B (en) 2019-05-27 2019-05-27 Volume adjusting method, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110187861A true CN110187861A (en) 2019-08-30
CN110187861B CN110187861B (en) 2022-06-14

Family

ID=67718063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910448170.9A Active CN110187861B (en) 2019-05-27 2019-05-27 Volume adjusting method, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110187861B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113573213A (en) * 2021-09-23 2021-10-29 深圳市微我科技有限公司 Sound quality optimization method for intelligent sound equipment with screen, intelligent sound equipment and playing system
CN113611317A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile
CN113741855A (en) * 2020-05-27 2021-12-03 青岛海信移动通信技术股份有限公司 Audio playing method and terminal
CN114286257A (en) * 2021-12-27 2022-04-05 深圳市飞科笛系统开发有限公司 Earphone equalizer adjusting method and device, electronic equipment and storage medium
CN114679658A (en) * 2022-03-23 2022-06-28 深圳市大十科技有限公司 Dynamic bass compensation system and method for audio device
CN115023589A (en) * 2020-02-11 2022-09-06 Oppo广东移动通信有限公司 IMU static noise calibration scaling for VISLAM applications
WO2023087874A1 (en) * 2021-11-22 2023-05-25 荣耀终端有限公司 Sound volume adjustment method and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200742478A (en) * 2006-04-21 2007-11-01 Hon Hai Prec Ind Co Ltd Method and sound output device for protecting hearing
US20150349738A1 (en) * 2014-05-29 2015-12-03 Apple Inc. Apparatus and method for dynamically adapting a user volume input range on an electronic device
CN105324937A (en) * 2013-07-18 2016-02-10 哈曼国际工业有限公司 Volume control rates

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200742478A (en) * 2006-04-21 2007-11-01 Hon Hai Prec Ind Co Ltd Method and sound output device for protecting hearing
CN105324937A (en) * 2013-07-18 2016-02-10 哈曼国际工业有限公司 Volume control rates
US20150349738A1 (en) * 2014-05-29 2015-12-03 Apple Inc. Apparatus and method for dynamically adapting a user volume input range on an electronic device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115023589A (en) * 2020-02-11 2022-09-06 Oppo广东移动通信有限公司 IMU static noise calibration scaling for VISLAM applications
CN115023589B (en) * 2020-02-11 2024-03-22 Oppo广东移动通信有限公司 IMU static noise calibration scaling for VISLAM applications
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
CN113611317A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile
CN113611317B (en) * 2021-08-03 2024-03-12 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile
CN113573213A (en) * 2021-09-23 2021-10-29 深圳市微我科技有限公司 Sound quality optimization method for intelligent sound equipment with screen, intelligent sound equipment and playing system
CN113573213B (en) * 2021-09-23 2022-02-15 深圳大佳印务有限公司 Sound quality optimization method for intelligent sound equipment with screen, intelligent sound equipment and playing system
WO2023087874A1 (en) * 2021-11-22 2023-05-25 荣耀终端有限公司 Sound volume adjustment method and electronic device
CN114286257A (en) * 2021-12-27 2022-04-05 深圳市飞科笛系统开发有限公司 Earphone equalizer adjusting method and device, electronic equipment and storage medium
CN114679658A (en) * 2022-03-23 2022-06-28 深圳市大十科技有限公司 Dynamic bass compensation system and method for audio device

Also Published As

Publication number Publication date
CN110187861B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN110187861A (en) A kind of volume adjusting method, electronic equipment and computer readable storage medium
CN103916796B (en) For the dynamic loudspeaker management of multi-channel audio system
CN107431858B (en) Loudspeaker protection
CN104469620A (en) Acoustical product with audio output power adjustable within large range
CN102822761A (en) Power control manager and method
US9432761B2 (en) Signal processor
CN204190934U (en) The voicefrequency circuit that a kind of power output is adjustable on a large scale and acoustic product
CN105378824A (en) System and method for intelligent multimedia-based thermal power management in a portable computing device
CN105867679A (en) Touch control method, touch control apparatus, and terminal
CN102945010B (en) Method and device for realizing automatic switching of sound source
US20180076634A1 (en) Charging method and electronic apparatus
CN108429304A (en) Charging current control method and device, computer installation, readable storage medium storing program for executing
CN103516899A (en) Method increasing volume through combination key and mobile terminal
CN103812508A (en) Current sharing device, method and system
CN104978164A (en) Electronic equipment and control method thereof
CN104375627A (en) Method of adjusting volume and device thereof
CN106303815A (en) Method for controlling volume and electronic equipment
CN106648326A (en) Method for regulating screen-off time, and mobile terminal
CN111580774B (en) Sound effect adjusting method, device, equipment and storage medium
CN105514965B (en) A kind of distributed energy storage SOC dual quadrant droop control methods of autonomous direct-current grid
CN110391804A (en) Electronic cigarette automatic frequency adjustment method, apparatus, equipment and storage medium
CN107690813B (en) The power supply circuit of earphone and earphone
US10993027B2 (en) Audio system controller based on operating condition of amplifier
CN106785135A (en) Multichannel charging method, device and equipment
CN106374937A (en) Circuit in which indicator lamps and keys sharing ports for control

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
GR01 Patent grant
GR01 Patent grant