Voice control method and electronic device

By obtaining the voice user interface description language configuration file and adaptively generating voice interaction instances, the problem of difficulty in developing voice control of electronic devices and complexity of user operations in the existing technology is solved, and a more efficient voice interaction experience is achieved.

WO2024179203A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/072387
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2024-01-15
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When implementing voice control on existing electronic devices, developers need to separately configure the logo of the interface display content, which increases the difficulty of development, and users need to identify multiple logos, making voice control more difficult.

Method used

By obtaining the voice user interface description language configuration file of the application, voice interaction instances are adaptively generated to realize voice control of electronic devices, reduce development difficulty and improve user experience.

Benefits of technology

It simplifies the development process of the voice interaction function of the application, improves the user's convenience and experience of operating electronic devices, and reduces the difficulty for users to memorize hot words.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024072387_06092024_PF_FP
    Figure CN2024072387_06092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, and provides a voice control method and an electronic device. The electronic device of the present application can adaptively match a voice interaction instance corresponding to an interface, so that voice control of the electronic device is achieved on the basis of the voice interaction instance, thereby reducing the difficulty in development and improving users' use experience. The method comprises: after starting a first application in response to an operation of a user, an electronic device can acquire a voice user interface description language configuration file corresponding to the first application; then the electronic device can generate at least one voice interaction instance on the basis of display information of an interface of the first application and the voice user interface description language configuration file; and then, after receiving a voice of the user, the electronic device can determine from among the at least one voice interaction instance a target voice interaction instance associated with the voice of the user, and execute a first behavior corresponding to the voice of the user indicated by the target voice interaction instance.
Need to check novelty before this filing date? Find Prior Art

Description

Voice control method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 2, 2023, with application number 202310256205.5 and application name “Voice Control Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of terminal technology, and in particular to a voice control method and electronic device. Background Art

[0003] With the development of terminal technology, electronic devices (such as mobile phones and tablets) can support voice user interface (VUI), which makes it easier for users to control electronic devices through voice when manual operation is inconvenient.

[0004] Generally, electronic devices mark the content displayed on the interface through labels or other means during the interface display process. After the electronic device detects the user's voice command to a certain label through the voice assistant, it can trigger a click on the display content marked by the label, thereby realizing voice control.

[0005] However, in this approach, developers must individually configure the corresponding identifiers for each interface during the application development phase to facilitate subsequent user voice control, which increases development complexity. Furthermore, electronic devices display multiple identifiers on their interfaces, requiring users to identify the identifiers, making voice control more challenging.

[0006] Summary of the Invention

[0007] To address the aforementioned technical issues, this application provides a voice control method and electronic device. The technical solution provided by this application enables electronic devices to adaptively match voice interaction instances corresponding to their interfaces, enabling voice control of the electronic device based on these voice interaction instances, thereby reducing development difficulty and improving user experience.

[0008] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0009] In a first aspect, a voice control method is provided for use in an electronic device. The method includes: in response to a first operation by a user, launching a first application; obtaining a first voice user interface description language configuration file corresponding to the first application; generating at least one first voice interaction instance based on display information of a first interface of the first application and the first voice user interface description language configuration file; receiving a first voice of the user, determining a first target voice interaction instance associated with the first voice in at least one first voice interaction instance, and executing a first action corresponding to the first voice indicated by the first target voice interaction instance.

[0010] In this way, the electronic device can adaptively generate a voice interaction instance based on the acquired application's corresponding voice user interface description language configuration file and interface display information, thereby enabling subsequent voice control of the application. Furthermore, the acquired voice user interface description language configuration file, based on a predefined voice user interface description language, can effectively simplify the coding difficulty for developers when developing application voice interaction functions.

[0011] According to the first aspect, executing the first behavior corresponding to the first voice indicated by the first target voice interaction instance includes: executing the first behavior by calling an application program interface; or executing the first behavior on the interface element corresponding to the first voice on the first interface.

[0012] According to the first aspect, or any implementation of the first aspect above, the application program interface includes an interface of the first application program or an interface of the second application program.

[0013] For example, the electronic device determines that the first behavior indicated by the first target voice interaction instance is to call back an application. Based on the callback method indicated by the target node in the first target voice interaction instance, the electronic device can call back the interface of the first application, and the first application can execute the corresponding behavior; or the electronic device can call back the interface of the second application, and the second application can execute the corresponding behavior; or the electronic device can call back the interface of the first application, and the first application can call the interface of the second application, and then the second application can execute the corresponding behavior.

[0014] In this way, the electronic device can call the application program interface to enable the application program to adaptively execute the first behavior corresponding to the first voice, thereby achieving more flexible voice interaction.

[0015] According to the first aspect, or any implementation of the first aspect above, the first action performed on the interface element corresponding to the first voice on the first interface includes performing one or more of the following operations on the interface element: clicking, tapping, sliding, and enlarging.

[0016] In this way, through the voice interaction instance, the electronic device can flexibly determine the first behavior for the interface element for voice instruction, thereby achieving control over the application.

[0017] According to the first aspect, or any implementation of the first aspect above, the first voice is a wake-up word or matches a hot word.

[0018] In some examples, the hot word is a hot word in the hot word set indicated by the first target voice interaction instance, and / or the hot word is a hot word determined according to the business scenario corresponding to the first interface.

[0019] For example, the electronic device receives the user's first voice, determines that the first voice is a wake-up word, and can wake up the voice assistant for subsequent voice interaction.

[0020] For another example, an electronic device receives a first voice of a user, determines that the first voice matches a hot word, and can determine a first target voice interaction example corresponding to the matched hot word. The matching of hot words includes exact matching and fuzzy matching. Exact matching is used to indicate that the first voice is a hot word. For example, if the hot word is amplification, and the first voice detected by the electronic device is amplification, it can be determined that the first voice matches the hot word. Fuzzy matching is used to indicate that the prefix and suffix added to the hot word based on the business scenario are the same as the first voice. For example, if the hot word is button, and the business scenario is a switch scenario, and the electronic device detects that the first voice is a start button, it can be determined that the first voice matches the hot word.

[0021] In this way, based on different business scenarios, electronic devices can expand or fuzzy the hot words corresponding to interface elements, thereby reducing the difficulty of users remembering hot words and improving the user experience.

[0022] In addition, the voice interaction instances defined by the Voice User Interface Description Language configuration file are not limited to the current conversational voice interaction paradigm, and can realize multiple voice interaction methods in various business scenarios, thereby improving the user experience.

[0023] According to the first aspect, or any implementation of the first aspect above, at least one first voice interaction instance corresponds to an interface element on the first interface, or at least one first voice interaction instance corresponds to the first interface.

[0024] Exemplarily, the electronic device can generate voice interaction instances based on different granularities. For example, the electronic device determines the interface elements on the application interface that can generate voice interaction instances, and generates voice interaction instances corresponding to each of the determined interface elements. For another example, the electronic device generates a voice interaction instance corresponding to the application interface, and the voice interaction instance can be used to define voice interaction rules corresponding to different interface elements on the current application interface. For another example, the electronic device generates semantic interaction instances corresponding to the interface elements and voice interaction instances corresponding to the application interface, that is, the voice interaction instances are used to define the voice interaction rules for the interface elements and the voice interaction rules for the application interface where the interface elements are located.

[0025] In this way, based on the different interface display information obtained, the electronic device can flexibly generate voice interaction instances corresponding to the interface or interface elements, and can generate corresponding voice interaction instances based on different granularities, thereby increasing the flexibility of voice interaction instance generation.

[0026] According to the first aspect, or any implementation of the first aspect above, the first voice user interface description language configuration file corresponds to the first interface, and the method further includes: in response to the user's second operation, determining to start the second interface of the first application. Obtaining the display information of the second interface and the second voice user interface description language configuration file corresponding to the second interface. Generate at least one second voice interaction instance based on the display information of the second interface and the second voice user interface description language configuration file. Receive the user's second voice, determine a second target voice interaction instance associated with the second voice in at least one second voice interaction instance, and execute a second behavior corresponding to the second voice indicated by the second target voice interaction instance.

[0027] According to the first aspect, or any implementation of the first aspect above, the method further includes: determining display information of a third interface of the first application in response to a third user operation; generating at least one third voice interaction instance based on the display information of the third interface and the first voice user interface description language configuration file; receiving a third voice from the user, determining a third target voice interaction instance associated with the third voice in the at least one third voice interaction instance, and executing a third action corresponding to the third voice indicated by the third target voice interaction instance.

