Voice instruction execution method, terminal equipment and storage medium

By introducing voice wake-up commands and voice command detection into the wireless headphone compartment, the voice interaction function is realized, solving the problem of single functions of traditional wireless headphones, and improving the convenience and flexibility of users' operations.

CN120108391APending Publication Date: 2025-06-06SHENZHEN KAICHUANG FUTURE TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510144888.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The headphone compartment of traditional wireless headphones has a single function and lacks direct information feedback and interaction methods, which limits the user's operational flexibility.

Method used

By introducing voice wake-up instructions and voice command detection, the terminal device (headphone compartment) can respond to the user's voice commands, realize voice interaction functions, and improve practicality and flexibility.

Benefits of technology

The voice interaction function is realized, which improves the convenience and flexibility of users' operation, and avoids the limitation of traditional wireless headphones relying on external devices for voice control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120108391A_ABST
    Figure CN120108391A_ABST
Patent Text Reader

Abstract

The invention is suitable for the field of audio processing, and discloses a voice instruction execution method, terminal equipment and a storage medium. The voice instruction execution method comprises the following steps: executing a recognition operation of a voice wake-up instruction; if the voice wake-up instruction is recognized, executing a recognition operation of the voice instruction; if the voice instruction is recognized, an operation instruction corresponding to the voice instruction is executed, and an operation target of the operation instruction comprises the display screen and / or the earphone body. Through introduction of the voice wake-up instruction and detection of the voice instruction, the terminal equipment (earphone cabin) can respond to the voice instruction of the user, thereby realizing a voice interaction function, and improving practicability and flexibility. Moreover, a traditional wireless earphone calls a voice assistant by depending on external equipment such as a mobile phone or a tablet computer, and voice control can be carried out only by manually operating or taking out the equipment by a user. Through the voice instruction execution method, the user can trigger voice recognition only through the wake-up word without taking out external equipment, so that the operation convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of audio processing, and in particular relates to a method for executing a voice command, a terminal device and a storage medium. Background Art

[0002] The wireless headset can be composed of a headset body and a charging case. The headset body is responsible for receiving and playing audio, and the charging case is used to store and charge the headset.

[0003] The earphone compartment of traditional wireless earphones has a single function and lacks direct information feedback and interactive means, which limits the user's operational flexibility. A new technical means is needed to solve the above technical problems. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method for executing a voice command, a terminal device and a storage medium, which can solve the problem of the single function of the earphone compartment in the related art.

[0005] A first aspect of the present invention provides a method for executing a voice command, comprising:

[0006] Execute recognition operation of voice wake-up command;

[0007] If a voice wake-up command is recognized, the recognition operation of the voice command is executed;

[0008] If a voice command is recognized, an operation command corresponding to the voice command is executed, and the operation target of the operation command includes the display screen and / or the headset body.

[0009] Optionally, in a first implementation of the first aspect of the present invention, if a voice wake-up instruction is recognized, the step of performing a recognition operation of the voice instruction includes:

[0010] If a voice wake-up command is recognized, a power consumption increase operation is performed to switch to a continuous listening mode;

[0011] If in continuous monitoring mode, the recognition operation of the voice command is performed.

[0012] Optionally, in a second implementation of the first aspect of the present invention, if in the continuous monitoring mode, after the step of performing the voice command recognition operation, the method further includes:

[0013] If no voice command is detected within a preset time, a power reduction operation is performed to switch to a low-power standby mode;

[0014] If the device is in low power standby mode, the recognition operation of the voice wake-up command is performed.

[0015] Optionally, in a third implementation of the first aspect of the present invention, if a voice instruction is recognized, the step of executing an operation instruction corresponding to the voice instruction includes:

[0016] If a voice command is recognized, a power consumption enhancement operation is performed to switch to a command execution mode;

[0017] If it is in the command execution mode, the operation command corresponding to the voice command is executed.

[0018] Optionally, in a fourth implementation of the first aspect of the present invention, if in the command execution mode, after the step of executing the operation instruction corresponding to the voice instruction, the method further includes:

[0019] If the operation instruction is executed, a power consumption reduction operation is performed to switch to the continuous monitoring mode.

[0020] Optionally, in a fifth implementation of the first aspect of the present invention, if a voice wake-up instruction is recognized, the step of performing a recognition operation of the voice instruction further includes:

[0021] If a voice wake-up command is recognized, a voice detection operation is performed to obtain a voice signal to be processed;

