CN104601130B - A kind of method and device for adjusting volume - Google Patents

A kind of method and device for adjusting volume Download PDF

Info

Publication number
CN104601130B
CN104601130B CN201310528669.3A CN201310528669A CN104601130B CN 104601130 B CN104601130 B CN 104601130B CN 201310528669 A CN201310528669 A CN 201310528669A CN 104601130 B CN104601130 B CN 104601130B
Authority
CN
China
Prior art keywords
volume
ambient sound
record
weight
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310528669.3A
Other languages
Chinese (zh)
Other versions
CN104601130A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201310528669.3A priority Critical patent/CN104601130B/en
Priority to PCT/CN2014/088295 priority patent/WO2015062401A1/en
Publication of CN104601130A publication Critical patent/CN104601130A/en
Application granted granted Critical
Publication of CN104601130B publication Critical patent/CN104601130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers without distortion of the input signal
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/32Automatic control in amplifiers having semiconductor devices the control being dependent upon ambient noise level or sound level

Abstract

The invention discloses a kind of method and device for adjusting volume, belong to communication and MultiMedia Field.Methods described includes:The ambient sound data of environment where obtaining equipment, at least one of size, tone color and tone three of ambient sound of environment where the ambient sound data include the equipment;According to the volume of ambient sound data acquisition first;The volume of the device plays is adjusted according to first volume.Described device includes:First acquisition module, the second acquisition module and adjustment module.The volume of ambient sound data acquisition first of environment where the present invention passes through the equipment of acquisition, the volume played according to the first volume adjustment equipment, improves the efficiency for adjusting volume.

Description