[0028] In some examples, different interfaces within an application correspond to different VIDL configuration files. For example, a single application installation package may contain multiple VIDL configuration files corresponding to different interfaces. In other examples, different interfaces within the same application correspond to the same VIDL configuration file, such as a single VIDL configuration file contained within a single application installation package. In some examples, different applications correspond to different VIDL configuration files.

[0029] In this way, the voice user interface description language configuration file is flexibly packaged to meet the needs of applications to generate voice interaction instances based on the voice user interface description language configuration file.

[0030] According to the first aspect, or any implementation of the first aspect above, the method further includes: destroying at least one first voice interaction instance.

[0031] In some examples, after switching applications, switching application interfaces, or changing interface elements, the electronic device may destroy at least one already generated first voice interaction instance. This allows the electronic device to determine a new voice interaction instance based on the new display information, preventing the previous voice interaction instance from affecting the execution of the newly generated voice interaction instance.

[0032] According to the first aspect, or any implementation of the first aspect above, obtaining a first voice user interface description language configuration file corresponding to a first application includes: obtaining an installation package of the first application and obtaining the first voice user interface description language configuration file preconfigured in the installation package.

[0033] In this way, based on the packaged voice user interface description language configuration file, the electronic device can adaptively generate the voice interaction instance corresponding to the application, realize the subsequent voice interaction control of the electronic device, and meet the user's flexible use needs for the application.

[0034] According to the first aspect, or any implementation method of the first aspect above, the display information of the first interface includes one or more of the display data corresponding to the first application interface, the first identifier of the first application, the second identifier of the first application interface, and the third identifier of the interface element displayed on the first interface.

[0035] In a second aspect, an electronic device is provided. The electronic device includes: a processor and a memory, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes: in response to the user's first operation, start the first application. Obtain a first voice user interface description language configuration file corresponding to the first application. Generate at least one first voice interaction instance based on the display information of the first interface of the first application and the first voice user interface description language configuration file. Receive the user's first voice, determine a first target voice interaction instance associated with the first voice in at least one first voice interaction instance, and execute a first behavior corresponding to the first voice indicated by the first target voice interaction instance.

[0036] According to the second aspect, executing the first behavior corresponding to the first voice indicated by the first target voice interaction instance includes: executing the first behavior by calling an application program interface; or executing the first behavior on the interface element corresponding to the first voice on the first interface.

[0037] According to the second aspect, or any implementation of the second aspect, the application program interface includes an interface of the first application program or an interface of the second application program.

[0038] According to the second aspect, or any implementation of the above second aspect, the first behavior performed on the interface element corresponding to the first voice on the first interface includes performing one or more of the following operations on the interface element: clicking, tapping, sliding, and enlarging.

[0039] According to the second aspect, or any implementation of the second aspect above, the first voice is a wake-up word or matches a hot word.

[0040] According to the second aspect, or any implementation of the above second aspect, the hot word is a hot word in the hot word set indicated by the first target voice interaction instance, and / or the hot word is a hot word determined according to the business scenario corresponding to the first interface.

[0041] According to the second aspect, or any implementation of the above second aspect, at least one first voice interaction instance corresponds to an interface element on the first interface, or at least one first voice interaction instance corresponds to the first interface.

[0042] According to the second aspect, or any implementation of the second aspect above, the first voice user interface description language configuration file corresponds to the first interface, and when the processor reads the computer instructions from the memory, it also causes the electronic device to execute: in response to the user's second operation, determine to start the second interface of the first application. Obtain the display information of the second interface, and the second voice user interface description language configuration file corresponding to the second interface. Generate at least one second voice interaction instance based on the display information of the second interface and the second voice user interface description language configuration file. Receive the user's second voice, determine a second target voice interaction instance associated with the second voice in at least one second voice interaction instance, and execute a second behavior corresponding to the second voice indicated by the second target voice interaction instance.

[0043] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from the memory, the electronic device further causes the electronic device to: determine display information of a third interface of the first application in response to a third user operation; generate at least one third voice interaction instance based on the display information of the third interface and the first voice user interface description language configuration file; receive a third voice from the user, determine a third target voice interaction instance associated with the third voice in the at least one third voice interaction instance, and execute a third action corresponding to the third voice indicated by the third target voice interaction instance.

[0044] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, it also causes the electronic device to execute: destroying at least one first voice interaction instance.

[0045] According to the second aspect, or any implementation of the second aspect above, obtaining a first voice user interface description language configuration file corresponding to a first application includes: obtaining an installation package of the first application and obtaining the first voice user interface description language configuration file preconfigured in the installation package.

[0046] According to the second aspect, or any implementation method of the above second aspect, the display information of the first interface includes one or more of the display data corresponding to the first application interface, the first identifier of the first application, the second identifier of the first application interface, and the third identifier of the interface element displayed on the first interface.

[0047] The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0048] In a third aspect, the present application provides an electronic device having the function of implementing the voice control method described in the first aspect and any possible implementation thereof. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0049] The technical effects corresponding to the third aspect and any implementation method of the third aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0050] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.

[0051] The technical effects corresponding to the fourth aspect and any implementation method of the fourth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0052] In a fifth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.

[0053] The technical effects corresponding to the fifth aspect and any implementation method of the fifth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0054] In a sixth aspect, the present application provides a circuit system, the circuit system including a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one embodiment of the first aspect.

[0055] The technical effects corresponding to the sixth aspect and any implementation method of the sixth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0056] In the seventh aspect, the present application provides a chip system comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect.

[0057] The technical effects corresponding to the seventh aspect and any implementation method of the seventh aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] FIG1 is a schematic diagram of an interface provided in an embodiment of the present application;

[0059] FIG2 is a second schematic diagram of an interface provided in an embodiment of the present application;

[0060] FIG3 is a schematic diagram of electronic equipment types provided in an embodiment of the present application;

[0061] FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0062] FIG5 is a block diagram of the software structure of the electronic device provided in an embodiment of the present application;

[0063] FIG6 is a schematic diagram of an example of a voice user interface description language provided in an embodiment of the present application;

[0064] FIG7 is a schematic diagram of module interaction provided in an embodiment of the present application;

[0065] FIG8 is a third schematic diagram of an interface provided in an embodiment of the present application;

[0066] FIG9 is a fourth schematic diagram of an interface provided in an embodiment of the present application;

[0067] FIG10 is a fifth schematic diagram of an interface provided in an embodiment of the present application;

[0068] FIG11 is a sixth schematic diagram of an interface provided in an embodiment of the present application;

[0069] FIG12 is a flow chart of a voice interaction method according to an embodiment of the present application;

[0070] FIG13 is a seventh schematic diagram of an interface provided in an embodiment of the present application;

[0071] FIG14 is a schematic diagram eight of an interface provided in an embodiment of the present application;

[0072] FIG15 is a ninth schematic diagram of an interface provided in an embodiment of the present application;

[0073] FIG16 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0075] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0076] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0077] In some embodiments, some electronic devices (such as mobile phones and tablets) may support a voice user interface (VUI), which allows users to control the electronic devices through voice when it is inconvenient for users to manually operate the electronic devices.

[0078] For example, as shown in Figure 1 (a), while displaying interface 101, the electronic device detects a preset voice command issued by the user, awakens the voice assistant, and determines that the user has instructed to control the electronic device via voice. Then, as shown in Figure 1 (b), the electronic device identifies the content displayed on interface 101, marks the displayed content with an identifier, and then displays interface 102, which is a VUI. For example, the electronic device identifies icons displayed on the desktop and marks each identified icon with a serial number. Subsequently, after detecting a user's voice command for a particular identifier, the electronic device may trigger the operation of the control corresponding to that identifier. For example, while displaying interface 102, the electronic device detects the user's voice command "Open identifier ⑧." In response to this voice command, the electronic device may determine that the user has instructed to click on the settings icon, and may then launch the settings application corresponding to the settings icon. Subsequently, as shown in Figure 1 (c) in interface 103, while displaying the settings application interface, the electronic device still marks the corresponding control with an identifier to facilitate user voice control.

[0079] As another example, when the electronic device cannot recognize the display content, it can mark the unrecognizable area through a grid, and in response to the user's voice command for the mark, the electronic device can control the display content in the grid area corresponding to the mark. For example, as shown in interface 201 in Figure 2 (a), when the electronic device is displaying a map application, it responds to the user's preset voice command, starts the voice assistant, and determines that it cannot recognize the current interface display content (such as it cannot recognize the controls displayed on the current interface), and can divide the interface display content into grids and mark the divided areas. Afterwards, if the electronic device detects the user's voice command "zoom in area ②", it can determine the display content corresponding to area ②, and zoom in on the display content, displaying interface 202 as shown in Figure 2 (b).