[0022] The preset VAD detection model is called to extract voice commands from the voice signal to be processed.

[0023] Optionally, in a sixth implementation of the first aspect of the present invention, if a voice command is recognized, after the step of executing an operation command corresponding to the voice command, and the operation target of the operation command includes a display screen and / or a headset body, the method further includes:

[0024] If the target information sent by the headset body is detected, the target information is displayed through the display screen, and the target information includes the headset power information, mobile phone call information, mobile phone message information and / or reminder information.

[0025] Optionally, in a seventh implementation manner of the first aspect of the present invention, if a voice instruction is recognized, the step of executing an operation instruction corresponding to the voice instruction includes:

[0026] If a voice command is recognized, the embedded voice assistant is called to process the voice command to execute the operation command corresponding to the voice command.

[0027] In a second aspect, an embodiment of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned voice instruction execution method when executing the computer program.

[0028] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned voice instruction execution method are implemented.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the above-mentioned method for executing voice instructions.

[0030] The beneficial effects of the embodiments of the present invention compared with the prior art are: executing the recognition operation of the voice wake-up command; if the voice wake-up command is recognized, executing the recognition operation of the voice command; if the voice command is recognized, executing the operation command corresponding to the voice command, and the operation target of the operation command includes the display screen and / or the headset body. By introducing the voice wake-up command and the detection of the voice command, the terminal device (headphone compartment) can respond to the user's voice command, realize the voice interaction function, and improve the practicality and flexibility. In addition, traditional wireless headphones rely on external devices such as mobile phones or tablets to call voice assistants, and users need to manually operate or take out the device to perform voice control. Through this voice command execution method, users only need to use the wake-up word to trigger voice recognition, without taking out external devices, which improves the convenience of operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 A schematic diagram of an embodiment of a method for executing a voice command in an embodiment of the present invention;

[0033] Figure 2 Schematic diagram of a specific embodiment of step S102 of the method for executing a voice command in an embodiment of the present invention;

[0034] Figure 3 It is a schematic diagram of a specific embodiment after step S1022 of the method for executing a voice command in an embodiment of the present invention;

[0035] Figure 4 Schematic diagram of a specific embodiment of step S103 of the method for executing a voice command in an embodiment of the present invention;

[0036] Figure 5 The figure is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are protected by the present invention.

[0038] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specifications and drawings of the present invention, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.

[0039] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0040] The wireless headset can be composed of a headset body and a charging case. The headset body is responsible for receiving and playing audio, and the charging case is used to store and charge the headset.

[0041] The earphone compartment of traditional wireless earphones has a single function and lacks direct information feedback and interactive means, which limits the user's operational flexibility. A new technical means is needed to solve the above technical problems.

[0042] In view of this, an embodiment of the present invention provides a method for executing a voice command, a terminal device, and a storage medium. By introducing voice wake-up commands and voice command detection, the terminal device (earphone compartment) can respond to the user's voice commands, realize voice interaction functions, and improve practicality and flexibility. In addition, traditional wireless headphones rely on external devices such as mobile phones or tablets to call voice assistants, and users need to manually operate or take out the device to perform voice control. Through this voice command execution method, users only need to use a wake-up word to trigger voice recognition, without taking out external devices, which improves the convenience of operation.

[0043] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.

[0044] Figure 1 The present invention provides a flow chart of a method for executing a voice command, which can be applied to a terminal device, such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.

[0045] Specifically, the above-mentioned method for executing the voice command may include the following steps S101 to S103.

[0046] Step S101, executing a recognition operation of a voice wake-up instruction.

[0047] In an embodiment of the present invention, the terminal device may be an earphone compartment, and the terminal device is first in a low-power standby mode, in which the low-power noise detector is activated. The low-power noise detector monitors the sounds in the environment and waits for a voice wake-up command issued by the user.

[0048] Optionally, a microphone array is used in combination with a noise detection module to continuously monitor the ambient audio. When a specified voice wake-up instruction (eg, "XX, XX") is detected and recognized, a subsequent voice instruction detection operation is triggered.

[0049] Optionally, a dynamic noise threshold technology is used to adaptively adjust the wake-up sensitivity according to the ambient noise level.

