Speech recognition method, apparatus, device, and storage medium

By employing a dual-core, dual-system architecture and voice recognition components in electronic devices, efficient switching and control of voice recognition functions are achieved, solving the high power consumption problem caused by long-term operation of high-performance processors and extending the device's battery life.

CN117253488BActive Publication Date: 2026-11-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210655987.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2026-11-24
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

When performing voice recognition, existing electronic devices consume a lot of power because the high-performance processors remain in operation for extended periods, resulting in short battery life, especially in wearable devices.

Method used

It adopts a dual-core, dual-system architecture, setting up a low-performance first processor and a high-performance second processor. Combined with a speech recognition component, the system recognizes the collected speech, determines the system's functional response, and provides the speech recognition results to the system to realize the switching and control of speech recognition functions.

Benefits of technology

While ensuring the normal operation of the voice recognition function, it reduces the power consumption of electronic devices and extends the battery life of the devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117253488B_ABST
    Figure CN117253488B_ABST
Patent Text Reader

Abstract

This application discloses a speech recognition method, apparatus, device, and storage medium, belonging to the field of Internet of Things (IoT) technology. The method includes: a speech recognition system performing speech recognition to obtain a first speech recognition result; if the first speech recognition result indicates that a first system should provide a functional response, the speech recognition system provides the first speech recognition result to the first system; the first system provides a functional response based on the first speech recognition result; if the first speech recognition result indicates that a second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system; the second system provides a functional response based on the first speech recognition result. In this application embodiment, by performing speech recognition through a speech recognition system and having the system indicated by the speech recognition result provide a functional response based on the speech recognition result, the normal operation of the electronic device's speech recognition function is ensured while reducing the electronic device's power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a voice recognition method, apparatus, device, and storage medium. Background Technology

[0002] With the continuous development of science and technology, more and more electronic devices with different functions have emerged, bringing many conveniences to users' daily lives.

[0003] Electronic devices have voice recognition capabilities, enabling voice control. However, voice recognition algorithms can generally only be executed on high-performance processors. Summary of the Invention

[0004] This application provides a speech recognition method, apparatus, device, and storage medium. The technical solution is as follows:

[0005] On one hand, this application provides a speech recognition method for an electronic device. The electronic device supports running a first system, a second system, and a speech recognition system. The hardware running the speech recognition system is different from the hardware running the first system and different from the hardware running the second system.

[0006] The method includes:

[0007] The speech recognition system performs speech recognition on the speech to obtain a first speech recognition result;

[0008] When the first speech recognition result indicates that the first system should perform a functional response, the speech recognition system provides the first speech recognition result to the first system; the first system performs a functional response based on the first speech recognition result.

[0009] When the first speech recognition result indicates that the second system should perform a functional response, the speech recognition system provides the first speech recognition result to the second system; the second system performs a functional response based on the first speech recognition result.

[0010] On the other hand, this application provides a voice recognition device for use in an electronic device. The electronic device supports running a first system, a second system, and a voice recognition system. The hardware running the voice recognition system is different from the hardware running the first system and different from the hardware running the second system.

[0011] The device includes:

[0012] The speech recognition system module is used to perform speech recognition on speech and obtain the first speech recognition result;

[0013] The speech recognition system module is further configured to provide the first speech recognition result to the first system module when the first speech recognition result indicates that the first system module should perform a functional response; the first system module is configured to perform a functional response based on the first speech recognition result;

[0014] The speech recognition system module is further configured to provide the first speech recognition result to the second system module when the first speech recognition result indicates that the second system module should perform a functional response; the second system module is configured to perform a functional response based on the first speech recognition result.

[0015] On the other hand, embodiments of this application provide an electronic device, which includes a processor and a memory; the memory stores at least one program, which is executed by the processor to implement the speech recognition method described above.

[0016] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one program that is executed by a processor to implement the speech recognition method as described above.

[0017] On the other hand, embodiments of this application provide a computer program product including computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the speech recognition method provided above.

[0018] In this embodiment, for electronic devices supporting dual systems, a speech recognition system performs speech recognition on the speech to obtain a first speech recognition result. If the first speech recognition result indicates that the first system should provide a functional response, the speech recognition system provides the first speech recognition result to the first system, which then provides the functional response based on the first speech recognition result. If the first speech recognition result indicates that the second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system, which then provides the functional response based on the first speech recognition result. By adopting the scheme provided in this embodiment, after acquiring the speech to be recognized, speech recognition is performed by the speech recognition system. After obtaining the speech recognition result, the system indicated by the speech recognition result is determined, and the speech recognition result is provided to that system so that it can provide the functional response based on the speech recognition result. This ensures the normal operation of the electronic device's speech recognition function while avoiding the problem of high power consumption caused by the high-performance system needing to maintain a working state for a long time when implementing speech recognition on a high-performance system, thus helping to reduce the power consumption of the electronic device. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This invention provides a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application.

[0021] Figure 2 This application illustrates a dual-core communication software framework for the Android operating system, as shown in an exemplary embodiment.

[0022] Figure 3 This application illustrates a dual-core communication software framework for an RTOS, as shown in an exemplary embodiment.

[0023] Figure 4 A flowchart of a speech recognition method provided in an exemplary embodiment of this application is shown;

[0024] Figure 5 A flowchart of a speech recognition method provided in an exemplary embodiment of this application is shown;

[0025] Figure 6 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0026] Figure 7 This is a schematic diagram of an interface illustrating a speech recognition process in an exemplary embodiment of this application;

[0027] Figure 8 A flowchart of a speech recognition method provided in an exemplary embodiment of this application is shown;

[0028] Figure 9 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0029] Figure 10 This is a schematic diagram of an interface illustrating a speech recognition process in an exemplary embodiment of this application;

[0030] Figure 11 A flowchart of a speech recognition method provided in an exemplary embodiment of this application is shown;

[0031] Figure 12 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0032] Figure 13 This is a schematic diagram of an interface illustrating a speech recognition process in an exemplary embodiment of this application;

[0033] Figure 14 A flowchart of a speech recognition method provided in an exemplary embodiment of this application is shown;

[0034] Figure 15 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0035] Figure 16 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0036] Figure 17 This is a schematic diagram of an interface illustrating a speech recognition process in an exemplary embodiment of this application;

[0037] Figure 18 A flowchart of a speech recognition method provided in another exemplary embodiment of this application is shown;

[0038] Figure 19 A schematic diagram of the hardware connections of an electronic device provided in an exemplary embodiment of this application is shown;

[0039] Figure 20 A structural block diagram of a speech recognition device provided in one embodiment of this application is shown. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0041] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0042] In related technologies, electronic devices typically incorporate a single processor and utilize an operating system running on that processor to achieve voice recognition. However, in everyday use, electronic devices often only require voice recognition functions with low processing power requirements. For example, smartwatches or smart bracelets usually only need to perform simple offline voice recognition functions, such as saying "announce the time" or "call xx." Therefore, keeping the processor constantly active does not improve the performance of electronic devices; instead, it increases power consumption, resulting in shorter battery life (especially noticeable in wearable devices with smaller battery capacities).