[0080] As can be seen in the above examples, while the electronic devices can meet the user's voice control needs, they still need to be equipped with text recognition capabilities to identify the displayed content on the current interface. Furthermore, during application development, developers need to individually configure the corresponding identifiers for the displayed content (such as controls) on each interface to facilitate the subsequent display of identifiers during user voice control, which is quite difficult to develop.

[0081] In addition, after the interface displays the logo, the interface display will become more cluttered, and the user needs to identify the logo corresponding to the display content to be controlled among multiple logos. The operation is difficult and affects the user experience.

[0082] Therefore, the present application provides a voice control method, in which the electronic device can adaptively match the voice interaction instance corresponding to the interface, and realize voice control of the electronic device based on the voice interaction instance, thereby reducing development difficulty and improving user experience.

[0083] The voice control method provided in the embodiment of the present application can be applied to an electronic device 100. For example, as shown in FIG3 , the electronic device 100 can be a mobile phone 31, a tablet computer 32, a smart screen 33, a laptop computer 34, a wearable device (such as a smart watch 35), a vehicle-mounted device 36, a smart speaker, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an artificial intelligence (AI) device, and other terminal devices. The operating system installed on the electronic device 100 includes but is not limited to This application does not limit the specific type of the electronic device 100 or the installed operating system.

[0084] For example, FIG4 shows a schematic structural diagram of the electronic device 100 .

[0085] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0086] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0087] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0088] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0089] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0090] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0091] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0092] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0093] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.

[0094] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

[0095] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0096] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0097] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0098] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0099] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0100] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0101] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than one.

[0102] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0103] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0104] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0105] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0106] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0107] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0108] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0109] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0110] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0111] In some embodiments, the electronic device 100 receives a user voice through the microphone 170C and determines through the processor 110 that the detected user voice matches a pre-configured hot word. Then, the electronic device 100 may determine a preset operation corresponding to the hot word and execute the preset operation.

[0112] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0113] A touch sensor, also known as a "touch-sensitive device," can be provided on the display screen 194. The touch sensor and the display screen 194 form a touch screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0114] In some embodiments, the electronic device 100 detects a user's touch operation on the display screen 194 through a touch sensor and determines that the touch operation is a pre-configured action. Then, the electronic device 100 can determine the preset operation corresponding to the action and execute the preset operation.

[0115] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0116] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback.

[0117] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0118] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing the SIM card into or from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.

[0119] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0120] FIG5 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0121] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0122] The application layer can include a series of application packages.

[0123] As shown in FIG5 , the application package may include applications such as calendar, contacts, memo, camera, music, gallery, map, call, video, etc.

[0124] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0125] As shown in FIG5 , the application framework layer may include a sound engine, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0126] As a voice interaction engine, the sound engine receives voice interaction rules from applications in the application layer and obtains the current application's display interface data generated by the system library. Based on the voice interaction rules and display data, the sound engine generates a voice interaction instance corresponding to the current display interface. The sound engine then instructs the audio driver in the kernel layer to monitor for voice and determine whether to trigger the voice interaction instance.

[0127] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0128] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0129] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0130] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0131] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0132] The Notification Manager enables applications to display notifications in the status bar. These messages can be displayed briefly and then automatically disappear without user interaction. The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0133] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0134] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0135] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0136] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0137] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0138] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0139] A 2D graphics engine is a drawing engine for 2D drawings.

[0140] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0141] In some embodiments, electronic devices support a voice user interface (VUI), allowing users to interact with the electronic device through natural language to control the electronic device, query information, etc. For example, users can use voice control to open applications, query destination addresses, and start navigation.

[0142] In some examples, the electronic device may or may not be configured with a voice assistant. wait.

[0143] In some examples, to implement voice interaction functionality in electronic devices, developers write voice interaction rules for the application interface based on the Voice User Interface Description Language (VUIDL) during the application development phase and generate a VUIDL configuration file. The VUIDL configuration file is then used by the electronic device to generate voice interaction instances corresponding to different application interfaces during the application's execution.

[0144] Optionally, an application interface may correspond to one or more voice interaction instances. For example, an application interface corresponds to a voice interaction instance, and the voice interaction instance is used to define the voice interaction rules corresponding to one or more interface elements included in the current interface. For another example, an application interface corresponds to one or more voice interaction instances, where different voice interaction instances are used to define the voice interaction rules corresponding to different interface elements included in the current interface. The interface elements include display data on the application interface, such as controls, containers, etc. included in the application interface.

[0145] Among them, VUIDL is an interface description language that describes voice interaction based on a graphical user interface (GUI) framework.

[0146] Optionally, developers can package the VUIDL configuration file into the application installation package and distribute it along with the application. This allows subsequent electronic devices to access the VUIDL configuration file after downloading the application. During the interface display process, the electronic device automatically generates a voice interaction instance corresponding to the application interface by identifying the application interface display data based on the VUIDL configuration file, thereby enabling voice interaction.

[0147] In other examples, electronic devices support user-definable VUIDL. Thus, after the application is installed, the electronic device generates a user-defined voice interaction instance based on the VUIDL in response to user operations. It should be understood that when the electronic device supports user-defined voice interaction instances, the application installation package may pre-package a VUIDL configuration file and provide a corresponding user-editable interface. Alternatively, the application installation package may not include an initial VUIDL configuration file, but may directly allow users to define and edit it to generate the corresponding voice interaction instance.

[0148] For example, when an electronic device is running an application, in response to a user's operation on an interface element on the application interface, a prompt message may be displayed to prompt the user to trigger and edit the voice interaction instance corresponding to the interface element. For example, the user can customize the trigger conditions, hot words, and post-trigger behaviors corresponding to the interface element. The details of the user-defined generation of the voice interaction instance can be found in the relevant content described in step S1202 below and will not be repeated here.

[0149] In addition, the VUIDL configuration file can be a configuration file specifically used to match a certain application, or a configuration file that can universally match multiple applications.

[0150] It can be seen that compared to the current application development stage, which configures corresponding identifiers and voice interaction rules for the interface elements corresponding to each identifier for the display data included in each interface of the application, the voice control method provided in the embodiment of the application reduces the difficulty of developing the voice interaction function of the application by pre-defining VUIDL.

[0151] The voice user interface description language is introduced as follows.

[0152] Optionally, Figure 6 is an example of a voice user interface description language provided in an embodiment of the present application. The specific meaning of each node in the example is shown in Table 1 below. The meta voice interaction (meta voice interact, MVI) description configuration set included in the root node (MetaVUIDLSet) is the minimum voice interaction description definition. For example, in the example, each Object node includes a meta voice description configuration set, and the meta voice description configuration set includes the target (target), processing type (type), scene (scene), trigger condition (condition), hot word set (hotwordSet), and action (action) corresponding to the speech recognition process.

[0153] Table 1

[0154] For example, as shown in Table 1 above, a hotword node (hotwordSet) is used to indicate a hotword set for speech recognition. Hotwords are used to represent natural language that triggers electronic device actions and can be customized by developers based on the speech interaction requirements of the application.

[0155] For example, as shown in Figure 6, the hot word node (hotwordSet) indicates the hot word "details". Then, when the electronic device receives the user's voice command and determines that the voice command includes "details", it can trigger the display of the details page corresponding to the interface element.

[0156] For another example, as shown in Figure 6, the hotword node (hotwordSet) indicates the hotword "amplify." Subsequently, when the electronic device receives a user's voice command and determines that the voice command includes "amplify," it can trigger the amplification of the corresponding interface element. For example, as shown in Table 1 above, the target node can be used to indicate the target of post-speech recognition processing, such as the target of the action indicated by the meta-voice description configuration. Table 2 below illustrates two implementations of target. For example, in response to a received user voice command, the electronic device can determine that the target of the voice command is an interface element displayed on the interface. Based on the identifier of the interface element indicated by the target node, the electronic device can apply the action to the corresponding interface element. Alternatively, if the voice command indicates a callback to a corresponding application, the electronic device can call the voice command back to the application, allowing the application to determine the action to be executed. If the target indicated by the target node is a function, the electronic device can call the currently displayed application, call other applications, or call other applications through the currently displayed application based on the callback method of the application indicated by the function.

[0157] It should be understood that the target node content shown in Table 2 below is extensible and can be expanded by developers based on actual needs. For example, an electronic device may support cross-device voice interaction. If the developer determines that a module in an application running on another device can be operated through the electronic device, the target node can be used to indicate the ID of the other device, the ID of the application running on the device, and the ID of the module to be operated in the application.

[0158] Table 2