[0050] Optionally, far-field audio capture is supported, which can accurately wake up the device even if the user is several meters away or in a noisy environment. Far-field audio capture refers to the ability of a microphone array or a single microphone to clearly capture sound signals at a distance from the sound source. The far-field audio capture technology of this embodiment uses noise cancellation technology and signal processing algorithms to perform echo cancellation operations, noise suppression operations, and beamforming operations. In a specific implementation, a microphone array is used to capture sounds from different directions and focus on sounds from a specific direction, so as to accurately identify voice wake-up commands.

[0051] Step S102: If a voice wake-up command is recognized, a voice command recognition operation is performed.

[0052] In an embodiment of the present invention, if a voice wake-up instruction is recognized, a power consumption enhancement operation is initiated to switch from a low power consumption standby mode to a continuous listening mode.

[0053] In the continuous monitoring mode, audio sampling is performed at a certain time interval (preset time), and the voice processing module in the terminal device analyzes the input audio to determine whether it is a valid voice command.

[0054] Optionally, if no valid voice command is received within a certain period of time (e.g., 5 seconds), it will switch back to the low-power standby mode to save power. For example, if the voice processing module does not detect a valid command in the continuous monitoring mode, it will switch to the low-power standby mode through the low-power algorithm, and the noise detector will still be in working state to continue to monitor the ambient sound.

[0055] Optionally, in the continuous monitoring mode, the device collects audio signals within a set time interval (such as 5 seconds), and the built-in voice processing module analyzes the input audio to determine whether it is a valid voice command.

[0056] Optionally, multiple-task compound voice commands are supported, such as "play the target music and set the volume to 70%". In this case, the headset is controlled to play the target music, set the volume, and display relevant information on the display screen.

[0057] Step S103: if a voice command is recognized, an operation command corresponding to the voice command is executed, and the operation target of the operation command includes a display screen and / or a headset body.

[0058] In an embodiment of the present invention, when a valid voice command is detected in the continuous monitoring mode, the command execution mode is entered to execute the operation corresponding to the voice command. The voice recognition module calls the embedded voice assistant to parse the voice command into an operation command. For example, the user may issue a command of "play music" or "set reminder". The operation result is fed back through headphones or a display screen.

[0059] Optionally, if a voice command is recognized, a power consumption increase operation is performed to switch to the command execution mode; if in the command execution mode, the operation command corresponding to the voice command is executed. For example, after the operation command is executed, the power consumption will be reduced, and the continuous monitoring mode will be switched back to prepare to receive voice input again. Among them, by recognizing voice commands and executing corresponding operation commands, users can quickly achieve target operations through simple voice control, such as controlling the display content or adjusting the headphone volume.

[0060] When executing a command, the display screen will display relevant feedback information based on the result of the operation command. For example, if a user requests to play a specific music through a voice command, the display screen will show the name of the currently playing song, or if a user sets an alarm, the display screen will show the alarm time.

[0061] Furthermore, the display screen not only displays the operation results, but also provides real-time interactive prompts. For example, when a user requests to play music, a playlist is displayed, allowing the user to select specific tracks.

[0062] When performing defined important tasks (such as setting reminders or receiving notifications), confirmation prompts can be provided through earphone audio feedback.

[0063] When performing high-power tasks (such as continuous voice interaction or command parsing), the power consumption is dynamically adjusted, and the continuous listening mode is switched back after the task is completed. When multiple voice commands are received at the same time, resources are allocated according to the task priority strategy.

[0064] Optionally, if a voice command is recognized, the embedded voice assistant is called to process the voice command to execute the operation command corresponding to the voice command. Specifically, if a voice command is detected, the embedded voice assistant (such as Google Assistant, Siri, custom voice assistant, digital assistant) is called. The embedded voice assistant parses the command, such as performing device control (adjusting volume, playing media, etc.), obtaining device information, issuing notifications, etc. Depending on the command type, the embedded voice assistant interacts with the display, headphones, or other hardware modules.

[0065] Execute the recognition operation of the voice wake-up command; if the voice wake-up command is recognized, execute the recognition operation of the voice command; if the voice command is recognized, execute the operation command corresponding to the voice command, and the operation target of the operation command includes the display screen and / or the headset body. By introducing voice wake-up commands and voice command detection, the terminal device (headphone compartment) can respond to the user's voice commands, realize voice interaction functions, and improve practicality and flexibility. In addition, traditional wireless headsets rely on external devices such as mobile phones or tablets to call voice assistants, and users need to manually operate or take out the device to perform voice control. Through this voice command execution method, users only need to use the wake-up word to trigger voice recognition, without taking out external devices, which improves the convenience of operation.

