CN108196819A - Working mode switching method, device and electronic equipment applied to terminal - Google Patents

Working mode switching method, device and electronic equipment applied to terminal Download PDF

Info

Publication number
CN108196819A
CN108196819A CN201810091522.5A CN201810091522A CN108196819A CN 108196819 A CN108196819 A CN 108196819A CN 201810091522 A CN201810091522 A CN 201810091522A CN 108196819 A CN108196819 A CN 108196819A
Authority
CN
China
Prior art keywords
terminal
predetermined patterns
sensor
hand
state
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.)
Granted
Application number
CN201810091522.5A
Other languages
Chinese (zh)
Other versions
CN108196819B (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 Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201810091522.5A priority Critical patent/CN108196819B/en
Publication of CN108196819A publication Critical patent/CN108196819A/en
Application granted granted Critical
Publication of CN108196819B publication Critical patent/CN108196819B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The present invention is suitable for field of terminal technology, and the present invention provides a kind of applied to the Working mode switching method of terminal, operating mode switching device, electronic equipment and computer readable storage medium, the Working mode switching method includes:Whether the predetermined patterns for sensing the terminal are in by hand-held state;When the predetermined patterns of the terminal are in by hand-held state, the operating mode of the terminal is switched to first mode, wherein, the first mode is:The sound collection function of the microphone module is opened, and, the pattern of the audio playing function closing of the sound box module.The present invention can improve the convenience of switching terminal operating mode.

Description

Working mode switching method, device and electronic equipment applied to terminal
Technical field
The invention belongs to field of terminal technology more particularly to a kind of Working mode switching method of terminal, operating mode to cut Changing device, electronic equipment and computer readable storage medium.
Background technology
At present, exist in the market and much have multi-functional end product, such as microphone speaker, microphone speaker has Sound collection function and audio playing function in addition to the acoustic information for acquiring current environment, can also be used to play sound Frequency content;For example, when microphone speaker is connect with tablet computer, tablet computer can start the sound collection of microphone speaker Function, with the voice messaging of typing user;Tablet computer can also start the audio playing function of microphone speaker, flat to play Audio content on plate computer.
However, when playing audio content by microphone speaker, if user needs typing voice messaging, need manually The audio playing function of mute microphone (MIC) speaker is removed in operation, and the sound collection function of deactivation microphone is manually operated;And When user no longer needs typing acoustic information, and need that the sound collection function of removing mute microphone (MIC) speaker is manually operated.As it can be seen that It is not convenient enough to the switching of microphone speaker operating mode in the prior art.
Invention content
In view of this, the present invention provides a kind of Working mode switching method, operating modes applied to terminal to switch dress It puts, electronic equipment and computer readable storage medium, the convenience of the operating mode of switching terminal can be improved.
The first aspect of the present invention provides a kind of Working mode switching method applied to terminal, and the terminal includes using In acquisition acoustic information microphone module and, for playing the sound box module of audio-frequency information;
The Working mode switching method includes:
Whether the predetermined patterns for sensing the terminal are in by hand-held state;
When the predetermined patterns of the terminal are in by hand-held state, the operating mode of the terminal is switched to first Pattern, wherein, the first mode is:The sound collection function of the microphone module is opened, and, the sound of the sound box module The pattern that frequency playing function is closed.
The second aspect of the present invention provides a kind of operating mode switching device applied to terminal, and the terminal includes using In acquisition acoustic information microphone module and, for playing the sound box module of audio-frequency information;
The operating mode switching device includes:
Sensing unit, for sensing whether the predetermined patterns of the terminal are in by hand-held state;
Switch unit is in for sensing the predetermined patterns of the terminal in the sensing unit by hand-held state When, the operating mode of the terminal is switched to first mode, wherein, the first mode is:The sound of the microphone module Sound acquisition function is opened, and, the pattern of the audio playing function closing of the sound box module.
The third aspect of the present invention provides a kind of electronic equipment, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, the processor are realized such as when performing the computer program The step of any one Working mode switching method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Computer program is contained, realizing the Working mode switching method as described in any one when the computer program is executed by processor Step.
The existing compared with prior art advantageous effect of the present invention is:
The present invention is by sensing whether the predetermined patterns of the terminal are in by hand-held state, in the default of the terminal When position is in by hand-held state, the operating mode of the terminal is switched to first mode, wherein, the first mode For:The sound collection function of the microphone module is opened, and, the pattern of the audio playing function closing of the sound box module; Solve the problems, such as that the operating mode switching of microphone in the prior art is not convenient enough;That is, by sensing the pre- of the terminal If whether position is in by hand-held state, when the predetermined patterns of the terminal are in by hand-held state, judgement user's tool There is the demand of acquisition acoustic information, therefore automatically turn on the sound collection function of microphone module, and automatic turning-off sound box module Audio playing function, need manually opened sound collection function so as to avoid user and the behaviour of audio playing function be turned off manually Make, improve the convenience of switching terminal operating mode.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the realization flow chart of the Working mode switching method provided in an embodiment of the present invention applied to terminal;
Fig. 2 is the realization flow chart for the Working mode switching method applied to terminal that another embodiment of the present invention provides;
Fig. 3 is the structure diagram of the operating mode switching device provided in an embodiment of the present invention applied to terminal;
Fig. 4 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details interferes description of the invention.
To make the object, technical solutions and advantages of the present invention clearer, pass through specific embodiment below in conjunction with attached drawing To illustrate.
Referring to Fig. 1, it illustrates the realizations of the Working mode switching method provided in an embodiment of the present invention applied to terminal Flow chart, the executive agent for the Working mode switching method that the embodiment of the present invention is provided can be terminal, or with institute Another terminal of terminal communication connection is stated, the terminal is the external equipment for having microphone and function of loudspeaker box, another end End can be the smart machines such as mobile phone or tablet.
Details are as follows for above-mentioned Working mode switching method:
Whether step 101 senses the predetermined patterns of terminal in by hand-held state;
In embodiments of the present invention, the terminal include for acquire acoustic information microphone module and, for broadcasting The sound box module of audio-frequency information is put, for example, the terminal is the microphone for having audio playing function, alternatively, the terminal is Has the speaker of sound collection function.
In embodiments of the present invention, the part held when the predetermined patterns include sound for user using the terminal, In practical applications, by setting sensor on the predetermined patterns, the sensing result of the sensor based on setting judges institute Whether the predetermined patterns for stating terminal are in by hand-held state, that is, determining whether there is user holds the terminal, and then be based on Judge that result carries out the switching of terminal work mode.
Optionally, the predetermined patterns of the terminal are provided with more than two first sensors, and above-mentioned steps 101 can be with base It is realized in following step:
Step A1, the number of sensors in the state that is blocked in described two above first sensors is obtained;
In the present embodiment, monitoring is arranged on the state of first sensor on the predetermined patterns of the terminal, based in The quantity of the first sensor for the state that is blocked, determines whether the predetermined patterns of the terminal are in by hand-held state.
In practical applications, the first sensor can be infrared sensor, and the infrared sensor is leaned on there is object In the state that is blocked when near, the infrared sensor, in non-occlusion state, is held when no object is blocked for example, working as human hand During the predetermined patterns of the terminal, the infrared sensor that is set on the predetermined patterns it is inevitable some be in the shape that is blocked State.
Under a kind of application scenarios, the predetermined patterns of the terminal are cylindricality, and the first sensor annular can be set On the side of cylindricality, and, certain spacing is kept between adjacent first sensor, when user holds the terminal, due to The hand at family holds the side of the cylindricality, and the operative sensor in the sensor set on the side of the cylindricality, which will be in, to be hidden Gear state.
If the number of sensors in the state that is blocked is more than default in step A2, described two above first sensors Quantity then judges that the predetermined patterns of the terminal are in by hand-held state, wherein, the preset quantity is not more than described first The total quantity of sensor;
If the number of sensors in the state that is blocked is no more than pre- in step A3, described two above first sensors If quantity, then judge that the predetermined patterns of the terminal are not at the state held.
It should be noted that set by the spacing and the first sensor of the preset quantity and adjacent first sensor The specific location put is related, according to the specific location set by the spacing of adjacent first sensor and the first sensor, The preset quantity can flexibly be set, be not limited thereto.
Further, the first sensor is infrared sensor, based on the infrared sensor, can detect close be somebody's turn to do The object of first sensor to the first sensor distance and, based on the first sensor, can also detect close The temperature of the object of the first sensor;When whether the predetermined patterns for judging the terminal are in by hand-held state, may be used also With the distance based on the object close to the first sensor to the first sensor and the object close to the first sensor Temperature judge.
Specifically, when the distance that detect the object close to the first sensor to the first sensor be less than it is preset Distance threshold and, close to the first sensor object temperature within the scope of default temperature when, judge the terminal Predetermined patterns are in by hand-held state;
Specifically, it is preset when the distance for detecting object to the first sensor close to the first sensor is not less than Distance threshold, alternatively, close to the first sensor object temperature not within the scope of default temperature when, judge the end The predetermined patterns at end are not at the state held.
Optionally, the predetermined patterns are provided with second sensor, and the second sensor is for detecting whether there is human body Skin is contacted with the predetermined patterns;Above-mentioned steps 101 can be based on following step and realize:
If step B1, described second sensor has detected that human skin is contacted with the predetermined patterns, described in judgement The predetermined patterns of terminal are in by hand-held state;
If step B2, described second sensor detects that no human skin is contacted with the predetermined patterns, described in judgement The predetermined patterns of terminal are not at the state held.
In the present embodiment, the second sensor is capacitive touch sensors, based on the capacitive touch sensors Sensing result, it is determined whether there is human skin to be contacted with capacitive touch sensors;There are human skin and capacitance touch During sensor contacts, judge that the predetermined patterns of the terminal are in by hand-held state;In no human skin and capacitance touch During sensor contacts, judge that the predetermined patterns of the terminal are not at the state held.
Optionally, the predetermined patterns of the terminal are provided with second sensor and 3rd sensor, the second sensor For detecting whether there is human skin to be contacted with the predetermined patterns, the 3rd sensor is used to detect the predetermined patterns Surrounding whether there is shelter;Above-mentioned steps 101 can be based on following step and realize:
If step C1, described 3rd sensor is detected around the predetermined patterns there are shelter, and, described second Sensor has detected that human skin is contacted with the predetermined patterns, then judges that the predetermined patterns of the terminal are in by hand-held State;
If step C2, described 3rd sensor is detected there is no shelter around the predetermined patterns, alternatively, described Second sensor detects that no human skin is contacted with the predetermined patterns, then judges that the predetermined patterns of the terminal are in by hand The state held.
In the present embodiment, the 3rd sensor is infrared sensor, and the second sensor is sensed for capacitance touch Device based on the sensing result of the infrared sensor, determines to whether there is shelter around the predetermined patterns of the terminal;It is based on The sensing result of the capacitive touch sensors, it is determined whether there are human skin and the predetermined patterns of the terminal to contact;
If the infrared sensor is detected around the predetermined patterns there are shelter, and, the capacitance touch Sensor has detected that human skin is contacted with the predetermined patterns, then judges that the predetermined patterns of the terminal are in by hand-held State;
If the infrared sensor is detected there is no shelter around the predetermined patterns, alternatively, the condenser type Touch sensor detects that no human skin is contacted with the predetermined patterns, then judges that the predetermined patterns of the terminal are in by hand The state held.
Step 102, the terminal predetermined patterns be in by hand-held state when, the operating mode of the terminal is cut It is changed to first mode;
Wherein, the first mode is:The sound collection function of the microphone module is opened, and, the sound box module Audio playing function close pattern.
In embodiments of the present invention, when the predetermined patterns for sensing the terminal are in by hand-held state, that is, When user holds the terminal, judgement user has the demand that the microphone module using the terminal carries out sound collection, because This, closes the audio playing function of the sound box module of terminal, and opens the sound collection function of the microphone module of terminal, with Just user carries out sound collection using the microphone module of the terminal.
From the foregoing, it will be observed that the present invention is by sensing whether the predetermined patterns of the terminal are in by hand-held state, described When the predetermined patterns of terminal are in by hand-held state, the operating mode of the terminal is switched to first mode, wherein, it is described First mode is:The sound collection function of the microphone module is opened, and, the audio playing function of the sound box module is closed Pattern;Solve the problems, such as that the operating mode switching of microphone in the prior art is not convenient enough;That is, by sensing the end Whether the predetermined patterns at end are in by hand-held state, when the predetermined patterns of the terminal are in by hand-held state, judgement User has the demand of acquisition acoustic information, therefore automatically turns on the sound collection function of microphone module, and sound is automatically closed The audio playing function of tank module needs manually opened sound collection function so as to avoid user and audio broadcasting work(is turned off manually The operation of energy improves the convenience of switching terminal operating mode.
Fig. 2 shows the realization flows for the Working mode switching method applied to terminal that another embodiment of the present invention provides Figure, details are as follows:
Whether step 201 senses the predetermined patterns of terminal in by hand-held state;
Step 202, the terminal predetermined patterns be in by hand-held state when, the operating mode of the terminal is cut It is changed to first mode;Wherein, the first mode is:The sound collection function of the microphone module is opened, and, the speaker The pattern that the audio playing function of module is closed;
In the embodiment of the present invention, above-mentioned steps 201 and step 202 specifically refer to the step 101 in embodiment described in Fig. 1 And step 102, details are not described herein.
Step 203, when the predetermined patterns of the terminal are not at the state held, by the operating mode of the terminal It is switched to second mode;Wherein, the second mode is:The sound collection function of the microphone module is closed, and, it is receiving To the pattern that during instruction for playing audio-frequency information, the audio playing function of the sound box module is opened.
In the embodiment of the present invention, when the predetermined patterns of the terminal are not at the state held, that is, not sensing The predetermined patterns of the terminal are in by hand-held state, and judgement user does not have to be carried out using the microphone module of the terminal Therefore, the sound collection function of the microphone module of terminal is automatically closed, also, control the terminal in the demand of sound collection In standby mode, in the said standby state, the terminal opens the end when receiving the instruction for playing audio-frequency information The audio playing function of the sound box module at end, to play corresponding audio content.
From the foregoing, it will be observed that the present invention is by sensing whether the predetermined patterns of the terminal are in by hand-held state, described When the predetermined patterns of terminal are in by hand-held state, the operating mode of the terminal is switched to first mode, wherein, it is described First mode is:The sound collection function of the microphone module is opened, and, the audio playing function of the sound box module is closed Pattern;Solve the problems, such as that the operating mode switching of microphone in the prior art is not convenient enough;That is, by sensing the end Whether the predetermined patterns at end are in by hand-held state, when the predetermined patterns of the terminal are in by hand-held state, judgement User has the demand of acquisition acoustic information, therefore automatically turns on the sound collection function of microphone module, and sound is automatically closed The audio playing function of tank module needs manually opened sound collection function so as to avoid user and audio broadcasting work(is turned off manually The operation of energy improves the convenience of switching terminal operating mode.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
It is below the device of the invention embodiment, for the details of wherein not detailed description, can refers to above-mentioned corresponding Embodiment of the method.
Fig. 3 shows the structure diagram of the operating mode switching device provided in an embodiment of the present invention applied to terminal, For convenience of description, illustrate only with the relevant part of the embodiment of the present invention, details are as follows:
The terminal include for acquire acoustic information microphone module and, for playing the speaker of audio-frequency information Module.As shown in figure 3, operating mode switching device 3 includes:Sensing unit 31 and switch unit 32.
Sensing unit 31, for sensing whether the predetermined patterns of the terminal are in by hand-held state;
Switch unit 32 is in for sensing the predetermined patterns of the terminal in sensing unit 31 by hand-held state When, the operating mode of the terminal is switched to first mode, wherein, the first mode is:The sound of the microphone module Sound acquisition function is opened, and, the pattern of the audio playing function closing of the sound box module.
Optionally, switch unit 32 is additionally operable to:
When the predetermined patterns of the terminal are not at the state held, the operating mode of the terminal is switched to Two modes, wherein, the second mode is:The sound collection function of the microphone module is closed, and, receiving broadcasting sound During the instruction of frequency information, the pattern of the audio playing function unlatching of the sound box module.
Optionally, the predetermined patterns are provided with more than two first sensors;Switch unit 32 is specifically used for:
If the number of sensors in the state that is blocked is more than preset quantity in described two above first sensors, Judge that the predetermined patterns of the terminal are in by hand-held state, wherein, the preset quantity is not more than the first sensor Total quantity;And
If the number of sensors in the state that is blocked is not more than preset quantity in described two above first sensors, Then judge that the predetermined patterns of the terminal are not at the state held.
From the foregoing, it will be observed that the present invention is by sensing whether the predetermined patterns of the terminal are in by hand-held state, described When the predetermined patterns of terminal are in by hand-held state, the operating mode of the terminal is switched to first mode, wherein, it is described First mode is:The sound collection function of the microphone module is opened, and, the audio playing function of the sound box module is closed Pattern;Solve the problems, such as that the operating mode switching of microphone in the prior art is not convenient enough;That is, by sensing the end Whether the predetermined patterns at end are in by hand-held state, when the predetermined patterns of the terminal are in by hand-held state, judgement User has the demand of acquisition acoustic information, therefore automatically turns on the sound collection function of microphone module, and sound is automatically closed The audio playing function of tank module needs manually opened sound collection function so as to avoid user and audio broadcasting work(is turned off manually The operation of energy improves the convenience of switching terminal operating mode.
Fig. 4 is the schematic diagram for the electronic equipment that one embodiment of the invention provides.As shown in figure 4, the electronics of the embodiment is set Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 realizes that above-mentioned each Working mode switching method is implemented when performing the computer program 42 Step in example, such as step 101 shown in FIG. 1 is to step 102.Alternatively, the processor 40 performs the computer program The function of each module/unit in above-mentioned each device embodiment, such as the function of unit 31 to 32 shown in Fig. 3 are realized when 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the electronic equipment 4 is described.For example, the computer program 42 can be divided Sensing unit and switch unit are cut into, each unit concrete function is as follows:
Sensing unit, for sensing whether the predetermined patterns of the terminal are in by hand-held state;
Switch unit is in for sensing the predetermined patterns of the terminal in the sensing unit by hand-held state When, the operating mode of the terminal is switched to first mode, wherein, the first mode is:The sound of the microphone module Sound acquisition function is opened, and, the pattern of the audio playing function closing of the sound box module.
The electronic equipment 4 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The electronic equipment may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 The only example of electronic equipment 4 does not form the restriction to electronic equipment 4, can include than illustrating more or fewer portions Part either combines certain components or different components, such as the electronic equipment can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the electronic equipment 4, such as the hard disk of electronic equipment 4 or interior It deposits.The memory 41 can also be the External memory equipment of the electronic equipment 4, such as be equipped on the electronic equipment 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the electronic equipment 4 Member also includes External memory equipment.The memory 41 is used to store needed for the computer program and the electronic equipment Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/electronic equipment and method, it can be with It realizes by another way.For example, device described above/electronic equipment embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function can have other dividing mode in actual implementation, such as Multiple units or component may be combined or can be integrated into another system or some features can be ignored or does not perform.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and be independent product sale or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It can include:Any entity of the computer program code or device, recording medium, USB flash disk, mobile hard disk, magnetic can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of Working mode switching method applied to terminal, which is characterized in that the terminal includes acquiring sound letter The microphone module of breath and, for playing the sound box module of audio-frequency information;
The Working mode switching method includes:
Whether the predetermined patterns for sensing the terminal are in by hand-held state;
When the predetermined patterns of the terminal are in by hand-held state, the operating mode of the terminal is switched to the first mould Formula, wherein, the first mode is:The sound collection function of the microphone module is opened, and, the audio of the sound box module The pattern that playing function is closed.
2. the Working mode switching method according to claim 1 applied to terminal, which is characterized in that described in the sensing Whether the predetermined patterns of terminal are in by after hand-held state, are further included:
When the predetermined patterns of the terminal are not at the state held, the operating mode of the terminal is switched to the second mould Formula, wherein, the second mode is:The sound collection function of the microphone module is closed, and, play audio letter receiving During the instruction of breath, the pattern of the audio playing function unlatching of the sound box module.
3. the Working mode switching method according to claim 1 or 2 applied to terminal, which is characterized in that described default Position is provided with more than two first sensors;
Whether the predetermined patterns of the sensing terminal are in by hand-held state, including:
If the number of sensors in the state that is blocked is more than preset quantity in described two above first sensors, judge The predetermined patterns of the terminal are in by hand-held state, wherein, the preset quantity is total no more than the first sensor Quantity;
If the number of sensors in the state that is blocked is sentenced no more than preset quantity in described two above first sensors The predetermined patterns of the fixed terminal are not at the state held.
4. the Working mode switching method according to claim 1 or 2 applied to terminal, which is characterized in that described default Position is provided with second sensor, and the second sensor is for detecting whether there is human skin to be contacted with the predetermined patterns;
Whether the predetermined patterns of the sensing terminal are in by hand-held state, including:
If the second sensor has detected that human skin is contacted with the predetermined patterns, the default portion of the terminal is judged Position is in by hand-held state;
If the second sensor detects that no human skin is contacted with the predetermined patterns, the default portion of the terminal is judged Position is not at the state held.
5. the Working mode switching method according to claim 1 or 2 applied to terminal, which is characterized in that the terminal Predetermined patterns be provided with second sensor and 3rd sensor, the second sensor for detecting whether have human skin with The predetermined patterns contact, the 3rd sensor whether there is shelter for detecting around the predetermined patterns;
Whether the predetermined patterns of the sensing terminal are in by hand-held state, including:
If the 3rd sensor is detected around the predetermined patterns there are shelter, and, the second sensor detection To there is human skin to be contacted with the predetermined patterns, then judge that the predetermined patterns of the terminal are in by hand-held state;
If the 3rd sensor is detected there is no shelter around the predetermined patterns, alternatively, the second sensor It detects that no human skin is contacted with the predetermined patterns, then judges that the predetermined patterns of the terminal are in by hand-held state.
6. a kind of operating mode switching device applied to terminal, which is characterized in that the terminal includes acquiring sound letter The microphone module of breath and, for playing the sound box module of audio-frequency information;
The operating mode switching device includes:
Sensing unit, for sensing whether the predetermined patterns of the terminal are in by hand-held state;
Switch unit, will when being in for sensing the predetermined patterns of the terminal in the sensing unit by hand-held state The operating mode of the terminal is switched to first mode, wherein, the first mode is:The sound collection of the microphone module Function is opened, and, the pattern of the audio playing function closing of the sound box module.
7. the operating mode switching device according to claim 6 applied to terminal, which is characterized in that the switch unit It is additionally operable to:
When the predetermined patterns of the terminal are not at the state held, the operating mode of the terminal is switched to the second mould Formula, wherein, the second mode is:The sound collection function of the microphone module is closed, and, play audio letter receiving During the instruction of breath, the pattern of the audio playing function unlatching of the sound box module.
8. the operating mode switching device applied to terminal described according to claim 6 or 7, which is characterized in that described default Position is provided with more than two first sensors;
The switch unit is specifically used for:
If the number of sensors in the state that is blocked is more than preset quantity in described two above first sensors, judge The predetermined patterns of the terminal are in by hand-held state, wherein, the preset quantity is total no more than the first sensor Quantity;And
If the number of sensors in the state that is blocked is sentenced no more than preset quantity in described two above first sensors The predetermined patterns of the fixed terminal are not at the state held.
9. a kind of electronic equipment, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when performing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 the method.
CN201810091522.5A 2018-01-30 2018-01-30 Working mode switching method and device applied to terminal and electronic equipment Expired - Fee Related CN108196819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810091522.5A CN108196819B (en) 2018-01-30 2018-01-30 Working mode switching method and device applied to terminal and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810091522.5A CN108196819B (en) 2018-01-30 2018-01-30 Working mode switching method and device applied to terminal and electronic equipment

Publications (2)

Publication Number Publication Date
CN108196819A true CN108196819A (en) 2018-06-22
CN108196819B CN108196819B (en) 2020-06-05

Family

ID=62592053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810091522.5A Expired - Fee Related CN108196819B (en) 2018-01-30 2018-01-30 Working mode switching method and device applied to terminal and electronic equipment

Country Status (1)

Country Link
CN (1) CN108196819B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068239A (en) * 2018-07-17 2018-12-21 广东小天才科技有限公司 Control method, control device and the electronic equipment of terminal
CN111556410A (en) * 2020-05-20 2020-08-18 南京中芯声学技术研究院 Indoor sound amplification system working mode switching method based on multi-working mode microphone
WO2022188511A1 (en) * 2021-03-10 2022-09-15 Oppo广东移动通信有限公司 Voice assistant wake-up method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136064A1 (en) * 2003-04-16 2007-06-14 Carroll David W Mobile personal computer with movement sensor
US20090312068A1 (en) * 2008-06-17 2009-12-17 Chi Mei Communication Systems, Inc. System and method for setting and selecting a communication mode of a communication device
US20160238842A1 (en) * 2015-02-13 2016-08-18 Seiko Epson Corporation Head-mounted display device, control method for the same, and computer program
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional loudspeaker control method, directional loudspeaker control device and intelligent terminal
CN107315584A (en) * 2017-06-19 2017-11-03 维沃移动通信有限公司 The switching method and mobile terminal of a kind of mode of operation
CN107577450A (en) * 2017-09-18 2018-01-12 广东小天才科技有限公司 A kind of audio control method, audio control apparatus and intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136064A1 (en) * 2003-04-16 2007-06-14 Carroll David W Mobile personal computer with movement sensor
US20090312068A1 (en) * 2008-06-17 2009-12-17 Chi Mei Communication Systems, Inc. System and method for setting and selecting a communication mode of a communication device
US20160238842A1 (en) * 2015-02-13 2016-08-18 Seiko Epson Corporation Head-mounted display device, control method for the same, and computer program
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional loudspeaker control method, directional loudspeaker control device and intelligent terminal
CN107315584A (en) * 2017-06-19 2017-11-03 维沃移动通信有限公司 The switching method and mobile terminal of a kind of mode of operation
CN107577450A (en) * 2017-09-18 2018-01-12 广东小天才科技有限公司 A kind of audio control method, audio control apparatus and intelligent terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨海燕等: "基于传感器多模式调度的智能目标跟踪算法", 《控制理论与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068239A (en) * 2018-07-17 2018-12-21 广东小天才科技有限公司 Control method, control device and the electronic equipment of terminal
CN109068239B (en) * 2018-07-17 2021-02-19 广东小天才科技有限公司 Terminal control method, control device and electronic equipment
CN111556410A (en) * 2020-05-20 2020-08-18 南京中芯声学技术研究院 Indoor sound amplification system working mode switching method based on multi-working mode microphone
WO2022188511A1 (en) * 2021-03-10 2022-09-15 Oppo广东移动通信有限公司 Voice assistant wake-up method and apparatus

Also Published As

Publication number Publication date
CN108196819B (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN103488473B (en) A kind of management system and management method to application program for mobile terminal
CN108196819A (en) Working mode switching method, device and electronic equipment applied to terminal
CN108089691A (en) A kind of method and device for reducing terminal device power consumption
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN108196458A (en) Intelligent home equipment control method, device and terminal device
CN109933402A (en) A kind of methods of exhibiting of function menu, system and relevant device
CN106973349A (en) Directional loudspeaker control method, directional loudspeaker control device and intelligent terminal
CN107277657A (en) A kind of earphone method for retrieving, device and earphone
CN107205187A (en) A kind of method, device and terminal device based on earphone control music
CN107222898A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN108415863A (en) The hardware compatibility implementation method and Related product of electronic device
CN107197489A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107256380A (en) Fingerprint register method and Related product
CN108846271A (en) Apparatus control method, device, storage medium and electronic equipment
CN108076300A (en) Video record processing method, record processing device and mobile terminal
CN107451536A (en) Bio-identification pattern open method and Related product
CN107318140A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107277896A (en) Wifi hotspot management method, device and terminal device
CN108121529A (en) Switching method, switching device and the terminal of audio-frequency play mode
CN109814798A (en) Ear returns function control method, device and mobile terminal
CN107040955B (en) Power consumption state identification method, device and the electronic equipment of terminal
CN108363915A (en) unlocking method, mobile terminal and computer readable storage medium
CN108255461A (en) A kind of control method of mobile terminal, mobile terminal and storage medium
CN107808086A (en) A kind of unlocking method of intelligent terminal, device and equipment
CN107577450A (en) A kind of audio control method, audio control apparatus and intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200605