CN103384288A - Method for automatically controlling terminal voice channel and terminal - Google Patents

Method for automatically controlling terminal voice channel and terminal Download PDF

Info

Publication number
CN103384288A
CN103384288A CN2012101333830A CN201210133383A CN103384288A CN 103384288 A CN103384288 A CN 103384288A CN 2012101333830 A CN2012101333830 A CN 2012101333830A CN 201210133383 A CN201210133383 A CN 201210133383A CN 103384288 A CN103384288 A CN 103384288A
Authority
CN
China
Prior art keywords
terminal
control command
processing module
data processing
hands
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.)
Pending
Application number
CN2012101333830A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2012101333830A priority Critical patent/CN103384288A/en
Publication of CN103384288A publication Critical patent/CN103384288A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method for automatically controlling a terminal voice channel and a terminal and relates to the technical field of mobile communication field. The method comprises the following steps: a distance sensor detecting near-inducted induction events in real time and collecting original distance data in the terminal communication period; when detecting near-inducted induction events, the distance sensor transmitting the collected original distance data to a logic data processing module; the logic data processing module analyzing the received original distance data so as to generate control orders, and sending the control orders to a self-adaptation execution module; according to the received control orders, the self-adaptation execution module controls the terminal to switch a voice channel or adjust voice volume. The method for automatically controlling the terminal voice channel and the terminal solve the problems that a user possibly can not hear voice of the opposite side and user experience is poor due to the fact that the user must press keys or find a relevant menu and click when switching between an earphone mode and a speaker phone mode.

Description