[0066] Traditional voice recognition devices often lack sufficient intelligent power management mechanisms, causing the device to maintain high power consumption when not in use for a long time, significantly reducing the device's battery life. In addition, existing devices often cannot distinguish between voice wake-up commands and voice commands, but instead process the two at the same level, which is easily interfered by environmental noise and causes misrecognition. Based on this, the present invention proposes an optional embodiment.

[0067] Reference Figure 2 , Figure 2 1 is a schematic diagram of a specific embodiment of step S102 of the method for executing a voice command in an embodiment of the present invention. Step S102 also includes the following specific implementation methods.

[0068] Step S1021: If a voice wake-up command is recognized, a power consumption increase operation is performed to switch to a continuous monitoring mode.

[0069] In an embodiment of the present invention, the power consumption mode is defined as:

[0070] Low-power standby mode (low power): The device is in minimum power consumption state, only listening for voice wake-up commands, and the processor is in low-frequency operation state.

[0071] Continuous listening mode (medium power consumption): The device activates the microphone and continuously listens for voice commands, while increasing the CPU frequency to process voice input.

[0072] Instruction execution mode (high power consumption): The device starts to perform specific operations (such as launching an application, adjusting device settings, etc.), and the CPU / GPU enters high-performance mode.

[0073] Detects a voice wake-up command (e.g., "Hey, Assistant") and switches from low-power standby mode to continuous listening mode. Increases device power consumption to enable the Voice Processing Unit (VPU) to detect user commands.

[0074] When a voice command is detected (e.g., "play music"), the device switches from continuous listening mode to command execution mode. The CPU / GPU frequency is increased so that the terminal device can execute the command quickly.

[0075] The power consumption can be improved through the coordination of the hardware management unit (PMU) and the software control logic. The voice trigger module is called to confirm the validity of the voice wake-up command (VAD (Voice Activity Detection) model can be used). The voice trigger module can capture the user's voice signal and identify whether it is a wake-up voice command and voice command, and can trigger the voice assistant (digital assistant) according to the specific voice command.

[0076] Optionally, a power management module (PMU) is called to start the microphone to enter a continuous monitoring state. The frequency of the processor (CPU / VPU) is increased, for example, from 0.5 GHz to 1.2 GHz.

[0077] The voice command is detected, parsed, and the command type is confirmed. According to the command content, the power management module is called, for example, the CPU frequency is further increased from 1.2GHz to 2.0GHz (the specific value is adjusted according to the device performance). Activate the GPU (if it involves graphics processing, such as turning on the display). If the command is "play music", activate the audio decoder of the headset body to start the music playback process. If the command is "turn on the screen", turn on the screen and increase the screen refresh rate. In order to avoid long-term high power consumption, after the task is completed, the device should perform power consumption reduction operations:

[0078] If no new voice commands are detected within a preset time (e.g., 5 seconds), the CPU frequency is reduced, for example, from 2.0 GHz back to 1.2 GHz (continuous listening mode). If the continuous listening mode times out (e.g., no activity is detected for 30 seconds), the microphone is turned off and the processor is restored to low-power standby mode (low-frequency operation).

[0079] Step S1022: If the mode is continuous monitoring, the voice command recognition operation is performed.

[0080] In an embodiment of the present invention, a low power consumption standby mode is entered to wait for a new voice wake-up instruction.

[0081] In the embodiment of the present invention, by switching the terminal device from a low-power standby mode to a continuous listening mode (only after a voice wake-up command is detected), and then switching to a command execution mode as needed, the battery usage can be optimized and the device usage time can be extended. In addition, by accurately distinguishing between voice wake-up commands and voice commands, voice recognition is performed only when a command is detected, thereby avoiding misrecognition and improving recognition accuracy.

[0082] Power consumption management is one of the key technologies to improve device endurance and user experience. Traditionally, a device needs to maintain high power consumption after detecting a voice wake-up command in order to respond to user commands in real time. However, maintaining high power consumption for a long time will greatly consume battery power and affect user experience. Based on this, the present invention proposes an optional embodiment.

[0083] Reference Figure 3 , Figure 3 This is a schematic diagram of a specific implementation of the method for executing voice commands in an embodiment of the present invention after step S1022, and the following specific implementation methods are also included after step S1022.