[0159] Exemplarily, as shown in Table 1 above, the type node is used to indicate the type of post-processing of speech recognition, which corresponds to the target indicated by the target node. As shown in Table 3 below, two implementation methods of type are exemplified. For example, in response to a received user voice command, the electronic device may determine that the processing type of the voice command is to interact with an interface element (View), and the electronic device may act on the corresponding interface element according to the identifier of the interface element indicated by R.id.xxx in the target node as shown in Table 2 above; or, the processing type of the voice command is to interact with the interface logic, and the electronic device may call back the voice command to the corresponding application according to the callback method of the application indicated by function in the target node as shown in Table 2 above, and the corresponding logical interaction is triggered by the application.

[0160] It should be understood that the type node content shown in Table 3 below is extensible content, and developers can expand the type node content according to actual needs.

[0161] Table 3

[0162] For example, as shown in Table 1 above, the scene node is used to indicate the scene of voice interaction. In a specific scene, hot word recognition can be performed more accurately, facilitating the expansion and fuzzification of hot words. Optionally, the expansion and fuzzification of hot words include, for example, adding prefixes and suffixes to the hot words. In different scenes, the prefixes or suffixes that can be matched to the hot words are different. As shown in Table 4 below, four implementation methods of scene are illustrated, in which the hot words corresponding to different scenes may be different.

[0163] For example, the actuator scene is used to represent scenarios where some electronic devices need to perform hot word conversion to facilitate program execution. For example, the user needs to adjust the color of the light, and the voice command is "adjust the light to red", where the program cannot directly recognize "red". The electronic device needs to convert the color and convert it into RGB values ​​that the program can recognize so that the program can perform corresponding actions on the target. Then, after setting the scene node to the actuator scene, the electronic device can determine that further voice analysis is required after receiving the voice command to convert the voice command into content that the program can recognize.

[0164] For example, the original text recognition scenario indicates that the user's voice command must include a corresponding hotword. For example, if the hotword is "zoom," the electronic device can detect voice commands such as "zoom in" or "zoom this in" and, based on the original text recognition scenario, determine that the hotword "zoom" is recognized. The electronic device can then perform the corresponding action on the target.

[0165] For another example, a page scene is used to represent a scene that triggers the display of another page. For example, after detecting a voice command such as "open" or "start", the electronic device can open or start the page corresponding to the corresponding target (such as the interface element corresponding to the interface element identifier).

[0166] For example, a switch scenario is used to represent the on / off state of something. For example, the hotword is "button." In the switch scenario, the electronic device can expand and fuzzify the hotword, such as "open button," "click button," "start button," "close button," and so on. Subsequently, when the electronic device detects these fuzzy-matched hotwords in the switch scenario, it can determine whether to execute the corresponding target on or off.

[0167] It should be understood that the scene node content shown in Table 4 below is extensible content, and developers can expand the scene node content according to actual needs.

[0168] Table 4

[0169] Exemplarily, as shown in Table 1 above, the trigger condition node is used to indicate the trigger condition of the voice recognition process. As shown in Table 5 below, three implementation methods of the condition are illustrated. When the electronic device determines that the corresponding trigger condition is met, it can determine to trigger the start of the voice recognition process. Among them, as shown in Table 5 below, the content of the condition node includes @{trigger}:{state or behavior}. For example, the trigger condition @voice:wake is used to indicate the wake-up of the voice, such as triggering the start of the voice recognition process after the voice assistant is woken up.

[0170] In some examples, if the electronic device detects that the user's voice command matches the hot word indicated by the hot word node, it can also directly trigger the voice recognition process. In other words, even if the electronic device is not configured or has not activated the voice assistant, voice control can still be achieved.

[0171] In some examples, as shown in Table 5 below, the trigger condition may also include a user's operation on an interface element on the application interface, which may also trigger the execution of a corresponding behavior. That is, the user may trigger the electronic device to execute a behavior corresponding to the current application interface through voice or interface operation.

[0172] It should be understood that the trigger condition (condition) node content shown in Table 5 below is extensible content, and developers can expand the trigger condition (condition) node content according to actual needs.

[0173] Table 5

[0174] For example, as shown in Table 1 above, the action node is used to indicate the behavior after speech recognition, and the behavior can act on the target indicated by the target node. As shown in Table 6 below, five implementation methods of action are illustrated. For example, the behavior indicated by the action node is to click on the interface element corresponding to the interface element id indicated by the target node. For another example, the behavior indicated by the action node is a callback application method. The electronic device can determine the specific application callback method based on the callback method of the application indicated by the target node. For example, the callback method is used to indicate the callback of the currently displayed application, the callback of other applications, the callback of other applications through the currently displayed application, etc.

[0175] It should be understood that the action node content shown in Table 6 below is extensible content, and developers can expand the action node content according to actual needs.

[0176] Table 6

[0177] In some embodiments, after obtaining the Voice User Interface Description Language (VUIDL), developers can configure voice interaction rules corresponding to different interfaces based on the interface display data of the application to generate a VUIDL configuration file.

[0178] Optionally, during the application development process, the developer can write the voice interaction rules of the application interface according to the display data of interface 1, interface 2, ..., interface n of application A and the above-mentioned voice user interface description instance sample to generate a VUIDL configuration file.

[0179] For example, as described in Table 1 above, the meta-speech description configuration set includes the target (target), processing type (type), scene (scene), trigger condition (condition), hot word set (hotwordSet), and action (action) corresponding to the speech recognition process.

[0180] Taking voice wake-up as an example of a trigger condition, developers can create a meta-interaction based on the obtained VUIDL, and the generated VUIDL configuration file can include the meta-interaction. Among them, a metadata (metaId) can be defined in a meta-interaction, as well as the target (target) and behavior (action) indicated by the metaId. The metaId is used to indicate the unique identifier corresponding to the hot word. For example, as shown in Figure 7, in the subsequent sound recognition process, the sound service 73 is used to recognize the user's voice. After determining that the user's voice includes a hot word, the sound service 73 can send the identifier corresponding to the hot word to the sound engine 72. Based on the identifier, the sound engine 72 can determine the hot word recognized by the sound service 73, and then determine the corresponding meta-interaction. Based on the meta-interaction, the sound engine 72 can determine the target (target) and behavior (action) corresponding to the identifier.

[0181] Among them, based on the interface elements included in the display data of the interface for which the VUIDL configuration file is to be generated, the developer determines the interface element ID (such as R.id.xxx) indicated by the target corresponding to a certain metaId or the callback method (function) corresponding to the interface element, as well as the type parameters (type params) of the action corresponding to the metaId. The type parameters may include operations such as clicking, sliding, and zooming corresponding to the interface element ID, or the callback application method corresponding to the function. That is, based on VUIDL, a mapping relationship between the target (target) indicated by VUIDL and the action (action) is established through meta-interaction.

[0182] In this way, by generating a VUIDL configuration file through the pre-defined voice user interface description language, the coding difficulty for developers in the process of developing the voice interaction function of the application can be effectively simplified.

[0183] In addition, developers can generate a VUIDL configuration file based on the Voice User Interface Description Language and the actual needs of the application, so that the voice interaction defined by the VUIDL configuration file is not limited to the current conversational voice interaction paradigm, and thus realize multiple voice interaction methods in various scenarios, thereby improving the user experience.

[0184] In some embodiments, after downloading the application installation package, the electronic device decompresses the application installation package to obtain the VUIDL configuration file packaged therein.

[0185] In some examples, after an application is upgraded, the developer can determine whether the VUIDL configuration file for the upgraded application needs to be updated. If so, the developer can package the updated VUIDL configuration file into the corresponding application installation package. Subsequently, during the application upgrade process, the electronic device can download the new application installation package and obtain the updated VUIDL configuration file packaged therein.

[0186] In some embodiments, in response to a user operation, an electronic device launches an application and displays the application interface, which may trigger the launch of a voice engine. After the voice engine is launched, it may obtain a VUIDL configuration file corresponding to the application currently launched by the electronic device. The voice engine may then determine the voice interaction instance corresponding to the currently displayed application interface based on the VUIDL configuration file. As one possible example, the voice interaction instance includes the relevant content shown in Table 1 above, which is used to trigger the voice interaction process corresponding to the currently displayed application interface.

[0187] The user's operation of launching an application includes, for example, an operation on an application icon, an operation on an application jump link, an operation on switching display of an application, and the like.

[0188] Application types include, but are not limited to, system applications, desktop applications, driver applications, network applications, functional applications, and IoT applications. Functional applications may include video applications, gaming applications, and instant messaging applications. IoT applications may include video surveillance applications and lighting control applications.