[0043] In order to reduce the power consumption of electronic devices while ensuring their performance, in one possible implementation, the electronic device is equipped with at least a first processor and a second processor with different processing performance and power consumption, which are used to run the first system and the second system respectively (i.e., dual-core dual-system).

[0044] When a dual-system electronic device implements voice recognition, the voice recognition function has high requirements for processor performance. Therefore, after the voice to be recognized is acquired, the second system needs to perform voice recognition. However, the second system will increase the power consumption of the device if it keeps working for a long time.

[0045] To address the issue of high power consumption caused by the second system maintaining operation for extended periods, the solution provided in this application includes a voice recognition component for electronic devices supporting dual systems. This component is used to run the voice recognition system. The electronic device performs voice recognition on the collected voice data to obtain a voice recognition result. It then determines the system indicated by the voice recognition result and provides the voice recognition result to that system so that the system can perform a function response based on the voice recognition result.

[0046] Please refer to Figure 1 The diagram illustrates the structure of an electronic device provided in an exemplary embodiment of this application. The electronic device includes a screen 110, a first processor 120, a second processor 130, and a voice recognition component 140.

[0047] Screen 110 is used for displaying a graphical user interface and / or receiving user interaction operations. Screen 110 has a switch 111, which can be connected to the first processor 120 and the second processor 130 respectively. Switch 111 has control over screen 110. When switch 111 is connected to the first processor 120, it indicates that the first system has control over screen 110. When switch 111 is connected to the second processor 130, it indicates that the second system has control over screen 110.

[0048] The first processor 120 is used to run the first system, and the second processor 130 is used to run the second system, wherein the operating performance of the first processor 120 is lower than that of the second processor 130, and / or the power consumption of the first processor 120 is lower than that of the second processor 130.

[0049] The first processor 120 and the second processor 130 are connected to various parts of the electronic device through various interfaces and lines. They perform various functions and process data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the first processor 120 and the second processor 130 can be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The first processor 120 and the second processor 130 can integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Neural-network Processing Unit (NPU), and modem. Specifically, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the touch screen; the NPU is used to implement Artificial Intelligence (AI) functions; and the modem is used to handle wireless communication. It is understood that the aforementioned modem may also be implemented separately as a single chip, without being integrated into the first processor 120 and / or the second processor 130.

[0050] Optionally, the operating performance of the first system is lower than that of the second system, and / or the power consumption of the first system is lower than that of the second system.

[0051] In this embodiment, the second processor 130 is further provided with an AP (Application Processor) 131, a Modem (Base Station Communication Module) 132, and a WCNSS (Wireless Connectivity Subsystem) 133. The AP 131 is a processor for executing various applications, the Modem 132 is a module for communicating with the base station and providing voice calls and data network connectivity, and the WCNSS 133 is a module that provides WiFi (Wireless Fidelity) network connectivity.

[0052] The voice recognition component 140 is the hardware that runs the voice recognition system. The electronic device performs voice recognition on the collected voice through the voice recognition system running on the voice recognition component 140. The voice recognition component 140 has a switch 141, which can be connected to the first processor 120 and the second processor 130 respectively. The switch 141 has control authority over the voice recognition component 140. When the switch 141 is connected to the first processor 120, it indicates that the first system has control authority over the voice recognition system. When the switch 141 is connected to the second processor 130, it indicates that the second system has control authority over the voice recognition system.

[0053] Optionally, switches 111 and 141 are connected to the same processor by default, meaning that the processor has control over both the screen 110 and the voice recognition system.

[0054] Figure 1 The voice recognition component can switch communication between the first processor and the second processor under the control of a switch. In another possible implementation, the voice recognition component can be connected to either the first processor or the second processor only. The voice recognition component can communicate directly with the connected processor, or it can communicate indirectly with another processor via a connected processor.

[0055] For example, the speech recognition component is connected to the first processor. After the speech recognition system recognizes the collected speech, if the first system needs to perform a function response, it will directly perform the corresponding operation. If the second system needs to perform a function response, the first system will forward the speech recognition result to the second system, and the second system will perform the corresponding operation.

[0056] In this embodiment, the first processor and the second processor operate asynchronously, and the first system and the second system need to achieve system communication (or dual-core communication). In one possible application scenario, the first processor is a microcontroller unit (MCU), and the first system is a real-time operating system (RTOS) running on the MCU; the second processor is a system-on-a-chip (SOC), and the second system is an Android operating system running on the SOC.

[0057] like Figure 2 As shown, this application illustrates a dual-core communication software framework for the Android operating system, as illustrated in an exemplary embodiment. This dual-core communication software framework follows the design principles of "low coupling, high reliability, and high reusability," and includes module development for the Kernel, HIDL (Hardware Abstraction Layer Interface Description Language), Native Service, Framework Service, Framework API, and APP (Application) components.

[0058] The APP module includes functional modules such as Launcher, Settings, and SystemUI. The Framework API module includes management modules such as MCUManager, SensorManager, and LocationManager. The Framework Service module includes service modules such as MCUManagerService, SystemSensorManager, and LocationManagerService. The Native Service module includes service modules such as dccservice and Sensorservice. The HIDL module includes modules such as SensorHAL and GPS HAL. The Kernel module includes DCC Transfer Drivers such as dcc_data, MCU_sensor, and MCU_gps.

[0059] As the interface layer connecting the upper and lower layers in the dual-core communication software framework, the transport layer shields the application layer from the transmission details of the lower layer (data link layer) of the system, providing a service channel for application scenarios. The application layer, as the main provider of services, responds to human-computer interaction and transmits the data generated during the human-computer interaction process through the transport layer, as well as responding to external data requests.

[0060] RTOS is designed using the peer-to-peer principle. Taking a smartwatch as an example, such as... Figure 3 As shown, it illustrates a dual-core communication software framework for an RTOS according to an exemplary embodiment of this application.

[0061] The dual-core communication software framework of RTOS is divided into the Application Layer, Service Layer, Framework Layer, Hardware Abstraction Layer, and Platform Layer.

[0062] The application layer includes modules such as watch face, Daily Tracker, Messagecenter, Voice around Apps, Health Apps, and Settings; the service layer includes modules such as Sport & Health task, System manager task, AMS (Activity Management Service), Audio Service, Log Service, OFTP Service (Odette File Transfer Protocol Service), BT Service, Delegate Service, RPC Service, Sensor Service, and Storage Service; the framework layer includes modules such as Message Pub, UIFramework, G2D Engine, Audio Middleware, Preference, and File. The framework modules include system (file system), Algorithms, and AsyncEvent (in-process asynchronous events); the hardware abstraction layer includes hardware abstraction modules such as Screen / TP (screen / touchscreen) and sensors; the platform layer includes Board Support Package (BSP) and Low-level Driver. The BSP includes Screen / TP, Codec (encoder / decoder), sensors, Flash, PSRAM (pseudo-static random access memory), etc., while the Low-level Driver includes UART (Universal Asynchronous Receiver / Transmitter), ADC (Analog-to-Digital Converter), GPIO (General Purpose Input / Output), SPI (Serial Peripheral Interface), I2C (Integrated Circuit Bus), IOS (Input / Output System), PCM (Pulse Code Modulation), I2S (Integrated Audio Bus), and HWTimer (Hardware Timer).