A kind of method and device for adjusting volume
Technical field
The present invention relates to communication and MultiMedia Field, more particularly to a kind of method and device for adjusting volume.
Background technology
With the continuous progress of the communication technology and multimedia technology, various apparatus for media playing progress into people Life and increasingly popularize.Playing multimedia file using apparatus for media playing turns into indispensable in modern life One of entertainment way.Generally, if the volume of the more matchmaker's files of apparatus for media playing broadcasting is too big or too small, need to adjust Save the volume that apparatus for media playing plays multimedia file.
At present, prior art provides the method that regulation apparatus for media playing plays the volume of multimedia file, Ke Yiwei: When the noise of user surrounding environment is larger, user, can in order to catch the content that apparatus for media playing plays multimedia file Heightened so that apparatus for media playing to be played to the volume of multimedia file manually;, can be because when the noise of user surrounding environment is smaller For apparatus for media playing play multimedia file volume cause user to feel uncomfortable greatly very much, now user can manually by Apparatus for media playing plays the turning down sound volume of multimedia file.
During the present invention is realized, inventor has found that prior art at least has problems with:
Above-mentioned prior art is that user manually adjusts the volume that apparatus for media playing plays multimedia file, causes to adjust Volume it is less efficient.
The content of the invention
In order to improve the efficiency of regulation volume, the invention provides a kind of method and device for adjusting volume.The technology Scheme is as follows:
A kind of method for adjusting volume, methods described include:
The ambient sound data of environment where obtaining equipment, environment where the ambient sound data include the equipment At least one of size, tone color and tone three of ambient sound;
According to the volume of ambient sound data acquisition first;
The volume of the device plays is adjusted according to first volume.
A kind of device for adjusting volume, described device include:
First acquisition module, for the ambient sound data of environment where obtaining equipment, the ambient sound data include At least one of size, tone color and tone three of ambient sound of environment where the equipment;
Second acquisition module, for according to the volume of ambient sound data acquisition first;
Adjustment module, for adjusting the volume of the device plays according to first volume.
In embodiments of the present invention, the ambient sound data of environment where obtaining equipment;According to ambient sound data acquisition First volume;The volume played according to the first volume adjustment equipment, so as to improve the efficiency of regulation volume.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram for regulation volume that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of method flow diagram for regulation volume that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of method flow diagram for regulation volume that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of method flow diagram for regulation volume that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of apparatus structure schematic diagram for regulation volume that the embodiment of the present invention 5 provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment 1
Referring to Fig. 1, the embodiments of the invention provide a kind of method for adjusting volume, including:
Step 101:The ambient sound data of environment where obtaining equipment, the ambient sound data include environment where equipment At least one of size, tone color and the tone three of ambient sound;
Step 102:According to the volume of ambient sound data acquisition first;
Step 103:The volume played according to the first volume adjustment equipment.
Preferably, according to the volume of ambient sound data acquisition first, including:
Determine the ambient sound magnitude range where the size of ambient sound;
Obtained from the corresponding relation of ambient sound magnitude range, volume and weight big comprising the ambient sound determined The record of small range;
The maximum record of the weight included is selected from the record of acquisition;
The volume included in the record of selection is defined as the first volume.
Further, after according to the volume of the first volume adjustment equipment broadcasting, in addition to:
Obtain the second volume of the volume that user's manual adjustment device plays;
If the ambient sound comprising determination is not present in the corresponding relation of ambient sound magnitude range, volume and weight The record of magnitude range and the second volume, then weight initial value is set, stores ambient sound magnitude range, the second sound of determination Measure size and the corresponding relation of the weight initial value set;
If it is big the ambient sound comprising determination to be present in the corresponding relation of ambient sound magnitude range, volume and weight The record of small range and the second volume, then increase include the ambient sound magnitude range determined and the note of the second volume The weight stored in record.
Preferably, according to the volume of ambient sound data acquisition first, including:
Each ambient sound size that the corresponding relation of computing environment sound size and volume includes is respectively with setting Difference between the size of the ambient sound of standby place environment;
The size of the ambient sound of difference minimum between the size of the ambient sound of environment where selection and equipment;
Volume corresponding to the size of the ambient sound of selection is defined as the first volume.
Further, after according to the volume of the first volume adjustment equipment broadcasting, in addition to:
Obtain the second volume of the volume that user's manual adjustment device plays;
The size of storage environment sound and the corresponding relation of the second volume.
Preferably, according to the volume of ambient sound data acquisition first, including:
According to ambient sound data and the distance between equipment and user, computing environment sound value, it is determined that the environment calculated Ambient sound value scope where sound value;
Obtained from the corresponding relation of ambient sound value scope, volume and weight comprising the ambient sound value model determined The record enclosed;
The maximum record of the weight included is selected from the record of acquisition;
The volume included in the record of selection is defined as the first volume.
Further, after according to the volume of the first volume adjustment equipment broadcasting, in addition to:
Obtain the second volume of the volume that user's manual adjustment device plays;
If the ambient sound value comprising determination is not present in the corresponding relation of ambient sound value scope, volume and weight The record of scope and the second volume, then weight initial value is set, stores ambient sound value scope, the second volume of determination With the corresponding relation of the weight initial value of setting;
If there is the ambient sound value model comprising determination in the corresponding relation of ambient sound value scope, volume and weight The record with the second volume is enclosed, then increase is deposited comprising the ambient sound value scope determined and in the record of the second volume The weight of storage.
In embodiments of the present invention, the ambient sound data of environment where obtaining equipment, the ambient sound data include setting At least one of size, tone color and tone three of ambient sound of standby place environment;According to ambient sound data acquisition One volume;The volume played according to the first volume adjustment equipment.So as to improve the efficiency of regulation volume.
Embodiment 2
Fig. 2 is participated in, the embodiments of the invention provide a kind of method for adjusting volume, it is more that this method is used for adjustment equipment broadcasting The volume of media file, including:
Step 201:The ambient sound size of environment where periodically obtaining equipment;
Specifically, microphone is transferred to device periodically by the development interface of microphone;Then the microphone transferred is opened The ambient sound size of environment, equipment is returned to by the ambient sound size of the place environment collected where beginning collecting device; Equipment receives the ambient sound size for its place environment that microphone returns.
Wherein, periodically collecting device the ambient sound size of place environment Cycle Length can be one minute, Two minutes or three minutes etc., the present invention was not limited to this.
For example, equipment transfers its microphone included by the development interface of microphone, its institute is gathered to trigger microphone In the ambient sound size of environment.The ambient sound size of environment is 35dB where microphone collecting device, and ambient sound is big Small 35dB is sent to equipment.The ambient sound size 35dB of environment where equipment receives it.
Before this step, user decides whether to open the automatic sound-volume adjusting function of equipment according to self-demand, If it is required, then open the function of the automatic regulating volume of equipment.
If user no longer needs to use the function of the automatic regulating volume of equipment, user's pass hull closure automatically adjusts sound Function is measured, the ambient sound size of environment where equipment no longer controls microphone collection afterwards.
Step 202:It is determined that the ambient sound magnitude range where the ambient sound size obtained;
Wherein, ambient sound size caused by environment where equipment fluctuates in a section, and the size in the section is usual More than or equal to 0dB and to be less than or equal to 120dB.Wherein, in advance by the interval division into multiple ambient sound magnitude ranges.
For example, the interval division above or equal to 0dB and less than or equal to 120dB is into six ambient sound sizes in advance Scope, it is respectively to be less than or equal to 0dB greatly and be less than or equal to 20dB, more than 20dB and is less than or equal to 40dB, more than 40dB And it is less than or equal to 60dB, more than 60dB and it is less than or equal to 80dB, more than 80dB and is less than or equal to 100dB, and be more than 100dB and it is less than or equal to 120dB.
After the ambient sound size of environment where getting equipment is 35dB, it is determined that the ambient sound size 35dB obtained The ambient sound magnitude range at place is more than 20dB and is less than or equal to 40dB.
, wherein it is desired to explanation is:The ambient sound magnitude range of division can correspond to volume and weight, and divide Ambient sound magnitude range volume corresponding with its and weight can be stored in ambient sound magnitude range, volume With in the corresponding relation of weight.The corresponding relation of ambient sound magnitude range, volume and weight can be in advance by technology people Member's configuration obtains, and can also be obtained by equipment by self study mode.
Wherein, equipment obtains the corresponding relation of ambient sound magnitude range, volume and weight by self study mode Operation can be:
After the ambient sound size of environment where equipment gets it, it is determined that the ring where the ambient sound size obtained Border sound magnitude range, obtain the volume for the volume that user's manual adjustment device plays;If ambient sound magnitude range, The volume of the ambient sound magnitude range comprising determination and acquisition is not present in volume and the corresponding relation of weight Record, then weight initial value is set, the weight initial value of the ambient sound magnitude range of determination, the volume obtained and setting is deposited Storage is in the corresponding relation of ambient sound magnitude range, volume and weight;If ambient sound magnitude range, volume With the record of the ambient sound magnitude range comprising determination and the volume obtained in the corresponding relation of weight be present, then increase The weight stored in the record of ambient sound magnitude range comprising determination and the volume obtained.
For example, in embodiments of the present invention, ambient sound size model as shown in table 1 can be previously stored in a device Enclose, the corresponding relation of volume and weight, table 1 is only with for example, not as limiting the scope of the invention.
Table 1
Volume Ambient sound magnitude range Weight
1 It is less than or equal to 0dB greatly and is less than or equal to 20dB 3
2 More than 20dB and it is less than or equal to 40dB 3
3 More than 20dB and it is less than or equal to 40dB 4
4 More than 40dB and it is less than or equal to 60dB 5
5 More than 60dB and it is less than or equal to 80dB 1
6 More than 80dB and it is less than or equal to 100dB 1
7 More than 100dB and it is less than or equal to 120dB 0
Step 203:Whether deposited in the corresponding relation of the ambient sound magnitude range, volume and the weight that judge to have stored In the record of the environment magnitude range including determination, if it does, step 204 is performed, if it does not exist, then performing step 207;
For example, whether deposited in judging the corresponding relation of ambient sound magnitude range as shown in table 1, volume and weight Comprising more than 20dB and less than or equal to 40dB record, and the result judged for presence, execution step 204.
Step 204:Obtained from the corresponding relation of ambient sound magnitude range, volume and weight comprising the ring determined The record of border sound magnitude range;
Included for example, being obtained from the corresponding relation of ambient sound magnitude range as shown in table 1, volume and weight Record more than 20dB and less than or equal to 40dB has two, and the third line respectively as shown in table 1 and fourth line record.
Step 205:The maximum record of the weight included, the sound that will be included in the record of selection are selected from the record of acquisition Amount is sized to the first volume;
Specifically, the maximum record of the weight that includes is selected from the record of acquisition, if the record of selection include it is a plurality of, Then select a record at random from the record of a plurality of selection, the volume that stores in select one article of record is defined as the One volume, if the record of selection includes one, the volume stored in the record selected is defined as first Volume.
For example, the weight that the weight stored in the third line record obtained stores in being recorded for the fourth line of 3 and acquisition For 4, the fourth line for the weight maximum for selecting to include from the third line record and fourth line record of acquisition records, and fourth line is remembered The volume 3 stored in record is defined as the first volume.
Step 206:According to the broadcast sound volume of the first volume adjustment equipment, end operation;
Specifically, multimedia file is played according to the first volume, to realize the broadcast sound volume of adjustment equipment.
Wherein, multimedia file can be audio file or video file etc..
For example, multimedia file is played according to the adjustment equipment of the first volume 3, to realize device plays multimedia text The volume of part is adjusted to 3.
Wherein, if the broadcast sound volume after the regulation of user's sensory device is larger or smaller, user can be adjusted manually The volume of device plays, to make the multimedia volume of device plays diminish or become big.
Further, the second volume of the volume that user's manual adjustment device plays is obtained, is given great volume according to second The volume of minor adjustment device plays.
Further, can also judge in the corresponding relation of ambient sound magnitude range, volume and weight whether In the presence of the ambient sound magnitude range comprising determination and the record of the second volume;If there is no the ambient sound comprising determination The record of sound magnitude range and the second volume, then set weight initial value, store determination ambient sound magnitude range, second Volume and the corresponding relation of the weight initial value set.
Further, if ambient sound magnitude range, volume and weight corresponding relation exist include determination Ambient sound magnitude range and the second volume record, then increase comprising determine ambient sound magnitude range and second The weight stored in the record of volume.
Further, after the second volume of the volume that user's manual adjustment device plays is obtained, reduction includes The weight stored in the ambient sound magnitude range of determination and the record of the first volume.
Wherein, during the ambient sound size of environment where equipment is collected in next cycle, it can return and perform step Rapid 202.
Wherein, if determining pair of ambient sound magnitude range, volume and weight stored in step 203 The record for the environment magnitude range for including determining is not present in should being related to, then can prompt user, so that regulation is set user manually The standby volume played.And after user adjusts the volume of broadcasting manually, perform step 207:
Step 207:The second volume of the volume that user's manual adjustment device plays is obtained, according to the second volume The volume that adjustment equipment plays;
Step 208:Weight initial value is set, stores ambient sound magnitude range, the second volume and the setting of determination The corresponding relation of weight initial value, end operation.
Specifically, weight initial value is set, by the ambient sound magnitude range of determination, the second volume and the weight set Initial value is stored in the corresponding relation of ambient sound magnitude range, volume and weight.
In embodiments of the present invention, the ambient sound size of environment where obtaining equipment, it is determined that the ambient sound obtained is big The ambient sound magnitude range at small place, corresponding relation automatically according to ambient sound magnitude range, volume and weight and The ambient sound magnitude range of determination obtains the first volume, and the first volume adjustment equipment automatically according to acquisition The volume of broadcasting, so as to improve the efficiency of regulation volume.
Embodiment 3
Referring to Fig. 3, the embodiments of the invention provide a kind of method for adjusting volume, it is more that this method is used for adjustment equipment broadcasting The volume of media file, including:
Step 301:The ambient sound size of environment where periodically obtaining equipment;
Specifically, microphone is transferred to device periodically by the development interface of microphone;Then the microphone transferred is opened The ambient sound size of environment, equipment is returned to by the ambient sound size of the place environment collected where beginning collecting device; Equipment receives the ambient sound size for its place environment that microphone returns.
Wherein, periodically collecting device the ambient sound size of place environment Cycle Length can be one minute, Two minutes or three minutes etc., the present invention was not limited to this.
For example, equipment transfers its microphone included by the development interface of microphone, its institute is gathered to trigger microphone In the ambient sound size of environment.The ambient sound size of environment is 23dB where microphone collecting device, and ambient sound is big Small 23dB is sent to equipment.The ambient sound size 23dB of environment where equipment receives it.
Before this step, user decides whether to open the automatic sound-volume adjusting function of equipment according to self-demand, If it is required, then open the function of the automatic regulating volume of equipment.
If user no longer needs to use the function of the automatic regulating volume of equipment, user's pass hull closure automatically adjusts sound Function is measured, the ambient sound size of environment where equipment no longer controls microphone collection afterwards.
Step 302:Each ambient sound size that the corresponding relation of computing environment sound size and volume includes Respectively with the difference of the size of the ambient sound of acquisition;
, wherein it is desired to explanation is:In advance can be with storage environment sound size and the corresponding relation of volume, ambient sound The corresponding relation of sound size and volume can be configured to obtain by technical staff in advance, or be obtained by equipment by self study mode Obtain.
Wherein, equipment acquires the corresponding relation of ambient sound size and volume by self study mode, can be with For:
After the ambient sound size of environment where equipment gets it, the volume that user's manual adjustment device plays is obtained Volume, by the ambient sound size and volume of acquisition be stored in ambient sound size it is corresponding with volume close In system.
For example, in embodiments of the present invention, ambient sound size as shown in table 2 can be stored in a device with giving great volume Small corresponding relation, table 2 is only with for example, not as limiting the scope of the invention.
Table 2
Volume Ambient sound size
1 15dB
2 18dB
3 20dB
4 22dB
5 25dB
6 27dB
For example, the ambient sound size 23dB obtained is calculated respectively with ambient sound size as shown in table 2 with giving great volume Difference between each ambient sound size that small corresponding relation includes, including:
In the corresponding relation of the ambient sound size 23dB of acquisition and ambient sound size as shown in table 2 and volume Including ambient sound size 15dB between difference be 8;The ambient sound size 23dB of acquisition and ambient sound as shown in table 2 Difference between the ambient sound size 18dB that the corresponding relation of sound size and volume includes is 5;The ambient sound of acquisition The ambient sound size that sound size 23dB and the corresponding relation of ambient sound size as shown in table 2 and volume include Difference between 20dB is 3;The ambient sound size 23dB of acquisition and ambient sound size as shown in table 2 and volume Difference between the ambient sound size 22dB that corresponding relation includes is 1;The ambient sound size 23dB of acquisition with such as the institute of table 2 Difference between the ambient sound size 25dB that the ambient sound size and the corresponding relation of volume shown include is 2;With And the ambient sound size 23dB of acquisition and the corresponding relation of ambient sound size as shown in table 2 and volume include Ambient sound size 27dB between difference be 4.
Step 303:Selected in the corresponding relation of ambient sound size and volume big with the ambient sound of acquisition The ambient sound size of difference minimum between small;
For example, the ambient sound size 23dB obtained is corresponding with ambient sound size and volume as shown in table 2 The difference between each ambient sound size in relation includes 8,5,3,1,2 and 4, minimal difference 1, selects the ring with obtaining The minimum ambient sound size of difference is 22dB between the sound size 23dB of border.
Step 304:Volume corresponding to the size of the ambient sound of selection is defined as the first volume;
Specifically, according to the size of the ambient sound of selection, from the ambient sound size and pair of volume stored Volume corresponding to middle acquisition should be related to, the volume of acquisition is defined as the first volume.
For example, according to the ambient sound size 22dB of selection, from ambient sound size and volume as shown in table 2 Volume corresponding to being obtained in corresponding relation is 4, and volume 4 is defined as into the first volume.
Step 305:The volume played according to the first volume adjustment equipment.
Specifically, multimedia file is played according to the first volume, to realize the broadcast sound volume of adjustment equipment.
For example, multimedia file is played according to the adjustment equipment of the first volume 4, to realize device plays multimedia text The volume of part is adjusted to 4.
Wherein, if the broadcast sound volume after the regulation of user's sensory device is larger or smaller, user can be adjusted manually The volume of device plays, to make the multimedia volume of device plays diminish or become big.
Further, the second volume of the volume that user's manual adjustment device plays is obtained, is given great volume according to second The volume of minor adjustment device plays.
Further, the ambient sound size pass corresponding with the second volume of determination is stored in volume adjusting list System.
In embodiments of the present invention, the ambient sound size of environment where obtaining equipment, due to according to ambient sound size It is automatic according to the first volume with the corresponding relation of volume and the volume of ambient sound acquiring size first of acquisition The volume that adjustment equipment plays, so as to improve the efficiency of regulation volume.
Embodiment 4
Referring to Fig. 4, the embodiments of the invention provide a kind of method for adjusting volume, it is more that this method is used for adjustment equipment broadcasting The volume of media file, including:
Step 401:The ambient sound data and the distance between equipment and user of environment where periodically obtaining equipment, The size and tone of the ambient sound of environment where the ambient sound data include equipment;
Specifically, device measuring its distance between with user, and transferred periodically by the development interface of microphone Microphone, to trigger the size and tone of the ambient sound of environment where microphone starts collecting device;Microphone collecting device The size and tone of the ambient sound of place environment, the size of the ambient sound collected and tone are returned into equipment;Equipment Receive the size and tone of the ambient sound for its place environment that microphone returns.
Wherein, equipment measures it the distance between with user by emission measurement signal, and the measurement signal can be electricity Magnetic wave or infrared ray etc..The direction of equipment emission measurement signal is set to point to user in advance, specific measurement process can following institute Show:
Equipment emission measurement signal and the launch time for obtaining emission measurement signal, the measurement signal propagate to user, meeting Reflected by user;Equipment receives the measurement signal of user's reflection and obtains the reception time for the measurement signal for receiving reflection; According to the spread speed of launch time, reception time and measurement signal, the distance between equipment and user are calculated.
Equipment can pass through equation below(1)The distance between computing device and user.
S=[(T2-T1)×V]/2…… (1);
Wherein, in above-mentioned formula(1)In, S is the distance between equipment and user, and T1 is launch time, when T2 is receives Between, V is the spread speed of measurement signal.
Wherein, the size of the ambient sound of environment where periodically monitoring collecting device and the Cycle Length of tone can be with For one minute, two minutes or three minutes etc., the present invention was not limited to this.
For example, equipment passes through above-mentioned formula(1)It is 350cm that it, which is measured, the distance between with user, and passes through microphone Development interface transfers its microphone included, to trigger the size and tone of the ambient sound of environment where Mike gathers it;Wheat The ambient sound size of environment is 35dB where gram wind collecting device and the tone of ambient sound is 800Hz, by ambient sound The tone of size 35dB and ambient sound is that 800Hz is sent to equipment;The ambient sound size of environment where equipment receives it 35dB and ambient sound tone 800Hz.
Before this step, user decides whether to open the automatic sound-volume adjusting function of equipment according to self-demand, If it is required, then open the function of the automatic regulating volume of equipment.
If user no longer needs to use the function of the automatic regulating volume of equipment, user's pass hull closure automatically adjusts sound Measure function, afterwards equipment no longer control microphone detect its distance between with user and environment where gathering it ambient sound The size and tone of sound.
Step 402:According to the size and sound of the ambient sound of environment where the distance between equipment and user, and equipment Adjust, computing environment sound value;
Specifically, according to the distance between equipment and user, and the size and sound of the ambient sound of equipment place environment Adjust, according to equation below(2)The ambient sound value of environment where calculating equipment;
A=(B×C)/D…… (2);
Wherein, in above-mentioned formula(2)In, A is the ambient sound value of environment where equipment, and B is the ring of environment where equipment The size of border sound, C are the tone of the ambient sound of environment where equipment, and D is the distance between equipment and user, × it is multiplication Oeprator.
For example, according to the distance between equipment and user 350cm, and the size of the ambient sound of equipment place environment 35dB and tone 800Hz, according to equation below(3)The ambient sound value of environment where calculating equipment;
A=(35×800)/350…… (3);
Wherein, in above-mentioned formula(3)In, A is the ambient sound value of environment where equipment, and B is the ring of environment where equipment The size 35dB, C of border sound are that the tone 800Hz, D of the ambient sound of environment where equipment are the distance between equipment and user 350cm, × it is multiplying symbol.
Further, according to above-mentioned formula(3)The ambient sound value of environment where equipment can be drawn is 80.
Step 403:It is determined that the ambient sound scope where the ambient sound value calculated;
Wherein it is possible in advance by ambient sound value with scope that numerical value 30 is interval division ambient sound, you can with The scope of ambient sound is divided into more than or equal to 0 and less than or equal to 30, more than 30 and less than or equal to 60, more than 60 and Less than or equal to 90, more than 90 and less than or equal to 120, more than 120 and less than or equal to 150, more than 150 and be less than or equal to 180th, more than 180 and it is less than or equal to the sections such as 210.
, wherein it is desired to explanation is:The ambient sound scope of division can correspond to volume and weight, and the ring divided It is corresponding with weight that border range of sounds and its corresponding volume and weight can be stored in ambient sound scope, volume In relation.The corresponding relation of ambient sound scope, volume and weight can be configured to obtain by technical staff in advance, can also Obtained by equipment by self study mode.
Wherein, equipment obtains the behaviour of the corresponding relation of ambient sound scope, volume and weight by self study mode Work can be:
When equipment get its its distance between with user, and the size and tone of the ambient sound of environment where it Afterwards, computing environment sound value, it is determined that the ambient sound scope where the ambient sound value calculated;Obtaining user, regulation is set manually The volume of the standby volume played;If in the corresponding relation of ambient sound scope, volume and weight be not present comprising The record of the ambient sound scope of determination and the volume obtained, then weight initial value is set, by the ambient sound scope of determination, The volume of acquisition and the weight initial value set are stored in the corresponding relation of ambient sound scope, volume and weight; If the ambient sound scope comprising determination and acquisition in the corresponding relation of ambient sound scope, volume and weight be present The record of volume, the then power stored in record of the increase comprising the ambient sound scope determined and the volume of acquisition Weight.
For example, in embodiments of the present invention, ambient sound scope as shown in table 3, sound can be previously stored in a device The corresponding relation of size and weight is measured, table 3 is only with for example, not as limiting the scope of the invention.
Table 3
Volume Ambient sound scope Weight
3 More than or equal to 0 and less than or equal to 30 3
4 More than 30 and less than or equal to 60 3
6 More than 60 and less than or equal to 90 4
7 More than 60 and less than or equal to 90 5
9 More than 90 and less than or equal to 120 1
10 More than 120 and less than or equal to 150 1
12 More than 150 and less than or equal to 180 0
…… …… ……
Step 404:With the presence or absence of bag in the corresponding relation of the ambient sound scope, volume and the weight that judge to have stored The record of the ambient sound scope of determination is included, if it does, step 405 is performed, if it does not exist, then performing step 408;
For example, with the presence or absence of bag in judging the corresponding relation of ambient sound scope as shown in table 3, volume and weight Scope containing ambient sound is the record more than 60 and less than or equal to 90, and the result judged performs step 405 to exist.
Step 405:Obtained from the corresponding relation of ambient sound scope, volume and weight comprising the ambient sound obtained The record of sound scope;
Environment is included for example, being obtained from the corresponding relation of ambient sound scope as shown in table 3, volume and weight Range of sounds has two for the record more than 60 and less than or equal to 90, and the third line respectively as shown in table 3 and fourth line are remembered Record.
Step 406:The maximum record of the weight included, the sound that will be included in the record of selection are selected from the record of acquisition Amount is sized to the first volume;
Specifically, the maximum record of the weight that includes is selected from the record of acquisition, if the record of selection include it is a plurality of, Then select a record at random from the record of a plurality of selection, the volume that stores in select one article of record is defined as the One volume, if the record of selection includes one, the volume stored in the record selected is defined as first Volume.
For example, the weight that the weight stored in the third line record obtained stores in being recorded for the fourth line of 4 and acquisition For 5, the fourth line for the weight maximum for selecting to include from the third line record and fourth line record of acquisition records, and fourth line is remembered The volume 7 stored in record is defined as the first volume.
Step 407:According to the broadcast sound volume of the first volume adjustment equipment, end operation;
Specifically, multimedia file is played according to the first volume, to realize the broadcast sound volume of adjustment equipment.
Wherein, multimedia file can be audio file or video file etc..
For example, multimedia file is played according to the adjustment equipment of the first volume 7, to realize device plays multimedia text The volume of part is adjusted to 7.
Wherein, if the broadcast sound volume after the regulation of user's sensory device is larger or smaller, user can be adjusted manually The volume of device plays, to make the multimedia volume of device plays diminish or become big.
Further, the second volume of the volume that user's manual adjustment device plays is obtained, is given great volume according to second The volume of minor adjustment device plays.
Further, can also judge to whether there is in the corresponding relation of ambient sound scope, volume and weight The record of ambient sound scope and the second volume comprising determination;If there is no the ambient sound scope comprising determination and The record of second volume, then weight initial value is set, stores ambient sound scope, the second volume and the setting of determination The corresponding relation of weight initial value.
Further, if the corresponding relation in ambient sound scope, volume and weight has the ring comprising determination The record of border range of sounds and the second volume, then increase include the ambient sound scope determined and the note of the second volume The weight stored in record.
Further, after the second volume of the volume that user's manual adjustment device plays is obtained, reduction includes The weight stored in the ambient sound scope of determination and the record of the first volume.
Wherein, environment where the distance between equipment and user is got in next cycle and collects equipment During ambient sound data, it can return and perform step 402.
Wherein, closed if the ambient sound scope for determining to have stored in step 404, volume are corresponding with weight The record for the environment magnitude range for including determining is not present in system, then user can be prompted, so that user's manual adjustment device is broadcast The volume put.And after user adjusts the volume of broadcasting manually, perform step 408:
Step 408:The second volume of the volume that user's manual adjustment device plays is obtained, according to the second volume The volume that adjustment equipment plays;
Step 409:Weight initial value is set, stores ambient sound scope, the second volume and the weight set of determination The corresponding relation of initial value, end operation.
Specifically, weight initial value is set, by the ambient sound scope of determination, the second volume and the weight initial value set It is stored in the corresponding relation of ambient sound scope, volume and weight.
Wherein, in the step 401 of the embodiment of the present invention, the ambient sound data of environment can also wrap where obtaining equipment The tone color of ambient sound is included, then according to the distance between equipment and user, and the ambient sound of environment where equipment is big Small, tone color and tone, can by following first to the 3rd step computing environment sound value, including:
Firstth, equipment is judged the tone color of ambient sound, if the tone color of ambient sound is musical sound, performs second Step, if the tone color of ambient sound is noise, perform the 3rd step;
Wherein, musical sound is melodized sound, and its waveform is smooth, stable and regular, such as sine wave or and cosine Ripple;Noise is mixed and disorderly ear-piercing sound, and its waveform is unstable, irregular and change is more apparent.
Secondth, the first coefficient corresponding to musical sound is obtained, the first coefficient includes:First tone coefficient of ambient sound, environment The first distance coefficient between first size coefficient of sound and equipment and user.According to the first coefficient, equipment and the use of acquisition The distance between family, the size and tone of ambient sound, according to equation below(4)Calculate ambient sound value;
E=(F×p+G×q)/(H×r)…… (4);
Wherein, in above-mentioned formula(4)In, E be equipment where environment ambient sound value, F be ambient sound tone, p For the first tone coefficient of the ambient sound of acquisition, G is the size of ambient sound, and q is the first size of the ambient sound obtained Coefficient, H are the distance between equipment and user, first distance coefficients of the r between equipment and user, × it is multiplication operator Number.
3rd, the second coefficient corresponding to noise is obtained, the second coefficient includes:Second tone coefficient of ambient sound, environment Second distance coefficient between second size coefficient of sound and equipment and user.According to the second coefficient, equipment and the use of acquisition The distance between family, the size and tone of ambient sound, according to equation below(5)Calculate ambient sound value;
I=(J×s+K×t)/(L×u)…… (5);
Wherein, in above-mentioned formula(5)In, I be equipment where environment ambient sound value, J be ambient sound tone, s For the second tone coefficient of the ambient sound of acquisition, L is the size of ambient sound, and t is the second size of the ambient sound obtained Coefficient, L are the distance between equipment and user, second distance coefficients of the u between equipment and user, × it is multiplication operator Number.
In embodiments of the present invention, where obtaining equipment between the ambient sound data of environment and/or equipment and user Distance, size, tone color and/or the tone of the ambient sound of environment where ambient sound data include equipment;According to ambient sound Data and/or the distance between equipment and user obtain the first volume;Played according to the first volume adjustment equipment Volume, so as to improve the efficiency of regulation volume.
Embodiment 5
Referring to Fig. 5, the embodiments of the invention provide a kind of device for adjusting volume, including:
First acquisition module 501, for the ambient sound data of environment where obtaining equipment, the ambient sound data include At least one of size, tone color and tone three of ambient sound of environment where equipment;
Second acquisition module 502, for according to the volume of ambient sound data acquisition first;
Adjustment module 503, for the volume played according to the first volume adjustment equipment.
Preferably, the second acquisition module 502, including:
First determining unit, for determining the ambient sound magnitude range where the size of ambient sound;
First acquisition unit, for obtaining bag from the corresponding relation of ambient sound magnitude range, volume and weight The record of ambient sound magnitude range containing determination;
First choice unit, for the record for the weight maximum for selecting to include from the record of acquisition;
Second determining unit, the volume for being included in the record by selection are defined as the first volume.
Further, the device also includes:
3rd acquisition module, the second volume of the volume for obtaining the broadcasting of user's manual adjustment device;
First setup module, if the corresponding relation for ambient sound magnitude range, volume and weight is not present The record of ambient sound magnitude range and the second volume comprising determination, then weight initial value is set, stores the environment of determination Sound magnitude range, the second volume and the corresponding relation of the weight initial value set;
Second increase module, if the corresponding relation for ambient sound magnitude range, volume and weight has bag The record of ambient sound magnitude range and the second volume containing determination, then increase include the ambient sound magnitude range determined With the weight stored in the record of the second volume.
Preferably, the second acquisition module 502, including:
Computing unit, each ambient sound that the corresponding relation for computing environment sound size and volume includes Size respectively equipment where environment ambient sound size between difference;
Second selecting unit, for selecting the minimum ring of the difference between the size of the ambient sound of equipment place environment The size of border sound;
3rd determining unit, given great volume for volume corresponding to the size of the ambient sound of selection to be defined as into first It is small.
Further, the device also includes:
4th acquisition module, the second volume of the volume for obtaining the broadcasting of user's manual adjustment device;
Memory module, size and the corresponding relation of the second volume for storage environment sound.
Preferably, the second acquisition module 502, including:
4th determining unit, for according to ambient sound data and the distance between equipment and user, computing environment sound Value, it is determined that the ambient sound value scope where the ambient sound value calculated;
Second acquisition unit, included for being obtained from the corresponding relation of ambient sound value scope, volume and weight The record of the ambient sound value scope of determination;
3rd selecting unit, for the record for the weight maximum for selecting to include from the record of acquisition;
5th determining unit, the volume for being included in the record by selection are defined as the first volume.
Further, the device also includes:
5th acquisition module, the second volume of the volume for obtaining the broadcasting of user's manual adjustment device;
Second setup module, if bag is not present in the corresponding relation for ambient sound value scope, volume and weight The record of ambient sound value scope and the second volume containing determination, then weight initial value is set, stores the ambient sound of determination It is worth scope, the second volume and the corresponding relation of the weight initial value set;
Second increase module, if for ambient sound value scope, volume and weight corresponding relation exist comprising The ambient sound value scope of determination and the record of the second volume, then increase include the ambient sound value scope and second determined The weight stored in the record of volume.
In embodiments of the present invention, the ambient sound data of environment where obtaining equipment, the ambient sound data include setting At least one of size, tone color and tone three of ambient sound of standby place environment;According to ambient sound data acquisition One volume;The volume played according to the first volume adjustment equipment.So as to improve the efficiency of regulation volume.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (8)

  1. A kind of 1. method for adjusting volume, it is characterised in that methods described includes:
    The ambient sound data of environment where obtaining equipment, the environment of environment where the ambient sound data include the equipment Size, tone color and the tone of sound;
    The tone color of the ambient sound is judged, if the tone color of the ambient sound is musical sound, obtains the musical sound Corresponding first coefficient, wherein, the first tone coefficient of first coefficient including the ambient sound, the ambient sound The first distance coefficient between first size coefficient, the equipment and user, according to first coefficient, the equipment and user The distance between, the size of the ambient sound and tone, computing environment sound value, if the tone color of the ambient sound is makes an uproar Sound, then the second coefficient of the noise is obtained, wherein, second coefficient includes the second tone coefficient of the ambient sound, Second distance coefficient between second size coefficient of the ambient sound and the equipment and user, according to second system The distance between several, described equipment and user, the size of the ambient sound and tone, computing environment sound value;
    Determine the ambient sound value scope where the ambient sound value;
    The ambient sound value model for including the determination is obtained from the corresponding relation of ambient sound value scope, volume and weight The record enclosed;
    The maximum record of the weight included is selected from the record of the acquisition;
    The volume included in the record of the selection is defined as the first volume;
    The volume of the device plays is adjusted according to first volume.
  2. 2. the method as described in claim 1, it is characterised in that described to be broadcast according to first volume regulation equipment After the volume put, in addition to:
    Obtain the second volume that user adjusts the volume of the device plays manually;
    If the ambient sound size comprising determination is not present in the corresponding relation of ambient sound magnitude range, volume and weight The record of scope and second volume, then weight initial value is set, stores ambient sound magnitude range, the institute of the determination State the corresponding relation of the second volume and the weight initial value of the setting;
    If there is the ambient sound for including the determination in the corresponding relation of the ambient sound magnitude range, volume and weight The record of sound magnitude range and second volume, then increase include the ambient sound magnitude range of the determination and described The weight stored in the record of second volume.
  3. 3. the method as described in claim 1, it is characterised in that described to be broadcast according to first volume regulation equipment After the volume put, in addition to:
    Obtain the second volume that user adjusts the volume of the device plays manually;
    Store the size of the ambient sound and the corresponding relation of second volume.
  4. 4. the method as described in claim 1, it is characterised in that described to be broadcast according to first volume regulation equipment After the volume put, in addition to:
    Obtain the second volume that user adjusts the volume of the device plays manually;
    If the ambient sound value scope comprising determination is not present in the corresponding relation of ambient sound value scope, volume and weight With the record of second volume, then set weight initial value, store the determination ambient sound value scope, described second The corresponding relation of volume and the weight initial value of the setting;
    If there is the ambient sound for including the determination in the corresponding relation of the ambient sound value scope, volume and weight It is worth the record of scope and second volume, then ambient sound value scope of the increase comprising the determination and second sound Measure the weight stored in the record of size.
  5. 5. a kind of device for adjusting volume, it is characterised in that described device includes:
    First acquisition module, for the ambient sound data of environment where obtaining equipment, the ambient sound data include described At least one of size, tone color and tone three of ambient sound of environment where equipment;
    Second acquisition module, including:
    4th determining unit, for judging the tone color of the ambient sound, if the tone color of the ambient sound is pleasure Sound, then the first coefficient corresponding to the musical sound is obtained, wherein, first coefficient includes the first tone system of the ambient sound The first distance coefficient between first size coefficient of several, described ambient sound, the equipment and user, according to first system The distance between several, described equipment and user, the size of the ambient sound and tone, computing environment sound value, if described The tone color of ambient sound is noise, then obtains the second coefficient of the noise, wherein, second coefficient includes the ambient sound Second tone coefficient of sound, the second distance system between the second size coefficient of the ambient sound and the equipment and user Number, according to the distance between second coefficient, the equipment and user, the size of the ambient sound and tone, calculate ring Border sound value, determine the ambient sound value scope where the ambient sound value of the calculating;
    Second acquisition unit, for being obtained from the corresponding relation of ambient sound value scope, volume and weight comprising described The record of the ambient sound value scope of determination;
    3rd selecting unit, for the record for the weight maximum for selecting to include from the record of the acquisition;
    5th determining unit, for the volume included in the record of the selection to be defined as into the first volume;
    Adjustment module, for adjusting the volume of the device plays according to first volume.
  6. 6. device as claimed in claim 5, it is characterised in that described device also includes:
    3rd acquisition module, the second volume for adjusting the volume of the device plays manually for obtaining user;
    First setup module, if for ambient sound magnitude range, volume and weight corresponding relation be not present comprising The record of the ambient sound magnitude range of determination and second volume, then weight initial value is set, stores the determination The corresponding relation of ambient sound magnitude range, second volume and the weight initial value of the setting;
    Second increase module, if the corresponding relation for the ambient sound magnitude range, volume and weight has bag The record of ambient sound magnitude range and second volume containing the determination, then increase include the environment of the determination The weight stored in the record of sound magnitude range and second volume.
  7. 7. device as claimed in claim 5, it is characterised in that described device also includes:
    4th acquisition module, the second volume for adjusting the volume of the device plays manually for obtaining user;
    Memory module, for storing the size of the ambient sound and the corresponding relation of second volume.
  8. 8. device as claimed in claim 5, it is characterised in that described device also includes:
    5th acquisition module, the second volume for adjusting the volume of the device plays manually for obtaining user;
    Second setup module, if the corresponding relation for ambient sound value scope, volume and weight is not present comprising true Fixed ambient sound value scope and the record of second volume, then weight initial value is set, stores the environment of the determination The corresponding relation of sound value scope, second volume and the weight initial value of the setting;
    Second increase module, if for the ambient sound value scope, volume and weight corresponding relation exist comprising The record of the ambient sound value scope of the determination and second volume, then increase include the ambient sound of the determination The weight stored in the record of value scope and second volume.