[0189] Among them, the application interface displayed by the application can be any interface that may appear during the operation of the application. The embodiment of the present application does not limit the interface type of the application interface. For example, the interface type of the application interface can be an aggregate display interface for function aggregation entrance (such as the homepage of the application). The interface type of the application interface can also be a functional interface for completing a certain function (such as a video monitoring interface, a device control interface, a display property setting interface, etc.). The interface type of the application interface can also be a content interface for displaying detailed information (such as a video playback interface, a product details interface, etc.).

[0190] It should be understood that the various modules provided in the embodiments of the present application can be integrated into a processing module, or each module can exist separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. For example, the sound engine can be integrated in an application, or it can be implemented separately in an electronic device in the form of a software functional module. For another example, the functional modules in the sound engine can be integrated into a processing module, or partially integrated into the application and partially integrated into a separate processing module. In addition, the sound engine can also be described as other names, such as a sound processing module, a voice interaction instance processing module, a voice engine, etc., which are not limited in the embodiments of the present application.

[0191] In some examples, after the sound engine determines the voice interaction instance, it determines that the trigger condition is voice wake-up and determines the corresponding hot word. Then, the sound engine can send the determined hot word to the sound service. The subsequent sound service can detect the user's voice through the audio module 170 shown in Figure 4 and determine whether the user's voice matches the hot word. In the case that the user's voice matches the hot word, the sound service can feedback the hot word to the sound engine, so that the sound engine can determine the corresponding action based on the determined voice interaction instance.

[0192] Optionally, the hotword matching process includes exact matching and fuzzy matching. Exact matching indicates that a voice command is a hotword. For example, if the hotword is "amplify," and the voice service detects the voice command as "amplify," the voice command is considered a match for the hotword. Fuzzy matching indicates that the hotword, after adding prefixes and suffixes corresponding to different business scenarios, is identical to the voice command. For example, if the hotword is "button," and the voice service detects the voice command as "start button," the voice command is considered a match for the hotword.

[0193] For example, as shown in FIG7 , in response to a user operation, application 71 is started. After display module 711 determines the application interface to be displayed, it can send startup information to sound engine 72 to instruct sound engine 72 to start. After sound engine 72 starts, it sends a VUIDL configuration file acquisition request to application 71.

[0194] Accordingly, after receiving the VUIDL configuration file acquisition request, the application 71 may determine the VUIDL configuration file included in the installation package of the application 71 through the processing module 712. Thereafter, the application 71 may send the VUIDL configuration file to the sound engine 72.

[0195] Optionally, the sound engine 72 is configured with an interface for transmitting a VUIDL configuration file, such as a VUIDL interface, and the sound engine 72 receives the VUIDL configuration file sent by the application 71 through the VUIDL interface.

[0196] For example, the sound engine 72 obtains the VUIDL configuration file shown in FIG. 6 .

[0197] Optionally, the application 71 may also determine the application interface to be displayed by the current display module 711, and send the display information corresponding to the application interface to the sound engine 72. For example, the system library shown in Figure 5 may determine the display data corresponding to the application interface to be displayed by the application 71, and the display data may include, for example, a control tree (view tree) corresponding to the application interface. In addition, the application 71 may determine the application identifier of the application 71 (such as the application ID), the interface ID of the interface to be displayed, the interface element ID of the interface elements included in the interface to be displayed, and other information. Afterwards, before displaying the application interface through the display driver, the application 71 may send the display information to the sound engine 72, and the display information may include information such as the display data corresponding to the application interface, the application ID, the interface ID, and the interface element ID. Accordingly, the sound engine 72 may receive the display information sent by the application 71, for example, the sound engine 72 receives the display information sent by the application 71 through the VUIDL interface.

[0198] Optionally, the interface to be displayed can be the interface to be displayed after the application is started. Alternatively, the electronic device can also start the application in the background. After the application is started in the background, the interface to be run is determined, and the display information of the interface can be determined. The following describes the generation process of the voice interaction instance by taking the obtained display information as the display information of the interface to be displayed as an example. For example, as shown in Figure 8, the interface to be displayed by application 71 is interface 801.

[0199] Afterwards, after receiving the VUIDL configuration file and display information, the sound engine 72 can configure the voice interaction instance corresponding to the current display information based on the VUIDL configuration file.

[0200] For example, as shown in Figure 7 , the sound engine 72 generates a voice interaction instance through the engine core module 721. For example, corresponding to the VUIDL configuration file shown in Figure 6 and the display information corresponding to the interface 801 shown in Figure 8 , the engine core module 721 generates the voice interaction instance shown below based on the VUIDL configuration file and the display information.

[0201] Among them, as shown in the above-mentioned voice interaction example, the engine core module 721 determines the target node content as R.id.view based on the interface element id corresponding to the interface 801 included in the display information, that is, determines that the target of the post-processing of voice recognition is the interface element corresponding to the interface element id in the interface 801, such as interface element 81.

[0202] The engine core module 721 determines that the type node content is view, that is, determines that the type of speech recognition post-processing is an interface element in the interface 801.

[0203] Based on the VUIDL configuration file, the engine core module 721 determines that the voice interaction scenarios corresponding to the interface 801 may include a page scenario (page) and a text recognition scenario (common). Corresponding to different scenarios, the engine core module 721 can determine different trigger conditions (condition), hot words (hotwordSet), and actions (action) for the voice recognition process and generate corresponding meta-voice description configuration sets.

[0204] For example, based on the VUIDL configuration file and display information, the engine core module 721 determines that in the page scenario, the trigger condition for the voice recognition process is voice assistant wakeup (such as @voice:wake), the hot word is details, and the action is click. The engine core module 721 can then add the determined node content to the corresponding node.

[0205] For another example, the engine core module 721 determines, based on the VUIDL configuration file and display information, that in the original text recognition scenario (common), the triggering condition for the voice recognition process is that the voice assistant wakes up (such as @voice:wake) or the interface element is long pressed (@R.id.view:press), the hot word is zoom in (such as "zoom in", "%s zoom in"), and the behavior is to zoom in on the corresponding interface element (zoomout). Afterwards, the engine core module 721 can add the determined node content to the corresponding node. Among them, the hot word "%s zoom in" is used to indicate that the engine core module 721 can dynamically set hot words, such as setting the hot word to "zoom in", "zoom this in", etc.

[0206] It should be understood that, as in the scenario shown in FIG8 , after receiving the VUIDL configuration file and display information, the sound engine 72 may generate at least one voice interaction instance. For example, the sound engine 72 may generate a voice interaction instance corresponding to interface 801 . Alternatively, the sound engine 72 may generate at least one voice interaction instance corresponding to each interface element on interface 801 , such as the voice interaction instance corresponding to interface element 81 .

[0207] In some examples, as shown in FIG7 , after determining a voice interaction instance, the engine core module 721 may send the trigger conditions identified in the voice interaction instance to the condition generation module 722 and the hot words identified in the voice interaction instance to the meta-voice management module 723. Accordingly, the condition generation module 722 may update the stored trigger conditions and establish a correspondence between hot words, trigger conditions, and behaviors. The meta-voice management module 723 may update the stored hot word set and send the hot words to the voice service 73. The voice service 73 may then add the acquired hot words through the processing module 731 to generate a hot word set. The voice recognition module 732 then sends the recognized user voice to the processing module 731, which then determines whether the user voice is a hot word. If the user voice is a hot word, the voice service 73 may feedback the detected hot word to the voice engine 72. After determining that the received hot word is in the stored hot word set, the meta-voice management module 723 may send the hot word to the condition generation module 722. The condition generation module 722 can determine the trigger conditions satisfied by the hot word and the corresponding behavior based on the received hot word, thereby realizing voice interaction.

[0208] Exemplarily, as shown in FIG8 , the application 71 displays the interface 801 through the display module 711, and the sound engine 72 has generated a corresponding voice interaction instance. The sound service 73 monitors the user's voice through the voice recognition module 732. For example, after determining that the hot word "details" is detected, the information of the hot word "details" can be sent to the sound engine 72. Afterwards, the meta-voice management module 723 in the sound engine 72 determines that the hot word "details" detected by the sound service 73 is a hot word in the preconfigured hot word set, and the hot word can be sent to the condition generation module 722. As described in the above voice interaction example, the condition generation module 722 can determine that the hot word "details" meets the trigger condition in the page scene (page), and can determine that the corresponding behavior is a click. Then, the condition generation module 722 can send a behavior indication to the execution module 724 to instruct the execution module 724 to execute the click on the interface element indicated by the target byte.

[0209] For example, as shown in Figure 8 , in the aforementioned voice interaction example, the interface element ID indicated by the target byte corresponds to interface element 81. Then, in response to detecting the hotword "details," voice engine 72 may trigger a click on interface element 81 in the page scene. The electronic device may then display the details page for the lighting mode corresponding to interface element 81, as shown in Figure 9 .