[0084] Step S1023: If no voice command is detected within a preset time, a power consumption reduction operation is performed to switch to a low power consumption standby mode.

[0085] In an embodiment of the present invention, if the voice command is recognized and confirmed, a corresponding operation is performed according to the command, for example, starting a music application, adjusting the volume, displaying headphone information or other functions.

[0086] If no voice command is detected within a preset time (e.g., 10 seconds, 30 seconds, etc.), it is considered that the user has not provided valid input. Reduce the device's processor frequency to a lower value (e.g., from 1.2GHz to 0.5GHz). Turn off the microphone and other voice processing units to reduce power consumption.

[0087] Step S1024: If the device is in the low power standby mode, a recognition operation of a voice wake-up command is performed.

[0088] In the embodiment of the present invention, the power consumption of the terminal device is dynamically adjusted, and a higher power consumption mode is entered when a valid voice command is detected, thereby reducing the energy consumption of a high power consumption state running for a long time.

[0089] Conventional devices often fail to effectively manage power consumption during standby and execution, resulting in a shortened battery life. Based on this, the present invention proposes an optional embodiment.

[0090] Reference Figure 4 , Figure 4 1 is a schematic diagram of a specific embodiment of step S103 of the method for executing a voice command in an embodiment of the present invention. Step S103 also includes the following specific implementation methods.

[0091] Step S1031: If a voice command is recognized, a power consumption enhancement operation is performed to switch to a command execution mode.

[0092] In an embodiment of the present invention, if the voice command is recognized and confirmed, a corresponding operation is performed according to the command, for example, starting a music application, adjusting the volume, displaying headphone information or other functions.

[0093] If no voice command is detected within a preset time (e.g., 10 seconds, 30 seconds, etc.), it is considered that the user has not provided valid input. Reduce the device's processor frequency to a lower value (e.g., from 1.2GHz to 0.5GHz). Turn off the microphone and other voice processing units to reduce power consumption.

[0094] Step S1032: If the system is in the command execution mode, the operation command corresponding to the voice command is executed.

[0095] In the embodiment of the present invention, the power consumption of the terminal device is dynamically adjusted, and a higher power consumption mode is entered when a valid voice command is detected, thereby reducing the energy consumption of a high power consumption state running for a long time.

[0096] Conventional devices often fail to effectively manage power consumption during standby and execution, resulting in a shortened battery life. Based on this, the present invention proposes an optional embodiment.

[0097] Step S103 also includes the following specific implementation methods.

[0098] Step S1033: If a voice wake-up instruction is recognized, a voice detection operation is performed to obtain a voice signal to be processed.

[0099] Step S1034, calling a preset VAD detection model to extract voice commands from the voice signal to be processed.

[0100] In the embodiment of the present invention, the VAD detection model is called to process the speech signal to be processed and detect the valid instruction part therein. The VAD model can identify whether the user is speaking and separate the speech instruction from the background noise.

[0101] The effective part of the voice signal to be processed is extracted as a voice command. The voice command is further recognized to identify the user's specific operation command. After the voice command is extracted and recognized, the corresponding operation is performed according to the command content, such as displaying content or controlling device functions.

[0102] In the embodiment of the present invention, the VAD model is used to effectively extract voice commands, and background noise or irrelevant voices can be filtered out, so that voice command recognition is more accurate.

[0103] Traditional devices may have the problem of scattered information display. For example, the headphone power information may only be displayed on the headphone body, and the incoming call information may only be displayed on the mobile phone. The user needs to frequently switch devices or the operation step S103 also includes the following specific implementation.

[0104] Step S201, if target information sent by the headset body is detected, the target information is displayed through the display screen, and the target information includes headset power information, mobile phone incoming call information, mobile phone message information and / or reminder information.

[0105] In an embodiment of the present invention, it is detected whether the headset body has sent target information. The target information includes but is not limited to the headset power level, incoming call information, SMS reminder, etc. The headset body and the terminal device transmit information via a wireless communication protocol (such as Bluetooth).

[0106] The terminal device parses the target information received from the headset body. The target information may contain content in a specific format, such as the remaining battery percentage of the headset, the incoming call number, the text message content, etc.

[0107] According to the analysis results, the terminal device displays the target information sent by the headset to the user through the display screen. It can be a simple notification window or pop-up detailed information, displaying content including headset battery level, mobile phone call information, SMS reminders, etc.

[0108] When the status of the headset changes (such as the headset power level changes or the incoming call information changes), the terminal device updates the information on the display screen accordingly.