CN201310528669.3A 2013-10-30 2013-10-30 A kind of method and device for adjusting volume Active CN104601130B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310528669.3A CN104601130B (en) 2013-10-30 2013-10-30 A kind of method and device for adjusting volume
PCT/CN2014/088295 WO2015062401A1 (en) 2013-10-30 2014-10-10 Method and device for adjusting volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310528669.3A CN104601130B (en) 2013-10-30 2013-10-30 A kind of method and device for adjusting volume

Publications (2)

Publication Number Publication Date
CN104601130A CN104601130A (en) 2015-05-06
CN104601130B true CN104601130B (en) 2018-02-23

Family

ID=53003307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310528669.3A Active CN104601130B (en) 2013-10-30 2013-10-30 A kind of method and device for adjusting volume

Country Status (2)

Country Link
CN (1) CN104601130B (en)
WO (1) WO2015062401A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105375897A (en) * 2015-11-30 2016-03-02 北京光年无限科技有限公司 Intelligent-robot-oriented environmental information processing method and device
CN105812581A (en) * 2016-05-12 2016-07-27 乐视控股(北京)有限公司 Volume automatic adjustment method and device
CN106302930A (en) * 2016-08-31 2017-01-04 上海与德通讯技术有限公司 The control method of a kind of volume and adjusting means
WO2018058331A1 (en) * 2016-09-27 2018-04-05 北京小米移动软件有限公司 Method and apparatus for controlling volume
CN106656744A (en) * 2016-10-13 2017-05-10 广州视源电子科技股份有限公司 Method and apparatus for adjusting the sound volume of push notifications of intelligent device
US9948256B1 (en) 2017-03-27 2018-04-17 International Business Machines Corporation Speaker volume preference learning
KR102429556B1 (en) * 2017-12-05 2022-08-04 삼성전자주식회사 Display apparatus and audio outputting method
CN113176870B (en) * 2021-06-29 2021-11-02 深圳小米通讯技术有限公司 Volume adjustment method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005588A (en) * 2006-12-15 2007-07-25 华为技术有限公司 Method and device for automatically regulating device voice volume
CN101222210A (en) * 2007-01-08 2008-07-16 乐金电子(中国)研究开发中心有限公司 Apparatus and method for self-adapting sound volume regulation of mobile phone
CN102523404A (en) * 2011-11-14 2012-06-27 深圳Tcl新技术有限公司 Automatic volume control method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753711B (en) * 2008-12-16 2014-03-12 株式会社Ntt都科摩 Mobile terminal function switching method and device thereof
JP5702666B2 (en) * 2011-05-16 2015-04-15 富士通テン株式会社 Acoustic device and volume correction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005588A (en) * 2006-12-15 2007-07-25 华为技术有限公司 Method and device for automatically regulating device voice volume
CN101222210A (en) * 2007-01-08 2008-07-16 乐金电子(中国)研究开发中心有限公司 Apparatus and method for self-adapting sound volume regulation of mobile phone
CN102523404A (en) * 2011-11-14 2012-06-27 深圳Tcl新技术有限公司 Automatic volume control method, device and equipment