[0063] It should be noted that the above dual-core communication software framework is for illustrative purposes only. Those skilled in the art can add, delete or modify the framework according to actual needs. The embodiments of this application do not limit the specific structure of the dual-core communication software framework.

[0064] Please refer to Figure 4It illustrates a flowchart of a speech recognition method provided in an exemplary embodiment of this application, in which the method is applied... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0065] Step 401: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0066] In order to reduce the power consumption of electronic devices while ensuring their performance, in one possible implementation, the electronic device is equipped with at least a first processor and a second processor, as well as a voice recognition component, which are used to run the first system, the second system, and the voice recognition system, respectively. During the operation of the electronic device, the voice recognition system running on the voice recognition component recognizes the collected voice and obtains the first voice recognition result.

[0067] Optionally, the speech recognition system uses offline speech recognition. Specifically, a large number of syllable sequence entries are stored in the speech recognition component in advance to form a "speech dictionary". After the electronic device collects the speech, it uses the speech recognition system to recognize the collected speech into syllables, obtains a syllable sequence, and then matches the syllable sequence with the "speech dictionary" to obtain the first speech recognition result.

[0068] Optionally, the speech recognition system can be pre-trained extensively to improve the accuracy of its syllable sequence matching, thereby improving the accuracy of speech recognition.

[0069] In this embodiment of the application, the speech recognition system performs speech recognition on the speech to obtain a first speech recognition result. The first speech recognition result contains the operation command corresponding to the speech and the system information that responds to the operation command. For example, if the speech is "check the weather", the system that performs the weather query function is the second system. After the speech recognition system performs speech recognition on this speech, it obtains the first speech recognition result. The first speech recognition result contains the operation command to check the weather and the information that the system that responds to the operation command is the second system.

[0070] Step 402: If the first speech recognition result indicates that the first system should perform a functional response, the speech recognition system provides the first speech recognition result to the first system.

[0071] In one possible implementation, the electronic device includes a first processor and a second processor, wherein the processing performance of the first processor is lower than that of the second processor (both the processing power and speed of the first processor are lower than those of the second processor), and the power consumption of the first processor is lower than that of the second processor. Consequently, the power consumption of the first system running on the first processor is lower than that of the second system running on the second processor. Therefore, the functional responses that the first system can perform are different from those that the second system can perform.

[0072] In another possible implementation, the electronic device may also be equipped with a single processor, with the first system and the second system running on different cores of the processor, wherein the core running the second system has higher processing performance than the core running the first system.

[0073] For example, taking a smartwatch as an electronic device, the first processor is an MCU, the second processor is a SOC, the first system is an RTOS, and the second system is the Android system. Correspondingly, the functions that the first system can perform include reading notification messages, hanging up calls, and reporting heart rates—scenarios with low processing performance requirements or weak interaction. The events that the second system can handle include answering incoming calls, opening applications, and checking the weather—scenarios with high processing performance requirements or strong interaction.

[0074] Unlike smartphones, which are electronic devices with strong interactive features, wearable devices, as auxiliary electronic devices, have only weak interactions with users in most usage scenarios. For example, in most situations, the voice recognition function required by users is only to announce the time or read out notification information. Therefore, when the wearable device processes events through the first system, it controls the second processor to be in a sleep state (the second system is in a sleep state), thereby reducing the overall power consumption of the wearable device.

[0075] In one possible implementation, when the first system is in a wake-up state, it has control over the screen, meaning the electronic device displays the system interface of the first system, such as a smartwatch displaying a watch face. In one possible application scenario, when the first system is in a wake-up state, the second system is in a sleep state; in another possible application scenario, when the first system is in a wake-up state, the second system is also in a wake-up state, with the first system running in the foreground and the second system running in the background.

[0076] In this embodiment of the application, when the first system is in operation, and the first speech recognition result indicates that the first system should perform a functional response, the speech recognition component connects the switch to the first processor so that the speech recognition system provides the first speech recognition result to the first system.

[0077] Step 403: The first system responds to functions based on the first speech recognition result.

[0078] Correspondingly, after receiving the first speech recognition result, the first system executes the operation instructions contained in the first speech recognition result to perform a functional response.

[0079] Step 404: If the first speech recognition result indicates that the second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system.

[0080] In one possible implementation, the operating modes of the electronic device include a performance mode, a hybrid mode, and a low-power mode. In the hybrid mode, while the first system processes events, the second processor is in standby mode and can switch between sleep and wake-up states (i.e., when the first system is in wake-up mode, the second system can be either in wake-up mode or sleep mode). The names of the operating modes of the electronic device described above are for illustrative purposes only and do not constitute a limitation on the specific operating modes.

[0081] Optionally, when the second system is in hibernation, the electronic device shuts down most of the hardware modules in the second processor, transfers all the relevant data of the second system to a hibernation file on the read-only memory (ROM), and then cuts off the power supply to the second processor. After the first system sends a wake-up message to the second system, the electronic device restores the power supply to the second processor, and the second system directly reads the contents of the hibernation file on the hard drive into the random access memory (RAM), and the second system switches to the wake-up state.

[0082] In this embodiment of the application, when the second system is in a wake-up state, and the first speech recognition result indicates that the second system should perform a functional response, the speech recognition component connects the switch to the second processor so that the speech recognition system provides the first speech recognition result to the second system.

[0083] Step 405: The second system responds to functions based on the first speech recognition result.

[0084] Correspondingly, after receiving the first speech recognition result, the second system executes the operation instructions contained in the first speech recognition result to perform a functional response.

[0085] In summary, in this embodiment of the application, for electronic devices supporting dual systems, a voice recognition component is provided, and this component is used to run a voice recognition system. The electronic device performs voice recognition on the collected voice through the voice recognition system run by the voice recognition component. After obtaining the voice recognition result, if the voice recognition result indicates that the first system should respond functionally, the voice recognition system provides the voice recognition result to the first system, and the first system then responds functionally based on the voice recognition result. If the voice recognition result indicates that the second system should respond functionally, the voice recognition system provides the voice recognition result to the second system, and the second system then responds functionally based on the voice recognition result. While ensuring the normal operation of the voice recognition function of the electronic device, it can avoid the problem of high power consumption of the electronic device caused by the high-performance system needing to maintain a working state for a long time when implementing the voice recognition function on the high-performance system. This helps to reduce the power consumption of the electronic device.

[0086] In one possible implementation, when the first speech recognition result indicates that the first system should perform a functional response, the speech recognition system provides the first speech recognition result to the first system, which may include the following two cases:

[0087] 1. The first system has screen control permissions and voice recognition system control permissions.

[0088] In one possible implementation, when the first speech recognition result indicates that the first system should perform a functional response, and the first system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the first system.

[0089] Please refer to Figure 5 It illustrates a flowchart of a speech recognition method provided in an exemplary embodiment of this application, in which the method is applied... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0090] Step 501: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0091] The implementation method of this step can be referred to step 401, and will not be repeated here in this embodiment.

[0092] Step 502: When the first speech recognition result indicates that the first system should respond to the function, and the first system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the first system.

[0093] In this embodiment, the screen of the electronic device is connected to the first processor via a switch, so that the first system has screen control authority, and the voice recognition component of the electronic device is connected to the first processor via a switch, so that the first system has voice recognition system control authority.

[0094] Indicative, such as Figure 6 As shown, the first processor 620 is in running state, the second processor 630 can be in sleep state, the screen 610 and the voice recognition component 640 are connected to the first processor 620 through switches 611 and 641 respectively, so that the first system has screen control authority and the first system has voice recognition system control authority.

[0095] In this embodiment, when the first system has screen control permissions and voice recognition system control permissions, the voice recognition system of the electronic device can directly transmit the first voice recognition result to the first system so that the first system can perform a function response and display the response result on the screen.

[0096] Step 503: The first system responds to functions based on the first speech recognition result.

[0097] The implementation method of this step can be referred to step 403, and will not be repeated here in this embodiment.

[0098] Step 504: The first system displays the function response result on the screen.

[0099] Accordingly, when the first system has screen control permissions, the first system responds by displaying the results on the screen.

[0100] Indicative, such as Figure 7As shown, taking a smartwatch as an example, the smartwatch 71 has an RTOS system (run by a first processor) and an Android system (run by a second processor). Before performing voice recognition, the smartwatch 71 displays the watch face interface 721 through the RTOS system. Then, when performing voice recognition, the RTOS system first displays "Recording..." on the watch face interface 722 to indicate that the smartwatch has entered voice recognition mode. At this time, the smartwatch collects the voice to be recognized. If the user's voice input is "Announcing the time", the voice recognition system recognizes this voice and obtains the first voice recognition result. The first voice recognition result contains the "Announcing the time" command and the information that the corresponding system that performs the function response is the RTOS system. Based on the first voice recognition result, the voice recognition system transmits the "Announcing the time" command to the RTOS system. After receiving the "Announcing the time" command, the RTOS system first displays the command "Announcing the time" on the watch face interface 723, then refreshes the watch face interface, displays the operation result on the watch face interface 724, and reads aloud "Hello, the current time is 10:18 Beijing time".

[0101] In this embodiment, when the first speech recognition result indicates that the first system should respond functionally, and the first system has screen control permissions and speech recognition system control permissions, the electronic device does not need to run the second system with higher power consumption. During the entire speech recognition process, there is no need for system communication between the first system and the second system.

[0102] 2. The second system has screen control permissions and voice recognition system control permissions.

[0103] In one possible implementation, when the first speech recognition result indicates that the first system should perform a functional response, and the second system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the second system, and then the second system forwards the first speech recognition result to the first system.

[0104] Please refer to Figure 8 It illustrates a flowchart of a speech recognition method provided in an exemplary embodiment of this application, in which the method is applied... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0105] Step 801: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0106] The implementation method of this step can be referred to step 401, and will not be repeated here in this embodiment.

[0107] Step 802: When the first speech recognition result indicates that the first system should respond functionally, and the second system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the second system.

[0108] In this embodiment, the screen of the electronic device is connected to the second processor via a switch, so that the second system has screen control authority, and the voice recognition component of the electronic device is connected to the second processor via a switch, so that the second system has voice recognition system control authority.

[0109] Indicative, such as Figure 9 As shown, the second processor 930 is in running state, and the first processor 920 can be in sleep state or running in the background. The screen 910 and the voice recognition component 940 are connected to the second processor 930 through switches 911 and 941 respectively, so that the second system has screen control authority and voice recognition system control authority.

[0110] Step 803: The second system forwards the first speech recognition result to the first system.

[0111] In this embodiment, when the first speech recognition result indicates that the first system should respond functionally, and the second system has screen control permissions and speech recognition system control permissions, the second system needs to communicate with the first system to forward the first speech result to the first system.

[0112] Step 804: The first system responds to functions based on the first speech recognition result.

[0113] The implementation method of this step can be referred to step 403, and will not be repeated here in this embodiment.

[0114] Step 805: The first system sends the function response result to the second system.

[0115] In this embodiment, the first system sends the function response result to the second system so that the second system can display the function response result.

[0116] Step 806: The second system displays the function response results on the screen.

[0117] Correspondingly, when the second system has screen control permissions, the second system responds by displaying the results on the screen.

[0118] Indicative, such as Figure 10As shown, taking a smartwatch as an example, the smartwatch 101 has an RTOS system (run by a first processor) and an Android system (run by a second processor). Before performing voice recognition, the smartwatch 101 displays the watch face interface 1021 through the Android system. Then, during voice recognition, the Android system first displays "Recording..." on the watch face interface 1022 to indicate that the smartwatch has entered voice recognition mode. At this time, the smartwatch collects the voice to be recognized. If the user's recorded voice is "Announcing the time," the voice recognition system recognizes this voice and obtains the first voice recognition result. The first voice recognition result contains the "Announcing the time" command and the information that the system responding to the function is an RTOS system. However, due to the limited screen control permissions and voice recognition system... The control permissions belong to the Android system. The voice recognition system can only send the first voice recognition result to the Android system, which in turn sends the first voice recognition result to the RTOS system. After the RTOS system responds to the function based on the first voice recognition result, the Android system obtains the function response result. At the same time, during the function response process of the RTOS system, the Android system first displays the instruction "Announce Time" on the watch face 1023. After obtaining the function response result, it refreshes the watch face and displays the operation result on the watch face 1024, and reads aloud "Hello, the current time is 10:18 Beijing time".

[0119] In this embodiment, for electronic devices that support dual systems, when the first voice recognition result indicates that the first system should respond to the function, and when the first system has screen control permissions and voice recognition system control permissions, the voice recognition system provides the first voice recognition result to the first system, and the first system responds to the function. Throughout the process, the first processor is in a wake-up state, the second processor is in a sleep state, the first system responds to the function, and the second system is in a sleep state. This ensures the normal operation of the voice recognition function of the electronic device while helping to reduce the operating power consumption of the electronic device.

[0120] Similarly, when the first speech recognition result indicates that the second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system, which may include the following two situations:

[0121] 1. The second system has screen control permissions and voice recognition system control permissions.

[0122] In one possible implementation, when the first speech recognition result indicates that the second system should perform a functional response, and the second system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the second system.

[0123] Please refer to Figure 11 It illustrates a flowchart of a speech recognition method provided in an exemplary embodiment of this application, in which the method is applied... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0124] Step 1101: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0125] The implementation method of this step can be referred to step 401, and will not be repeated here in this embodiment.

[0126] Step 1102: When the first speech recognition result indicates that the second system should respond functionally, and the second system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the second system.

[0127] In this embodiment, the screen of the electronic device is connected to the first processor via a switch, so that the first system has screen control authority, and the voice recognition component of the electronic device is connected to the first processor via a switch, so that the first system has voice recognition system control authority.

[0128] Indicative, such as Figure 12 As shown, the second processor 1230 is in running state, and the first processor 1220 can be in sleep state or in background running state. The screen 1210 and the voice recognition component 1240 are connected to the second processor 1230 through switches 1211 and 1241 respectively, so that the second system has screen control authority and voice recognition system control authority.

[0129] Step 1103: The second system responds to functions based on the first speech recognition result.

[0130] The implementation method of this step can be referred to step 405, and will not be repeated here in this embodiment.

[0131] Step 1104: The second system displays the function response results on the screen.

[0132] Correspondingly, when the second system has screen control permissions, the second system responds by displaying the results on the screen.

[0133] In this embodiment, when the first speech recognition result indicates that the second system should provide a functional response, and the second system has screen control permissions and speech recognition system control permissions, the electronic device does not need to run the first system. During the entire speech recognition process, there is no need for system communication between the first system and the second system.

[0134] Indicative, such as Figure 13 As shown, taking a smartwatch as an example, the smartwatch 131 has an RTOS system (run by a first processor) and an Android system (run by a second processor). Before performing voice recognition, the smartwatch 131 displays the watch face interface 1321 through the Android system. Then, during voice recognition, the Android system first displays "Recording..." on the watch face interface 1322 to indicate that the smartwatch has entered voice recognition mode. At this time, the smartwatch collects the voice to be recognized. If the user's recorded voice is "Call Mom," the voice recognition system recognizes this voice and obtains a first voice recognition result. The first voice recognition result contains the "Call Mom" ​​command and the information that the corresponding system responding to the function is the Android system. Based on the first voice recognition result, the voice recognition system transmits "Call Mom" ​​to the Android system. After receiving the "Call Mom" ​​command, the Android system first displays the command "Call Mom" ​​on the watch face interface 1323, then refreshes the watch face interface, displaying the calling interface on the watch face interface 1324.

[0135] 2. The first system has screen control permissions and voice recognition system control permissions.

[0136] In one possible implementation, when the first speech recognition result indicates that the second system should respond functionally, and the first system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the first system, and then the first system forwards the first speech recognition result to the second system.

[0137] Please refer to Figure 14 It illustrates a flowchart of a speech recognition method provided in an exemplary embodiment of this application, in which the method is applied... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0138] Step 1401: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0139] The implementation method of this step can be referred to step 401, and will not be repeated here in this embodiment.

[0140] Step 1402: When the first speech recognition result indicates that the second system should respond functionally, and the first system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the first system.

[0141] In this embodiment, the screen of the electronic device is connected to the first processor via a switch, so that the first system has screen control authority, and the voice recognition component of the electronic device is connected to the first processor via a switch, so that the first system has voice recognition system control authority.

[0142] Indicative, such as Figure 15 As shown, the first processor 1520 is in running state, the second processor 1530 is in sleep state, the screen 1510 and the voice recognition component 1540 are connected to the first processor 1520 through switches 1511 and 1541 respectively, so that the first system has screen control authority and the first system has voice recognition system control authority.

[0143] Step 1403: Based on the first speech recognition result, the first system displays a recognition prompt interface on the screen.

[0144] Optionally, if the first system has screen control permissions and the second system is in a dormant state, the first system displays a recognition prompt interface on the screen based on the first voice recognition result.

[0145] Step 1404: During the display of the recognition prompt interface, the first system wakes up the second system.

[0146] In this embodiment, when the first voice recognition result indicates that the second system should respond to the function, but the second system is in a dormant state, the first system needs to communicate with the second system to wake up the second system.

[0147] Optionally, the first system wakes up the second system through dual-core communication, or the first system wakes up the second system by sending an interrupt. This embodiment does not limit this.

[0148] Step 1405: When the second system is in a wake-up state, the first system forwards the first speech recognition result to the second system.

[0149] Optionally, after the second system is woken up, it sends a status feedback notification to the first system. After receiving the status feedback notification from the second system, the first system confirms that the second system has switched from the sleep state to the wake-up state. The first system then forwards the first speech recognition result to the second system, enabling the second system to perform a functional response based on the first speech recognition result.

[0150] Optionally, after switching to the second system, the first system may remain in a wake-up state (low power consumption, with minimal impact on battery life), or the first system may switch to a sleep state. This embodiment does not limit this.

[0151] Step 1406: The second system responds to functions based on the first speech recognition result.

[0152] The implementation method of this step can be referred to step 405, and will not be repeated here in this embodiment.

[0153] Step 1407: The first system transfers screen control permissions to the second system.

[0154] Optionally, if the first system has screen control permissions, the first system may transfer screen control permissions to the second system so that the second system can respond to the results through the screen display function when it obtains screen control permissions.

[0155] Indicative, after the second system is awakened, such as Figure 16 As shown, the second processor 1530 is in a wake-up state, and the first processor 1520 can be in a sleep state or a background running state. The screen 1510 and the voice recognition component 1540 are connected to the second processor 1530 through switches 1511 and 1541 respectively, so that the second system has screen control permissions and voice recognition system control permissions.

[0156] Step 1408: The second system displays the function response results on the screen.

[0157] Correspondingly, when the second system has screen control permissions, the second system responds by displaying the results on the screen.

[0158] Indicative, such as Figure 17As shown, taking a smartwatch as an example, the smartwatch 171 contains an RTOS system (run by a first processor) and an Android system (run by a second processor). Before performing voice recognition, the smartwatch 171 displays the watch face 1721 through the RTOS system. At this time, the Android system is in sleep mode. When performing voice recognition, the electronic device first displays "Recording..." on the watch face 1722 through the Android system to indicate that the smartwatch has entered voice recognition mode. At this time, the smartwatch collects the voice to be recognized. If the user's voice input is "Call Mom," the voice recognition system recognizes this voice and obtains the first voice recognition result. The first voice recognition result contains the "Call Mom" ​​command and the information that the corresponding system that performs the function response is the Android system. However, since the Android system is in sleep mode and the voice... The voice recognition system has the permissions of the RTOS system. Therefore, the voice recognition system sends the first voice recognition result to the RTOS system, which then wakes up the Android system. After the Android system is woken up, the RTOS system sends the first voice recognition result to the Android system, causing the Android system to execute the "Call Mom" ​​command. At the same time, the RTOS system first displays the command "Call Mom" ​​on the watch face 1723. If the RTOS system has screen control permissions, it transfers screen control permissions to the Android system. If the Android system has screen control permissions, it displays the call interface on the watch face 1724.

[0159] In this embodiment, for electronic devices supporting dual systems, when the first voice recognition result indicates that the second system should respond to the function, and when the first system has screen control permissions and voice recognition system control permissions, the voice recognition system first provides the first voice recognition result to the first system, and then the first system forwards the first voice recognition result to the second system. During this process, the first system first displays the result on the screen, and after the second system completes the function response, the second system displays the function response result on the screen. While ensuring the normal operation of the voice recognition function of the electronic device, the response speed of visual voice recognition can be improved, and the display delay of the screen during system switching can be reduced.

[0160] Because the voice recognition system performs voice recognition offline during electronic device operation, this method may fail to recognize the voice result. Therefore, in one possible implementation, if the first voice recognition result indicates that the function response object cannot be recognized after the voice recognition system performs voice recognition, the voice recognition system provides the voice to a second system for online voice recognition. Please refer to [reference needed]. Figure 18 It illustrates a flowchart of a speech recognition method provided in another exemplary embodiment of this application, in which this embodiment applies the method to... Figure 1 Taking the electronic device shown as an example, the method may include the following steps:

[0161] Step 1801: The speech recognition system performs speech recognition on the speech to obtain the first speech recognition result.

[0162] The implementation method of this step can be referred to step 401, and will not be repeated here in this embodiment.

[0163] Step 1802: If the first speech recognition result indicates that the function response object cannot be recognized, the speech recognition system provides speech to the second system.

[0164] Because the speech recognition system uses offline speech recognition, the syllable sequence entries stored in the speech recognition component cannot contain all syllables. In other words, the "speech dictionary" is not perfect. Therefore, when the electronic device collects speech and matches the collected speech with the "speech dictionary" through the speech recognition system, there may be situations where the first speech recognition result cannot be obtained or the first speech recognition result is incomplete.

[0165] In this embodiment of the application, when the first speech recognition result indicates that the function response object cannot be recognized, the speech recognition system provides speech to the second system so that the second system can recognize the collected speech through online speech recognition.

[0166] Step 1803: The second system sends voice to the server, which performs voice recognition on the voice to obtain the second voice recognition result.

[0167] In one possible implementation, the second system uploads the voice to a server, and then the server performs voice recognition on the voice to obtain a second voice recognition result.

[0168] Optionally, the second system uploads voice data to a cloud server using mobile data or a wireless network via at least one of a Modem module or a WCNSS module.

[0169] Optionally, the server is a cloud server, and the speech recognition method used by the cloud server is online speech recognition. Specifically, a large number of syllable sequence entries can be pre-stored in the cloud storage to form a "cloud speech dictionary". The syllable sequences contained in the "cloud speech dictionary" are much more numerous than the syllable sequences contained in the "speech dictionary" in the speech recognition component. After the cloud server obtains the speech, it recognizes the speech into individual syllables to obtain a syllable sequence, and then matches the syllable sequence with the "cloud speech dictionary" to obtain the second speech recognition result.

[0170] Optionally, the second speech recognition result includes the corresponding speech operation command and system information on the function response to the operation command.

[0171] Step 1804: The second system receives the second speech recognition result sent by the server.

[0172] After the server completes the speech recognition, it sends the second speech recognition result to the second system, which then receives the second speech recognition result.

[0173] Step 1805: If the second speech recognition result indicates that the first system should provide a functional response, the second system forwards the second speech recognition result to the first system.

[0174] If the second speech recognition result indicates that the first system should provide a functional response, the second system forwards the second speech recognition result to the first system.

[0175] Optionally, the first system remains in the background in a wake-up state (low power consumption, minimal impact on battery life), and the second system can directly forward the second speech recognition result to the first system.

[0176] Step 1806: If the second speech recognition result indicates that the first system should perform a functional response, the first system performs a functional response based on the second speech recognition result.

[0177] After receiving the second speech recognition result, the first system executes the operation instructions contained in the second speech recognition result to perform a functional response.

[0178] Step 1807: If the second speech recognition result indicates that the second system should perform a functional response, the second system performs a functional response based on the second speech recognition result.

[0179] Correspondingly, when the second speech recognition result indicates that the second system should perform a functional response, the second system directly executes the operation instructions contained in the second speech recognition result based on the second speech recognition result to perform a functional response.

[0180] In one possible implementation, if the first speech recognition result indicates that the functional response object cannot be recognized, the speech recognition system provides speech to the second system, which may include the following two cases:

[0181] 1. The second system is in wake-up state.

[0182] In one possible implementation, when the first speech recognition result indicates that the function response object cannot be recognized, and the second system is in a wake-up state, and the second system has control authority over the speech recognition system, the speech control system sends speech to the second system.

[0183] Indicative, such as Figure 19 As shown, the second processor 1930 is in running state, while the first processor 1920 can be in sleep state or running in the background. The screen 1910 and the voice recognition component 1940 are connected to the second processor via switches 1911 and 1941 respectively, giving the second system screen control permissions and voice recognition system control permissions. Furthermore, at this time, at least one of the Modem module 1932 or WCNSS module 1933 in the second processor 1930 is activated, enabling the second system to upload voice data to the server.

[0184] 2. The second system is in a dormant state.

[0185] In another possible implementation, if the first speech recognition result indicates that the function response object cannot be recognized and the second system is in a dormant state, the speech recognition system sends speech to the first system, which then wakes up the second system. When the second system is in a dormant state, the first system forwards the speech to the second system.

[0186] Optionally, the first system has screen control permissions when the second system is in hibernation mode.

[0187] Optionally, the speech recognition system sends the first speech recognition result to the first system at the same time as sending the speech. The first system then displays a recognition prompt interface on the screen based on the first speech recognition result. During the display of the recognition prompt interface, the first system wakes up the second system.

[0188] Optionally, the first system wakes up the second system through dual-core communication, or the first system wakes up the second system by sending an interrupt. This embodiment does not limit this.

[0189] Optionally, after the second system is woken up, it sends a status feedback notification to the first system. After receiving the status feedback notification from the second system, the first system confirms that the second system has switched from the sleep state to the wake-up state. The first system then forwards the voice to the second system, enabling the second system to upload the voice to the server for online speech recognition.

[0190] Optionally, while the second system is awake, the first system may transfer screen control permissions to the second system.

[0191] Optionally, after switching to the second system, the first system may remain in a wake-up state (low power consumption, with minimal impact on battery life), or the first system may switch to a sleep state. This embodiment does not limit this.

[0192] This is an illustrative example of how the various hardware components of an electronic device are connected when the second processor is in sleep mode. Figure 14 At this time, the first processor 1420 is running, the second processor 1430 is in sleep mode, and the screen 1410 and the voice recognition component 1440 are connected to the first processor 1420 via switches 1411 and 1441 respectively, giving the first system screen control authority and control authority over the voice recognition system. Thus, after the voice recognition system sends voice and the first voice recognition result to the first system, the first system first displays a recognition prompt interface on the screen 1410 based on the first voice recognition result. Simultaneously, during the display of the recognition prompt interface, the first system wakes up the second system.