[0210] As another example, as shown in Figure 8, the application 71 displays the interface 801 through the display module 711, and the sound engine 72 has generated a corresponding voice interaction instance. The sound service 73 monitors the user's voice through the voice recognition module 732. For example, after determining that the hot word "amplify" is detected, the information of the hot word "amplify" can be sent to the sound engine 72. Afterwards, the sound engine 72 determines through the meta-voice management module 723 that the hot word "amplify" detected by the sound service 73 is a hot word in the preconfigured hot word set, and the hot word can be sent to the condition generation module 722. As described in the above voice interaction example, the condition generation module 722 can determine that the hot word "amplify" meets the trigger condition in the original text recognition scenario (common), and can determine that the corresponding behavior is amplification. Then, the condition generation module 722 can send a behavior indication to the execution module 724, which is used to instruct the execution module 724 to execute the interface element indicated by the amplification target (target) byte.

[0211] For example, as shown in FIG8 , in the above voice interaction example, the interface element corresponding to the interface element ID indicated by the target byte is interface element 81. Then, in response to determining that the hot word "zoom in" is detected, the voice engine 72 can trigger the zooming of interface element 81 in the original text recognition scenario (common). Then, the electronic device can display interface 1001 as shown in FIG10 , and as indicated by reference numeral 101, the light mode interface element is magnified and displayed on interface 1001.

[0212] In some embodiments, after the electronic device detects a user's instruction to switch to another application interface of the application, it may determine to destroy the generated voice interaction instance. Thereafter, the electronic device determines the voice interaction instance corresponding to the switched application interface based on the obtained VUIDL configuration file and the display information of the switched application interface.

[0213] Alternatively, after the electronic device detects a user instruction to switch to another application, it may determine to destroy the generated voice interaction instance. Thereafter, the electronic device obtains the VUIDL configuration file corresponding to the application to be displayed and the display information of the application interface to be displayed of the application, and determines the voice interaction instance corresponding to the application interface of the switched application.

[0214] Alternatively, after determining that an interface element on the application interface has changed, the electronic device may destroy the voice interaction instance corresponding to the interface element.

[0215] In some examples, destroying a voice interaction instance includes, for example, the sound engine 72 instructing the engine core module 721 to destroy the generated voice interaction instance, the condition generation module 722 to destroy the saved trigger condition, the meta-voice management module 723 to destroy the saved hot word set, the sound service 73 instructing the processing module 731 to destroy the saved hot word set, etc.

[0216] For example, while displaying interface 801 shown in FIG8 , the electronic device, in response to a user operation, determines to display interface 1101 shown in FIG11(a). Interface 801 and interface 1101 are different interfaces within the same application. As shown in FIG7 , in this case, the sound engine is enabled, and application 71 can send a destroy instruction to sound engine 72. Accordingly, upon receiving the destroy instruction, sound engine 72 can destroy the voice interaction instance corresponding to application 71. Thereafter, sound engine 72 can send a request to application 71 to obtain display information for the application interface to be displayed. Application 71 can then determine the application interface to be displayed in the current display module 711 and send display information corresponding to the application interface to sound engine 72. This display information includes information such as display data corresponding to the application interface, application ID, interface ID, and interface element ID. Accordingly, sound engine 72 can receive the display information sent by application 71, for example, via a VUIDL interface.

[0217] For example, as shown in FIG11( a ), the interface to be displayed by the application 71 is interface 1101 .

[0218] Afterwards, after receiving the display information, the sound engine 72 can configure the voice interaction instance corresponding to the current display information based on the VUIDL configuration file corresponding to the application 71 that has been obtained.

[0219] For example, as shown in FIG7 , the sound engine 72 generates a voice interaction instance as shown below through the engine core module 721 .

[0220] For example, as shown in FIG11 , application 71 displays interface 1101 via display module 711, and voice engine 72 generates a corresponding voice interaction instance. Voice service 73 monitors user voice via voice recognition module 732. For example, upon detecting the hot word "zoom," information about the hot word "zoom" may be sent to voice engine 72. Voice engine 72 then determines, via meta-voice management module 723, that the hot word "zoom" detected by voice service 73 is in a preconfigured hot word set and may send the hot word to condition generation module 722. As described in the voice interaction example above, condition generation module 722 may determine that the hot word "zoom" meets the trigger conditions in the zoom scenario and that the corresponding action is video zoom. Condition generation module 722 may then send an action indication to execution module 724. Accordingly, upon receiving the action indication, execution module 724 determines, based on the voice interaction example above, that the type of post-speech recognition processing indicated by the current type node is logic, indicating that the current voice interaction is interacting with interface logic. Then, the execution module 724 can send a processing instruction to the application 71 through the interface, and carry the information included in the target node and action node in the above voice interaction instance in the processing instruction.

[0221] Accordingly, after receiving the processing instruction, the application 71 responds to the processing instruction through the processing module 712. For example, the processing module 712 determines the execution unit to perform the voice interaction, such as the video unit, based on the information included in the target node carried in the processing instruction. Afterwards, the processing module 712 can send the information included in the action node to the video unit. The video unit can perform corresponding actions based on the information included in the action node, such as zooming in on the video. Among them, the information included in the action node is, for example, information about the interface to be called by the execution unit. For example, if the video unit calls the videoZoomOut interface, the display module 711 can zoom in on the displayed video.

[0222] For example, as shown in interface 1101 in FIG11(a), in the above voice interaction example, the target byte indicates the video content indicated by reference numeral 111. Then, in response to determining that the detected hot word "zoom in" and the type (type) are logic, the sound engine 72 can trigger the zoomed-in playback of the video by calling back a method to the application. Then, the electronic device can display interface 1102 as shown in FIG11(b), which zooms in on the video content.

[0223] As can be seen, in the voice interaction example used in the video zoom scenario above, developers can customize and extend the VUIDL configuration file based on actual needs. For example, the target node content of this voice interaction example exceeds the content shown in Table 2 above.

[0224] This simplifies the generation of VUIDL configuration files through the predefined Voice User Interface Description Language (VUIDL), making it applicable to different types of applications and reducing developer workload. Furthermore, dynamic hotword generation based on different interface display data and scenarios enhances the flexibility of voice interaction and meets the personalized needs of users in a variety of scenarios.

[0225] Furthermore, through the VUIDL configuration file, even text-free interface elements in the app interface can be configured with corresponding voice interaction instances based on the element's ID, enabling voice interaction control. Furthermore, for electronic devices without voice assistants, voice interaction can also be achieved through the sound engine based on the VUIDL configuration file.

[0226] Furthermore, as shown in interface 801 or interface 1101, during the voice interaction process, the electronic device no longer needs to display the identifiers corresponding to the interface elements, thereby avoiding the user from identifying the identifiers and simplifying the user operation.

[0227] In some embodiments, the user can customize whether to enable the voice interaction function of the electronic device, whether to enable the voice interaction function of certain applications, etc.

[0228] For example, the electronic device turns off the voice interaction function of the electronic device in response to the user's operation in the setting application.

[0229] For another example, when an electronic device is running an application, it turns off the voice interaction function of the application in response to a user operation in a setting function.

[0230] In this way, the electronic device can meet the personalized needs of users by presetting the opening or closing entrance of the voice interaction function.

[0231] For example, Figure 12 is a flow chart of a voice control method provided in an embodiment of the present application. As shown in Figure 12, the method includes the following steps.

[0232] S1201. The electronic device starts a first application in response to a first operation of the user.

[0233] The first operation may include, for example, an operation on the icon of the first application, a voice control operation, an operation to switch to the first application, or other operation for instructing to launch the first application. The first application is any application installed in the electronic device. Launching the first application includes launching the first application in the foreground or in the background.

[0234] S1202. The electronic device obtains a first voice user interface description language configuration file corresponding to the first application.

[0235] In some embodiments, during the application development stage, developers can pre-package the voice user interface description language configuration file (VUIDL configuration file) into the application installation package, so that subsequent electronic devices can obtain the voice user interface description language configuration file corresponding to the application by decompressing the application installation package after downloading the application installation package.

[0236] For example, after determining to start the first application, the electronic device may obtain an installation package of the first application and then obtain a first voice user interface description language configuration file preconfigured in the installation package.

[0237] In this way, based on the packaged voice user interface description language configuration file, the electronic device can adaptively generate the voice interaction instance corresponding to the application, realize the subsequent voice interaction control of the electronic device, and meet the user's flexible use needs for the application.

[0238] In some embodiments, different interfaces in the first application correspond to different voice user interface description language configuration files; or, the first application corresponds to one voice user interface description language configuration file.