Also Published As

Publication number Publication date
CN104601130A (en) 2015-05-06
WO2015062401A1 (en) 2015-05-07

Similar Documents

Publication Publication Date Title
CN104601130B (en) A kind of method and device for adjusting volume
CN104410379B (en) A kind of volume adjusting method
CN101753111B (en) Method and device for adjusting play volume
CN104135705B (en) A kind of method and system according to different scenes pattern adjust automatically multimedia volume
CN109151634B (en) Wireless earphone volume control method, wireless earphone and mobile terminal
CN104363510B (en) A kind of playback terminal
CN102065350A (en) Method, system and earphone for intelligently controlling multimedia playing
CN103580632B (en) automatic loudness control system and method
CN106445451B (en) Audio volume gain method and device
CN103347070B (en) Push method, terminal, server and the system of speech data
CN106205652A (en) A kind of audio frequency is with reading evaluating method and device
CN101060313B (en) Hearing protection method and sound output device
CN104698822A (en) Use method and system based on smart watch and smart watch
CN110347366A (en) Volume adjusting method, terminal device, storage medium and electronic equipment
CN106980487A (en) Audio control method and audio control apparatus
CN113194381B (en) Volume adjusting method and device, sound equipment and storage medium
CN103580630B (en) automatic loudness control
CN117319870A (en) Earphone wearing state detection method and device, earphone and storage medium
CN105632523B (en) Adjust the method and apparatus and terminal of the volume output valve of audio data
CN106374864A (en) Volume adjustment method and device
CN102523553B (en) Holographic audio method and device for mobile terminal equipment based on sound source contents
CN108010535A (en) Denoising device in a kind of smart home room
CN109241339A (en) A kind of music recommended method and device
CN112765395A (en) Audio playing method, electronic device and storage medium
CN113257247A (en) Test method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant