CN104811862B - A kind of audio amplifier method for controlling volume and terminal - Google Patents

A kind of audio amplifier method for controlling volume and terminal Download PDF

Info

Publication number
CN104811862B
CN104811862B CN201510148953.7A CN201510148953A CN104811862B CN 104811862 B CN104811862 B CN 104811862B CN 201510148953 A CN201510148953 A CN 201510148953A CN 104811862 B CN104811862 B CN 104811862B
Authority
CN
China
Prior art keywords
distance
terminal
volume
instruction
intelligent sound
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.)
Expired - Fee Related
Application number
CN201510148953.7A
Other languages
Chinese (zh)
Other versions
CN104811862A (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510148953.7A priority Critical patent/CN104811862B/en
Publication of CN104811862A publication Critical patent/CN104811862A/en
Application granted granted Critical
Publication of CN104811862B publication Critical patent/CN104811862B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of audio amplifier method for controlling volume and terminal, wherein method includes:When using terminal control intelligent sound box plays audio file, distance variation information in the direction indicated between the terminal and sensing object of reference is obtained, the distance variation information includes the terminal and senses the distance between object of reference changing value and distance change direction with described;According to the distance variation information, target volume control instruction is generated;The target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box adjusts broadcast sound volume according to the target volume control instruction.Intelligent sound box volume adjusting operating efficiency can be improved using the present invention, reduce the mechanical loss of volume button, the mode of audio amplifier volume control is enriched, the interest of increase audio amplifier volume control, improve Consumer's Experience.

Description

A kind of audio amplifier method for controlling volume and terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of audio amplifier method for controlling volume and terminal.
Background technology
With the continuous development of the communication technology, the function of mobile terminal is increasingly abundant, greatly facilitate people work, Study and amusement, make a part indispensable in people's daily life.At present, some intelligent appliances that market is released It equipment, can be communicated with terminal by communications such as WiFi, bluetooth and NFC, sent so as to receive mobile terminal Various operational orders.For example, downloading client using mobile terminal, client generation is operated so as to send user by WiFi Operational order come control intelligent radio audio amplifier play audio file.
In the prior art, when carrying out the broadcasting of audio file using mobile terminal control intelligent radio audio amplifier, if mobile Terminal user wants regulation volume, there is two kinds of implementations, wherein, the first implementation is:Into with intelligent radio audio amplifier In corresponding client, intelligent sound box control operation interface is opened, as shown in figure 8, Fig. 8 is intelligence provided in an embodiment of the present invention Audio amplifier control operation interface schematic diagram, user can select the regulation of audio amplifier regulation button progress volume in the operation interface, this Kind regulative mode is complex for operation step, and it is very inconvenient that actual use is got up;Second of implementation be:Utilize mobile terminal itself Volume adjusting physical button carry out volume adjusting, this regulative mode is not intelligent enough, and usually using produce volume button Mechanical loss so that volume button is more and more insensitive.
The content of the invention
The embodiments of the invention provide a kind of audio amplifier method for controlling volume and terminal, can improve intelligent sound box volume adjusting behaviour Make efficiency, reduce the mechanical loss of volume button.
The embodiments of the invention provide a kind of audio amplifier method for controlling volume, methods described includes:
When using terminal control intelligent sound box plays audio file, obtain and specified between the terminal and sensing object of reference Distance variation information on direction, the distance variation information include the terminal and sense the change of the distance between object of reference with described Change value and distance change direction;
According to the distance variation information, target volume control instruction is generated;
The target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box is according to the target Volume control instruction adjusts broadcast sound volume.
Accordingly, the embodiments of the invention provide a kind of terminal, the terminal to include:
Information acquisition unit, when playing audio file for using terminal control intelligent sound box, obtain the terminal and sense Distance variation information in the direction indicated between thing is should refer to, the distance variation information includes the terminal and the sensing The distance between object of reference changing value and distance change direction;
Instruction generation unit, for according to the distance variation information, generating target volume control instruction;
Instruction sending unit, for the target volume control instruction to be sent into the intelligent sound box, so that the intelligence Energy audio amplifier adjusts broadcast sound volume according to the target volume control instruction.
The embodiment of the present invention, the terminal and sense can be obtained when using terminal controls intelligent sound box to play audio file It should refer to distance variation information in the direction indicated between thing;And then according to the distance variation information, generate target volume Control instruction;The target volume control instruction is finally sent to the intelligent sound box, so that the intelligent sound box is according to institute Target volume control instruction regulation broadcast sound volume is stated, intelligent sound box volume adjusting operating efficiency can be improved, reduce volume button Mechanical loss, the mode of audio amplifier volume control is enriched, the interest of increase audio amplifier volume control, improves Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention;
Fig. 2 is another audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention;
Fig. 3 is another audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention;
Fig. 5 is information acquisition unit structural representation provided in an embodiment of the present invention;
Fig. 6 is instruction generation unit structural representation provided in an embodiment of the present invention;
Fig. 7 is intelligent sound box provided in an embodiment of the present invention and terminal connection diagram;
Fig. 8 is intelligent sound box control operation interface schematic diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
In the specific implementation, the terminal mentioned in the embodiment of the present invention includes but is not limited to:Smart mobile phone (such as Android Mobile phone, IOS mobile phones), tablet personal computer, notebook computer, palm PC, the electronic equipment such as wearable intelligent equipment.
A kind of audio amplifier method for controlling volume provided in an embodiment of the present invention and terminal are carried out below in conjunction with Fig. 1 to Fig. 8 Specifically describe.
It is a kind of audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention, as depicted referring to Fig. 1 Audio amplifier method for controlling volume may include following steps:
S101, when using terminal control intelligent sound box plays audio file, obtain between the terminal and sensing object of reference Distance variation information in the direction indicated, the distance variation information are included between the terminal and the sensing object of reference Distance change value and distance change direction.
In the specific implementation, download and install the client to match with the intelligent sound box of concrete model in the terminal first, Set in the setting menu that user can provide in the client and whether open gesture induction function.When the function is opened, eventually Built-in distance-sensor is opened at end, can detect the distance variation information between sensing object of reference in the direction indicated to adjust The volume of intelligent sound box.
Sensing object of reference be usually user finger or other there is certain volume distance-sensor can be allowed to detect The veil arrived.Distance-sensor includes but is not limited to:Ultrasonic distance-measuring sensor, infrared distance measuring sensor and Hall formula position Displacement sensor etc..
Wherein, distance variation information includes terminal with sensing the distance between object of reference changing value and distance change direction. When opening when user uses gesture induction function first or every time the function, it can prompt user that finger is positioned over into distance perspective Answer and moved up and down above device, to realize the volume of gesture induction regulation intelligent sound box.When distance-sensor detecting is in one's hands When referring in its test scope, finger and the distance value of terminal in the direction indicated are detected in real time, by once being obtained before calculating Difference between the distance value got and the distance value currently got, can obtain finger and terminal distance change value and away from From change direction.Wherein, the absolute value of difference is distance change value, and difference is positive number or negative respectively for distance change direction It is proximate to terminal or away from terminal.
S102, according to the distance variation information, generate target volume control instruction.
In the specific implementation, the volume-leveling value corresponding to unit distance value changes can be pre-set, such as unit distance becomes Change value is 0.1mm, and corresponding volume-leveling value is 0.5dB, then when being 1cm apart from changing value in distance variation information, accordingly Volume-leveling value is 5dB.Generally sensing object of reference is away from being volume increase instruction caused by terminal, close to caused by terminal For the small instruction of volume down.Therefore, the distance change value in distance variation information can calculate volume-leveling value, be become according to distance Change direction and can determine that volume increase or the small instruction of volume down, further can be according to volume-leveling value and volume increase instruction (or the small instruction of volume down) generates target volume control instruction.
S103, the target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box is according to institute State target volume control instruction regulation broadcast sound volume.
In the specific implementation, intelligent sound box after target volume control instruction is received, can adjust sound according to the control instruction Amount.For example, the target volume control instruction is that volume is increased into 5dB, then intelligent sound box according to the instruction by currently playing audio Volume used in file increases 5dB.
Further, if there is multiple intelligent sound boxes to carry out volume control, step S103 by the client in the terminal Specifically include:Intelligent target audio amplifier identification information is obtained, according to the audio amplifier identification information of the Intelligent target, to the target intelligence Can the audio amplifier transmission target volume control instruction.
In practical application scene, in order to reach more preferable acoustics or enable users to enjoy intelligence in a wider context The audio experience that audio amplifier is brought, user may set multiple intelligent sound boxes in life area, for example, bedroom, kitchen at home Intelligent sound box is both provided with room, parlor and toilet, usual user needs to be pointed to the intelligence of not chummery in this case Audio amplifier carries out single control.
User can select the Intelligent target audio amplifier to be controlled (to obtain the target intelligence for needing to control in client operation interface The identification information of energy audio amplifier), according to the identification information of Intelligent target audio amplifier, target volume control instruction is sent to Intelligent target Audio amplifier, so that Intelligent target audio amplifier adjusts volume according to target volume control instruction, user can be greatly facilitated.Wherein, target The identification information of intelligent sound box includes but is not limited to:The IP address of intelligent sound box, hardware ID, product ID etc..
In another alternative embodiment, before performing step S102, methods described also includes:Detect the terminal and institute When stating sensing the distance between object of reference and being less than or equal to the first preset value, generation mute command;The mute command is sent out Give the intelligent sound box so that the intelligent sound box broadcasting is adjusted to according to the mute command it is Jing Yin.
In practical application scene, user is provided to user and passes through gesture sometimes for intelligent sound box is Jing Yin The quick Jing Yin function of intelligent sound box is realized in sensing.The function can be less than by detecting the distance of sensing object of reference and terminal Or during equal to the first preset value, generation mute command is realized.For example, sensing object of reference is finger, the first preset value is 1mm, When finger directly to be contacted to terminal and is positioned over above the distance-sensor of terminal built-in by user, distance-sensor detects terminal Distance with finger is zero, is less than the first preset value, and now terminal generates mute command and is sent to intelligent sound box, so that Intelligent sound box is quickly Jing Yin.
In another alternative embodiment, before performing step S102, methods described also includes:Determine the distance change value More than or equal to the second preset value.
In practical application scene, user is when using gesture induction regulation intelligent sound box volume, by finger in distance perspective Answer above device has slight shake unavoidably, and now user is not intended to adjust the volume of intelligent sound box, in order to prevent such mistake Operation, can pre-set the second preset value, only when detect terminal be more than with sensing the distance between object of reference changing value or When person is equal to the second preset value, it can just perform according to distance variation information, generate target volume control instruction.
In another alternative embodiment, before performing step S103, methods described also includes:Establish and the intelligent sound box Between communication connection, described communicate to connect send target volume control to the intelligent sound box for the terminal and refer to Order.
In the specific implementation, as shown in fig. 7, Fig. 7 is intelligent sound box provided in an embodiment of the present invention and terminal connection diagram, The communication connection includes but is not limited to:WiFi, NFC (Near Field Communication, short-range communication), infrared ray and Bluetooth etc..User can open the client corresponding with the intelligent sound box of concrete model in terminal, and now, terminal is opened wireless Communicator (such as bluetooth), neighbouring bluetooth equipment is searched, according to the identification information (such as title, IP address) of Intelligent target audio amplifier Matched intelligent sound box is added, this just establishes the communication connection between terminal and intelligent sound box.
In another alternative embodiment, before step S101 is performed, methods described also includes:Determine the sensing reference The distance between thing and the terminal are less than or equal to the 3rd preset value.
In practical application scene, the use environment of terminal is extremely complex, is filled with various realities around it Body object of reference.In order that the distance-sensor in terminal can accurately identify sensing object of reference, the 3rd preset value can be pre-set, only When having the distance between the testee and terminal to be less than or equal to three preset values, the testee can just be considered as sensing Object of reference.
The embodiment of the present invention, the terminal and sense can be obtained when using terminal controls intelligent sound box to play audio file It should refer to distance variation information in the direction indicated between thing;And then according to the distance variation information, generate target volume Control instruction;The target volume control instruction is finally sent to the intelligent sound box, so that the intelligent sound box is according to institute Target volume control instruction regulation broadcast sound volume is stated, intelligent sound box volume adjusting operating efficiency can be improved, reduce volume button Mechanical loss, the mode of audio amplifier volume control is enriched, the interest of increase audio amplifier volume control, improves Consumer's Experience.
It is another audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention, as shown in the figure referring to Fig. 2 Audio amplifier method for controlling volume may include following steps:
S201, when using terminal control intelligent sound box plays audio file, receive distance perspective and answer volume adjusting to instruct, start Distance-sensor in the terminal.
The sound of gesture induction function point analysis intelligent sound box is opened in the client to match with concrete model intelligent sound box During amount, it is considered as terminal reception distance perspective and answers volume adjusting to instruct, now terminal starts the distance-sensor built in it, detects at it Can ranging with a distance from the reference inductor and terminal from the range of.
S202, detect between the terminal and sensing object of reference whether have distance in the direction indicated with Fixed Time Interval Change.
Usual distance-sensor can only measure the distance with testee in the direction indicated, such as side on a terminal screen Headphone installation infrared distance measuring sensor, be typically only possible by the infrared distance measuring sensor measurement infrared emitting side Upward the distance between terminal and testee.
Distance value of the distance-sensor between Fixed Time Interval detection terminal and sensing object of reference in the direction indicated, It is whether equal with the distance value currently obtained by the distance value that once obtains before relatively, come judge terminal and sense object of reference it Between whether have distance change.Step S203~S206 is just performed when there is distance change, to realize the volume for adjusting intelligent sound box; Do not have just to continue executing with this step during distance change.
S203, obtain the terminal with it is described sensing object of reference the distance between changing value and distance change direction.
In the specific implementation, distance change value be by the terminal that once obtains before calculating with sense object of reference distance value and Difference between the distance value currently obtained calculates.The absolute value of the difference is distance change value, difference be positive number or Negative is proximate to terminal or away from terminal for distance change direction respectively.
S204, according to the distance change value, calculate volume-leveling value.
In the specific implementation, the volume-leveling value corresponding to unit distance value changes can be pre-set, such as unit distance becomes Change value is 0.1mm, and corresponding volume-leveling value is 0.5dB, then when being 1cm apart from changing value in distance variation information, accordingly Volume-leveling value is 5dB.
S205, according to the distance change direction, it is volume increase instruction or volume down to determine target volume control instruction Small instruction.
Object of reference is generally sensed away from being volume increase instruction caused by terminal, and caused close to terminal is volume down Small instruction.Can be to determine target volume control instruction according to step S204 and step S205.
S206, the target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box is according to institute State target volume control instruction regulation broadcast sound volume.
Intelligent sound box can adjust volume after target volume control instruction is received according to the control instruction.For example, the mesh Mark with phonetic symbols amount control instruction is volume increase instruction, and the volume-leveling value carried is 5dB, then intelligent sound box is according to the target volume Volume used in currently playing audio file is increased 5dB by control instruction.
The embodiment of the present invention, distance perspective can be received and answer volume adjusting to instruct, start the distance-sensor in terminal, detection is eventually The distance change value in the direction indicated between sensing object of reference and distance change direction are held, and according to distance change value meter Volume-leveling value is calculated, determines it is volume increase instruction or the small instruction of volume down according to distance change direction, and then according to volume Regulated value and volume increase or the small instruction generation target volume control instruction of volume down, are last transmitted to intelligent sound box, so that intelligence Energy audio amplifier carries out volume adjusting according to the target volume control instruction.Intelligent sound box volume adjusting operating efficiency can be improved, is reduced The mechanical loss of volume button, the mode of audio amplifier volume control is enriched, the interest of increase audio amplifier volume control, improves user's body Test.
It is another audio amplifier method for controlling volume schematic flow sheet provided in an embodiment of the present invention, as shown in the figure referring to Fig. 3 Audio amplifier method for controlling volume may include following steps:
S301, when using terminal control intelligent sound box plays audio file, receive distance perspective and answer volume adjusting to instruct, start Distance-sensor in the terminal.
When the volume of gesture induction regulation intelligent sound box is opened in the client that concrete model intelligent sound box matches, depending on Receiving distance perspective for terminal answers volume adjusting to instruct, and now terminal starts the distance-sensor built in it, and detecting can ranging at it With a distance from object and terminal from the range of.Distance-sensor includes but is not limited to:Ultrasonic distance-measuring sensor, infrared distance measuring Sensor and Hall displacement sensor etc..
S302, it is determined that sensing the distance between object of reference and the terminal are less than or equal to the 3rd preset value.
Sensing object of reference be usually user finger or other there is certain volume distance-sensor can be allowed to detect The veil arrived.In practical application scene, the use environment of terminal is extremely complex, is filled with around it various Entity object of reference.In order that the distance-sensor in terminal can accurately identify sensing object of reference, the 3rd preset value can be pre-set, When only the distance between testee and terminal are less than or equal to three preset values, the testee can just be considered as feeling It should refer to thing.
Whether S303, detected with Fixed Time Interval between the terminal and the sensing object of reference has in the direction indicated Distance change.
Distance value of the distance-sensor between Fixed Time Interval detection terminal and sensing object of reference in the direction indicated, It is whether equal with the distance value currently obtained by the distance value that once obtains before relatively, come judge terminal and sense object of reference it Between whether have distance change.Step S304~S308 is just performed when there is distance change, to realize the volume for controlling intelligent sound box.
S304, distance variation information in the direction indicated between the terminal and the sensing object of reference is obtained, it is described Distance variation information includes the terminal and senses the distance between object of reference changing value and distance change direction with described.
S305, determine that the distance change value is more than or equal to the second preset value.
In practical application scene, user is when using gesture induction regulation intelligent sound box volume, by finger in distance perspective Answer above device has slight shake unavoidably, and now user is not intended to adjust the volume of intelligent sound box, in order to prevent such mistake Operation, can pre-set the second preset value, only when detect terminal be more than with sensing the distance between object of reference changing value or When person is equal to the second preset value, it can just perform according to distance variation information, generate target volume control instruction.
S306, according to the distance change value, calculate volume-leveling value.
In the specific implementation, the volume-leveling value corresponding to unit distance value changes can be pre-set, such as unit distance becomes Change value is 0.1mm, and corresponding volume-leveling value is 0.5dB, then when being 1cm apart from changing value in distance variation information, accordingly Volume-leveling value is 5dB.
S307, according to the distance change direction, it is volume increase instruction or volume down to determine target volume control instruction Small instruction.
Usual sensing object of reference is volume caused by close terminal away from being volume increase instruction caused by terminal Reduce instruction.Can be to determine target volume control instruction according to step S306 and step S307.
S308, the target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box is according to institute State target volume control instruction regulation broadcast sound volume.
Intelligent sound box can adjust volume after target volume control instruction is received according to the control instruction.For example, the mesh Mark with phonetic symbols amount control instruction is volume increase instruction, and the volume-leveling value carried is 5dB, then intelligent sound box is according to the target volume Volume used in currently playing audio file is increased 5dB by control instruction.
The embodiment of the present invention, sensing object of reference can be determined first after distance-sensor starts, it is then determined that sensing ginseng When being more than or equal to the second preset value according to the distance change value of thing and terminal, volume change value is calculated according to distance change value, Determine it is volume increase instruction or the small instruction of volume down according to distance change direction, and then generate corresponding target volume control Instruction, is sent to intelligent sound box to adjust volume.Some maloperations using gesture induction regulation audio amplifier volume can be avoided, may be used also Intelligent sound box volume adjusting operating efficiency is improved, reduces the mechanical loss of volume button, enriches the mode of audio amplifier volume control, is increased The interest of summation tone case volume control, improves Consumer's Experience.
Referring to Fig. 4, a kind of terminal structure schematic diagram provided in an embodiment of the present invention, as shown in the figure terminal can at least wrap Include:Information acquisition unit 401, instruction generation unit 402 and instruction sending unit 403.
Information acquisition unit 401, for using terminal control intelligent sound box play audio file when, obtain the terminal with Distance variation information between sensing object of reference in the direction indicated, the distance variation information include the terminal and the sense It should refer to the distance between thing changing value and distance change direction.
In the specific implementation, download and install the client to match with the intelligent sound box of concrete model in the terminal first, Set in the setting menu that user can provide in the client and whether open gesture induction function.It is usually to use to sense object of reference The finger at family or other there is the veil that certain volume can allow distance-sensor to detect.Used first in user Or when opening the function every time, can prompt user that finger is positioned over above distance-sensor and move up and down, come real Existing gesture induction regulation intelligent sound box volume.
Further alternative, referring to Fig. 5, Fig. 5 is information acquisition unit structural representation provided in an embodiment of the present invention, such as Information acquisition unit 401 shown in figure may include:Distance change detection sub-unit 4101 and range information obtain subelement 4102.
Distance change detection sub-unit 4101, answer volume adjusting to instruct for receiving distance perspective, start the distance in terminal Whether inductor, detected with Fixed Time Interval between the terminal and the sensing object of reference has distance to become in the direction indicated Change.
Range information obtain subelement 4102, for obtain the terminal with it is described sensing object of reference the distance between become Change value and distance change direction.
The sound of gesture induction function point analysis intelligent sound box is opened in the client to match with concrete model intelligent sound box During amount, it is considered as the reception of distance change detection sub-unit 4101 distance perspective and answers volume adjusting to instruct, now start built-in distance perspective Device is answered, detects the distance variation information between sensing object of reference in the direction indicated to adjust the volume of intelligent sound box.Should be away from Include but is not limited to from inductor:Ultrasonic distance-measuring sensor, infrared distance measuring sensor and Hall displacement sensor etc..
Usual distance-sensor can only measure the distance with testee in the direction indicated, such as side on a terminal screen Headphone installation infrared distance measuring sensor, be typically only possible by the infrared distance measuring sensor measurement infrared emitting side Upward the distance between terminal and testee.Distance-sensor is between Fixed Time Interval detection terminal and sensing object of reference Distance value in the direction indicated, distance change detection sub-unit 4101 is by the distance value that once obtains before relatively with currently obtaining Whether the distance value taken is equal, to judge whether there is distance change between terminal and sensing object of reference.
When distance change detection sub-unit 4101 detects sensing object of reference in its test scope, detection sensing in real time Object of reference and the distance value of terminal in the direction indicated, range information obtain subelement 4102 by once getting before calculating Difference between distance value and the distance value currently got, can obtain sensing object of reference and terminal distance change value and away from From change direction.
Instruction generation unit 402, for according to the distance variation information, generating target volume control instruction.
Further alternative, referring to Fig. 6, Fig. 6 is instruction generation unit structural representation provided in an embodiment of the present invention, such as The described instruction generation unit 402 of figure may include:Adjust volume computation subunit 4201 and volume instructions determination subelement 4202.
Volume computation subunit 4201 is adjusted, for according to the distance change value, calculating volume-leveling value.
Volume instructions determination subelement 4202, for according to the distance change direction, determining target volume control instruction It is volume increase instruction or the small instruction of volume down.
In the specific implementation, the volume-leveling value corresponding to unit distance value changes can be pre-set, such as unit distance becomes Change value is 0.1mm, and corresponding volume-leveling value is 0.5dB, then when being 1cm apart from changing value in distance variation information, adjusts sound It is 5dB that amount computation subunit 4201, which calculates corresponding volume-leveling value,.Generally sensing object of reference is away from being sound caused by terminal Amount increase instructs, and is the small instruction of volume down caused by close terminal.Therefore, volume computation subunit 4201 and volume are adjusted Distance change value of the determination subelement 4202 in distance variation information is instructed to calculate volume-leveling value, according to distance change Direction can determine that volume increase or the small instruction of volume down, further can be according to volume-leveling value and volume increase instruction (or the small instruction of volume down) generates target volume control instruction.
Instruction sending unit 403, for the target volume control instruction to be sent into the intelligent sound box, so that described Intelligent sound box adjusts broadcast sound volume according to the target volume control instruction.
In the specific implementation, intelligent sound box after target volume control instruction is received, can adjust sound according to the control instruction Amount.For example, the target volume control instruction is that volume is increased into 5dB, then intelligent sound box according to the instruction by currently playing audio Volume used in file increases 5dB.
In another alternative embodiment, the instruction generation unit 402, it is additionally operable to according to the distance variation information, it is raw Into before the target volume control instruction, detect that the terminal is less than or waited with described sensing the distance between object of reference When the first preset value, mute command is generated;
The instruction sending unit 403, it is additionally operable to the mute command being sent to the intelligent sound box, so that the intelligence Broadcasting is adjusted to Jing Yin by energy audio amplifier according to the mute command.
In practical application scene, user is provided to user and passes through gesture sometimes for intelligent sound box is Jing Yin The quick Jing Yin function of intelligent sound box is realized in sensing.The function can be less than by detecting the distance of sensing object of reference and terminal Or during equal to the first preset value, generation mute command is realized.For example, sensing object of reference is finger, the first preset value is 1mm, When finger directly to be contacted to terminal and is positioned over above the distance-sensor of terminal built-in by user, distance-sensor detects terminal Distance with finger is zero, is less than the first preset value, and now instruction generation unit 402 generates mute command, passes through instruction Transmitting element 403 is sent to intelligent sound box, so that intelligent sound box is quickly Jing Yin.
In another alternative embodiment, the terminal also includes:Distance determining unit 404, it is single for the instruction generation Member 402 before generating the target volume control instruction, determines that the distance change value is more than according to the distance variation information Or equal to the second preset value.
In practical application scene, user is when using gesture induction regulation intelligent sound box volume, by finger in distance perspective Answer above device has slight shake unavoidably, and now user is not intended to adjust the volume of intelligent sound box, in order to prevent such mistake Operation, the second preset value can be pre-set, only distance determining unit 404 detects terminal with sensing the distance between object of reference When changing value is more than or equal to the second preset value, instruction generation unit 402 just can generate target sound according to distance variation information Measure control instruction.
In another alternative embodiment, the terminal also includes:Unit 405 is established in communication connection, for the instruction hair Send before the target volume control instruction is sent to the intelligent sound box by unit 403, establish and established with the intelligent sound box Communication connection, described communicate to connect send the target volume control instruction for the terminal to the intelligent sound box.
In the specific implementation, as shown in fig. 7, Fig. 7 is intelligent sound box provided in an embodiment of the present invention and terminal connection diagram, The communication connection includes but is not limited to:WiFi, NFC, infrared ray and bluetooth etc..User can open and concrete model in terminal The corresponding client of intelligent sound box, now, communication connection establish unit 405 and open radio communication device (such as bluetooth), search Neighbouring bluetooth equipment, matched intelligence is added according to the identification information (such as title, IP address) of Intelligent target audio amplifier Audio amplifier, this just establishes the communication connection between terminal and intelligent sound box.
In another alternative embodiment, the distance determining unit 404, it is additionally operable to described information acquiring unit 401 and obtains Before distance variation information between the terminal and sensing object of reference in the direction indicated, the sensing object of reference and institute are determined State the distance between terminal and be less than or equal to the 3rd preset value.
In practical application scene, the use environment of terminal is extremely complex, is filled with various realities around it Body object of reference.In order that the distance-sensor in terminal can accurately identify sensing object of reference, the 3rd preset value can be pre-set, only There is distance determining unit 404 to determine the distance between testee and terminal when being less than or equal to three preset values, the quilt Surveying object can just be considered as sensing object of reference.
The embodiment of the present invention, the terminal and sense can be obtained when using terminal controls intelligent sound box to play audio file It should refer to distance variation information in the direction indicated between thing;And then according to the distance variation information, generate target volume Control instruction;The target volume control instruction is finally sent to the intelligent sound box, so that the intelligent sound box is according to institute Target volume control instruction regulation broadcast sound volume is stated, intelligent sound box volume adjusting operating efficiency can be improved, reduce volume button Mechanical loss, the mode of audio amplifier volume control is enriched, the interest of increase audio amplifier volume control, improves Consumer's Experience.
It should be noted that for foregoing each embodiment of the method, in order to be briefly described, therefore it is all expressed as to a system The combination of actions of row, but those skilled in the art should know, the application is not limited by described sequence of movement, because For according to the application, certain some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and unit not necessarily this Shen Please be necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiment Part, may refer to the associated description of other embodiment.
A kind of audio amplifier method for controlling volume and terminal disclosed in the embodiment of the present invention are described in detail above, the above Disclosed is only present pre-ferred embodiments, can not limit the interest field of the present invention with this certainly, therefore according to this The equivalent variations that invention claim is made, still belong to the scope that the present invention is covered.

Claims (8)

  1. A kind of 1. audio amplifier method for controlling volume, it is characterised in that including:
    Using terminal control intelligent sound box play audio file when, determine the distance between testee and the terminal be less than or Person is equal to the 3rd preset value, when the distance between testee and terminal are less than or equal to three preset values, determines institute Testee is stated as sensing object of reference;The distance change between the terminal and sensing object of reference in the direction indicated is obtained to believe Breath, the distance variation information include the terminal and sense the distance between object of reference changing value and distance change side with described To;
    Determine that the distance change value is more than or equal to the second preset value;
    When detecting that terminal is more than or equal to the second preset value with the distance between sensing object of reference changing value, according to described Distance variation information, generate target volume control instruction;
    The target volume control instruction is sent to the intelligent sound box, so that the intelligent sound box is according to the target volume Control instruction adjusts broadcast sound volume;
    The target volume control instruction includes volume increase instruction or the small instruction of volume down, and carries volume-leveling value;
    It is described to be included according to the distance variation information, generation target volume control instruction:
    According to the distance change value, volume-leveling value is calculated;
    According to the distance change direction, it is volume increase instruction or the small instruction of volume down to determine target volume control instruction.
  2. 2. according to the method for claim 1, it is characterised in that it is described according to the distance variation information, generate target sound Before measuring control instruction, in addition to:
    When detecting that the distance between the terminal and described sensing object of reference are less than or equal to the first preset value, generation is Jing Yin Instruction;
    The mute command is sent to the intelligent sound box, adjusted so that the intelligent sound box will play according to the mute command Save to be Jing Yin.
  3. 3. according to the method for claim 1, it is characterised in that it is described obtain between the terminal and sensing object of reference away from Include from change information:
    Receiving distance perspective answers volume adjusting to instruct, and starts the distance-sensor in the terminal, and institute is detected with Fixed Time Interval Whether state between terminal and the sensing object of reference has distance change in the direction indicated;
    If so, obtain the terminal with it is described sensing object of reference the distance between changing value and distance change direction.
  4. 4. according to the method for claim 1, it is characterised in that it is described the target volume control instruction is sent to it is described Before intelligent sound box, in addition to:
    The communication connection established between the intelligent sound box, described communicate to connect are sent out for the terminal to the intelligent sound box Send the target volume control instruction.
  5. 5. a kind of terminal, it is characterised in that the terminal includes:
    Distance determining unit, for determining that the distance between testee and the terminal are less than or equal to the 3rd preset value; When the distance between the testee and terminal are less than or equal to three preset value, determine that the testee is Sense object of reference;
    Information acquisition unit, when playing audio file for using terminal control intelligent sound box, obtain the terminal and the sense Distance variation information in the direction indicated between thing is should refer to, the distance variation information includes the terminal and the sensing The distance between object of reference changing value and distance change direction;
    The distance determining unit, it is additionally operable to generate target volume control according to the distance variation information in instruction generation unit Before system instruction, determine that the distance change value is more than or equal to the second preset value;
    Instruction generation unit, for according to the distance variation information, when the distance determining unit determines that terminal is joined with sensing When being more than or equal to the second preset value according to the distance between thing changing value, target volume control instruction is generated;
    Instruction sending unit, for the target volume control instruction to be sent into the intelligent sound box, so that the intelligent sound Case adjusts broadcast sound volume according to the target volume control instruction;
    The target volume control instruction includes volume increase instruction or the small instruction of volume down, and carries volume-leveling value;
    The instruction generation unit includes:
    Volume computation subunit is adjusted, for according to the distance change value, calculating volume-leveling value;
    Volume instructions determination subelement, for according to the distance change direction, it to be that volume increases to determine target volume control instruction Big instruction or the small instruction of volume down.
  6. 6. terminal according to claim 5, it is characterised in that
    The instruction generation unit, it is additionally operable to according to the distance variation information, before generating the target volume control instruction, When detecting that the distance between the terminal and described sensing object of reference are less than or equal to the first preset value, Jing Yin finger is generated Order;
    The instruction sending unit, it is additionally operable to the mute command being sent to the intelligent sound box, so that the intelligent sound box Broadcasting is adjusted to according to the mute command Jing Yin.
  7. 7. terminal according to claim 5, it is characterised in that described information acquiring unit includes:
    Distance change detection sub-unit, answer volume adjusting to instruct for receiving distance perspective, start the distance-sensor in terminal, with Fixed Time Interval detects between the terminal and the sensing object of reference whether have distance change in the direction indicated;
    Range information obtain subelement, for obtain the terminal with it is described sensing object of reference the distance between changing value and away from From change direction.
  8. 8. terminal according to claim 5, it is characterised in that the terminal also includes:
    Unit is established in communication connection, and the target volume control instruction is sent into the intelligence for the instruction sending unit Before audio amplifier, establish to establish with the intelligent sound box and communicate to connect, it is described to communicate to connect for the terminal to the intelligent sound Case sends the target volume control instruction.
CN201510148953.7A 2015-03-31 2015-03-31 A kind of audio amplifier method for controlling volume and terminal Expired - Fee Related CN104811862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510148953.7A CN104811862B (en) 2015-03-31 2015-03-31 A kind of audio amplifier method for controlling volume and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510148953.7A CN104811862B (en) 2015-03-31 2015-03-31 A kind of audio amplifier method for controlling volume and terminal

Publications (2)

Publication Number Publication Date
CN104811862A CN104811862A (en) 2015-07-29
CN104811862B true CN104811862B (en) 2018-03-27

Family

ID=53696272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510148953.7A Expired - Fee Related CN104811862B (en) 2015-03-31 2015-03-31 A kind of audio amplifier method for controlling volume and terminal

Country Status (1)

Country Link
CN (1) CN104811862B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824256A (en) * 2016-03-09 2016-08-03 联想(北京)有限公司 Control method, controller and electronic equipment
CN106231494A (en) * 2016-08-31 2016-12-14 北海华源电子有限公司 The intelligent sound equipment of volume can be adjusted according to distance
CN106331371A (en) * 2016-09-14 2017-01-11 维沃移动通信有限公司 Volume adjustment method and mobile terminal
CN106448672B (en) * 2016-10-27 2020-07-14 Tcl通力电子(惠州)有限公司 Sound system and control method
CN107833585A (en) * 2017-12-06 2018-03-23 温四妹 A kind of Intelligent adjustment music player
CN108271066A (en) * 2018-02-22 2018-07-10 宁夏乐智博科技有限公司 Music playing system and method for playing music
CN109521684B (en) * 2018-11-23 2022-06-17 维沃移动通信(杭州)有限公司 Household equipment control method and terminal equipment
CN110519450B (en) * 2019-07-31 2021-04-09 Oppo广东移动通信有限公司 Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium
CN110418023B (en) * 2019-07-31 2021-08-17 Oppo广东移动通信有限公司 Ring processing method, device, mobile terminal and storage medium
CN114615599A (en) * 2022-03-11 2022-06-10 游密科技(深圳)有限公司 Audio processing method, apparatus, computer device, storage medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470550A (en) * 2007-12-25 2009-07-01 英业达股份有限公司 Portable electronic device and its non-contact control method
CN101963862A (en) * 2010-09-26 2011-02-02 苏州瀚瑞微电子有限公司 Coordinate anti-trembling method on touch screen
CN102109947A (en) * 2009-12-24 2011-06-29 联咏科技股份有限公司 Control method, control device and electronic device
CN102868832A (en) * 2012-10-10 2013-01-09 西安北斗星数码信息股份有限公司 Sound system controlled by mobile phone
CN103294381A (en) * 2012-03-02 2013-09-11 富泰华工业(深圳)有限公司 Electronic device and volume adjustment method thereof
CN103546841A (en) * 2013-10-16 2014-01-29 广州番禺巨大汽车音响设备有限公司 Method and system for controlling digital sound volume based on WIFI (wireless fidelity)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141198B2 (en) * 2013-01-08 2015-09-22 Infineon Technologies Ag Control of a control parameter by gesture recognition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470550A (en) * 2007-12-25 2009-07-01 英业达股份有限公司 Portable electronic device and its non-contact control method
CN102109947A (en) * 2009-12-24 2011-06-29 联咏科技股份有限公司 Control method, control device and electronic device
CN101963862A (en) * 2010-09-26 2011-02-02 苏州瀚瑞微电子有限公司 Coordinate anti-trembling method on touch screen
CN103294381A (en) * 2012-03-02 2013-09-11 富泰华工业(深圳)有限公司 Electronic device and volume adjustment method thereof
CN102868832A (en) * 2012-10-10 2013-01-09 西安北斗星数码信息股份有限公司 Sound system controlled by mobile phone
CN103546841A (en) * 2013-10-16 2014-01-29 广州番禺巨大汽车音响设备有限公司 Method and system for controlling digital sound volume based on WIFI (wireless fidelity)

Also Published As

Publication number Publication date
CN104811862A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN104811862B (en) A kind of audio amplifier method for controlling volume and terminal
US9978261B2 (en) Remote controller and information processing method and system
EP2960882B1 (en) Display device and operating method thereof
CN105608861B (en) Control method of electronic device and device
CN104484045B (en) Audio play control method and device
TWI531972B (en) Systems and methods for automatically invoking certain operations in mobile phones
CN108600059A (en) Apparatus control method and Related product
CN105227983B (en) Control method for playing back, remote control device and the television system of media application
JP2013532338A (en) Method and apparatus for gesture based remote control
CN106303733B (en) Method and device for playing live special effect information
CN109870984B (en) Multi-household-appliance control method based on wearable device
CN104765548A (en) Voice box play control method and terminal
US9188965B2 (en) Control device including a protocol translator
CN108055403A (en) A kind of audio method of adjustment, terminal and computer readable storage medium
CN104122999A (en) Intelligent device interaction method and system
CN109996148B (en) Intelligent kitchen multimedia playing system
CN104580697B (en) In the apparatus and method of the volume of portable terminal control electronics
KR101379191B1 (en) Method and Apparatus for Providing Universal Remote Control Based on Motion Control Sensing
CN109960456B (en) Virtual key layout generation method and terminal equipment
US20060129408A1 (en) A remote control device and method with speech control
CN105204767B (en) A kind of touching telecontrol method and mobile terminal
CN111142396A (en) Information display method and electronic equipment
CN103974112A (en) Method and device for controlling television
CN105159648A (en) Voice information output method and electronic equipment
CN105578351A (en) Music playing method for intelligent sound box system and intelligent sound box system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180327