[0239] For example, after starting the first application, the electronic device determines the interface for generating the voice interaction instance and obtains the voice user interface description language configuration file corresponding to the interface.

[0240] For another example, after starting a first application, the electronic device obtains a voice user interface description language configuration file corresponding to the first application.

[0241] In this way, the voice user interface description language configuration file is flexibly packaged to meet the needs of applications to generate voice interaction instances based on the voice user interface description language configuration file.

[0242] In other embodiments, the electronic device supports user-defined voice interaction instances. For example, the electronic device supports pre-defined VUIDL. In response to a user's voice command or other trigger instruction, the electronic device can trigger the editable voice interaction instance state of the currently displayed application interface. The electronic device can then receive the user's edit operation on the voice interaction instance corresponding to the interface element displayed in the current application interface and generate the voice interaction instance corresponding to the interface element.

[0243] For example, as shown in interface 1301 in FIG13(a), the electronic device detects a user's voice command while displaying an application and determines that the user has instructed to edit the voice interaction instance corresponding to interface 1301. The voice command may be a predefined voice command in the electronic device or a user-defined voice command, such as "Start editing voice interaction." Alternatively, the electronic device may support other methods for triggering the editing of a voice interaction instance.

[0244] In response to the user's voice command, the electronic device may display an interface 1302 as shown in FIG13(b), and display editable markers on the interface 1302, which are used to indicate interface elements that support user-defined editing of voice interaction instances, such as editable markers 131 and 132.

[0245] Afterwards, if the electronic device detects a user operation on the editable marker 131 displayed on the interface 1302, it may display the interface 1401 shown in FIG14 . The interface element indicated by the editable marker 131 corresponds to the video content monitored in the master bedroom. On the interface 1401, the electronic device may display a prompt message 141, which is used to prompt the user that the interface element corresponding to the editable marker 131 contains editable voice interaction instance content, such as conditions, corpus, actions, etc. The user can edit these voice interaction instance contents as needed. Afterwards, if the electronic device detects a user operation on the save control 142, it may generate a corresponding voice interaction instance based on the user's edited content.

[0246] Among them, the condition is used to indicate the triggering condition of the voice interaction instance corresponding to the interface element. For example, the triggering condition may correspond to the content shown in Table 5 above, such as voice wake-up, etc. The user can choose to add one or more conditions. The corpus is used to indicate the hot words that trigger the condition when the condition is voice wake-up. The user can customize and add one or more corpora. The action is used to indicate the behavior of the electronic device after the voice interaction instance corresponding to the interface element is triggered. For example, the action may correspond to the content shown in Table 6 above.

[0247] For example, if the electronic device determines that the action selected by the user is ultra-high definition, or call, or zoom, it can determine that the type (type) of the corresponding voice interaction instance is logic, and the target (target) is the application corresponding to the callback interface 1301. For example, in response to the trigger condition, the application is called back to realize the zoomed display of the video content monitored in the master bedroom. Alternatively, if the electronic device determines that the action selected by the user is screenshot, it can determine that the type (type) of the corresponding voice interaction instance is logic, and the target (target) is the callback system capability. For example, in response to the trigger condition, the system capability is called back to take a screenshot of the video content monitored in the master bedroom. Alternatively, if the electronic device determines that the action selected by the user is click, it can determine that the type (type) of the corresponding voice interaction instance is view, and the target (target) is the interface element indicated by the editable identifier 131. For example, the interface element is clicked in response to the trigger condition.

[0248] Alternatively, if the electronic device detects a user operation on the editable indicator 132 displayed on the interface 1302, it may display the interface 1501 shown in FIG15 . The interface element indicated by the editable indicator 132 is a recording control. On the interface 1501, the electronic device may display a prompt 151, which indicates to the user the content of the voice interaction instance that can be edited in the interface element corresponding to the editable indicator 132, such as conditions, corpus, actions, etc. Subsequently, if the electronic device detects a user operation on the save control 152, it may generate a voice interaction instance corresponding to the recording control based on the user's edited content.

[0249] As can be seen in the scenarios illustrated in Figures 14 and 15 , different user-editable conditions, corpora, and actions for different interface elements can be pre-determined by a voice user interface description language configuration file. Alternatively, if the application doesn't have a pre-configured voice user interface description language configuration file, the configuration can be determined directly by the application's capabilities.

[0250] Therefore, after the electronic device determines to launch the first application, the first voice user interface description language configuration file obtained may also include the user-defined voice interaction instance corresponding to the first application. Then, in the following step S1203, the electronic device generates at least one first voice interaction instance based on the display information of the first interface and the first voice user interface description language configuration file, including the user-defined voice interaction instance.

[0251] In this way, electronic devices meet users' personalized needs and improve their usage experience by supporting users to customize voice interaction instances.

[0252] S1203. The electronic device generates at least one first voice interaction instance based on the display information of the first interface of the first application and the first voice user interface description language configuration file.

[0253] The display information of the first interface includes one or more of the following: display data corresponding to the first application interface, a first identifier of the first application, a second identifier of the first application interface, and a third identifier of an interface element displayed on the first interface. The interface elements include controls and containers on the interface.

[0254] In some embodiments, at least one first voice interaction instance corresponds to an interface element on the first interface, or at least one first voice interaction instance corresponds to the first interface.

[0255] For example, in the scenario shown in Figure 8, the electronic device obtains the display information of interface 801 (i.e., the first interface) including the identifier of interface element 81, and obtains the first voice interaction first voice user interface description language configuration file corresponding to interface 801. Afterwards, the electronic device can generate a first voice interaction instance corresponding to interface element 81 based on the first voice interaction first voice user interface description language configuration file and the interface information corresponding to interface 801. Alternatively, the electronic device can generate a first voice interaction instance corresponding to interface 801, which can be used to control interface element 81.

[0256] In this way, based on the different interface display information obtained, the electronic device can flexibly generate voice interaction instances corresponding to the interface or interface elements, and can generate corresponding voice interaction instances based on different granularities, thereby increasing the flexibility of voice interaction instance generation.

[0257] S1204. The electronic device receives a first voice of the user, determines a first target voice interaction instance associated with the first voice in at least one first voice interaction instance, and executes a first behavior corresponding to the first voice indicated by the first target voice interaction instance.

[0258] In some embodiments, the first voice is a wake-up word or matches a hot word. Optionally, the hot word is a hot word in a hot word set indicated by the first target voice interaction instance, and / or the hot word is a hot word determined based on a business scenario corresponding to the first interface.

[0259] For example, the electronic device receives the user's first voice, determines that the first voice is a wake-up word, and can wake up the voice assistant for subsequent voice interaction.

[0260] For another example, an electronic device receives a first voice of a user, determines that the first voice matches a hot word, and can determine a first target voice interaction example corresponding to the matched hot word. The matching of hot words includes exact matching and fuzzy matching. Exact matching is used to indicate that the first voice is a hot word. For example, if the hot word is amplification, and the first voice detected by the electronic device is amplification, it can be determined that the first voice matches the hot word. Fuzzy matching is used to indicate that the prefix and suffix added to the hot word based on the business scenario are the same as the first voice. For example, if the hot word is button, and the business scenario is a switch scenario, and the electronic device detects that the first voice is a start button, it can be determined that the first voice matches the hot word.

[0261] In this way, based on different business scenarios, electronic devices can expand or fuzzy the hot words corresponding to interface elements, thereby reducing the difficulty of users remembering hot words and improving the user experience.

[0262] In some embodiments, the electronic device executes the first behavior by calling an application program interface; or, executes the first behavior on an interface element corresponding to the first voice on the first interface.

[0263] Optionally, the application program interface includes an interface of the first application program or an interface of the second application program.

[0264] For example, the electronic device determines that the first behavior indicated by the first target voice interaction instance is to call back an application. Based on the callback method indicated by the target node in the first target voice interaction instance, the electronic device can call back the interface of the first application, and the first application can execute the corresponding behavior; or the electronic device can call back the interface of the second application, and the second application can execute the corresponding behavior; or the electronic device can call back the interface of the first application, and the first application can call the interface of the second application, and then the second application can execute the corresponding behavior.

[0265] In this way, the electronic device can call the application program interface to enable the application program to adaptively execute the first behavior corresponding to the first voice, thereby achieving more flexible voice interaction.

[0266] Optionally, the first action performed on the interface element corresponding to the first voice on the first interface includes performing one or more of the following operations on the interface element: clicking, tapping, sliding, and enlarging.

[0267] For example, as shown in FIG8 , after launching the first application, the electronic device may generate at least one first voice interaction instance corresponding to interface 801. Subsequently, as in the voice interaction instance exemplified above, if the first voice detected by the electronic device is "details," and based on the business scenario being a page scenario, the electronic device may determine that the first action indicated in the first target voice interaction instance is clicking on interface element 81. Then, the electronic device triggers clicking on interface element 81 and may display the details page corresponding to interface element 81 as shown in FIG9 .