[0193] This is an illustrative example; the connection methods of the various hardware components of the electronic device after the second system is woken up can be referenced. Figure 19 At this time, the second processor 1930 is running, while the first processor 1920 can be in sleep mode or running in the background. The screen 1910 and the voice recognition component 1940 are connected to the second processor 1930 via switches 1911 and 1941 respectively, giving the second system screen control permissions and voice recognition system control permissions. It should be noted that at this time, at least one of the Modem module 1932 or WCNSS module 1933 in the second processor 1930 is activated, enabling the second system to upload voice data to the server.

[0194] In this embodiment, for electronic devices supporting dual systems, when the first voice recognition result obtained by the voice recognition system indicates that the function response object cannot be recognized, the voice is uploaded to the server through the second system for online recognition. This improves the range and accuracy of voice recognition in electronic devices. Furthermore, when the second system is in sleep mode, the first system displays the first voice recognition result on the screen first. After the second system receives the second voice recognition result sent by the processor, it displays the function response result on the screen. This ensures the normal operation of the voice recognition function of the electronic device while improving the response speed of visual voice recognition and reducing the display delay of the screen during system switching.

[0195] Please refer to Figure 20 This diagram illustrates a structural block diagram of a voice recognition device according to an embodiment of this application. The device can be implemented as all or part of an electronic device through software, hardware, or a combination of both. The device includes:

[0196] The speech recognition system module 2001 is used to perform speech recognition on speech and obtain a first speech recognition result;

[0197] The speech recognition system module 2001 is further configured to provide the first speech recognition result to the first system module when the first speech recognition result indicates that the first system module should perform a functional response; the first system module 2002 is configured to perform a functional response based on the first speech recognition result.

[0198] The speech recognition system module 2001 is further configured to provide the first speech recognition result to the second system module when the first speech recognition result indicates that the second system module should perform a functional response; the second system module 2003 is configured to perform a functional response based on the first speech recognition result.

[0199] Optionally, the speech recognition system module 2001 is used for:

[0200] When the first speech recognition result indicates that the first system module 2002 should respond functionally, and the first system module 2002 has screen control permissions and the first system module 2002 has control permissions for the speech recognition system module 2001, the first speech recognition result is sent to the first system module 2002.

[0201] When the first speech recognition result indicates that the first system module 2002 should respond functionally, and the second system module 2003 has screen control permissions and control permissions of the speech recognition system module 2001, the first speech recognition result is sent to the second system module 2003; the second system module 2003 is used to forward the first speech recognition result to the first system module 2002.

[0202] Optionally, the first system module 2002 is used for:

[0203] When the first system module 2002 has screen control permissions, the function response results are displayed on the screen.

[0204] The second system module 2003 is used for:

[0205] When the second system module 2003 has screen control permissions, it obtains the function response results from the first system module 2002 and displays the function response results on the screen.

[0206] Optionally, the speech recognition system module 2001 is used for:

[0207] When the first speech recognition result indicates that the second system module 2003 should respond functionally, and the second system module 2003 has screen control permissions and control permissions for the speech recognition system, the first speech recognition result is sent to the second system module 2003.

[0208] When the first speech recognition result indicates that the second system module 2003 should respond functionally, and the first system module 2002 has screen control permissions and control permissions for the speech recognition system, the first speech recognition result is sent to the first system module 2002; the first system module 2002 is used to forward the first speech recognition result to the second system module 2003.

[0209] Optionally, the second system module 2003 is used for:

[0210] When the second system module 2003 has screen control permissions, the function response results are displayed on the screen;

[0211] The first system module 2002 is used for:

[0212] When the first system module 2002 has screen control permissions, the screen control permissions are transferred to the second system module 2003; the second system module 2003 is used to display the function response results on the screen when it obtains screen control permissions.

[0213] Optionally, the first system module 2002 is used for:

[0214] When the first system module 2002 has screen control permissions and the second system module 2003 is in a sleep state, a recognition prompt interface is displayed on the screen based on the first voice recognition result.

[0215] During the display of the identification prompt interface, the second system module 2003 is activated;

[0216] When the second system module 2003 is in a wake-up state, the first speech recognition result is forwarded to the second system module 2003.

[0217] Optionally, the speech recognition system module 2001 is used for:

[0218] If the first speech recognition result indicates that the function response object cannot be recognized, the speech is provided to the second system module 2003;

[0219] The second system module 2003 is used for:

[0220] The voice is sent to the server, which performs voice recognition on the voice to obtain a second voice recognition result;

[0221] Receive the second speech recognition result sent by the server;

[0222] The first system module 2002 is used for:

[0223] When the second speech recognition result indicates that the first system module 2002 should perform a functional response, a functional response is performed based on the second speech recognition result;

[0224] The second system module 2003 is used for:

[0225] When the second speech recognition result indicates that the second system module 2003 should perform a functional response, a functional response should be performed based on the second speech recognition result.

[0226] Optionally, the speech recognition system module 2001 is used for:

[0227] When the first speech recognition result indicates that the function response object cannot be recognized, and the second system module 2003 is in a wake-up state, and the second system module 2003 has control authority over the speech recognition system module 2001, the speech is sent to the second system module 2003.

[0228] When the first speech recognition result indicates that the function response object cannot be recognized and the second system module 2003 is in a sleep state, the speech recognition system sends the speech to the first system module 2002; the first system module 2002 is used to wake up the second system module 2003; when the second system module 2003 is in a wake-up state, the speech is forwarded to the second system module 2003.

[0229] Optionally, when the second system module 2003 is in a dormant state, the first system module 2002 has screen control permissions;

[0230] The first system module 2002 is used for:

[0231] Based on the first speech recognition result, a recognition prompt interface is displayed on the screen;

[0232] The first system module 2002 is further configured to:

[0233] During the display of the identification prompt interface, the second system module 2003 is activated;

[0234] The first system module 2002 is further configured to:

[0235] When the second system module 2003 is in a wake-up state, screen control permissions are transferred to the second system module 2003.

[0236] Optionally, the second system module 2003 is used for:

[0237] If the second speech recognition result indicates that the first system module 2002 should perform a functional response, the second speech recognition result is forwarded to the first system module 2002.

[0238] Optionally, the operating performance of the first system module 2002 is lower than that of the second system module 2003, and / or the operating power consumption of the first system module 2002 is lower than that of the second system module 2003.