[0109] For the headset to obtain the target information, BLE (Bluetooth Low Energy) + GATT service can be used. For example, through BLE (Bluetooth Low Energy) to communicate with the mobile phone, establish a GATT (Generic Attribute Profile) service to transmit device information. The headset or smart device can act as a GATT Client, and the mobile phone as a GATT Server, allowing the headset to actively request information. The information that can be obtained includes but is not limited to the battery status (Battery Service), incoming call status (through notification service), and message push (GATT subscription specific UUID).

[0110] In an embodiment of the present invention, by displaying the target information of the headset body (such as battery level, incoming call information, etc.) on the display screen of the terminal device, the user can obtain important notification information without checking the headset body or the mobile phone screen, providing a more convenient interactive experience.

[0111] like Figure 5 , which is a schematic diagram of a terminal device provided in an embodiment of the present invention. The terminal device 5 may include: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as an execution program for voice commands. When the processor 501 executes the computer program 503, the steps in the execution embodiments of the above-mentioned voice commands are implemented.

[0112] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 502 and executed by the processor 501 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.

[0113] The terminal device may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0114] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0115] The memory 502 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 502 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 502 may also include both an internal storage unit of the terminal device and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the terminal device. The memory 502 may also be used to temporarily store data that has been output or is to be output.

[0116] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.

[0117] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method for executing voice instructions can be implemented.

[0118] An embodiment of the present invention provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned voice instruction execution method when executing the computer program product.

[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0120] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0121] In the embodiments provided by the present invention, it should be understood that the disclosed terminal devices and methods can be implemented in other ways. For example, the terminal device embodiments described above are only exemplary. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0124] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0125] The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above-described embodiments, a person skilled in the art should understand that the technical solutions described in the above-described embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for executing a voice command, characterized in that: include: Execute recognition operation of voice wake-up command; If the voice wake-up command is recognized, executing the recognition operation of the voice command; If the voice command is recognized, an operation command corresponding to the voice command is executed, and the operation target of the operation command includes a display screen and / or a headset body.

2. The method for executing a voice command according to claim 1, wherein: If the voice wake-up instruction is recognized, the step of performing a recognition operation of the voice instruction includes: If the voice wake-up command is recognized, performing a power consumption improvement operation to switch to a continuous listening mode; If in the continuous monitoring mode, the recognition operation of the voice command is performed.

3. The method for executing a voice command according to claim 2, wherein: After the step of performing a voice command recognition operation if in the continuous monitoring mode, the method further includes: If the voice command is not detected within a preset time, performing a power reduction operation to switch to a low-power standby mode; If the device is in the low power standby mode, the detection operation of the voice wake-up command is performed.

4. The method for executing a voice command according to claim 2, wherein: If the voice command is recognized, the step of executing the operation command corresponding to the voice command includes: If the voice command is recognized, performing a power consumption improvement operation to switch to a command execution mode; If in the command execution mode, the operation command corresponding to the voice command is executed.

5. The method for executing a voice command according to claim 4, wherein: After the step of executing the operation instruction corresponding to the voice instruction if the voice instruction is in the instruction execution mode, the method further includes: If the operation instruction is executed, a power consumption reduction operation is performed to switch to the continuous monitoring mode.

6. The method for executing a voice command according to claim 1, wherein: If the voice wake-up instruction is recognized, the step of performing a voice instruction recognition operation further includes: If the voice wake-up instruction is recognized, a voice detection operation is performed to obtain a voice signal to be processed; A preset VAD detection model is called to extract the voice command from the voice signal to be processed.

7. The method for executing a voice command according to claim 1, wherein: After the step of executing an operation instruction corresponding to the voice instruction if the voice instruction is recognized, wherein the operation target of the operation instruction includes a display screen and / or a headset body, the method further includes: If the target information sent by the headset body is detected, the target information is displayed through the display screen, and the target information includes headset power information, mobile phone call information, mobile phone message information and / or reminder information.

8. The method for executing a voice command according to claim 1, wherein: If the voice command is recognized, the step of executing the operation command corresponding to the voice command includes: If the voice command is recognized, the embedded voice assistant is called to process the voice command to execute the operation command corresponding to the voice command.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for executing a voice instruction as claimed in any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for executing a voice instruction as claimed in any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Voice AI interaction state management method for low-power-consumption terminal

    CN121306118A