[0268] In some embodiments, different interfaces in an application correspond to different voice user interface description language configuration files. After the electronic device determines to switch the application interface, it can obtain the voice user interface description language configuration file corresponding to the switched application interface to generate a voice interaction instance corresponding to the switched application interface.

[0269] For example, in response to the user's second operation, the electronic device determines to launch the second interface of the first application. The electronic device obtains the display information of the second interface and the second voice user interface description language configuration file corresponding to the second interface. Afterwards, the electronic device generates at least one second voice interaction instance based on the display information of the second interface and the second voice user interface description language configuration file. Afterwards, after receiving the user's second voice, the electronic device determines a second target voice interaction instance associated with the second voice in the at least one second voice interaction instance, and executes the second behavior corresponding to the second voice indicated by the second target voice interaction instance.

[0270] In other embodiments, different interfaces within an application correspond to the same voice user interface description language configuration file, and different applications correspond to different voice user interface description language configuration files. After the electronic device determines to switch applications, it can obtain the voice user interface description language configuration file corresponding to the switched application to generate a voice interaction instance corresponding to the switched application interface. Alternatively, after the electronic device determines to switch different interfaces within the same application, it can generate a voice interaction instance corresponding to the switched application interface based on the obtained voice user interface description language configuration file corresponding to the application interface before switching and the display information of the switched application interface.

[0271] For example, in response to a third user operation, the electronic device determines display information for a third interface of the first application. Based on the display information of the third interface and the first voice user interface description language configuration file, the electronic device generates at least one third voice interaction instance. Subsequently, upon receiving the third voice from the user, the electronic device determines a third target voice interaction instance associated with the third voice in the at least one third voice interaction instance, and executes a third action corresponding to the third voice indicated by the third target voice interaction instance.

[0272] In some embodiments, the electronic device may destroy at least one first voice interaction instance that has been generated after switching applications, switching application interfaces, or changing interface elements.

[0273] For example, in the scenario shown in Figure 8, the electronic device generates at least one first voice interaction instance corresponding to interface 801, which includes a first target voice interaction instance corresponding to interface element 81. Subsequently, in response to the user's first voice, the electronic device triggers the display of the interface shown in Figure 9 based on the first target voice interaction instance. Subsequently, the electronic device may destroy the at least one first voice interaction instance corresponding to interface 801 and generate at least one voice interaction instance corresponding to the interface shown in Figure 9.

[0274] In this way, the electronic device can adaptively generate a voice interaction instance based on the acquired voice user interface description language configuration file and interface display information corresponding to the application, thereby realizing subsequent voice control of the application.

[0275] Moreover, generating a voice user interface description language configuration file based on a predefined voice user interface description language can effectively simplify the coding difficulty for developers in the process of developing the voice interaction function of an application.

[0276] In addition, developers can generate a voice user interface description language configuration file based on the voice user interface description language and the actual needs of the application, so that the voice interaction instances defined by the voice user interface description language configuration file are not limited to the current conversational voice interaction paradigm, and thus realize multiple voice interaction methods in multiple scenarios, thereby improving the user experience.

[0277] The above describes in detail the voice control method provided by the embodiment of the present application in conjunction with Figures 6 to 15. The following describes in detail the electronic device provided by the embodiment of the present application in conjunction with Figure 16.

[0278] In one possible design, Figure 16 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 16, electronic device 1600 may include: a transceiver unit 1601 and a processing unit 1602. Electronic device 1600 may be used to implement the functions of the electronic device involved in the above method embodiment.

[0279] Optionally, the transceiver unit 1601 is used to support the electronic device 1600 to execute S1201 in Figure 12.

[0280] Optionally, the processing unit 1602 is used to support the electronic device 1600 to execute S1202, S1203 and S1204 in Figure 12.

[0281] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the electronic device 1600 are respectively for implementing the corresponding process of the voice control method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0282] Optionally, the electronic device 1600 shown in FIG16 may further include a storage unit (not shown in FIG16 ) storing a program or instruction. When the transceiver unit 1601 and the processing unit 1602 execute the program or instruction, the electronic device 1600 shown in FIG16 may perform the voice control method described in the above method embodiment.

[0283] The technical effects of the electronic device 1600 shown in FIG16 may refer to the technical effects of the voice control method described in the above method embodiment, and will not be repeated here.

[0284] In addition to being in the form of the electronic device 1600, the technical solution provided in this application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.

[0285] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0286] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0287] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.

[0288] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0289] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0290] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the above-mentioned related steps to implement the voice control method in the above-mentioned embodiment.

[0291] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the voice control method in the above-mentioned embodiment.

[0292] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the voice control method described in each of the above method embodiments.

[0293] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above and will not be repeated here.

[0294] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0295] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0296] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.

[0297] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0298] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.

[0299] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A voice control method, characterized in that: Applied to electronic equipment, the method comprises: In response to a first operation by a user, launching a first application; Obtaining a first voice user interface description language configuration file corresponding to the first application; Generate at least one first voice interaction instance according to display information of the first interface of the first application and the first voice user interface description language configuration file; Receive a user's first voice, determine a first target voice interaction instance associated with the first voice in the at least one first voice interaction instance, and execute a first behavior corresponding to the first voice indicated by the first target voice interaction instance.

2. The method according to claim 1, characterized in that The executing the first behavior corresponding to the first voice indicated by the first target voice interaction instance includes: The first behavior is performed by calling an application program interface; or the first behavior is performed on an interface element corresponding to the first voice on the first interface.

3. The method according to claim 2, characterized in that The application program interface includes an interface of the first application program or an interface of a second application program.

4. The method according to claim 2 or 3, characterized in that: The first behavior performed on the interface element corresponding to the first voice on the first interface includes performing one or more of the following operations on the interface element: clicking, tapping, sliding, and enlarging.

5. The method according to any one of claims 1 to 4, characterized in that: The first voice is a wake-up word or matches a hot word.

6. The method according to claim 5, characterized in that The hot word is a hot word in the hot word set indicated by the first target voice interaction instance, and / or the hot word is a hot word determined according to the business scenario corresponding to the first interface.

7. The method according to any one of claims 1 to 6, characterized in that: The at least one first voice interaction instance corresponds to an interface element on the first interface respectively, or the at least one first voice interaction instance corresponds to the first interface.

8. The method according to any one of claims 1 to 7, characterized in that: The first voice user interface description language configuration file corresponds to the first interface, and the method further includes: In response to a second operation of the user, determining to start a second interface of the first application; Acquire display information of the second interface and a second voice user interface description language configuration file corresponding to the second interface; Generate at least one second voice interaction instance according to the display information of the second interface and the second voice user interface description language configuration file; Receive a second voice of the user, determine a second target voice interaction instance associated with the second voice in the at least one second voice interaction instance, and execute a second behavior corresponding to the second voice indicated by the second target voice interaction instance.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a third operation of the user, determining display information of a third interface of the first application; Generate at least one third voice interaction instance according to the display information of the third interface and the first voice user interface description language configuration file; Receive a third voice of the user, determine a third target voice interaction instance associated with the third voice in the at least one third voice interaction instance, and execute a third behavior corresponding to the third voice indicated by the third target voice interaction instance.

10. The method according to claim 8 or 9, characterized in that: The method further comprises: Destroy the at least one first voice interaction instance.

11. The method according to any one of claims 1 to 10, characterized in that: The obtaining of a first voice user interface description language configuration file corresponding to the first application program includes: Obtaining an installation package of the first application; Obtain the first voice user interface description language configuration file preconfigured in the installation package.

12. The method according to any one of claims 1 to 11, characterized in that: The display information of the first interface includes one or more of the display data corresponding to the first application interface, the first identifier of the first application, the second identifier of the first application interface, and the third identifier of the interface element displayed on the first interface.

13. An electronic device, characterized in that: include: A processor and a memory, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor reads the computer instructions from the memory, the electronic device executes the method according to any one of claims 1-12.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 12.

15. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • An application program control method and a terminal

    CN108958844A

  • Voice control method and electronic equipment

    CN109584879A

  • Voice control method and electronic equipment

    CN110060672A

  • Voice control method and device and electronic equipment

    CN114049892A

  • Instruction determination method, apparatus and device for vehicle-mounted voice assistant, and medium

    CN114373460A

Cited By

  • Voice interaction method and device for display interface and electronic equipment

    CN119729074A

  • Image processing method, device, storage medium, and program product

    WO2026227775A1