[0239] In summary, in this embodiment, for an electronic device supporting dual systems, a speech recognition system performs speech recognition on the speech to obtain a first speech recognition result. If the first speech recognition result indicates that the first system should provide a functional response, the speech recognition system provides the first speech recognition result to the first system, which then provides the functional response based on the first speech recognition result. If the first speech recognition result indicates that the second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system, which then provides the functional response based on the first speech recognition result. By adopting the scheme provided in this embodiment, after acquiring the speech to be recognized, speech recognition is performed by the speech recognition system. After obtaining the speech recognition result, the system indicated by the speech recognition result is determined, and the speech recognition result is provided to that system so that it can provide the functional response based on the speech recognition result. This ensures the normal operation of the electronic device's speech recognition function while avoiding the problem of high power consumption caused by the high-performance system needing to maintain a working state for a long time when implementing speech recognition on a high-performance system, thus helping to reduce the power consumption of the electronic device.

[0240] It should be noted that the apparatus provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their implementation process can be found in the method embodiments, which will not be repeated here.

[0241] In some embodiments, this application also provides an electronic device, which is provided with Figure 1 The first processor, the second processor, the screen, and the voice recognition component are shown.

[0242] It should be noted that the electronic device may also include other necessary components, such as memory, microphone, speaker, radio frequency circuit, input unit, sensors (such as accelerometer, angular velocity sensor, light sensor, etc.), power supply, etc., which will not be described in detail in this embodiment.

[0243] This application also provides a computer-readable storage medium storing at least one program that is executed by a processor to implement the speech recognition method as described in the above embodiments.

[0244] This application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the speech recognition method provided in the above embodiment.

[0245] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0246] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A speech recognition method, characterized in that, The method is used in an electronic device that supports running a first system, a second system, and a speech recognition system. The first system and the second system are operating systems running on processors with different processing performance and power consumption. The hardware running the speech recognition system is different from the hardware running the first system and different from the hardware running the second system. The method includes: The speech recognition system performs speech recognition on the speech to obtain a first speech recognition result; When the first speech recognition result indicates that the first system should perform a functional response, the speech recognition system provides the first speech recognition result to the first system; the first system performs a functional response based on the first speech recognition result. When the first speech recognition result indicates that the second system should perform a functional response, the speech recognition system provides the first speech recognition result to the second system; the second system performs a functional response based on the first speech recognition result.

2. The method according to claim 1, characterized in that, When the first speech recognition result indicates that the first system should provide a functional response, the speech recognition system provides the first speech recognition result to the first system, including: When the first speech recognition result indicates that the first system should respond functionally, and the first system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the first system. When the first speech recognition result indicates that the first system should respond functionally, and the second system has screen control permissions and control permissions over the speech recognition system, the speech recognition system sends the first speech recognition result to the second system; the second system forwards the first speech recognition result to the first system.

3. The method according to claim 2, characterized in that, The method further includes: When the first system has screen control permissions, the first system displays the response result through the screen display function; When the second system has screen control permissions, the second system obtains the function response result from the first system; the second system displays the function response result on the screen.

4. The method according to claim 1, characterized in that, When the first speech recognition result indicates that the second system should provide a functional response, the speech recognition system provides the first speech recognition result to the second system, including: When the first speech recognition result indicates that the second system should respond functionally, and the second system has screen control permissions and control permissions for the speech recognition system, the speech recognition system sends the first speech recognition result to the second system. When the first speech recognition result indicates that the second system should respond functionally, and the first system has screen control permissions and control permissions over the speech recognition system, the speech recognition system sends the first speech recognition result to the first system; the first system forwards the first speech recognition result to the second system.

5. The method according to claim 4, characterized in that, The method further includes: When the second system has screen control permissions, the second system responds by displaying the results on the screen. If the first system has screen control permissions, the first system transfers screen control permissions to the second system; if screen control permissions are obtained, the second system responds by displaying the results on the screen.

6. The method according to claim 4, characterized in that, The first system forwards the first speech recognition result to the second system, including: When the first system has screen control permissions and the second system is in a dormant state, the first system displays a recognition prompt interface on the screen based on the first voice recognition result. During the display of the identification prompt interface, the first system wakes up the second system; When the second system is in a wake-up state, the first system forwards the first speech recognition result to the second system.

7. The method according to claim 1, characterized in that, The method further includes: If the first speech recognition result indicates that the function response object cannot be recognized, the speech recognition system provides the speech to the second system; The second system sends the voice to the server, and the server performs voice recognition on the voice to obtain a second voice recognition result; The second system receives the second speech recognition result sent by the server; If the second speech recognition result indicates that the first system should perform a functional response, the first system performs a functional response based on the second speech recognition result. If the second speech recognition result indicates that the second system should perform a functional response, the second system should perform a functional response based on the second speech recognition result.

8. The method according to claim 7, characterized in that, When the first speech recognition result indicates that the function response object cannot be recognized, the speech recognition system provides the speech to the second system, including: When the first speech recognition result indicates that the function response object cannot be recognized, and the second system is in a wake-up state, and the second system has control authority over the speech recognition system, the speech control system sends the speech to the second system. If the first speech recognition result indicates that the function response object cannot be recognized and the second system is in a dormant state, the speech recognition system sends the speech to the first system; the first system wakes up the second system; and if the second system is in a wake-up state, the first system forwards the speech to the second system.

9. The method according to claim 8, characterized in that, When the second system is in a dormant state, the first system has screen control permissions; The method further includes: The first system displays a recognition prompt interface on the screen based on the first speech recognition result. The first system wakes up the second system, including: During the display of the identification prompt interface, the first system wakes up the second system; The method further includes: When the second system is in a wake-up state, the first system transfers screen control permissions to the second system.

10. The method according to claim 7, characterized in that, The method further includes: If the second speech recognition result indicates that the first system should provide a functional response, the second system forwards the second speech recognition result to the first system.

11. The method according to any one of claims 1 to 10, characterized in that, The operating performance of the first system is lower than that of the second system, and / or the power consumption of the first system is lower than that of the second system.

12. A voice recognition device, characterized in that, The device is used in an electronic device that supports running a first system, a second system, and a voice recognition system. The first system and the second system are operating systems running on processors with different processing performance and power consumption. The hardware running the voice recognition system is different from the hardware running the first system and different from the hardware running the second system. The device includes: The speech recognition system module is used to perform speech recognition on speech and obtain the first speech recognition result; The speech recognition system module is further configured to provide the first speech recognition result to the first system module when the first speech recognition result indicates that the first system module should perform a functional response; the first system module is configured to perform a functional response based on the first speech recognition result; The speech recognition system module is further configured to provide the first speech recognition result to the second system module when the first speech recognition result indicates that the second system module should perform a functional response; the second system module is configured to perform a functional response based on the first speech recognition result.

13. An electronic device, characterized in that, The electronic device includes a processor and a memory; the memory stores at least one program that is executed by the processor to implement the speech recognition method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that, The storage medium stores at least one program segment, which is executed by a processor to implement the speech recognition method as described in any one of claims 1 to 11.

15. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to implement the speech recognition method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Embedded system for construction of small footprint speech recognition with user-definable constraints

    CN104620314A

  • Instruction execution method and device, storage medium and electronic equipment

    CN111369992A