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

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

Info

Publication number
CN108196819B
CN108196819B CN201810091522.5A CN201810091522A CN108196819B CN 108196819 B CN108196819 B CN 108196819B CN 201810091522 A CN201810091522 A CN 201810091522A CN 108196819 B CN108196819 B CN 108196819B
Authority
CN
China
Prior art keywords
terminal
preset part
mode
preset
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810091522.5A
Other languages
Chinese (zh)
Other versions
CN108196819A (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

Images

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 invention is applicable to the technical field of terminals, and provides a working mode switching method, a working mode switching device, electronic equipment and a computer readable storage medium applied to a terminal, wherein the working mode switching method comprises the following steps: sensing whether a preset part of the terminal is in a handheld state or not; when the preset part of the terminal is in a handheld state, switching the working mode of the terminal into a first mode, wherein the first mode is as follows: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module. The invention can improve the convenience of switching the working modes of the terminal.

Description

Working mode switching method and device applied to terminal and electronic equipment
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for switching operating modes of a terminal, an electronic device, and a computer-readable storage medium.
Background
At present, many terminal products with multiple functions exist in the market, such as a microphone sound box, wherein the microphone sound box has a sound collection function and an audio playing function, and can be used for collecting sound information of the current environment and playing audio contents; for example, when the microphone speaker is connected to the tablet computer, the tablet computer may start a sound collection function of the microphone speaker to enter voice information of a user; the tablet computer can also start the audio playing function of the microphone sound box to play the audio content on the tablet computer.
However, when playing audio contents through the microphone speaker, if a user needs to input voice information, the user needs to manually operate to turn off the audio playing function of the microphone speaker and manually operate to start the sound collecting function of the microphone; when the user no longer needs to input the voice information, the user needs to manually operate to close the voice acquisition function of the microphone loudspeaker box. Therefore, the switching of the working modes of the microphone loudspeaker box in the prior art is not convenient enough.
Disclosure of Invention
In view of the above, the present invention provides a method, a device, an electronic apparatus and a computer-readable storage medium for switching operating modes of a terminal, which can improve convenience of switching operating modes of the terminal.
The first aspect of the invention provides a working mode switching method applied to a terminal, wherein the terminal comprises a microphone module for collecting sound information and a sound box module for playing audio information;
the working mode switching method comprises the following steps:
sensing whether a preset part of the terminal is in a handheld state or not;
when the preset part of the terminal is in a handheld state, switching the working mode of the terminal into a first mode, wherein the first mode is as follows: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module.
A second aspect of the present invention provides a device for switching operating modes of a terminal, where the terminal includes a microphone module for collecting sound information and a speaker module for playing audio information;
the operation mode switching device includes:
the sensing unit is used for sensing whether a preset part of the terminal is in a handheld state or not;
the switching unit is used for switching the working mode of the terminal into a first mode when the sensing unit senses that the preset part of the terminal is in a handheld state, wherein the first mode is as follows: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module.
A third aspect of the present invention provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the operating mode switching method according to any one of the preceding claims when executing the computer program.
A fourth aspect of the invention provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the operating mode switching method according to any one of the preceding claims.
Compared with the prior art, the invention has the following beneficial effects:
the invention switches the working mode of the terminal into a first mode by sensing whether the preset part of the terminal is in a handheld state or not and when the preset part of the terminal is in the handheld state, wherein the first mode is as follows: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off; the problem that the working mode switching of the microphone is not convenient enough in the prior art is solved; that is, through the sensing whether the position of predetermineeing at terminal is in by handheld state when the position of predetermineeing at terminal is in by handheld state, judges that the user has the demand of gathering sound information, consequently opens the sound collection function of microphone module automatically to the audio playback function of self-closing audio amplifier module, thereby avoided the user to need the operation of manually opening sound collection function and manually closing audio playback function, improved the convenience of switching terminal mode.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for switching operating modes of a terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of an implementation of a method for switching operating modes of a terminal according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an operating mode switching apparatus applied to a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, which shows a flowchart of an implementation of the method for switching the working mode of a terminal according to the embodiment of the present invention, an execution main body of the method for switching the working mode of a terminal according to the embodiment of the present invention may be a terminal, or may be another terminal in communication connection with the terminal, where the terminal is an external device having functions of a microphone and a sound box, and the another terminal may be an intelligent device such as a mobile phone or a tablet.
The above-mentioned working mode switching method is detailed as follows:
step 101, sensing whether a preset part of a terminal is in a handheld state or not;
in an embodiment of the present invention, the terminal includes a microphone module for collecting sound information and a speaker module for playing audio information, for example, the terminal is a microphone with an audio playing function, or the terminal is a speaker with a sound collecting function.
In the embodiment of the present invention, the preset portion is a portion that is held by a user when the user records sound, and in practical applications, by providing a sensor on the preset portion, based on a sensing result of the provided sensor, it is determined whether the preset portion of the terminal is held by the user, that is, it is determined whether the user holds the terminal by the user, and then switching of the terminal operating mode is performed based on the determination result.
Optionally, the preset portion of the terminal is provided with more than two first sensors, and the step 101 may be implemented based on the following steps:
step A1, acquiring the number of sensors in a shielded state in the more than two first sensors;
in this embodiment, the state of the first sensors disposed on the preset portion of the terminal is monitored, and based on the number of the first sensors in the blocked state, it is determined whether the preset portion of the terminal is in a handheld state.
In practical application, the first sensor may be an infrared sensor, the infrared sensor is in a shielded state when an object approaches, the infrared sensor is in an unshielded state when no object is shielded, for example, when a human hand holds a preset part of the terminal, a part of the infrared sensor arranged on the preset part is necessarily in the shielded state.
In an application scenario, the preset portion of the terminal is a cylindrical shape, the first sensors may be annularly disposed on a side surface of the cylindrical shape, and a certain distance is kept between adjacent first sensors, so that when a user holds the terminal, due to the fact that the user holds the cylindrical side surface, part of the sensors disposed on the cylindrical side surface will be in a shielded state.
Step A2, if the number of sensors in a shielded state in the more than two first sensors is greater than a preset number, determining that a preset part of the terminal is in a handheld state, wherein the preset number is not greater than the total number of the first sensors;
step a3, if the number of the sensors in the blocked state in the two or more first sensors is not greater than the preset number, determining that the preset part of the terminal is not in the handheld state.
It should be noted that the preset number is related to the distance between adjacent first sensors and the specific position where the first sensor is disposed, and the preset number may be flexibly set according to the distance between adjacent first sensors and the specific position where the first sensor is disposed, which is not limited herein.
Further, the first sensor is an infrared sensor, based on which the distance from the object close to the first sensor can be detected, and based on which the temperature of the object close to the first sensor can also be detected; when determining whether the preset portion of the terminal is held by the hand, the determination may be further based on a distance from an object close to the first sensor and a temperature of the object close to the first sensor.
Specifically, when it is detected that the distance from the object close to the first sensor is smaller than a preset distance threshold value and the temperature of the object close to the first sensor is within a preset temperature range, it is determined that the preset part of the terminal is in a handheld state;
specifically, when it is detected that the distance from the object close to the first sensor is not less than a preset distance threshold, or the temperature of the object close to the first sensor is not within a preset temperature range, it is determined that the preset portion of the terminal is not in a handheld state.
Optionally, a second sensor is arranged at the preset part, and the second sensor is used for detecting whether human skin contacts with the preset part; the above step 101 can be implemented based on the following steps:
step B1, if the second sensor detects that the skin of the human body is in contact with the preset part, judging that the preset part of the terminal is in a handheld state;
and step B2, if the second sensor detects that no human skin is in contact with the preset part, judging that the preset part of the terminal is not in a handheld state.
In this embodiment, the second sensor is a capacitive touch sensor, and it is determined whether human skin is in contact with the capacitive touch sensor based on a sensing result of the capacitive touch sensor; when the skin of a human body is in contact with the capacitive touch sensor, judging that the preset part of the terminal is in a handheld state; and when no human skin is in contact with the capacitive touch sensor, judging that the preset part of the terminal is not in a handheld state.
Optionally, a second sensor and a third sensor are arranged at a preset part of the terminal, the second sensor is used for detecting whether human skin contacts the preset part, and the third sensor is used for detecting whether a shielding object exists around the preset part; the above step 101 can be implemented based on the following steps:
step C1, if the third sensor detects that a shielding object exists around the preset part and the second sensor detects that the skin of the human body is in contact with the preset part, judging that the preset part of the terminal is in a handheld state;
and step C2, if the third sensor detects that no shielding object exists around the preset part, or the second sensor detects that no human skin is in contact with the preset part, judging that the preset part of the terminal is in a handheld state.
In this embodiment, the third sensor is an infrared sensor, the second sensor is a capacitive touch sensor, and whether a blocking object exists around a preset part of the terminal is determined based on a sensing result of the infrared sensor; determining whether human skin is in contact with a preset part of the terminal or not based on a sensing result of the capacitive touch sensor;
if the infrared sensor detects that a shielding object exists around the preset part and the capacitive touch sensor detects that human skin is in contact with the preset part, judging that the preset part of the terminal is in a handheld state;
if the infrared sensor detects that no shielding object exists around the preset part, or the capacitive touch sensor detects that no human skin is in contact with the preset part, it is judged that the preset part of the terminal is in a handheld state.
Step 102, when a preset part of the terminal is in a handheld state, switching a working mode of the terminal into a first mode;
wherein the first mode is: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module.
In the embodiment of the present invention, when it is sensed that the preset portion of the terminal is in a handheld state, that is, when the user holds the terminal, it is determined that the user has a requirement for using the microphone module of the terminal to collect sound, so that the audio playing function of the speaker module of the terminal is turned off, and the sound collecting function of the microphone module of the terminal is turned on, so that the user can use the microphone module of the terminal to collect sound.
As can be seen from the above, the present invention switches the working mode of the terminal to the first mode by sensing whether the preset portion of the terminal is in a handheld state, when the preset portion of the terminal is in the handheld state, wherein the first mode is: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off; the problem that the working mode switching of the microphone is not convenient enough in the prior art is solved; that is, through the sensing whether the position of predetermineeing at terminal is in by handheld state when the position of predetermineeing at terminal is in by handheld state, judges that the user has the demand of gathering sound information, consequently opens the sound collection function of microphone module automatically to the audio playback function of self-closing audio amplifier module, thereby avoided the user to need the operation of manually opening sound collection function and manually closing audio playback function, improved the convenience of switching terminal mode.
Fig. 2 shows a flowchart of an implementation of a method for switching an operating mode applied to a terminal according to another embodiment of the present invention, which is detailed as follows:
step 201, sensing whether a preset part of a terminal is in a handheld state;
step 202, when a preset part of the terminal is in a handheld state, switching a working mode of the terminal into a first mode; wherein the first mode is: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off;
in the embodiment of the present invention, the step 201 and the step 202 may specifically refer to the step 101 and the step 102 in the embodiment described in fig. 1, and are not described herein again.
Step 203, when the preset part of the terminal is not in a handheld state, switching the working mode of the terminal to a second mode; wherein the second mode is: and the sound collection function of the microphone module is closed, and when an instruction for playing audio information is received, the audio playing function of the sound box module is started.
In the embodiment of the present invention, when the preset portion of the terminal is not in a handheld state, that is, when the preset portion of the terminal is not sensed to be in the handheld state, it is determined that the user does not have a requirement for using the microphone module of the terminal to perform sound collection, so that the sound collection function of the microphone module of the terminal is automatically turned off, and the terminal is controlled to be in a standby state, and in the standby state, when the terminal receives an instruction to play audio information, the audio playing function of the speaker module of the terminal is turned on to play corresponding audio content.
As can be seen from the above, the present invention switches the working mode of the terminal to the first mode by sensing whether the preset portion of the terminal is in a handheld state, when the preset portion of the terminal is in the handheld state, wherein the first mode is: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off; the problem that the working mode switching of the microphone is not convenient enough in the prior art is solved; that is, through the sensing whether the position of predetermineeing at terminal is in by handheld state when the position of predetermineeing at terminal is in by handheld state, judges that the user has the demand of gathering sound information, consequently opens the sound collection function of microphone module automatically to the audio playback function of self-closing audio amplifier module, thereby avoided the user to need the operation of manually opening sound collection function and manually closing audio playback function, improved the convenience of switching terminal mode.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 is a schematic structural diagram of an operation mode switching apparatus applied to a terminal according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which is detailed as follows:
the terminal comprises a microphone module for collecting sound information and a sound box module for playing audio information. As shown in fig. 3, the operation mode switching device 3 includes: a sensing unit 31 and a switching unit 32.
A sensing unit 31 for sensing whether a preset portion of the terminal is held by a hand;
a switching unit 32, configured to switch a working mode of the terminal to a first mode when the sensing unit 31 senses that the preset portion of the terminal is in a handheld state, where the first mode is: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module.
Optionally, the switching unit 32 is further configured to:
when the preset part of the terminal is not in a handheld state, switching the working mode of the terminal to a second mode, wherein the second mode is as follows: and the sound collection function of the microphone module is closed, and when an instruction for playing audio information is received, the audio playing function of the sound box module is started.
Optionally, more than two first sensors are arranged at the preset part; the switching unit 32 is specifically configured to:
if the number of the sensors in the shielded state in the more than two first sensors is larger than a preset number, judging that a preset part of the terminal is in a handheld state, wherein the preset number is not larger than the total number of the first sensors; and the number of the first and second groups,
and if the number of the sensors in the shielded state in the more than two first sensors is not more than the preset number, judging that the preset part of the terminal is not in a handheld state.
As can be seen from the above, the present invention switches the working mode of the terminal to the first mode by sensing whether the preset portion of the terminal is in a handheld state, when the preset portion of the terminal is in the handheld state, wherein the first mode is: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off; the problem that the working mode switching of the microphone is not convenient enough in the prior art is solved; that is, through the sensing whether the position of predetermineeing at terminal is in by handheld state when the position of predetermineeing at terminal is in by handheld state, judges that the user has the demand of gathering sound information, consequently opens the sound collection function of microphone module automatically to the audio playback function of self-closing audio amplifier module, thereby avoided the user to need the operation of manually opening sound collection function and manually closing audio playback function, improved the convenience of switching terminal mode.
Fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 4, the electronic apparatus 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the operation mode switching method, such as the steps 101 to 102 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the units 31 to 32 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the electronic device 4. For example, the computer program 42 may be divided into a sensing unit and a switching unit, each unit having the following specific functions:
the sensing unit is used for sensing whether a preset part of the terminal is in a handheld state or not;
the switching unit is used for switching the working mode of the terminal into a first mode when the sensing unit senses that the preset part of the terminal is in a handheld state, wherein the first mode is as follows: and the microphone module is in a mode of opening a sound collection function and closing an audio playing function of the sound box module.
The electronic device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The electronic device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of an electronic device 4 and does not constitute a limitation of the electronic device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or a memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used for storing the computer program and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A working mode switching method applied to a terminal is characterized in that the terminal comprises a microphone module for collecting sound information and a sound box module for playing audio information;
the working mode switching method comprises the following steps:
sensing whether a preset part of the terminal is in a handheld state or not;
when the preset part of the terminal is in a handheld state, switching the working mode of the terminal into a first mode, wherein the first mode is as follows: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off;
when the preset part of the terminal is not in a handheld state, switching the working mode of the terminal to a second mode, wherein the second mode is as follows: and the sound collection function of the microphone module is closed, and when an instruction for playing audio information is received, the audio playing function of the sound box module is started.
2. The method for switching the operation mode of the terminal according to claim 1, wherein the predetermined portion is provided with two or more first sensors;
the sensing whether the preset part of the terminal is held by a hand or not includes:
if the number of the sensors in the shielded state in the more than two first sensors is larger than a preset number, judging that a preset part of the terminal is in a handheld state, wherein the preset number is not larger than the total number of the first sensors;
and if the number of the sensors in the shielded state in the more than two first sensors is not more than the preset number, judging that the preset part of the terminal is not in a handheld state.
3. The method for switching the operation mode of the terminal according to claim 1, wherein the predetermined portion is provided with a second sensor for detecting whether the skin of the human body is in contact with the predetermined portion;
the sensing whether the preset part of the terminal is held by a hand or not includes:
if the second sensor detects that the skin of the human body is in contact with the preset part, judging that the preset part of the terminal is in a handheld state;
and if the second sensor detects that no human skin is in contact with the preset part, judging that the preset part of the terminal is not in a handheld state.
4. The method for switching the working mode of the terminal according to claim 1, wherein a second sensor and a third sensor are arranged at a preset part of the terminal, the second sensor is used for detecting whether human skin contacts with the preset part, and the third sensor is used for detecting whether a shelter exists around the preset part;
the sensing whether the preset part of the terminal is held by a hand or not includes:
if the third sensor detects that a shielding object exists around the preset part and the second sensor detects that the skin of the human body is in contact with the preset part, judging that the preset part of the terminal is in a handheld state;
if the third sensor detects that no shielding object exists around the preset part, or the second sensor detects that no human skin is in contact with the preset part, the preset part of the terminal is judged to be in a handheld state.
5. The working mode switching device is applied to the terminal, and is characterized in that the terminal comprises a microphone module for collecting sound information and a sound box module for playing audio information;
the operation mode switching device includes:
the sensing unit is used for sensing whether a preset part of the terminal is in a handheld state or not;
the switching unit is used for switching the working mode of the terminal into a first mode when the sensing unit senses that the preset part of the terminal is in a handheld state, wherein the first mode is as follows: a mode in which a sound collection function of the microphone module is turned on and an audio playing function of the speaker module is turned off; when the preset part of the terminal is not in a handheld state, switching the working mode of the terminal to a second mode, wherein the second mode is as follows: and the sound collection function of the microphone module is closed, and when an instruction for playing audio information is received, the audio playing function of the sound box module is started.
6. The device for switching operation mode of a terminal according to claim 5, wherein the predetermined portion is provided with more than two first sensors;
the switching unit is specifically configured to:
if the number of the sensors in the shielded state in the more than two first sensors is larger than a preset number, judging that a preset part of the terminal is in a handheld state, wherein the preset number is not larger than the total number of the first sensors; and the number of the first and second groups,
and if the number of the sensors in the shielded state in the more than two first sensors is not more than the preset number, judging that the preset part of the terminal is not in a handheld state.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
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 CN108196819A (en) 2018-06-22
CN108196819B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115083400A (en) * 2021-03-10 2022-09-20 Oppo广东移动通信有限公司 Voice assistant awakening method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 广东小天才科技有限公司 Audio control method, audio control device and intelligent terminal

Family Cites Families (3)

* 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
CN101610307A (en) * 2008-06-17 2009-12-23 深圳富泰宏精密工业有限公司 Answering modes of mobile phone switched system and method
US9794684B2 (en) * 2015-02-13 2017-10-17 Seiko Epson Corporation Head-mounted display device, control method for the same, and computer program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 广东小天才科技有限公司 Audio control method, audio control device and intelligent terminal

Also Published As

Publication number Publication date
CN108196819A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108196819B (en) Working mode switching method and device applied to terminal and electronic equipment
CN104571922B (en) Touch-responsive method, apparatus and terminal
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
CN104021350A (en) Privacy-information hiding method and device
CN106155504A (en) Module awakening method and device
US11537238B2 (en) Touch control identification method, device and system
CN106598488A (en) Distributed data reading method and device
CN106484614B (en) A kind of method, device and mobile terminal for checking picture treatment effect
CN105933512A (en) Safety communication method and device, and mobile terminal
CN110244849B (en) Proximity recognition method and device, mobile terminal and storage medium
CN112905035A (en) Touch screen control method and device and computer storage medium
CN106325621B (en) Mobile terminal and touch-responsive method
CN111970671B (en) Control method and device of near field communication module and electronic equipment
CN105094608A (en) Task display method and device
CN106465556B (en) Metal cap body and electronic equipment
CN107239236A (en) Method for writing data and device
CN110188659B (en) Health detection method and related product
CN110460713B (en) Terminal operation method and device, storage medium and electronic device
CN104076923A (en) Terminal
CN108536512B (en) Interface switching method and device and terminal equipment
CN110809083A (en) Mobile terminal information reminding method, mobile terminal and storage medium
CN115278431A (en) State determination method and device, electronic equipment and readable storage medium
CN109189259B (en) Touch erase anti-interference method and device and terminal equipment
CN109658930B (en) Voice signal processing method, electronic device and computer readable storage medium

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

Granted publication date: 20200605

CF01 Termination of patent right due to non-payment of annual fee