A kind of terminal voice channel autocontrol method and terminal
Technical field
The present invention relates to moving communicating field, particularly a kind of utilization closely induction installation the current output channel of mobile phone terminal voice call and volume are carried out method and the terminal automatically controlled.
Background technology
Along with the develop rapidly of mobile terminal hardware technology, intelligent operating system universal, more and more novel, new functions that be full of intention are introduced into the mobile phone terminal field, have strengthened the practicality of mobile phone, for the user has brought abundanter operating experience and enjoyment.
Closely inducing function is exactly so a kind of new technology function.Realize apart from inducing function, at first will implant distance (infrared) transducer in mobile phone terminal, be called again displacement transducer.General in the both sides or groove of earpiece.Closely the principle of inducing function is by the physical location change amount of little induction original paper monitoring target thing, is converted into distance by this variable quantity, measures the relative distance from the transducer to the object.
In prior art, when the user made a phone call with mobile phone, acquiescence was to receive voice from receiver, and user's ear must be pressed close to receiver could effectively differentiate the other side's sound.If the user arrives certain limit with mobile phone away from people's ear, receiver namely uses max volume also can't not hear this moment.If want to allow own and the people around catches, manually button or switch to hands-free mode by the touch respective menu, could emit larger volume from loud speaker.Operate thus cumbersomely, and easily miss the other side's conversation content in the process of user's operating handset.
Summary of the invention
The object of the present invention is to provide a kind of terminal voice channel autocontrol method and terminal, can solve better the user must button when carrying out between receiver and hands-free two kinds of patterns switching or find respective menu and click so that cause can't hear the other side's sound, the user experiences the problem that impression differs from.
According to an aspect of the present invention, provide a kind of terminal voice channel autocontrol method, described terminal comprises range sensor, logical data processing module, self adaptation Executive Module, and described method comprises:
During terminal call, range sensor detects nearly sense sense events in real time, and gathers the initial range data;
The initial range data that when described range sensor detects nearly sense sense events, it collected send to the logical data processing module;
Described logical data processing module generates control command to received initial range data analysis, and described control command is sent to the self adaptation Executive Module;
Described self adaptation Executive Module switches voice channel or adjusts speech volume according to received control command control terminal.
Preferably,
Described nearly sense sense events is that described terminal is detecting the interrupt event that produces when its distance with terminal use's face or ear has relative variation.
Preferably,
Described initial range data are original data streams of relative distance between the terminal that collects of range sensor and terminal use's face or ear.
Preferably, the logical data processing module comprises the step that received initial range data analysis generates control command:
The logical data processing module becomes actual relative distance between terminal and user's face or ear with received initial range data transaction;
The logical data processing module compares described actual relative distance and the passage switching threshold that sets in advance;
In described actual relative distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage or generates the control command of adjusting hands-free volume, otherwise generates the control command that switches to the receiver voice channel or generate the control command of adjusting Headphone volume.
Preferably, generate the control command switch to the hands-free voice passage or the step that generates the control command of adjusting hands-free volume is specially:
The logical data processing module judges whether the current speech output channel is receiver;
When judgement current speech output channel is receiver, generate the control command that switches to the hands-free voice passage, generate otherwise control threshold value according to described actual relative distance and the hands-free volume that sets in advance the control command of adjusting hands-free volume.
Preferably, generate the control command switch to the receiver voice channel or the step that generates the control command of adjusting Headphone volume is specially:
The logical data processing module judges whether the current speech output channel is hands-free;
When being hands-free, generate the control command that switches to the receiver voice channel in judgement current speech output channel, generate otherwise control threshold value according to described actual relative distance and the Headphone volume that sets in advance the control command of adjusting Headphone volume.
According to a further aspect in the invention, provide a kind of voice channel automatic control terminal, described terminal comprises:
Range sensor is used for detecting in real time nearly sense sense events and gather the initial range data during terminal call, and the initial range data that when nearly sense sense events being detected, it collected send to the logical data processing module;
The logical data processing module is used for received initial range data analysis is generated control command and described control command is sent to the self adaptation Executive Module;
The self adaptation Executive Module is used for switching voice channel or adjusting speech volume according to received control command control terminal.
Preferably,
Described nearly sense sense events is that described terminal is detecting the interrupt event that produces when its distance with terminal use's face or ear has relative variation;
Described initial range data are original data streams of relative distance between the terminal that collects of range sensor and terminal use's face or ear.
According to a further aspect in the invention, provide another terminal voice channel autocontrol method, described terminal comprises range sensor, logical data processing module, self adaptation Executive Module, and described method comprises:
Before terminal call, the initial straight distance between the real-time sense terminals of range sensor and user's face or ear also sends it to the logical data processing module;
The more described initial straight distance of described logical data processing module and the passage switching threshold that sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generates the control command that switches to the receiver voice channel;
Described logical data processing module sends to the self adaptation Executive Module with described control command;
Described self adaptation Executive Module switches voice channel according to received control command control terminal.
According to a further aspect in the invention, provide another voice channel automatic control terminal, described terminal comprises:
Range sensor, be used for before terminal call in real time the initial straight between sense terminals and user's face or ear apart from and send it to the logical data processing module;
The logical data processing module, the passage switching threshold that is used for more described initial straight distance and sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generate the control command that switches to the receiver voice channel, then described control command is sent to the self adaptation Executive Module;
The self adaptation Executive Module is used for switching voice channel according to received control command control terminal.
Compared with prior art, beneficial effect of the present invention is: the user need not button or touch screen menu icon when conversation, only need cell phone, the distance of controlling people's ear and receiver satisfies certain threshold range, just can automatically change current speech output channel and volume, the conversation that has effectively promoted the user is experienced.
Description of drawings
Fig. 1 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention one;
Fig. 2 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention two;
Fig. 3 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention three;
Fig. 3 a is that the every threshold value that sets in advance and the volume that the embodiment of the present invention three provides adjusted concordance list;
Fig. 4 is the high-level schematic functional block diagram of a kind of voice channel automatic control terminal of providing of the embodiment of the present invention four;
Fig. 5 is the flow chart of the another kind of terminal voice channel autocontrol method that provides of the embodiment of the present invention five;
Fig. 6 is the high-level schematic functional block diagram of the another kind of voice channel automatic control terminal that provides of the embodiment of the present invention six.
Embodiment
To a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment only is used for description and interpretation the present invention, is not intended to limit the present invention below in conjunction with accompanying drawing.
Fig. 1 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention one, as shown in Figure 1, said method comprising the steps of:
Step S101 sets in advance threshold value and volume.
The function setting module of terminal sets in advance the passage switching threshold, hands-free volume controls threshold value, Headphone volume control threshold value and volume rank.The function setting module can also arrange whether need to start the voice channel automatic control function in conversation except above-mentioned threshold value is set.
Step S102, transducer detect nearly sense sense events in real time, and gather the initial range data.
Nearly sense sense events refers to range sensor (hereinafter to be referred as the transducer) hardware of mobile phone terminal or a kind of interruption of the aspect of driving triggering for generating, when namely user's face or ear had relative variation apart from the receiver distance during terminal is conversed, range sensor can detect in real time the variation of distance and produce hardware interrupt.Range sensor sends interrupt event and the initial range data that collect to closely inductive displacement monitoring modular, and wherein, the initial range data are the terminal that collects of range sensor and the original data stream of the relative distance between user's face or ear.
Step S103, closely the inductive displacement monitoring modular sends to the logical data processing module with the initial range data.
After inductive displacement monitoring modular closely receives the nearly sense sense events that range sensor reports, the initial range data that receive are sent to the logical data processing module.
Step S104, the logical data processing module generates control command and sends to the self adaptation Executive Module received initial range data analysis.
The logical data processing module becomes actual relative distance (hereinafter to be referred as actual relative distance) between terminal and user's face or ear with received initial range data transaction, and described actual relative distance is carried out backstage real-time data analysis contrast, need to judge whether the size of automatic switchover voice channel or automatic regulating volume.In actual relative distance during greater than the passage switching threshold that sets in advance, judge whether the current speech output channel is receiver, if the current speech output channel is receiver, generate voice channel is switched to hands-free control command by receiver, generate otherwise control threshold value according to described actual relative distance and the hands-free volume that sets in advance the control command of adjusting hands-free volume.In described actual relative distance during less than or equal to the passage switching threshold that sets in advance, judge whether the current speech output channel is hands-free, if the current speech output channel is hands-free, generate voice channel by the hands-free control command that switches to receiver, generate otherwise control threshold value according to described actual relative distance and the Headphone volume that sets in advance the control command of adjusting Headphone volume.
The logical data processing module sends to the self adaptation Executive Module with the control command that generates.
Step S105, the self adaptation Executive Module is according to switching voice channel or the conciliation volume of control command control terminal.
The control command automatic switchover voice channel that the self adaptation Executive Module generates according to logic processing module or the volume of current speech passage is dynamically arranged.
Fig. 2 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention two, as shown in Figure 2, said method comprising the steps of:
Step S201, terminal loads background service program.
Voice channel adaptive control background service program (hereinafter to be referred as the background service program) is the control centre that realizes apart from inducing function, when beginning to converse, terminal loaded by terminal system, the nearly sense sense events of Real Time Monitoring and perception terminal, until the current distance of user's face or ear and terminal receiver during greater than the passage switching threshold, dynamically change the voice output passage or adjust the volume of voice channel.The background service program comprises closely inductive displacement monitoring modular, logical data processing module, self adaptation Executive Module, function setting module.
Step S202 obtains initial straight distance and configured voice passage.
When terminal was connected phone, the range sensor of terminal detected the initial straight distance of people's ear or facial dimension terminal receiver, and the initial straight distance is sent to the background service program.After the background service program receives initial straight distance, with the actual initial straight distance of initial straight apart from conversion adult's ear or facial dimension terminal receiver, and from configuration file the fetch channel switching threshold.If actual initial straight distance is greater than the passage switching threshold, the terminal acquiescence is from hands-free (loud speaker) playback, if less than or equal to the passage switching threshold, the terminal acquiescence is from receiver output voice.Wherein, configuration file is that passage switching threshold, Headphone volume that hold function arranges module and sets in advance are controlled the file that threshold value, hands-free volume are controlled the data such as threshold value.
Whether step S203, detecting has nearly sense sense events to produce.
If the range sensor that mobile phone terminal is installed detects the distance of people's ear and terminal and changes, output signal, the triggering level interrupt event and with interrupt event and the initial range data upload that collects to the background service program, wherein, described initial range data are the terminal that collects of range sensor and the original data stream of the relative distance between user's face or ear, execution in step S204.Do not change if the distance of people's ear and terminal detected, continue execution in step S203.
Step S204, the data analysis contrast of background service program to uploading.
After closely the inductive displacement monitoring modular receives the interrupt event and initial range data that range sensor reports, the initial range data are sent to the logical data processing module.
The logical data processing module is processed the actual relative distance that converts position of sensor element (receiver) and subject matter (people's ear) to the initial range data.
Step S205 judges that whether the current actual relative distance value of receiver and people's ear is greater than the passage switching threshold that sets in advance.
The logical data processing module compares the actual relative distance of terminal receiver and user's face or ear and the passage switching threshold that sets in advance, in actual relative distance value during greater than the passage switching threshold that sets in advance, generation switches to the control command of hands-free voice passage and sends to the self adaptation Executive Module, execution in step S206, otherwise, generation switches to the control command of receiver voice channel and sends to self adaptation Executive Module, execution in step S207.
Step S206 calls the driving interface and switches to the hands-free voice passage.
After the self adaptation Executive Module receives the control command that switches to the hands-free voice passage, call the driving arrangement interface voice channel is switched to hands-free passage, execution in step S208.
Step S207 calls the driving interface and switches to the receiver voice channel.
After the self adaptation Executive Module receives the control command that switches to the receiver voice channel, call the driving interface and voice channel is switched to receiver, execution in step S208.
Step S208, whether the judgement conversation finishes.
If conversation does not finish, execution in step S203, otherwise execution in step S209.
Step S209, end of conversation withdraws from this service.
Finish this flow process, withdraw from the background service program.
Fig. 3 is the flow chart of a kind of terminal voice channel autocontrol method of providing of the embodiment of the present invention three, and as shown in Figure 3, described method comprises:
Step S301 sets in advance threshold value.
Fig. 3 a is that the every threshold value that sets in advance and the volume that the embodiment of the present invention three provides adjusted concordance list, and as shown in Fig. 3 a, it is 50 millimeters that the passage switching threshold sets in advance.Headphone volume is controlled threshold value and is divided into 4 grades, and setting in advance respectively is 5 millimeters, 10 millimeters, 20 millimeters, 30 millimeters, and the distance between receiver and people's ear is during less than 5 millimeters, and the Headphone volume rank of correspondence is 1 grade; Distance between receiver and people's ear is greater than 5 millimeters and during less than 10 millimeters, and corresponding Headphone volume rank is 2 grades; Distance between receiver and people's ear is greater than 10 millimeters and during less than 20 millimeters, and corresponding Headphone volume rank is 3 grades; Distance between receiver and people's ear is greater than 20 millimeters and during less than 30 millimeters, and corresponding Headphone volume rank is 4 grades.Hands-free volume controls threshold value and is divided into 4 grades, and setting in advance respectively is 70 millimeters, 80 millimeters, 90 millimeters, 100 millimeters.Distance between hands-free and people's ear is greater than 70 millimeters and during less than 80 millimeters, and corresponding hands-free volume rank is 1 grade; Distance between hands-free and people's ear is greater than 80 millimeters and during less than 90 millimeters, and corresponding hands-free volume rank is 2 grades; Distance between hands-free and people's ear is greater than 90 millimeters and during less than 100 millimeters, and corresponding hands-free volume rank is 3 grades; Distance between hands-free and people's ear is during greater than 100 millimeters, and corresponding hands-free volume rank is 4 grades.The above-mentioned every threshold value that sets in advance and volume rank are stored in configuration file.
Step S302 judges whether to have opened the adaptive channel handoff functionality.
Terminal judges whether to have opened the adaptive channel handoff functionality after the conversation beginning.If the adaptive channel handoff functionality switch that is kept in CONFIG.SYS is opened, execution in step S304, otherwise execution in step S303.
Step S303, normal talking does not start the background service program.
Do not start the background service program, carry out the flow process of normal talking.
Step S304 judges whether the user enables handoff functionality in the current talking menu.
During conversation options menu again warning terminal user whether select to enable this handoff functionality.Pointing out the user again to select when conversation is mainly to consider that the user can make the functional switch adjustment in real time according to self demand and environment of living in actual use, is user-friendly to, and can further promote the user and experience.If the user selects to enable this function, execution in step S305, otherwise if the user selects to close this function in conversation, execution in step S303, withdraw from this conversation monitoring thread.
Step S305 loads the background service program.
The background service program is the control centre that realizes apart from inducing function, when beginning to converse, terminal loaded by terminal system, the nearly sense sense events of Real Time Monitoring and perception terminal, until the current distance of people's ear and receiver during greater than the passage switching threshold, dynamically change the voice output passage or adjust the volume of voice channel.The background service program comprises closely inductive displacement monitoring modular, logical data processing module, self adaptation Executive Module, function setting module.
Step S306 obtains initial straight distance and fetch channel switching threshold.
The range sensor of terminal detects the initial straight distance of people's ear or facial dimension terminal receiver, and the initial straight distance is sent to the background service program.After the background service program receives initial straight distance, with the actual initial straight distance of initial straight apart from conversion adult's ear or facial dimension terminal receiver, and from configuration file the fetch channel switching threshold.
Step S307 judges that whether actual initial straight distance is greater than the passage switching threshold.
Actual initial straight distance and passage switching threshold, if actual initial straight distance greater than the passage switching threshold, execution in step S308, otherwise execution in step S309.
Step S308, configuration initial speech passage is hands-free.
This time conversation is from hands-free (loud speaker) playback for the terminal acquiescence, and namely the current speech passage is hands-free, execution in step S310.
Step S309, configuration initial speech passage is receiver.
This time conversation of terminal acquiescence is from receiver output voice, and namely the current speech passage is receiver, execution in step S310.
Step S310 judges whether the user hangs up the telephone.
If the user hangs up the telephone, execution in step S324, otherwise execution in step S311.
Whether step S311, detecting has nearly sense sense events to occur.
If the range sensor that mobile phone terminal is installed detects the distance of people's ear and terminal and changes, output signal, the triggering level interrupt event also reports interrupt event and the initial range data that collect the closely inductive displacement monitoring modular of background service program, closely the inductive displacement monitoring modular sends received initial range data to the logical data processing module, wherein, described initial range data are the terminal that collects of range sensor and the original data stream of the relative distance between user's face or ear, execution in step S312.Do not change if the distance of people's ear and terminal detected, continue execution in step S311.
Step S312 calculates the actual relative distance value of receiver and people's ear, and compares with the passage switching threshold parameter that reads before.
The logical data processing module of background service program is calculated the actual relative distance of receiver and people's ear according to the initial range data that receive, and compares with the passage switching threshold parameter that reads before.
Step S313 judges that whether actual relative distance value is greater than the passage switching threshold.
Actual relative distance and passage switching threshold, if actual relative distance greater than the passage switching threshold, execution in step S314, otherwise execution in step S319.
Step S314 judges whether the current speech passage is receiver.
If the current speech passage is receiver, the logical data processing module generates and switches to the control command of hands-free voice passage, and sends to the self adaptation Executive Module, execution in step S315, otherwise execution in step S316.
Step S315 calls the driving interface and switches to hands-free.
After the self adaptation Executive Module receives the control that switches to the hands-free voice passage, call the driving arrangement interface voice channel is switched to by receiver hands-free, execution in step S311.
Step S316, the hands-free volume control threshold parameter that reads in configuration file compares.
The hands-free volume that the logical data processing module reads in configuration file controls threshold parameter, and hands-free volume control threshold value and the actual relative distance that reads is compared definite hands-free volume rank.Such as, it is 70 millimeters, 80 millimeters, 90 millimeters, 100 millimeters that the logical data processing module reads hands-free volume control threshold value, current actual relative distance is 85 millimeters, due to actual relative distance between 80 millimeters to 90 millimeters, according to setting in advance of step S301, the hands-free volume rank of its correspondence is 3 grades.
Step S317 judges whether to reach hands-free volume and adjusts threshold level.
The volume rank that the volume rank of more current hands-free voice passage and step S316 determine, if both inconsistent, the logical data processing module generates the control command of regulating hands-free volume and sends to self adaptation Executive Module, execution in step S318, otherwise, execution in step S311.
Step S318 regulates hands-free volume.
The self adaptation Executive Module is adjusted to the volume rank of current hands-free voice passage the volume rank that step S316 determines according to received control command.
Step S319 judges whether current output channel is hands-free.
If the current speech output channel is hands-free, the logical data processing module generates the control command that switches to the receiver voice channel, execution in step S320, otherwise execution in step S321.
Step S320 calls the driving interface and switches to receiver.
The self adaptation Executive Module call drive interface with the current speech passage by the hands-free receiver that switches to, execution in step S311.
Step S321, the Headphone volume control threshold parameter that reads in configuration file compares.
The Headphone volume that the logical data processing module reads in configuration file is controlled threshold parameter, and Headphone volume control threshold value and the actual relative distance that reads is compared definite Headphone volume rank.Such as, it is 5 millimeters, 10 millimeters, 20 millimeters, 30 millimeters that the logical data processing module reads Headphone volume control threshold value, and actual relative distance is 25 millimeters, and actual relative distance is between 20 millimeters to 30 millimeters, according to setting in advance of step S301, its corresponding Headphone volume rank is 3 grades.
Step S322 judges whether to reach Headphone volume and adjusts threshold level.
The Headphone volume rank that the volume rank of more current receiver and step S321 determine, if both inconsistent, the logical data processing module generates the control command of regulating Headphone volume and sends to self adaptation Executive Module, execution in step S323, otherwise, execution in step S311.
Step S323 regulates Headphone volume.
The self adaptation Executive Module calls the driving arrangement interface according to received control command and automatically regulates Headphone volume, and execution in step S311.
Step S324, end of conversation withdraws from this service thread.
Fig. 4 is the high-level schematic functional block diagram of a kind of voice channel automatic control terminal of providing of the embodiment of the present invention four, as shown in Figure 4, described terminal comprises that range sensor is transducer, closely inductive displacement monitoring modular, logical data processing module, self adaptation Executive Module, function setting module.
The function setting module is used for providing corresponding parameters setting.The function setting module sets in advance the passage switching threshold, hands-free volume controls threshold value, Headphone volume control threshold value and volume rank.The function setting module can also arrange and whether need to automatically control service by the startup voice channel in conversation except above-mentioned threshold value is set.
Range sensor is for detection of nearly sense sense events and gather the initial range data.Nearly sense sense events refers to the range sensor hardware of mobile phone terminal or a kind of interruption of driving aspect triggering for generating, when namely user's face had relative variation apart from the receiver distance during terminal is conversed, range sensor can detect in real time the variation of distance and produce hardware interrupt.Range sensor is that the initial range data send closely inductive displacement monitoring modular to interrupt event and the original data stream when the air line distance value between forefathers' ear and terminal receiver that collects.
Closely the inductive displacement monitoring modular sends described initial range data to the logical data processing module after receiving nearly sense sense events that range sensor sends and current initial range data.
The logical data processing module is used for received initial range data analysis is generated control command and described control command is sent to the self adaptation Executive Module.The logical data processing module becomes actual relative distance between terminal and user's face or ear with received initial range data transaction, and described actual relative distance and the passage switching threshold that sets in advance are compared, in described actual relative distance during greater than the passage switching threshold that sets in advance, generation switches to the control command of hands-free voice passage or generates the control command of adjusting hands-free volume, otherwise generates the control command that switches to the receiver voice channel or generate the control command of adjusting Headphone volume.Specifically, in described actual relative distance during greater than the passage switching threshold that sets in advance, judge whether the current speech output channel is receiver, when judgement current speech output channel is receiver, be outputted to the control command of hands-free voice passage, generate otherwise control threshold value according to described actual relative distance and the hands-free volume that sets in advance the control command of adjusting hands-free volume.In described actual relative distance during less than or equal to the passage switching threshold that sets in advance, judge whether the current speech output channel is hands-free, when judging that the current speech output channel is hands-free, generation switches to the control command of receiver voice channel, otherwise controls according to described actual relative distance and the Headphone volume that sets in advance the control command that Headphone volume is adjusted in threshold value output.
The self adaptation Executive Module is used for calling according to received control command the corresponding action of interface execution of driving arrangement.Such as, carry out the switching of receiver/hands-free voice passage or the volume of regulating the current speech passage.
Fig. 5 is the flow chart of the another kind of terminal voice channel autocontrol method that provides of the embodiment of the present invention five, as shown in Figure 5, said method comprising the steps of:
Step S501, before terminal call, the initial straight distance between the real-time sense terminals of transducer and user's face or ear also sends it to the logical data processing module.
Step S502, the more described initial straight distance of described logical data processing module and the passage switching threshold that sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generates the control command that switches to the receiver voice channel.
Step S503, described logical data processing module sends to the self adaptation Executive Module with described control command.
Step S504, described self adaptation Executive Module switches voice channel according to received control command control terminal.
Fig. 6 is the high-level schematic functional block diagram of the another kind of voice channel automatic control terminal that provides of the embodiment of the present invention six, and as shown in Figure 6, described terminal comprises range sensor (transducer), logical data processing module, self adaptation Executive Module.
Transducer, be used for before terminal call in real time the initial straight between sense terminals and user's face or ear apart from and send it to the logical data processing module.
The logical data processing module, the passage switching threshold that is used for more described initial straight distance and sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generate the control command that switches to the receiver voice channel, then described control command is sent to the self adaptation Executive Module.
The self adaptation Executive Module is used for switching voice channel according to received control command control terminal.
In sum, the present invention monitors closely by poll when the terminal call, and displacement state changes and the current speech channel status, and dynamically control voice output passage and volume according to the range data amplitude of variation that detects, realize the automatic switchover of earpiece/hands-free output channel when realizing voice call apart from the distance of receiver according to people's ear, be that people's ear is when very near apart from mobile phone, automatically identification and from the receiver playback, when the user hold mobile phone away from face when the certain condition, automatically switch to the loud speaker playback.Can avoid like this user to want to be manually switched to hands-free mode at every turn, must button or the operation of finding respective menu to click, the trouble that might can't hear the other side's sound in receiver this moment can improve the user and experience impression.
Although above the present invention is had been described in detail, the invention is not restricted to this, those skilled in the art of the present technique can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention all should be understood to fall into protection scope of the present invention.

Claims (10)

1. terminal voice channel autocontrol method, described terminal comprises range sensor, logical data processing module, self adaptation Executive Module, it is characterized in that, described method comprises:
During terminal call, range sensor detects nearly sense sense events in real time, and gathers the initial range data;
The initial range data that when described range sensor detects nearly sense sense events, it collected send to the logical data processing module;
Described logical data processing module generates control command to received initial range data analysis, and described control command is sent to the self adaptation Executive Module;
Described self adaptation Executive Module switches voice channel or adjusts speech volume according to received control command control terminal.
2. method according to claim 1, is characterized in that,
Described nearly sense sense events is that described terminal is detecting the interrupt event that produces when its distance with terminal use's face or ear has relative variation.
3. method according to claim 1, is characterized in that,
Described initial range data are original data streams of relative distance between the terminal that collects of range sensor and terminal use's face or ear.
4. the described method of according to claim 1 to 3 any one, is characterized in that, the logical data processing module comprises the step that received initial range data analysis generates control command:
The logical data processing module becomes actual relative distance between terminal and user's face or ear with received initial range data transaction;
The logical data processing module compares described actual relative distance and the passage switching threshold that sets in advance;
In described actual relative distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage or generates the control command of adjusting hands-free volume, otherwise generates the control command that switches to the receiver voice channel or generate the control command of adjusting Headphone volume.
5. method according to claim 4, is characterized in that, generates the control command switch to the hands-free voice passage or the step that generates the control command of adjusting hands-free volume is specially:
The logical data processing module judges whether the current speech output channel is receiver;
When judgement current speech output channel is receiver, generate the control command that switches to the hands-free voice passage, generate otherwise control threshold value according to described actual relative distance and the hands-free volume that sets in advance the control command of adjusting hands-free volume.
6. method according to claim 4, is characterized in that, generates the control command switch to the receiver voice channel or the step that generates the control command of adjusting Headphone volume is specially:
The logical data processing module judges whether the current speech output channel is hands-free;
When being hands-free, generate the control command that switches to the receiver voice channel in judgement current speech output channel, generate otherwise control threshold value according to described actual relative distance and the Headphone volume that sets in advance the control command of adjusting Headphone volume.
7. terminal voice channel autocontrol method, described terminal comprises range sensor, logical data processing module, self adaptation Executive Module, it is characterized in that, described method comprises:
Before terminal call, the initial straight distance between the real-time sense terminals of range sensor and user's face or ear also sends it to the logical data processing module;
The more described initial straight distance of described logical data processing module and the passage switching threshold that sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generates the control command that switches to the receiver voice channel;
Described logical data processing module sends to the self adaptation Executive Module with described control command;
Described self adaptation Executive Module switches voice channel according to received control command control terminal.
8. a voice channel automatic control terminal, is characterized in that, described terminal comprises:
Range sensor is used for detecting in real time nearly sense sense events and gather the initial range data during terminal call, and the initial range data that when nearly sense sense events being detected, it collected send to the logical data processing module;
The logical data processing module is used for received initial range data analysis is generated control command and described control command is sent to the self adaptation Executive Module;
The self adaptation Executive Module is used for switching voice channel or adjusting speech volume according to received control command control terminal.
9. terminal according to claim 8, is characterized in that,
Described nearly sense sense events is that described terminal is detecting the interrupt event that produces when its distance with terminal use's face or ear has relative variation;
Described initial range data are original data streams of relative distance between the terminal that collects of range sensor and terminal use's face or ear.
10. a voice channel automatic control terminal, is characterized in that, described terminal comprises:
Range sensor, be used for before terminal call in real time the initial straight between sense terminals and user's face or ear apart from and send it to the logical data processing module;
The logical data processing module, the passage switching threshold that is used for more described initial straight distance and sets in advance, in described initial straight distance during greater than described passage switching threshold, generation switches to the control command of hands-free voice passage, otherwise generate the control command that switches to the receiver voice channel, then described control command is sent to the self adaptation Executive Module;
The self adaptation Executive Module is used for switching voice channel according to received control command control terminal.
CN2012101333830A 2012-05-02 2012-05-02 Method for automatically controlling terminal voice channel and terminal Pending CN103384288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101333830A CN103384288A (en) 2012-05-02 2012-05-02 Method for automatically controlling terminal voice channel and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101333830A CN103384288A (en) 2012-05-02 2012-05-02 Method for automatically controlling terminal voice channel and terminal

Publications (1)

Publication Number Publication Date
CN103384288A true CN103384288A (en) 2013-11-06

Family

ID=49491979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101333830A Pending CN103384288A (en) 2012-05-02 2012-05-02 Method for automatically controlling terminal voice channel and terminal

Country Status (1)

Country Link
CN (1) CN103384288A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103985397A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Electronic device
CN103985400A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio file playing system
CN104463036A (en) * 2014-11-22 2015-03-25 广东欧珀移动通信有限公司 Password inputting method, mobile terminal and system
CN104683554A (en) * 2013-11-30 2015-06-03 鸿富锦精密工业(深圳)有限公司 Method for opening hands-free function in communication state of mobile phone
WO2015078155A1 (en) * 2013-11-28 2015-06-04 Tencent Technology (Shenzhen) Company Limited A method and mobile terminal for speech communication
CN104717363A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and audio channel fast switching method and device thereof
CN105245732A (en) * 2015-11-12 2016-01-13 浪潮(北京)电子信息产业有限公司 Switching method and device for terminal equipment and terminal equipment
CN105338156A (en) * 2014-08-07 2016-02-17 中兴通讯股份有限公司 Mode judging device and method, hearing protection device and method and terminal
CN105991836A (en) * 2015-03-05 2016-10-05 小米科技有限责任公司 Communication sound switching method and device
US9467403B2 (en) 2013-11-28 2016-10-11 Tencent Technology (Shenzhen) Company Limited Method and mobile terminal for speech communication
CN106888327A (en) * 2017-02-28 2017-06-23 北京小米移动软件有限公司 Speech playing method and device
CN107426413A (en) * 2017-06-14 2017-12-01 深圳天珑无线科技有限公司 Method that volume automatically adjusts, the device and electronic equipment with store function
CN109788143A (en) * 2019-03-21 2019-05-21 维沃移动通信有限公司 A kind of call handling method and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201369757Y (en) * 2008-11-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 Automatic sound volume regulating device for mobile terminal and mobile terminal
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment
EP2352306A1 (en) * 2009-12-09 2011-08-03 Samsung Electronics Co., Ltd. Apparatus and Method for Increasing Volume in Portable Terminal
CN102238464A (en) * 2010-04-30 2011-11-09 上海博泰悦臻电子设备制造有限公司 Method and device for adjusting volume balance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201369757Y (en) * 2008-11-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 Automatic sound volume regulating device for mobile terminal and mobile terminal
EP2352306A1 (en) * 2009-12-09 2011-08-03 Samsung Electronics Co., Ltd. Apparatus and Method for Increasing Volume in Portable Terminal
CN102238464A (en) * 2010-04-30 2011-11-09 上海博泰悦臻电子设备制造有限公司 Method and device for adjusting volume balance
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015078155A1 (en) * 2013-11-28 2015-06-04 Tencent Technology (Shenzhen) Company Limited A method and mobile terminal for speech communication
US9467403B2 (en) 2013-11-28 2016-10-11 Tencent Technology (Shenzhen) Company Limited Method and mobile terminal for speech communication
CN104683554A (en) * 2013-11-30 2015-06-03 鸿富锦精密工业(深圳)有限公司 Method for opening hands-free function in communication state of mobile phone
CN103985397A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Electronic device
CN103985400A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio file playing system
CN105338156A (en) * 2014-08-07 2016-02-17 中兴通讯股份有限公司 Mode judging device and method, hearing protection device and method and terminal
CN104463036A (en) * 2014-11-22 2015-03-25 广东欧珀移动通信有限公司 Password inputting method, mobile terminal and system
CN104463036B (en) * 2014-11-22 2018-11-16 广东欧珀移动通信有限公司 Method, mobile terminal and the system of Password Input
CN105991836A (en) * 2015-03-05 2016-10-05 小米科技有限责任公司 Communication sound switching method and device
CN104717363A (en) * 2015-03-23 2015-06-17 努比亚技术有限公司 Mobile terminal and audio channel fast switching method and device thereof
CN105245732A (en) * 2015-11-12 2016-01-13 浪潮(北京)电子信息产业有限公司 Switching method and device for terminal equipment and terminal equipment
CN106888327A (en) * 2017-02-28 2017-06-23 北京小米移动软件有限公司 Speech playing method and device
CN107426413A (en) * 2017-06-14 2017-12-01 深圳天珑无线科技有限公司 Method that volume automatically adjusts, the device and electronic equipment with store function
CN109788143A (en) * 2019-03-21 2019-05-21 维沃移动通信有限公司 A kind of call handling method and mobile terminal
CN109788143B (en) * 2019-03-21 2021-12-10 维沃移动通信有限公司 Call processing method and mobile terminal

Similar Documents

Publication Publication Date Title
CN103384288A (en) Method for automatically controlling terminal voice channel and terminal
CN102917124B (en) Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN101287032B (en) Method, system and mobile terminal for mode switching of electronic apparatus
CN105491483B (en) Wearing state detection method, system and earphone for earphone
US10782745B2 (en) Call receiving operation method of electronic system
CN110691294B (en) Audio control method, charging box and wireless earphone device
CN105794186A (en) Method, device and electronic device for controlling application program
CN103139394B (en) A kind of incoming call sound based on mobile phone or hang up processing method and system
CN102981622A (en) External control method and system of mobile terminal
CN102629183A (en) Terminal screen control method and device
CN109413526B (en) Earphone control method, earphone control device, electronic equipment and storage medium
CN102843464A (en) System and method utilizing distance sensor to adjust call audio output mode
CN104601195A (en) Antenna control method and device
CN102761721A (en) Volume control method and system for TV
CN201682539U (en) Dynamic incoming call prompt regulating system for portable device and portable device
US20180091637A1 (en) Information processing device
CN102984374A (en) Communication terminal and communication manner switching method thereof
CN103458113A (en) Method and terminal for adjusting communication volume
CN102158609A (en) Wireless communication equipment and method for controlling backlight, touch screen and keyboard
JP2015148648A (en) Dialogue system, speech controller, dialog unit, speech control method, control program of speech controller and control program of dialog unit
CN107135305B (en) Message reminding method, device and terminal
CN105915729B (en) Method and system for quickly adjusting volume of mobile terminal and mobile terminal
CN103916511A (en) Information processing method and electronic equipment
CN108804071B (en) Receiver driving method and mobile terminal
CN104394260A (en) Handheld call receiver volume adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131106

RJ01 Rejection of invention patent application after publication