Summary of the invention
The purpose of this invention is to provide a kind of volume adjusting method and system, can regulate the volume of electronic equipment according to the distance between electronic equipment and the user, thereby make the user can hear the sound that volume is constant.
For achieving the above object, the invention provides following scheme:
A kind of volume adjusting method comprises:
When having detected sound signal and input or output, obtain the change of distance information between electronic equipment and the user;
Judge that whether change of distance value that described change of distance information represents is greater than zero;
If so, then increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
Otherwise, reduce the volume of described electronic equipment.
Optionally, described electronic equipment has image acquisition units, and the described change of distance information of obtaining between electronic equipment and the user comprises:
Obtain the user images information in first moment by described image acquisition units, described user images information is the image information that comprises user's specific sign;
Obtain the user images information in second moment by described image acquisition units, described second is later than described first constantly constantly;
User images information and the described second user images information constantly in described first moment is compared, obtain the change information of user's specific sign;
Change information according to described user's specific sign calculates the change of distance information between described electronic equipment and the user.
Optionally, the volume of the described electronic equipment of described increase comprises:
Calculate the volume value that described electronic equipment needs increase according to formula Δ V=g* Δ R/R;
According to the volume value that the described electronic equipment that calculates need to increase, increase the volume of described electronic equipment;
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.
Optionally, the described volume that reduces described electronic equipment comprises:
R/R calculates the volume value that described electronic equipment needs reduce according to formula Δ V=g* Δ;
According to the volume value that the described electronic equipment that calculates need to reduce, reduce the volume of described electronic equipment;
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.
Optionally, described method also comprises:
Obtain the distance between electronic equipment and the user;
Whether judge described distance greater than the first predeterminable range or less than the second predeterminable range, described the first predeterminable range is greater than described the second predeterminable range;
If described distance is then extremely maximum with the volume adjusting of described electronic equipment greater than the first predeterminable range;
If described distance is then extremely minimum with the volume adjusting of described electronic equipment less than the second predeterminable range.
A kind of sound volume regulating system comprises:
The change of distance information acquisition unit is used for obtaining the change of distance information between electronic equipment and the user when having detected sound signal and input or output;
Change of distance value judging unit is used for judging that whether change of distance value that described change of distance information represents is greater than zero;
Volume increases the unit, be used for when the judged result of described change of distance value judging unit when being, increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
The volume down junior unit is used for reducing the volume of described electronic equipment when described change of distance value judging unit when the determination result is NO.
Optionally, described electronic equipment has image acquisition units, and described change of distance information acquisition unit comprises:
User images acquisition of information subelement, for the user images information of obtaining for first moment by described image acquisition units, described user images information is the image information that comprises user's specific sign;
Obtain the user images information in second moment by described image acquisition units, described second is later than described first constantly constantly;
User images information comparer unit is used for user images information and the described second user images information constantly in described first moment is compared, and obtains the change information of user's specific sign;
Change of distance information calculations subelement is used for the change information according to described user's specific sign, calculates the change of distance information between described electronic equipment and the user.
Optionally, described volume increases the unit, comprising:
Increase the volume value computation subunit, be used for calculating the volume value that described electronic equipment needs increase according to formula Δ V=g* Δ R/R;
Volume increases subelement, for the volume value that need to increase according to the described electronic equipment that calculates, increases the volume of described electronic equipment;
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.
Optionally, described volume down junior unit comprises:
Reduce the volume value computation subunit, be used for calculating the volume value that described electronic equipment needs reduce according to formula Δ V=g* Δ R/R;
The little subelement of volume down for the volume value that need to reduce according to the described electronic equipment that calculates, reduces the volume of described electronic equipment;
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.
Optionally, described system also comprises:
Distance acquiring unit is used for obtaining the distance between electronic equipment and the user;
The Distance Judgment unit is used for whether judging described distance greater than the first predeterminable range or less than the second predeterminable range that described the first predeterminable range is greater than described the second predeterminable range;
The max volume regulon is used for when described distance during greater than the first predeterminable range, with the volume adjusting of described electronic equipment to maximum;
The minimal volume regulon is used for when described distance during less than the second predeterminable range, with the volume adjusting of described electronic equipment to minimum.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Volume adjusting method provided by the invention, by obtaining the change of distance information between electronic equipment and the user, the changing value of adjusting the distance is judged, regulate output and/or the input volume of electronic equipment according to judged result, can regulate the volume of electronic equipment according to the distance between electronic equipment and the user, thereby can make the user hear the sound that volume is constant.
According to a further aspect in the invention, for the electronic equipment with image acquisition units, the image calculation electronic equipment that collects by image acquisition units and the distance between the user can be saved as electronic equipment and set up the cost that range sensor improves.
According to a further aspect in the invention, by obtaining the distance between electronic equipment and the user, when this distance is very big or minimum, directly the volume adjusting with electronic equipment is extremely very big or minimum, thereby can when the volume-leveling value that calculates according to formula Δ V=g* Δ R/R exceeds the range of adjustment of electronic equipment, simply adjust fast the volume of electronic equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is the process flow diagram of volume adjusting method embodiment 1 of the present invention.As shown in Figure 1, the method comprises:
Step 101: when having detected sound signal and input or output, obtain the change of distance information between electronic equipment and the user;
When having detected sound signal and input or output, when for example the user uses electronic equipment to carry out voice call, can trigger step 101.
Can adopt range sensor to obtain distance between electronic equipment and the user, with the distance that gets access to after the change of distance with change before the distance that gets access to subtract each other, can obtain the change of distance value between electronic equipment and the user.Change of distance information is the carrier of expression change of distance value.Because in this programme, be that the angle with information flow is described, so the electric signal of the expression change of distance value in the transmission course is called change of distance information.Range sensor can be the sensor of finding range by light wave or sound wave.The principle of range sensor can be by emission short especially light pulse or acoustic signals, and measures this light pulse or acoustic signals from being transmitted into the time that is reflected by the object, by the survey time calculate and object between distance.
Among the application, can also adopt image acquisition units to obtain distance between electronic equipment and the user.The mobile phone that for example has camera, camera are exactly image acquisition units.The image that can arrive according to camera collection obtains the distance between electronic equipment and the user.For the electronic equipment with image acquisition units, the image calculation electronic equipment that collects by image acquisition units and the distance between the user can be saved as electronic equipment and set up the cost that range sensor improves.
Step 102: judge that whether change of distance value that described change of distance information represents is greater than zero; If so, execution in step 103; Otherwise, execution in step 104;
By can knowing in the step 101, the change of distance value be by the distance that gets access to after changing with change before the distance that gets access to subtract each other and obtain.Therefore, when the change of distance value greater than zero, represent that then the distance between electronic equipment and the user has increased; When the change of distance value less than zero (being negative value), represent that then the distance between electronic equipment and the user has reduced.
Step 103: the volume that increases described electronic equipment; Described volume comprises output volume, and/or the input volume;
Output volume, in the time of can being user's displaying video or audio frequency, the volume of the sound of electronic equipment output also can be user when carrying out voice call, the volume of the sound of electronic equipment output.The input volume can be that the user is when carrying out voice call, by the volume of the equipment such as microphone to the sound of electronic equipment import and export.
To increase output volume as example:
When having detected sound signal and input or output, obtain the change of distance information between electronic equipment and the user.Can adopt the distance between range sensor detected electrons equipment and the user, and obtain change of distance information.After the distance between electronic equipment and the user increases, if keep the original volume of electronic equipment, then the volume heard of user will reduce.Adopt this step, can call the volume control interface according to the change of distance value, increase the volume of described electronic equipment, the volume approximate constant that the user is heard.
The principle that increases the input volume is similar to above-mentioned principle, can make in the voice call process volume approximate constant that the user of the equipment of the other end receives.
Step 104: the volume that reduces described electronic equipment.
To reduce output volume as example:
After the distance between electronic equipment and the user reduces, if keep the original volume of electronic equipment, then the volume heard of user will increase.Adopt this step, can reduce the volume of described electronic equipment according to the change of distance value, the volume approximate constant that the user is heard.
The principle that reduces to input volume is similar to above-mentioned principle, can make in the voice call process volume approximate constant that the user of the equipment of the other end receives.
In sum, the volume adjusting method that present embodiment provides, by obtaining the change of distance information between electronic equipment and the user, the changing value of adjusting the distance is judged, regulate output and/or the input volume of electronic equipment according to judged result, can regulate the volume of electronic equipment according to the distance between electronic equipment and the user, thereby can make the user hear the sound that volume is relatively constant.
Fig. 2 is the process flow diagram of volume adjusting method embodiment 2 of the present invention.In the present embodiment, described electronic equipment has image acquisition units, for example camera.As shown in Figure 2, the method comprises:
Step 201: obtain the user images information in first moment by described image acquisition units, described user images information is the image information that comprises user's specific sign;
First constantly can be the change of distance moment before between electronic equipment and the user.
Need to prove, in the present embodiment, for obtaining of the change of distance information between electronic equipment and the user, can be Real-time Obtaining, also can obtain according to the certain hour gap periods.When the change of distance information periodically obtained between electronic equipment and the user, first can be the time point in some cycles constantly.For example, when the cycle was 1 second, the start time point of second period was the 2nd second, and then first can be the 2nd second constantly.
Accordingly, second can be the time point of next cycle constantly, for example the 3rd second.
User's specific sign can be facial characteristics, also can be the limbs feature.Take facial characteristics as example, can adopt user's the area in image information of nose as specific sign.
Step 202: obtain the user images information in second moment by described image acquisition units, described second is later than described first constantly constantly;
Second constantly can be the change of distance moment afterwards between electronic equipment and the user.
Step 203: user images information and the described second user images information constantly in described first moment is compared, obtain the change information of user's specific sign;
Take the area in image information of the nose that adopts the user as specific sign as example, when the distance between user and the electronic equipment became large, the area of user's nose in image information can diminish.Just can obtain the change information of user's the area of nose in image information in the step 203.
Step 204: the change information according to described user's specific sign, calculate the change of distance information between described electronic equipment and the user.
According to scenography, can know, the area of user's nose in image information, and the distance between user and the electronic equipment is inversely proportional to.Under a proportional relationship, can calculate change of distance information between described electronic equipment and the user.
Step 205: judge that whether change of distance value that described change of distance information represents is greater than zero; If so, execution in step 206; Otherwise, execution in step 207;
Step 206: the volume that increases described electronic equipment; Described volume comprises output volume, and/or the input volume;
Step 207: the volume that reduces described electronic equipment.
The volume adjusting method of present embodiment, for the electronic equipment with image acquisition units, the image calculation electronic equipment that collects by image acquisition units and the distance between the user can be saved as electronic equipment and set up the cost that range sensor improves.
Fig. 3 is the process flow diagram of volume adjusting method embodiment 3 of the present invention.As shown in Figure 3, the method can comprise:
Step 301: obtain the change of distance information between electronic equipment and the user;
Step 302: judge that whether change of distance value that described change of distance information represents is greater than zero; If so, execution in step 303; Otherwise, execution in step 305;
Step 303: calculate the volume value that described electronic equipment needs increase according to formula Δ V=g* Δ R/R;
Step 304: according to the volume value that the described electronic equipment that calculates need to increase, increase the volume of described electronic equipment;
Step 305: R/R calculates the volume value that described electronic equipment needs reduce according to formula Δ V=g* Δ;
Step 306: according to the volume value that the described electronic equipment that calculates need to reduce, reduce the volume of described electronic equipment.
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.Usually, can the user and electronic equipment between distance less than 60cm, therefore, R can value be 60cm.Certainly, R also can choose other numerical value as required.
Fig. 4 is the process flow diagram of volume adjusting method embodiment 4 of the present invention.As shown in Figure 4, the method comprises:
Step 401: obtain the distance between electronic equipment and the user;
Step 402: whether judge described distance greater than the first predeterminable range or less than the second predeterminable range, described the first predeterminable range is greater than described the second predeterminable range; When described distance during greater than the first predeterminable range, execution in step 403, when described distance during less than the second predeterminable range, execution in step 404;
Step 403: the volume adjusting of described electronic equipment is extremely maximum;
Step 404: the volume adjusting of described electronic equipment is extremely minimum.
When described distance bound is between the first predeterminable range and the second predeterminable range, carry out following step.
Step 405: obtain the change of distance information between electronic equipment and the user;
Step 406: judge that whether change of distance value that described change of distance information represents is greater than zero; If so, execution in step 407; Otherwise, execution in step 408;
Step 407: the volume that increases described electronic equipment; Described volume comprises output volume, and/or the input volume;
Step 408: the volume that reduces described electronic equipment.
In the present embodiment, by step 401 to step 404, can obtain first the distance between electronic equipment and the user, when this distance is very big or minimum, directly the volume adjusting with electronic equipment is extremely very big or minimum, thereby can when the volume-leveling value that calculates according to formula Δ V=g* Δ R/R exceeds the range of adjustment of electronic equipment, simply adjust fast the volume of electronic equipment.
Disclosed herein as well is a kind of sound volume regulating system.Fig. 5 is the process flow diagram of sound volume regulating system embodiment 1 of the present invention.As shown in Figure 5, this system can comprise:
Change of distance information acquisition unit 501 is used for obtaining the change of distance information between electronic equipment and the user;
Change of distance value judging unit 502 is used for judging that whether change of distance value that described change of distance information represents is greater than zero;
Volume increases unit 503, be used for when the judged result of described change of distance value judging unit when being, increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
Volume down junior unit 504 is used for reducing the volume of described electronic equipment when described change of distance value judging unit when the determination result is NO.
The sound volume regulating system that present embodiment provides, by obtaining the change of distance information between electronic equipment and the user, the changing value of adjusting the distance is judged, regulate output and/or the input volume of electronic equipment according to judged result, can regulate the volume of electronic equipment according to the distance between electronic equipment and the user, thereby can make the user hear the sound that volume is constant.
Fig. 6 is the process flow diagram of volume adjusting method embodiment 2 of the present invention.In the present embodiment, described electronic equipment has image acquisition units, for example camera.As shown in Figure 6, this system can comprise:
User images acquisition of information subelement 601, for the user images information of obtaining for first moment by described image acquisition units, described user images information is the image information that comprises user's specific sign;
Obtain the user images information in second moment by described image acquisition units, described second is later than described first constantly constantly;
User images information comparer unit 602 is used for user images information and the described second user images information constantly in described first moment is compared, and obtains the change information of user's specific sign;
Change of distance information calculations subelement 603 is used for the change information according to described user's specific sign, calculates the change of distance information between described electronic equipment and the user.
Need to prove that user images acquisition of information subelement 601, user images information comparer unit 602 and change of distance information calculations subelement 603 can be contained in change of distance information acquisition unit 501.
This system can also comprise:
Change of distance value judging unit 502 is used for judging that whether change of distance value that described change of distance information represents is greater than zero;
Volume increases unit 503, be used for when the judged result of described change of distance value judging unit when being, increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
Volume down junior unit 504 is used for reducing the volume of described electronic equipment when described change of distance value judging unit when the determination result is NO.
The sound volume regulating system of present embodiment, for the electronic equipment with image acquisition units, the image calculation electronic equipment that collects by image acquisition units and the distance between the user can be saved as electronic equipment and set up the cost that range sensor improves.
Fig. 7 is the process flow diagram of volume adjusting method embodiment 3 of the present invention.As shown in Figure 7, this system can comprise:
Change of distance information acquisition unit 501 is used for obtaining the change of distance information between electronic equipment and the user;
Change of distance value judging unit 502 is used for judging that whether change of distance value that described change of distance information represents is greater than zero;
Volume increases unit 503, be used for when the judged result of described change of distance value judging unit when being, increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
Described volume increases unit 503, can comprise:
Increase volume value computation subunit 5031, be used for calculating the volume value that described electronic equipment needs increase according to formula Δ V=g* Δ R/R;
Volume increases subelement 5032, for the volume value that need to increase according to the described electronic equipment that calculates, increases the volume of described electronic equipment;
Wherein, Δ V represents the volume value that described electronic equipment need to increase, and g is experience factor, and Δ R is the change of distance value that described change of distance information represents, R is the default ultimate range between described electronic equipment and the user.
Volume down junior unit 504 is used for reducing the volume of described electronic equipment when described change of distance value judging unit when the determination result is NO.
Described volume down junior unit 504 can comprise:
Reduce volume value computation subunit 5041, be used for calculating the volume value that described electronic equipment needs reduce according to formula Δ V=g* Δ R/R;
Volume down boy unit 5042 for the volume value that need to reduce according to the described electronic equipment that calculates, reduces the volume of described electronic equipment.
Fig. 8 is the process flow diagram of volume adjusting method embodiment 4 of the present invention.As shown in Figure 8, this system can comprise:
Distance acquiring unit 801 is used for obtaining the distance between electronic equipment and the user;
Distance Judgment unit 802 is used for whether judging described distance greater than the first predeterminable range or less than the second predeterminable range that described the first predeterminable range is greater than described the second predeterminable range;
Max volume regulon 803 is used for when described distance during greater than the first predeterminable range, with the volume adjusting of described electronic equipment to maximum;
Minimal volume regulon 804 is used for when described distance during less than the second predeterminable range, with the volume adjusting of described electronic equipment to minimum.
Change of distance information acquisition unit 501 is used for obtaining the change of distance information between electronic equipment and the user;
Change of distance value judging unit 502 is used for judging that whether change of distance value that described change of distance information represents is greater than zero;
Volume increases unit 503, be used for when the judged result of described change of distance value judging unit when being, increase the volume of described electronic equipment; Described volume comprises output volume, and/or the input volume;
Volume down junior unit 504 is used for reducing the volume of described electronic equipment when described change of distance value judging unit when the determination result is NO.
In the present embodiment, by step 401 to step 404, can obtain first the distance between electronic equipment and the user, when this distance is very big or minimum, directly the volume adjusting with electronic equipment is extremely very big or minimum, thereby can when the volume-leveling value that calculates according to formula Δ V=g* Δ R/R exceeds the range of adjustment of electronic equipment, simply adjust fast the volume of electronic equipment.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed system of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
Used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.