Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of call control method and device, realize
In communication process, user can adjust the function of In Call using one hand by way of shaking terminal, solve existing
Have and adjusts the cumbersome and inconvenient problem of volume operation in the communication process of technology.
In a first aspect, the embodiment of the invention provides a kind of call control methods, it may include:
When terminal is in audio call or voice call state, the shake state of the terminal is monitored, and generates shake ginseng
Number;
When the shake parameter meets preset condition, regulating command is generated;
According to the regulating command, the volume of the terminal voice call or voice communication is adjusted.
With reference to first aspect, in the first possible implementation, the shake parameter includes acceleration value, shift value
With shake number;
It is described when the shake parameter meets preset condition, generate regulating command, comprising:
Judge the acceleration value, shift value and shakes whether number reaches preset threshold;
If so, generating regulating command.
With reference to first aspect, in the second possible implementation, described when the shake parameter meets preset condition
When, generate regulating command, comprising:
When the shake parameter meets preset condition, the switch state of the loudspeaker of the terminal is detected;
When the loudspeaker in the open state, generate the regulating command for closing the loudspeaker;
When the loudspeaker is in close state, the regulating command for opening the loudspeaker is generated.
With reference to first aspect, in the third possible implementation, described when the shake parameter meets preset condition
When, generate regulating command, comprising:
Determine preset parameter range belonging to the shake parameter;
Corresponding default volume is determined according to the preset parameter range;
It generates the regulating command of the audio call of the terminal or the volume adjustment of voice communication to the default volume.
The third possible implementation with reference to first aspect, it is in the fourth possible implementation, described to work as institute
It states and shakes parameter when meeting preset condition, before generating regulating command, further includes:
The corresponding relationship of preset parameter range Yu default volume is stored in advance.
Second aspect, the embodiment of the invention provides a kind of call control apparatus, it may include:
State detection module monitors the shake of the terminal when being in audio call or voice call state for terminal
State, and generate shake parameter;
Directive generation module, for generating regulating command when the shake parameter meets preset condition;
Volume adjusting module, for adjusting the sound of the terminal voice call or voice communication according to the regulating command
Amount.
In conjunction with second aspect, in the first possible implementation, the shake parameter includes acceleration value, shift value
With shake number;
Described instruction generation module, comprising:
Judging unit, for judging the acceleration value, shift value and shaking whether number reaches preset threshold;
Generation unit, for if the determination result is YES, generating regulating command.
In conjunction with second aspect, in the second possible implementation, described instruction generation module, comprising:
Detection unit, for detecting the switch of the loudspeaker of the terminal when the shake parameter meets preset condition
State;
First generation unit generates the adjusting for closing the loudspeaker for working as the loudspeaker in the open state
Instruction;
Second generation unit, for generating the adjusting for opening the loudspeaker when the loudspeaker is in close state
Instruction.
In conjunction with second aspect, in the third possible implementation, described instruction generation module, comprising:
First determination unit, for determining preset parameter range belonging to the shake parameter;
Second determination unit, for determining corresponding default volume according to the preset parameter range;
Third generation unit, for generating the audio call of the terminal or the volume adjustment of voice communication to described pre-
If the regulating command of volume.
In conjunction with the third possible implementation of second aspect, in the fourth possible implementation, described device,
Further include:
Memory module, for the corresponding relationship of preset parameter range Yu default volume to be stored in advance.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention, by monitoring shaking for the terminal when terminal is in audio call or voice call state
Dynamic state, and generate shake parameter;When the shake parameter meets preset condition, regulating command is generated;According to the adjusting
Instruction, adjusts the volume of the terminal voice call or voice communication.I.e. user can be subjective caused by big because of ambient noise
It is unintelligible or in the case that objectively call sound is small in sense of hearing, pass through singlehanded terminal of shaking and realizes that the call of big volume needs
It asks, it is user-friendly, promote user experience.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Although it should be understood that using the descriptions methods such as term first, second or unit, these methods herein
Or unit should should not be limited by these terms, these terms are only used to distinguish one another.It should be noted that of the invention real
Applying term used in example is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments.Of the invention real
"an", " described " and the "the" for applying example and singular used in the attached claims are also intended to including most shapes
Formula, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and includes
One or more associated any or all of project listed may combine.
It should be noted that the terminal in the embodiment of the present invention can including but not limited to carry out audio call and voice is logical
The smart phone of words, tablet computer, media player, smart television, Intelligent bracelet, intelligent wearable device, MP3 player
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3),
MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level
3) player, personal digital assistant (Personal Digital Assistant, PDA) and pocket computer on knee.
Fig. 1 is the flow diagram of one of embodiment of the present invention call control method, below in conjunction with attached drawing 1 from end
The unilateral side at end describes to one of embodiment of the present invention call control method in detail, as shown in Figure 1, in the present embodiment
A kind of call control method may comprise steps of S101- step S103.
Step S101: when terminal is in audio call or voice call state, the shake state of the terminal is monitored, and raw
At shake parameter.
Specifically, the audio call in the present invention is that calling party carries out audio call and goes back the state of access failure, shape of conversing
State is then that calling party or callee are in the state connected and conversed.When monitoring that terminal is in shake state, can touch end
Vibrating sensor inside end, vibrating sensor send a signal to corresponding processing routine, to extract the acceleration currently shaken
The characteristic parameters such as degree, displacement or number, generate and shake parameter.
Step S102: when the shake parameter meets preset condition, regulating command is generated.
Specifically, excessively slow due to that may have the speed that the amplitude of shake is too small, shake number is less or shakes
Equal maloperations situation, i.e., non-effective shake operation are determined as having so judging to meet preset condition when according to shake parameter
When effect operation, volume adjustment instruction just is generated according to preset rules, to reduce because of mistuning section caused by maloperation.Preferably, raw
At regulating command can be and adjust the instruction of volume, be also possible to switch and converse hands-free instruction, as long as finally can
Realize that the form for adjusting In Call belongs to the range that present invention protection is covered.It is understood that specific regulating command
Adjusting content can also be adjusted correspondingly according to the actual volume state of terminal current talking, such as current talking volume
Maximum, then preferred regulating command is to turn volume down;If current In Call is minimum, preferred adjust refers to
It enables to tune up volume.
Step S103: according to the regulating command, the volume of the terminal voice call or voice communication is adjusted.
Specifically, according to the regulating command generated in step S102, the terminal voice call or voice communication are adjusted
Volume, to realize the volume of the i.e. controllable call of user's one hand.In one possible implementation, if regulating command is to increase
The volume of current audio call or voice communication, the micro-control unit (Microcontroller Unit, MCU) in terminal
Downlink voice is input to power amplifier driving loudspeaker, the output power of loudspeaker is improved, realizes the call demand of big volume;If
Regulating command is to reduce the volume of current audio call or voice communication, and downlink voice input is directly passed through driving by MCU
Loudspeaker output, without additional power works module, In Call can restore normal level.
The embodiment of the present invention, by monitoring shaking for the terminal when terminal is in audio call or voice call state
Dynamic state, and generate shake parameter;When the shake parameter meets preset condition, regulating command is generated;According to the adjusting
Instruction, adjusts the volume of the terminal voice call or voice communication.I.e. user can be subjective caused by big because of ambient noise
It is unintelligible or in the case that objectively call sound is small in sense of hearing, pass through singlehanded terminal of shaking and realizes that the call of big volume needs
It asks, it is user-friendly, promote user experience.
Fig. 2 is the flow diagram of another call control method in the embodiment of the present invention, below in conjunction with attached drawing 2 from
The unilateral side of terminal describes to another call control method in the embodiment of the present invention in detail, as shown in Fig. 2, the present invention is real
Applying another call control method in example may comprise steps of S201- step S204.
Step S201: when terminal is in audio call or voice call state, the shake state of the terminal is monitored, and raw
At shake parameter.
Specifically, it can correspond to reference to the method and step S101 in Fig. 1 embodiment, details are not described herein.
Step S202: judge the acceleration value, shift value and shake whether number reaches preset threshold.
Specifically, the shake parameter includes acceleration value, shift value and shakes number, shakes ginseng in judgment step S201
Whether acceleration value, shift value and shake number in number reach preset threshold.
Step S203: if so, generating regulating command.
Specifically, if the acceleration value shaken in parameter in step S201, shift value and shake number reach preset threshold,
It then can determine that as effective shake instruction, i.e., generate regulating command according to preset rules.
Further, the step S202 to step S203 in above-described embodiment, can also pass through embodiment party in detail below
Formula is realized:
When the shake parameter meets preset condition, the switch state of the loudspeaker of the terminal is detected;
When the loudspeaker in the open state, generate the regulating command for closing the loudspeaker;
When the loudspeaker is in close state, the regulating command for opening the loudspeaker is generated.
Specifically, when the shake parameter meets preset condition, it is also non-hands-free that detection terminal, which is presently at hands-free,
State can determine whether currently to need to be adjusted to normal condition for hands-free for user if being hands-free state, that is, generates to close and raise
The regulating command of sound device;If current state is may determine that and is currently needed for user by non-hands-free tune in non-hands-free state
Section is hands-free state, that is, generates the regulating command for opening loudspeaker.
Step S204: according to the regulating command, the volume of the terminal voice call or voice communication is adjusted.
Specifically, it can correspond to reference to the method and step S103 in Fig. 1 embodiment, details are not described herein.
The embodiment of the present invention, by monitoring shaking for the terminal when terminal is in audio call or voice call state
Dynamic state, and generate shake parameter;When the shake parameter meets preset condition, regulating command is generated;According to the adjusting
Instruction, adjusts the volume of the terminal voice call or voice communication.I.e. user can be subjective caused by big because of ambient noise
It is unintelligible or in the case that objectively call sound is small in sense of hearing, pass through singlehanded terminal of shaking and realizes that the call of big volume needs
It asks, it is user-friendly, promote user experience.
Fig. 3 is the flow diagram of another call control method in the embodiment of the present invention, below in conjunction with attached drawing 3 from
The unilateral side of terminal describes to another call control method in the embodiment of the present invention in detail, as shown in figure 3, the present invention is real
Applying another call control method in example may comprise steps of S301- step S306.
Step S301: the corresponding relationship of preset parameter range Yu default volume is stored in advance.
Specifically, user can be accustomed to according to the shake habit of oneself and the sense of hearing, preset parameter area and with the ginseng
The corresponding specific volume of number range.It, then can be corresponding such as when the smaller slower speed shake mobile phone of user's habit
Preset parameter range is arranged in lesser numberical range on ground, when user's habit shakes mobile phone with larger faster speed, then
Correspondingly preset parameter range can be arranged within the scope of bigger numerical, in order to more meet the use habit of user.
Step S302: when terminal is in audio call or voice call state, the shake state of the terminal is monitored, and raw
At shake parameter.
Specifically, it can correspond to reference to the method and step S101 in Fig. 1 embodiment, details are not described herein.
Step S303: preset parameter range belonging to the shake parameter is determined.
Specifically, it according to the corresponding relationship that preset parameter range Yu default volume is stored in advance in step S301, determines
Shake preset parameter range belonging to parameter.
Step S304: corresponding default volume is determined according to the preset parameter range.
Specifically, it according to the preset parameter range where the shake parameter determined in step S303, searches and determines that this is pre-
The corresponding default volume of setting parameter range.
Step S305: it generates the audio call of the terminal or the volume adjustment of voice communication to the default volume
Regulating command.
Specifically, generation determines the audio call of the terminal or the volume adjustment of voice communication into step S304 pre-
If the regulating command of volume.
Step S306: according to the regulating command, the volume of the terminal voice call or voice communication is adjusted.
Specifically, the regulating switch loudspeaker in the method embodiment relative to the generation in the corresponding embodiment of Fig. 2 is
Hands-free instruction is switched, more accurately, specific volume can be more accurately adjusted to, in order to more adapt to user's
Listening habit.
In specific application scenarios, as shown in figure 4, Fig. 4 is a tool of call control method in the embodiment of the present invention
Body application scenarios schematic diagram, such as user in communication process, terminal initial state is in normal talking state in Fig. 4, when by
In the noisy of ambient enviroment or because other side converses, sound is smaller, needs to open hand-free function, then can be by certain
Amplitude, dynamics or number shake mobile phone, carry out the opening of hand-free function, it can pass through the singlehanded control for completing hand-free call
System.
In specific application scenarios, as shown in figure 5, Fig. 5 be in the embodiment of the present invention call control method another
Concrete application scene schematic diagram, such as user in communication process, terminal initial state is in the lesser call shape of volume in Fig. 5
State, when due to the noisy of ambient enviroment or because other side converse sound it is smaller, when needing to tune up the volume of call, then may be used
To shake mobile phone by certain amplitude, dynamics or number, the volume of the call of terminal is adjusted, i.e. user can pass through list
The control of hand completion In Call.Concrete implementation scheme can be adjusted correspondingly according to the actual conditions of user, this hair
It is bright to be not listed one by one.
The embodiment of the present invention, by monitoring shaking for the terminal when terminal is in audio call or voice call state
Dynamic state, and generate shake parameter;When the shake parameter meets preset condition, regulating command is generated;According to the adjusting
Instruction, adjusts the volume of the terminal voice call or voice communication.I.e. user can be subjective caused by big because of ambient noise
It is unintelligible or in the case that objectively call sound is small in sense of hearing, pass through singlehanded terminal of shaking and realizes that the call of big volume needs
It asks, it is user-friendly, promote user experience.
Below with reference to the structural schematic diagram of the call control apparatus provided by the invention shown in Fig. 6, corresponding above method item
To describe the embodiment of device item.The device 10 can include: state detection module 101, directive generation module 102 and volume tune
Module 103 is saved, wherein
State detection module 101 monitors shaking for the terminal when being in audio call or voice call state for terminal
Dynamic state, and generate shake parameter;
Directive generation module 102, for generating regulating command when the shake parameter meets preset condition;
Volume adjusting module 103, for according to the regulating command, adjusting the terminal voice call or voice communication
Volume.
Specifically, the structural schematic diagram of directive generation module provided by the invention as shown in Figure 7, directive generation module
102 may include: judging unit 1021 and generation unit 1022, wherein
Judging unit 1021, for judging the acceleration value, shift value and shaking whether number reaches preset threshold;
Generation unit 1022, for if the determination result is YES, generating regulating command.
Further, the structural schematic diagram of another embodiment of directive generation module provided by the invention as shown in Figure 8, refers to
Enabling generation module 102 may include: detection unit 1023, the first generation unit 1024 and the second generation unit 1025, wherein
Detection unit 1023, for detecting the loudspeaker of the terminal when the shake parameter meets preset condition
Switch state;
First generation unit 1024 generates for working as the loudspeaker in the open state and closes the loudspeaker
Regulating command;
Second generation unit 1025, for generating and opening the loudspeaker when the loudspeaker is in close state
Regulating command.
Still further, the structural schematic diagram of the another embodiment of directive generation module provided by the invention as shown in Figure 9,
Directive generation module 102 may include: the first determination unit 1026, the second determination unit 1027 and third generation unit 1028,
Wherein
First determination unit 1026, for determining preset parameter range belonging to the shake parameter;
Second determination unit 1027, for determining corresponding default volume according to the preset parameter range;
Third generation unit 1028, for generating the audio call of the terminal or the volume adjustment of voice communication to institute
State the regulating command of default volume.
Specifically, the structural schematic diagram of another embodiment of call control apparatus provided by the invention as shown in Figure 10,
Call control apparatus 10 can also include: memory module 100, wherein
Memory module 100, for the corresponding relationship of preset parameter range Yu default volume to be stored in advance.
It will be appreciated that the function that district dynamic merges each module in device 10 can be corresponded to reference to above-mentioned Fig. 1 into Fig. 3
Specific implementation in each method embodiment, which is not described herein again.
The embodiment of the present invention, by monitoring shaking for the terminal when terminal is in audio call or voice call state
Dynamic state, and generate shake parameter;When the shake parameter meets preset condition, regulating command is generated;According to the adjusting
Instruction, adjusts the volume of the terminal voice call or voice communication.I.e. user can be subjective caused by big because of ambient noise
It is unintelligible or in the case that objectively call sound is small in sense of hearing, pass through singlehanded terminal of shaking and realizes that the call of big volume needs
It asks, it is user-friendly, promote user experience.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey
Sequence, the program include some or all of any one call control method recorded in above method embodiment step when executing
Suddenly.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps may can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily this hair
Necessary to bright.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in various embodiments of the present invention can integrate in one processing unit, it is also possible to
Each unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit
Both it can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc., specifically can be the processor in computer equipment) is held
The all or part of the steps of each embodiment above method of the row present invention.Wherein, storage medium above-mentioned can include: USB flash disk, shifting
Dynamic hard disk, magnetic disk, CD, read-only memory (English: Read-Only Memory, abbreviation: ROM) or random access memory
The various media that can store program code such as (English: Random Access Memory, abbreviation: RAM).
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.