CN111831100A - Electronic device control method and device, storage medium and electronic device - Google Patents

Electronic device control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111831100A
CN111831100A CN202010642482.6A CN202010642482A CN111831100A CN 111831100 A CN111831100 A CN 111831100A CN 202010642482 A CN202010642482 A CN 202010642482A CN 111831100 A CN111831100 A CN 111831100A
Authority
CN
China
Prior art keywords
state
voice
function
electronic device
voice awakening
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
CN202010642482.6A
Other languages
Chinese (zh)
Other versions
CN111831100B (en
Inventor
陈喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010642482.6A priority Critical patent/CN111831100B/en
Publication of CN111831100A publication Critical patent/CN111831100A/en
Application granted granted Critical
Publication of CN111831100B publication Critical patent/CN111831100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a control method and device of electronic equipment, a storage medium and the electronic equipment, wherein the power mode of the electronic equipment is detected, when the electronic equipment is detected to enter a power saving mode, the state of a voice awakening function is acquired, when the voice awakening function is in an on state, the voice awakening function is turned off, the state of the voice awakening function is switched to a first off state, when the electronic equipment is detected to exit the power saving mode, the voice awakening function is turned on, and the voice awakening function is switched from the first off state to the on state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.

Description

Electronic device control method and device, storage medium and electronic device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an electronic device, a storage medium, and an electronic device.
Background
With the continuous development of electronic technology, electronic devices such as mobile phones have become an indispensable part of more and more multi-user lives. And with the dependence degree of the user on the mobile phone becoming larger and larger, the functional requirements on the mobile phone also become higher and higher. For example, the voice wake-up function that frees up the hands of the user has become an essential function of more and more mobile phones. But the voice awakening function has larger power consumption, and the cruising ability of the mobile phone is seriously influenced.
Disclosure of Invention
The embodiment of the application provides a control method and device of electronic equipment, a storage medium and the electronic equipment, which can save the power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, including:
detecting a power mode of the electronic device;
when detecting that the electronic equipment enters a power saving mode, acquiring the state of a voice awakening function;
when the voice awakening function is in an on state, the voice awakening function is turned off, and the state of the voice awakening function is switched to a first off state;
and when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from the first closed state to the open state.
In a second aspect, an embodiment of the present application provides a control apparatus for an electronic device, including:
the first detection unit is used for detecting the power mode of the electronic equipment;
the second detection unit is used for acquiring the state of the voice awakening function when the electronic equipment is detected to enter the power saving mode;
the first switching unit is used for closing the voice awakening function when the voice awakening function is in an open state and switching the state of the voice awakening function to a first closed state;
and the second switching unit is used for starting the voice awakening function and switching the voice awakening function from the first closed state to the open state when the electronic equipment is detected to exit the power saving mode.
In a third aspect, a storage medium is provided in an embodiment of the present application, and has a computer program stored thereon, where the computer program is enabled to execute a control method of an electronic device according to any embodiment of the present application when the computer program runs on a computer.
In a fourth aspect, the electronic device provided in this embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the control method of the electronic device provided in any embodiment of the present application by calling the computer program.
The embodiment of the application detects the power mode of the electronic equipment, acquires the state of the voice awakening function when detecting to enter the power saving mode, closes the voice awakening function when the voice awakening function is in the open state, switches the state of the voice awakening function to the first closed state, and opens the voice awakening function when detecting to exit the power saving mode, and switches the voice awakening function to the open state from the first closed state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a scene schematic diagram of a control method of an electronic device according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram illustrating state switching of a voice wakeup function according to an embodiment of the present application.
Fig. 4 is a schematic view of a display state of a switch control of a voice wake-up control interface according to an embodiment of the present application.
Fig. 5 is another schematic flowchart of a control method of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic flowchart of a control method of an electronic device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to a control method of the electronic device provided in the embodiment of the present application.
Fig. 9 is another schematic structural diagram of an electronic device according to a control method of the electronic device provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An execution main body of the voice wake-up switching method may be a control device of the electronic device provided in the embodiment of the present application, or an electronic device integrating control specialization of the electronic device, where the control device of the electronic device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, or other devices, and may also be a game device, an AR (Augmented Reality) device, an automobile device, a data storage device, an audio playing device, a video playing device, a notebook computer, a desktop computing device, or other devices.
For example, taking an execution subject of the control method of the electronic device as an example, as shown in fig. 1, fig. 1 is a scene schematic diagram of the control method of the electronic device provided in the embodiment of the present application, and the electronic device may detect a power mode of the electronic device; when detecting that the electronic equipment enters a power saving mode, acquiring the state of a voice awakening function; when the voice awakening function is in an on state, the voice awakening function is turned off, and the state of the voice awakening function is switched to a first off state; and when the electronic equipment is detected to exit the power saving mode, the voice awakening function is started, and the voice awakening function is switched from the first closed state to the opened state. When the voice awakening function is started, the user can speak to the electronic terminal to indicate the electronic equipment to respond to the corresponding voice instruction. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
The first embodiment,
An embodiment of the present application provides a method for controlling an electronic device, as shown in fig. 2, fig. 2 is a schematic flowchart of the method for controlling the electronic device provided in the embodiment of the present application, and the method for controlling the electronic device may include the following steps:
101. a power mode of the electronic device is detected.
In the embodiment of the application, a power saving mode is provided for a power supply of the electronic device, wherein when the electric quantity of the electronic device is lower than a certain preset electric quantity threshold value, the electronic device is controlled to enter the power saving mode, and in the power saving mode, a part of application programs or functions of the electronic device are closed or limited to prolong the endurance time.
In an embodiment, a preset power threshold may be set to determine whether to enter the power saving mode, and the power saving mode is entered when the current power is smaller than the preset power threshold. Or the user wants to extend the endurance of the electronic device to automatically turn on the power saving mode.
102. And when the electronic equipment is detected to enter the power saving mode, acquiring the state of the voice awakening function.
The electronic equipment comprises a voice awakening chip which provides a voice awakening function for the electronic equipment. The voice wake-up chip includes a voice detection module, for example, the voice detection module may be a Digital Signal Processor (DSP) configured to detect the received voice information.
The state of the voice wake-up function comprises three states: an open state (open), a first closed state (basic), and a second closed state (user).
Specifically, the on state is a state in which the voice wake-up function is on, the first off state is a state in which the voice wake-up function is automatically turned off by the electronic device entering the power saving mode, and the second off state is a state in which the user automatically turns off the voice wake-up function.
The first off state and the second off state of the voice wake-up function are both the state that the digital signal processor is switched to the dormant state while the microphone is turned off by the electronic equipment.
In an embodiment, the three states of the voice wakeup function respectively correspond to three display states of the switch control on the voice wakeup interface, where the on state corresponds to an on display state of the switch control on the voice wakeup interface, the first off state corresponds to a first off display state of the switch control on the voice wakeup interface, and the second off state corresponds to a second off display state of the switch control on the voice wakeup interface.
The following description is made with reference to fig. 3, as shown in fig. 3:
(1) when the voice awakening function is in an off state, no matter the voice awakening function is in a first off state or a second off state, when the display state of the switch control triggered by a user is in an on display state, the voice awakening function of the electronic equipment is on, at the moment, the voice awakening function of the electronic equipment is in an on state, and the display state of the switch control on the corresponding voice awakening interface is in an on display state; when a user triggers the switch control to close the voice awakening function of the electronic equipment, the voice awakening function of the electronic equipment is in a second closed state, and the display state of the switch control on the corresponding voice awakening interface is in a second closed display state;
(2) when entering a power saving mode, if the voice awakening function is in an on state, the electronic equipment automatically turns off the voice awakening function, the state of the voice awakening function is switched to a first off state, and at the moment, the display state of a switch control on the voice awakening interface is a first off display state;
(3) when the electronic equipment exits the power saving mode, if the state of the voice awakening function is the first closing state, the electronic equipment automatically opens the voice awakening function, the state of the voice awakening function is switched to the opening state, and the display state of the switch control on the voice awakening interface is the opening display state.
As shown in fig. 4, fig. 4 is a schematic view of a display state of a switch control of a voice wake-up control interface according to an embodiment of the present application. The states of the different voice awakening functions correspond to the display states of the different switch controls, so that the condition of the current voice awakening function is prompted to a user. For convenience of understanding, fig. 4 illustrates three controls, and which control is highlighted or enlarged and displayed when the state of the voice wakeup function of the current electronic device is in which state.
In an embodiment, there may be only one switch control, the user may be prompted by an image change or a shading change of the switch control to a current voice wake-up function, and the user may change the switching of the state of the voice wake-up function by using a preset gesture or by using the number of clicks for setting the voice wake-up function, which is not specifically limited herein.
In an embodiment, the display states of the switch control of the voice wake-up control interface may also be only two states, namely, an on display state and an off display state, where the off display state corresponds to the first off display state and the second off display state, so as to remind the user of the current voice wake-up function.
103. And when the voice awakening function is in the opening state, closing the voice awakening function and switching the state of the voice awakening function to a first closing state.
The off state of the voice wakeup function automatically turned off in the power saving mode corresponds to a first off state.
In one embodiment, the step of turning off the voice wakeup function may include: and turning off the microphone, and sending a turning-off signal to the digital signal processor, wherein the turning-off signal is used for instructing the digital signal processor to switch from the working state to the dormant state, and the digital signal processor is used for detecting voice data.
The microphone is an energy conversion device for converting a sound signal into an electric signal and is used for collecting sound information. Turning off the microphone causes the microphone to no longer listen to the user's voice, i.e., to stop acquiring audio data. Wherein, the sleep state means that the digital signal processor is no longer operating.
In an embodiment, as shown in fig. 5, when it is detected that the electronic device is in the power saving mode, sending a detection message to the voice wake-up service, where the voice wake-up service detects a current state of the voice wake-up function, and if the current state of the voice wake-up function is in a second off state, no operation is performed; and if the current state of the voice awakening function is in an on state, the voice awakening service sends a closing signal to the digital signal processor, and the digital signal processor receives the closing signal and switches from a working state to a dormant state. The electronic equipment controls the microphone to be closed, stops monitoring the voice of the user, and controls the display state of the switch control on the voice awakening control interface to be switched into a first closed display state so as to prompt the user of the current state of the voice awakening function of the electronic equipment.
If the user still wants to use the voice awakening function at this time, the user can select to manually turn on the switch control, so that the voice awakening function is turned on.
In one embodiment, the user may also be prompted in the status bar by a voice assistant popup box, for example, the text message in the popup box may be: the voice wake-up function is turned off in the "power saving mode", or the "voice wake-up function is turned off".
104. And when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from a first closed state to an open state.
For example, when the user charges, the user exits the power saving mode when monitoring that the current power is higher than the preset power threshold, or the user sets the user to exit the power saving mode.
In one embodiment, the step of turning on the voice wake-up function may include the steps of: and starting a microphone, and sending a starting signal to the digital signal processor, wherein the starting signal is used for indicating the digital signal processor to be switched from a dormant state to a working state.
In an embodiment, as shown in fig. 5, when it is detected that the electronic device exits the power saving mode, sending a detection message to the voice wake-up service, where the voice wake-up service detects a current state of the voice wake-up function, and if the current state of the voice wake-up function is in a second off state or an on state, there is no operation; if the current state of the voice awakening function is in a first closed state, the voice awakening service sends a starting signal to the digital signal processor, and at the moment, the digital signal processor is switched to a working state from a dormant state. The electronic equipment controls the microphone to be started, monitors the voice of the user through the microphone, and controls the display state of the switch control on the voice awakening control interface to be switched to the starting display state so as to prompt the current state of the voice awakening function of the electronic equipment of the user.
In one embodiment, the user may also be prompted in the status bar by a voice assistant popup box, for example, the text message in the popup box may be: "exit power saving mode, turned on voice wakeup function", or "turned on voice wakeup function".
To sum up, this application embodiment detects electronic equipment's power mode, when detecting to get into the power saving mode, acquires the state of pronunciation awakening function, when pronunciation awakening function is in the on state, closes the pronunciation awakening function to switch the state of pronunciation awakening function to first off state, when detecting to withdraw from the power saving mode, open the pronunciation awakening function, and follow the pronunciation awakening function first off state switches to the on state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
Example II,
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure. Specifically, the method comprises the following steps:
201. a power mode of the electronic device is detected.
For example, a preset power threshold may be set to determine whether to enter the power saving mode, and the power saving mode may be entered when the current power is less than the preset power threshold. Or the user wants to extend the endurance of the electronic device to automatically turn on the power saving mode.
202. And when the electronic equipment is detected to enter the power saving mode, acquiring the state of the voice awakening function.
The state of the voice wake-up function comprises three states: an open state, a first closed state, and a second closed state.
Specifically, the on state is a state in which the voice wake-up function is on, the first off state is a state in which the voice wake-up function is automatically turned off by the electronic device entering the power saving mode, and the second off state is a state in which the user automatically turns off the voice wake-up function.
In some embodiments, there may be only one switch control, and the user may be prompted by an image change or a shading change of the switch control to a current voice wake-up function, and the user may change the switching of the state of the voice wake-up function by using a preset gesture or by clicking times for setting the voice wake-up function, which is not limited herein.
203. And when the voice awakening function is in the opening state, closing the voice awakening function and switching the state of the voice awakening function to a first closing state.
Specifically, the microphone is turned off, and a turn-off signal for instructing the digital signal processor to switch from an operating state to a sleep state is sent to the digital signal processor, wherein the digital signal processor is used for performing detection of voice data.
The microphone is an energy conversion device for converting a sound signal into an electric signal and is used for collecting sound information. The sleep state refers to the digital signal processor no longer operating.
204. And switching the display state of the switch control on the voice awakening control interface from the open display state to a first closed display state.
Specifically, a first off display state of the switch control corresponds to a first off state of the voice wake-up function. When the state of the voice awakening function is switched from the on state to the first off state, the display state of the switch control on the voice awakening control interface is correspondingly switched from the on display state to the first off display state.
The display states of the switch control on the voice awakening control interface comprise three display states.
Specifically, please refer to fig. 4: an on display state, a first off display state, and a second off display state. The states of different voice awakening functions correspond to the display states of different switch controls. Specifically, the on state corresponds to an on display state of the switch control on the voice wakeup interface, the first off state corresponds to a first off display state of the switch control on the voice wakeup interface, and the second off state corresponds to a second off display state of the switch control on the voice wakeup interface.
In an embodiment, a user can quickly turn on or off the voice wake-up function of the electronic device in a "shake-shake" triggering manner to switch to different states of the voice wake-up function, and switch a corresponding display state corresponding to a switch control on the voice wake-up control interface.
In some embodiments, the display states of the switch control of the voice wake-up control interface may also be only two states, namely, an on display state and an off display state, where the off display state corresponds to the first off display state and the second off display state, so as to remind the user of the current voice wake-up function.
205. And when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from a first closed state to an open state.
For example, when the user charges, the user exits the power saving mode when monitoring that the current power is higher than the preset power threshold, or the user sets the user to exit the power saving mode.
For example, the electronic device controls the microphone to turn on and sends an on signal to the digital signal processor, wherein the on signal is used for instructing the digital signal processor to switch from a sleep state to an operating state. And monitoring the voice of the user through a microphone, continuously acquiring audio data, and sending the audio data to a digital signal processor for processing.
206. And switching the display state of the switch control on the voice awakening control interface from a first closed display state to an open display state.
Specifically, the on state of the display state of the switch control corresponds to the on state of the voice wake-up function. When the state of the voice awakening function is switched from the first closing state to the opening state, the display state of the switch control on the voice awakening interface is correspondingly switched from the first closing display state to the opening display state.
To sum up, this application embodiment detects electronic equipment's power mode, when detecting to get into the power saving mode, acquires the state of pronunciation awakening function, when pronunciation awakening function is in the on state, closes the pronunciation awakening function to switch the state of pronunciation awakening function to first off state, when detecting to withdraw from the power saving mode, open the pronunciation awakening function, and follow the pronunciation awakening function first off state switches to the on state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
Example III,
In order to better implement the control method of the electronic device provided by the embodiment of the present application, the embodiment of the present application further provides a control apparatus of the electronic device. The terms are the same as those in the control method of the electronic device, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present disclosure. Specifically, the control device for an electronic device includes: a first detection unit 301, a second detection unit 302, a first switching unit 303, and a second switching unit 304.
A first detection unit 301 for detecting a power mode of the electronic device;
in the embodiment of the application, a power saving mode is provided for a power supply of the electronic device, wherein when the electric quantity of the electronic device is lower than a certain preset electric quantity threshold value, the electronic device is controlled to enter the power saving mode, and in the power saving mode, a part of application programs or functions of the electronic device are closed or limited to prolong the endurance time.
For example, a preset power threshold may be set to determine whether to enter the power saving mode, and the power saving mode may be entered when the current power is less than the preset power threshold. Or the user wants to extend the endurance of the electronic device to automatically turn on the power saving mode.
A second detecting unit 302, configured to acquire a state of a voice wake-up function when it is detected that the electronic device enters a power saving mode;
the state of the voice wake-up function comprises three states: an open state, a first closed state, and a second closed state.
The first switching unit 303 is configured to close the voice wakeup function when the voice wakeup function is in an on state, and switch the state of the voice wakeup function to a first off state;
for example, the microphone is turned off and a turn-off signal is sent to the digital signal processor, the turn-off signal being used to instruct the digital signal processor to switch from an active state to a sleep state, wherein the digital signal is used to perform the detection of the voice data.
The microphone is an energy conversion device for converting a sound signal into an electric signal and is used for collecting sound information. The sleep state refers to the digital signal processor no longer operating.
A second switching unit 304, configured to, when it is detected that the electronic device exits the power saving mode, turn on the voice wake-up function, and switch the voice wake-up function from the first off state to an on state.
For example, when the user charges, the user exits the power saving mode when monitoring that the current power is higher than the preset power threshold, or the user sets the user to exit the power saving mode.
For example, a microphone is turned on and an on signal is sent to the digital signal processor instructing the digital signal processor to switch from a sleep state to an operational state. And monitoring the voice of the user through a microphone, continuously acquiring audio data, and sending the audio data to a digital signal processor for processing.
It can be known from the foregoing that, the embodiment of the present application provides a control apparatus for an electronic device, which is configured to detect a power mode of the electronic device through a first detecting unit 301, obtain a state of a voice wake-up function when detecting that the electronic device enters a power saving mode through a second detecting unit 302, close the voice wake-up function when the voice wake-up function is in an open state, and switch the state of the voice wake-up function to a first closed state, and turn on the voice wake-up function when detecting that the electronic device exits the power saving mode through a second switching unit 304, and switch the voice wake-up function from the first closed state to the open state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to a control method of the electronic device provided in the embodiment of the present application, and the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby performing overall monitoring of the electronic device 400.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
detecting a power mode of the electronic device; when detecting that the electronic equipment enters a power saving mode, acquiring the state of a voice awakening function; when the voice awakening function is in an on state, the voice awakening function is turned off, and the state of the voice awakening function is switched to a first off state; and when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from the first closed state to the open state.
In some embodiments, when the voice wakeup function is turned off, the processor 401 may specifically perform the following steps:
and turning off the microphone, and sending a turning-off signal to the digital signal processor, wherein the turning-off signal is used for instructing the digital signal processor to switch from the working state to the dormant state, and the digital signal processor is used for detecting voice data.
In some embodiments, when the voice wakeup function is turned on, the processor 401 may specifically perform the following steps:
and turning on the microphone and sending a turn-on signal to the digital signal processor, wherein the turn-on signal is used for indicating the digital signal processor to be switched from a dormant state to a working state.
In some embodiments, after switching the state of the voice wakeup function to the first off state, the processor 401 may specifically perform the following steps:
and outputting prompt information of closing the voice awakening function.
In some embodiments, after switching the state of the voice wakeup function to the first off state, the processor 401 may specifically perform the following steps:
and switching the display state of the switch control on the voice awakening control interface from the open display state to a first closed display state.
In some embodiments, after switching the voice wakeup function from the first off state to the on state, the processor 401 may specifically perform the following steps:
and switching the display state of a switch control on the voice awakening control interface from the first closed display state to an open display state.
The embodiment of the application detects the power mode of the electronic equipment, acquires the state of the voice awakening function when detecting to enter the power saving mode, closes the voice awakening function when the voice awakening function is in the open state, switches the state of the voice awakening function to the first closed state, and opens the voice awakening function when detecting to exit the power saving mode, and switches the voice awakening function to the open state from the first closed state. According to the scheme, when the electronic equipment enters the power saving mode, the closing state of the voice awakening function is automatically switched, when the electronic equipment exits the power saving mode, the opening state of the voice function is automatically switched, the automatic switching of the voice awakening function in the power saving mode is realized, the power consumption of the electronic equipment is saved, and the cruising ability of the electronic equipment is improved.
Referring to fig. 9, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 403 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
Although not shown in fig. 9, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the control method of the electronic device in any of the above embodiments, such as: detecting a power mode of the electronic device; when detecting that the electronic equipment enters a power saving mode, acquiring the state of a voice awakening function; when the voice awakening function is in an on state, the voice awakening function is turned off, and the state of the voice awakening function is switched to a first off state; and when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from the first closed state to the open state.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the control method of the electronic device in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the control method of the electronic device in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of the electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program can include the process of the embodiment of the control method of the electronic device. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the control device of the electronic device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a control method, an apparatus, a storage medium, and an electronic device for an electronic device provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of controlling an electronic device, comprising:
detecting a power mode of the electronic device;
when detecting that the electronic equipment enters a power saving mode, acquiring the state of a voice awakening function;
when the voice awakening function is in an on state, the voice awakening function is turned off, and the state of the voice awakening function is switched to a first off state;
and when the electronic equipment is detected to exit the power saving mode, starting the voice awakening function, and switching the voice awakening function from the first closed state to the open state.
2. The method for controlling an electronic device according to claim 1, wherein the turning off the voice wakeup function comprises:
and turning off the microphone, and sending a turning-off signal to the digital signal processor, wherein the turning-off signal is used for instructing the digital signal processor to switch from an operating state to a dormant state, and the digital signal processor is used for detecting voice data.
3. The method for controlling an electronic device according to claim 2, wherein the turning on the voice wakeup function comprises:
and starting a microphone, and sending a starting signal to the digital signal processor, wherein the starting signal is used for indicating the digital signal processor to be switched from a dormant state to a working state.
4. The method for controlling an electronic device according to claim 1, wherein after the switching the state of the voice wakeup function to the first off state, the method further comprises:
and outputting prompt information of closing the voice awakening function.
5. The method for controlling an electronic device according to any one of claims 1 to 4, wherein after switching the state of the voice wakeup function to the first off state, the method further comprises:
and switching the display state of the switch control on the voice awakening control interface from the open display state to a first closed display state.
6. The method for controlling an electronic device according to claim 5, wherein after the switching the voice wakeup function from the first off state to the on state, the method further comprises:
and switching the display state of a switch control on the voice awakening control interface from the first closed display state to the open display state.
7. The method of claim 5, wherein the state of the voice wakeup function further comprises a second off state, wherein the display state of the switch control further comprises a second off display state, and wherein the method further comprises:
when a closing instruction triggered based on the switch control is received, closing the voice awakening function, and switching the state of the voice awakening function to a second closing state;
and switching the display state of the switch control to the second closed display state.
8. A control apparatus of an electronic device, comprising:
the first detection unit is used for detecting the power mode of the electronic equipment;
the second detection unit is used for acquiring the state of the voice awakening function when the electronic equipment is detected to enter the power saving mode;
the first switching unit is used for closing the voice awakening function when the voice awakening function is in an open state and switching the state of the voice awakening function to a first closed state;
and the second switching unit is used for starting the voice awakening function and switching the voice awakening function from the first closed state to the open state when the electronic equipment is detected to exit the power saving mode.
9. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method for controlling an electronic device according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, said memory having a computer program, wherein said processor executes the steps of a method of controlling an electronic device according to any one of claims 1 to 7 by calling said computer program.
CN202010642482.6A 2020-07-06 2020-07-06 Electronic device control method and device, storage medium and electronic device Active CN111831100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010642482.6A CN111831100B (en) 2020-07-06 2020-07-06 Electronic device control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010642482.6A CN111831100B (en) 2020-07-06 2020-07-06 Electronic device control method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111831100A true CN111831100A (en) 2020-10-27
CN111831100B CN111831100B (en) 2022-03-22

Family

ID=72901057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010642482.6A Active CN111831100B (en) 2020-07-06 2020-07-06 Electronic device control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111831100B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492393A (en) * 2020-11-25 2021-03-12 海信视像科技股份有限公司 Method for realizing MIC switch associated energy-saving mode and display equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100099466A1 (en) * 2008-10-20 2010-04-22 Chi Mei Communication Systems, Inc. Communication device and power saving method thereof
CN107291451A (en) * 2017-05-25 2017-10-24 深圳市冠旭电子股份有限公司 Voice awakening method and device
CN108810280A (en) * 2018-06-19 2018-11-13 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of voice collecting frequency
CN108848264A (en) * 2018-06-19 2018-11-20 Oppo广东移动通信有限公司 Control method, device, storage medium and the electronic equipment of microphone
CN109036426A (en) * 2018-09-20 2018-12-18 广东小天才科技有限公司 A kind of awakening method and wearable device of wearable device
CN110058643A (en) * 2017-11-30 2019-07-26 仁宝电脑工业股份有限公司 The driving method of laptop and voice assistance system
CN110968353A (en) * 2019-12-06 2020-04-07 惠州Tcl移动通信有限公司 Central processing unit awakening method and device, voice processor and user equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100099466A1 (en) * 2008-10-20 2010-04-22 Chi Mei Communication Systems, Inc. Communication device and power saving method thereof
CN107291451A (en) * 2017-05-25 2017-10-24 深圳市冠旭电子股份有限公司 Voice awakening method and device
CN110058643A (en) * 2017-11-30 2019-07-26 仁宝电脑工业股份有限公司 The driving method of laptop and voice assistance system
CN108810280A (en) * 2018-06-19 2018-11-13 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of voice collecting frequency
CN108848264A (en) * 2018-06-19 2018-11-20 Oppo广东移动通信有限公司 Control method, device, storage medium and the electronic equipment of microphone
CN109036426A (en) * 2018-09-20 2018-12-18 广东小天才科技有限公司 A kind of awakening method and wearable device of wearable device
CN110968353A (en) * 2019-12-06 2020-04-07 惠州Tcl移动通信有限公司 Central processing unit awakening method and device, voice processor and user equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
爱思助手: "苹果IOS11省电模式设置教程", 《爱思助手》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492393A (en) * 2020-11-25 2021-03-12 海信视像科技股份有限公司 Method for realizing MIC switch associated energy-saving mode and display equipment

Also Published As

Publication number Publication date
CN111831100B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
US8285345B2 (en) Mobile terminal and method for switching states thereof
KR101688144B1 (en) Mobile terminal and method for power management thereof
CN106912089A (en) A kind of method and apparatus of the power consumption in reduction mobile electronic device
CN104142859A (en) Fast switching method and device for double systems and mobile terminal
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN107566609B (en) Download task processing method, device, terminal and storage medium
WO2015085501A1 (en) Screen control method, screen control device and touch control terminal
US20200278945A1 (en) Electronic device having usb type-c interface, control method, and readable storage
CN107734148A (en) Application display method, device, terminal and computer-readable recording medium
CN111831100B (en) Electronic device control method and device, storage medium and electronic device
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
WO2019201137A1 (en) Processing method for split-screen exiting, storage medium and electronic device
CN108111683B (en) Mobile terminal, control method and device of working mode of mobile terminal, and storage medium
CN111970671B (en) Control method and device of near field communication module and electronic equipment
CN105549857A (en) Control method for electronic terminal and electronic terminal
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN113672071A (en) Operating system running method and device, storage medium and terminal
CN107272864B (en) Reset circuit, battery and electronic equipment
CN211509272U (en) Charging box
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN111026456A (en) Application management method and device, storage medium and electronic equipment
CN204886223U (en) Device and smart machine of controlgear power supply

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