Switching method and electronic device

WO2026200278A1PCT designated stage Publication Date: 2026-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/076578
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-24
Filing Date
2026-02-02
Publication Date
2026-10-01

Smart Images

  • Figure CN2026076578_01102026_PF_FP_ABST
    Figure CN2026076578_01102026_PF_FP_ABST
Patent Text Reader

Abstract

A switching method and an electronic device, which are used for conveniently switching to a different application account on the basis of a voiceprint feature, so as to realize personalized services for different users. The electronic device extracts, on the basis of the reception of a voice instruction, voiceprint information from the voice instruction, and then on the basis of the voiceprint information, searches for an associated application account, so that the electronic device automatically switches to the application account associated with the voiceprint information. In this way, manual operations of users can be reduced, and different application accounts belonging to a same application can be conveniently maintained for different users.
Need to check novelty before this filing date? Find Prior Art

Description

A switching method and electronic device

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202510352364.4, filed on March 24, 2025, entitled "A Switching Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of terminal equipment technology, and in particular to a switching method and electronic device. Background Technology

[0004] With the development and advancement of technology, the functions of equipment have gradually become more complete and abundant. Furthermore, in addition to continuously improving the basic functions of equipment, the types of functions that can be developed for equipment are gradually increasing, and users have increasingly refined requirements for the equipment experience.

[0005] For example, improving the user experience of electronic products used by multiple people in a family, such as large-screen devices and tablets, is of great research significance. Summary of the Invention

[0006] This application provides a switching method and electronic device that enables portable switching between multiple different application accounts on a single electronic device, thereby providing personalized services to different users.

[0007] Firstly, a switching method is provided. This method can be applied to electronic devices. In this method, a first voice command is detected in a first interface, which is used to instruct a first application to log in to a first account; in response to the first voice command, a second interface is displayed, which is used to instruct the first application to log in to a second account, wherein the first voiceprint information of the first voice command is associated with the second account.

[0008] In this embodiment, switching application accounts via voiceprint recognition improves the accuracy of application account management. This allows for convenient management of different application accounts for different users, enabling personalized management. For example, playback records for different users can remain independent, and switching application accounts eliminates the need for complex manual operations, thus enhancing the user experience.

[0009] In one possible design, the method further includes: displaying a third interface in response to a second voice command, the third interface being used to instruct the first application to log in to a third account, the third account being a newly created account; and establishing an association between the second voiceprint information of the second voice command and the third account.

[0010] In this design, based on voiceprint recognition, not only can users switch between existing application accounts, but also new accounts can be automatically created for voiceprint information when it is not associated with an application account. This eliminates the need for complex manual operations by the user; application accounts can be automatically created through the electronic device's processing. Furthermore, different application accounts can be maintained for different users, enabling personalized services and management for diverse user groups.

[0011] In one possible design, displaying the second interface in response to a first voice command includes: extracting the first voiceprint information from the first voice command; determining a first identifier based on the first voiceprint information; and searching for the second account from M accounts based on the first identifier. For example, the voiceprint information may include voiceprint features and a UUID. For instance, the first identifier is a UUID.

[0012] In this design, UUIDs facilitate identification by electronic devices, enabling quick retrieval of application accounts corresponding to voiceprint information based on the association between voiceprint information and application accounts.

[0013] In one possible design, before detecting the first voice command, the method further includes: in response to a first operation command, saving first voiceprint information, the first operation command being used to record the voiceprint features of the first voiceprint information; generating a first identifier for the first voiceprint information; and in response to a second operation command, establishing an association between the first identifier and the second account, the second operation command being used to instruct the establishment of the association between the first identifier and the second account.

[0014] In this design, by linking the voiceprint information stored in the operating system with the multiple application accounts included in the application, it is possible to switch the application accounts associated with the voiceprint information corresponding to the voice command conveniently, thereby enabling personalized services for different users.

[0015] In one possible design, the second account is a preset account, and the first voiceprint information is from an unsaved user. For example, the preset account is a main family account or a guest account.

[0016] This design allows for more precise management of application accounts by defining specific scenarios. For example, when a visitor uses an electronic device's application, there's no need to maintain a separate application account for them; either the main family account or the visitor account can be reused, thus reducing the number of application accounts and lowering the complexity of maintaining them.

[0017] Secondly, this application provides an electronic device comprising a plurality of functional modules; the plurality of functional modules interact to implement the methods performed by the electronic device in any of the above aspects and their various possible designs. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.

[0018] Thirdly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes any of the above aspects and the methods executed by the electronic device in various possible designs.

[0019] Fourthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform any of the above-described methods and the methods performed by electronic devices in various possible designs.

[0020] Fifthly, this application provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform any of the above aspects and methods of electronic devices in various possible designs.

[0021] In a sixth aspect, embodiments of this application also provide a graphical user interface on an electronic device, the electronic device having a display screen, one or more memories, and one or more processors, the one or more processors being configured to execute one or more computer programs stored in the one or more memories, the graphical user interface including a graphical user interface displayed when the electronic device performs any of the above aspects and their various possible designs.

[0022] In a seventh aspect, this application also provides a chip for reading a computer program stored in a memory and executing the methods performed by electronic devices in any of the above aspects and their possible designs.

[0023] Eighthly, this application also provides a chip system including a processor for supporting a computer device in implementing any of the above-described aspects and the methods executed by various possible electronic devices. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices.

[0024] For details on the beneficial effects of any of the second to eighth aspects and their possible designs, please refer to the beneficial effects of the various possible designs in the first aspect above; they will not be repeated here. Attached Figure Description

[0025] Figure 1 shows a schematic diagram of one possible scenario;

[0026] Figure 2 is a schematic diagram of the hardware structure of a possible electronic device provided in an embodiment of this application;

[0027] Figure 3 is a software architecture block diagram of an electronic device provided in an embodiment of this application;

[0028] Figure 4 is one of the interface diagrams of a switching method provided in an embodiment of this application;

[0029] Figure 5 is a second schematic diagram of an interface of a switching method provided in an embodiment of this application;

[0030] Figure 6 is a third schematic diagram of an interface of a switching method provided in an embodiment of this application;

[0031] Figure 7 is a flowchart illustrating one of the switching methods provided in an embodiment of this application;

[0032] Figure 8 is a second schematic flowchart of a switching method provided in an embodiment of this application;

[0033] Figure 9 is a flowchart of a switching method provided in an embodiment of this application;

[0034] Figure 10 is a fourth flowchart illustrating a switching method provided in an embodiment of this application;

[0035] Figure 11 is a fifth flowchart illustrating a switching method provided in an embodiment of this application;

[0036] Figure 12 is a schematic flowchart of a switching method provided in an embodiment of this application. Detailed Implementation

[0037] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0038] The embodiments of this application can be applied to the field of terminal device technology, specifically to scenarios where multiple accounts need to be managed in device applications. For example, Figure 1 shows a possible scenario diagram. In a large-screen application, multiple different modes can be provided, such as children's mode, standard mode, elderly mode, etc.; or, multiple application accounts can be provided, such as different users using different application accounts, etc.

[0039] In one possible implementation, the device switches between different application accounts by detecting user actions. However, this method requires manual operation and has a low level of intelligence.

[0040] In another possible implementation, with the technological advancements in electronic products and the gradual upgrading of hardware resources, the computing power of devices has been enhanced. This allows for the use of artificial intelligence (AI) recognition algorithms to switch between different modes or application accounts based on facial recognition, thereby improving the intelligence of switching in multi-account scenarios. However, due to the limitations of how cameras capture faces, processing in multi-person scenarios is quite complex, making it difficult to accurately identify the target face and thus accurately switch to the application account or mode corresponding to that target face.

[0041] In view of this, embodiments of this application provide a switching method. This method enhances the intelligence of switching application accounts or application usage modes, reduces user operations, and thus improves the user experience. In this method, the target application account or target mode to be switched is determined based on voiceprint recognition.

[0042] The embodiments of this application can be applied to electronic devices such as mobile phones, PCs, tablets, wearable devices (e.g., watches, bracelets, etc.), in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and smart home devices (e.g., smart TVs, smart speakers, etc.). It is understood that the embodiments of this application do not impose any limitations on the specific type of electronic device.

[0043] The electronic devices to which this application's embodiments can be applied include, but are not limited to, those equipped with... Or other electronic devices with different operating systems. The aforementioned portable electronic devices can also be other portable electronic devices, such as laptops with touch-sensitive surfaces (e.g., touch panels).

[0044] Figure 2 illustrates a possible hardware structure diagram of an electronic device. The electronic device 200 includes components such as a radio frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless-fidelity (Wi-Fi) module 290. Those skilled in the art will understand that the hardware structure of the electronic device 200 shown in Figure 2 does not constitute a limitation on the electronic device 200. The electronic device 200 provided in this application embodiment may include more or fewer components than shown, may combine two or more components, or may have different component configurations. The various components shown in Figure 2 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits (ASICs).

[0045] The following is a detailed description of each component of the electronic device 200 with reference to Figure 2:

[0046] The RF circuit 210 can be used for receiving and transmitting data during communication or a call. Specifically, after receiving downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; additionally, it sends uplink data to be transmitted to the base station. Typically, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc.

[0047] Furthermore, the RF circuit 210 can also communicate with other devices via a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Message Service (SMS).

[0048] The electronic device 200 can also perform communication services and interact with other electronic devices. Therefore, the electronic device 200 needs to have data transmission capabilities, meaning it needs to include a communication module. Although Figure 2 shows the RF circuit 210, the Wi-Fi module 290, and the communication interface 280, it is understood that the electronic device 200 contains at least one of the aforementioned components or other communication modules (such as a Bluetooth module) for data transmission.

[0049] For example, when the electronic device 200 is a mobile phone, the electronic device 200 may include the RF circuit 210, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 2); when the electronic device 200 is a computer, the electronic device 200 may include the communication interface 280, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 2); when the electronic device 200 is a tablet computer, the electronic device 200 may include the Wi-Fi module or a Bluetooth module (not shown in Figure 2).

[0050] Wi-Fi technology is a short-range wireless transmission technology. The electronic device 200 can connect to an access point (AP) via the Wi-Fi module 290, thereby enabling access to the data network. The Wi-Fi module 290 can be used for receiving and sending data during communication.

[0051] The electronic device 200 can physically connect to other devices through the communication interface 280. Optionally, the communication interface 280 can be connected to the communication interfaces of other devices via a cable to enable data transmission between the electronic device 200 and other devices.

[0052] The memory 240 can be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the electronic device 200 by running the software programs and modules stored in the memory 240. Optionally, the memory 240 may mainly include a program storage area and a data storage area. The program storage area may store the operating system (mainly including the software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer).

[0053] Furthermore, the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. In this embodiment, the memory 240 may cache voiceprint information recorded in the operating system, and may also cache the association between different voiceprint information and different application accounts.

[0054] The input unit 250 can be used to receive editing operations on various types of data objects, such as numbers or characters, input by the user, and to generate key signal inputs related to user settings and function control of the electronic device 200. Optionally, the input unit 250 may include a touch panel 251 and other input devices 252. The touch panel 251, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 251), and drive the corresponding connection devices according to a pre-set program.

[0055] Optionally, the other input device 252 may include, but is not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a mouse, and a joystick. For example, when the electronic device 200 is a laptop computer, the other input device 252 may be a mouse and / or a keyboard.

[0056] The display unit 260 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 200. The display unit 260 is the display system of the electronic device 200, used to present the interface and realize human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 can be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar devices. In this embodiment, the display unit 260 can be used to display a user interface for the user, such as the application interface after switching logged-in application accounts.

[0057] The processor 230 is the central controller of the electronic device 200. It connects various components via interfaces and lines, and executes software programs and / or modules stored in the memory 240, as well as calling data stored in the memory 240, to perform various functions and process data of the electronic device 200, thereby enabling multiple services based on the electronic device 200. In this embodiment, the processor 230 can be used to implement the switching method provided in this embodiment.

[0058] The electronic device 200 also includes a power supply 220 (such as a battery) for supplying power to various components. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption.

[0059] As shown in Figure 2, the electronic device 200 also includes an audio circuit 270, a microphone 271, and a speaker 272, providing an audio interface between the user and the electronic device 200. The audio circuit 270 converts audio data into signals recognizable by the speaker 272 and transmits the signals to the speaker 272, where the speaker 272 converts them into sound signals for output. The microphone 271 collects external sound signals (such as human speech or other sounds) and converts the collected external sound signals into signals recognizable by the audio circuit 270, sending them to the audio circuit 270. The audio circuit 270 can also convert the signals sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 for transmission to, for example, another electronic device, or output the audio data to the memory 240 for further processing. In this embodiment, the microphone 271 can be used to collect the user's voice commands and send the voice commands to the processor 230 to extract voiceprint features.

[0060] Although not shown in Figure 2, the electronic device 200 may also include a camera, at least one sensor, etc., which will not be described in detail here. The at least one sensor may include, but is not limited to, a pressure sensor, a barometric pressure sensor, an accelerometer, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.

[0061] The operating system (OS) involved in this application embodiment is the most basic system software running on the electronic device 200. The software system of the electronic device 200 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment takes an operating system adopting a layered architecture as an example to illustrate the software system architecture of the electronic device 200.

[0062] Figure 3 is a block diagram of a software system architecture for an electronic device according to an embodiment of this application. As shown in Figure 3, the software system architecture of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.

[0063] The application layer can include a series of application packages. As shown in Figure 3, the application layer can include camera, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include wireless local area network (WLAN), music, call, Bluetooth, video, memo, sticky notes, etc.

[0064] In this embodiment, the application layer can be used to implement the presentation of the display interface. The display interface can be presented after switching to the target application account or target mode based on the switching method described in the following embodiments. For example, after switching to the application account corresponding to the child, the interface corresponding to the child's video viewing history in that application can be displayed.

[0065] In one possible implementation, the application can be developed using Java, by calling the application programming interface (API) provided by the application framework layer. Developers can then interact with the underlying operating system layers (such as the hardware layer and kernel layer) to develop their own applications. This application framework layer primarily consists of a series of services and management systems within the operating system.

[0066] The application framework layer provides application programming interfaces and a programming framework for applications within the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer may include an activity manager, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0067] The Activity Manager manages the lifecycle of each application and provides commonly used navigation and back functions, offering an interactive interface for all program windows.

[0068] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0069] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0070] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0071] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0072] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0073] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0074] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0075] A system library can include multiple functional modules. For example: a surface manager, a media framework, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), etc.

[0076] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0077] The media framework supports playback and recording of various commonly used audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, and AMR; and multiple image encoding formats, such as JPG and PNG.

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

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

[0080] In some embodiments, a 3D graphics processing library can be used to draw 3D motion images, and a 2D graphics engine can be used to draw 2D motion images.

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

[0082] The hardware layer can include various types of sensors, such as accelerometers, gravity sensors, and touch sensors.

[0083] Typically, an electronic device 200 can run multiple applications simultaneously. In a simpler scenario, one application corresponds to one process; in a more complex scenario, one application can correspond to multiple processes. Each process has a unique process ID.

[0084] It should be understood that in the embodiments of this application, "at least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple. "Multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0085] In addition, it should be understood that in the description of this application, the words "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order.

[0086] It should be understood that the hardware structure of the electronic device can be as shown in Figure 2, and the software system architecture can be as shown in Figure 3. The software programs and / or modules corresponding to the software system architecture in the electronic device can be stored in the memory 240, and the processor 230 can run the software programs and applications stored in the memory 240 to execute the flow of a switching method provided in the embodiments of this application.

[0087] To facilitate understanding of the switching method provided in this application, the implementation process of the method provided in this application will be described below with reference to Figures 4 to 11.

[0088] This application's embodiments are applicable to electronic devices such as large screens, tablets, or mobile phones. Specifically, they can be applied to applications on electronic devices that may be used by multiple people, such as video applications on large screens watched by the whole family, video applications on tablets used by the whole family, and video applications on mobile phones used by both adults and children.

[0089] In one possible scenario, when multiple people use an application on an electronic device, they can switch between different modes. For example, children can switch to children's mode, the elderly can switch to senior mode, and adults can switch to standard mode. Alternatively, different modes can also be understood as different application accounts. One application account can be used by one person or multiple people. For example, if a family includes multiple children, they can share the application account corresponding to children's mode.

[0090] In another possible scenario, when multiple people use electronic devices, they can switch between different application accounts. Understandably, in this scenario, one application account is typically used by one person.

[0091] Based on the aforementioned scenario, the following embodiments use switching application accounts as an example; where an application account can be associated with one or more people.

[0092] Optionally, multiple application accounts can be divided into a family master account and family sub-accounts; there is generally one family master account, and the other application accounts are family sub-accounts. Alternatively, the family master account can be understood as a public account, and the family sub-accounts can be understood as dedicated accounts associated with family members.

[0093] Alternatively, multiple application accounts can also be independent accounts, which is not limited in this application.

[0094] The following section first describes the possible interface processing effects designed in the embodiments of this application, in order to facilitate understanding of the methods provided in the embodiments of this application. In the following embodiments, a large screen is used as an example for electronic devices; however, the embodiments of this application do not limit the specific type of large screen.

[0095] For example, Figure 4 is a schematic diagram of an interface involved in a switching method provided in an embodiment of this application. As shown in interface 400A in Figure 4, it can be a voiceprint recording interface. Interface 400A may include control 401 for starting voiceprint recording; it may also include control 402 for adding voiceprints for others. Interface 400A is an interface provided by the operating system, for example, it can be accessed from the settings application. Based on the voiceprint recording of interface 400A, interface 400B can be displayed. As can be seen from interface 400B, the system can store the voiceprint information of multiple people. Each person's voiceprint information may include voiceprint features (not shown in interface 400B) and a nickname identifier; the nickname identifier may include, for example, "Dad," "Mom," "Child 1," "Child 2," "Elderly," etc.

[0096] For example, Figure 5 is a schematic diagram of another interface involved in a switching method provided in an embodiment of this application. As shown in interface 500A in Figure 5, the display interface of application A can be opened by the user through voice command. For example, the user can activate the voice assistant and input a voice command, as shown in 501 of interface 500A. The large screen can extract voiceprint features from the voice command.

[0097] Then, the large screen launches application A. Application A obtains the voiceprint information stored in the system by calling the operating system's interface, such as the voiceprint information shown in Figure 4.

[0098] Optionally, when application A matches the extracted voiceprint features with the stored voiceprint information, it can automatically switch the target application account, as shown in interface 500B, where the target application account is the father's application account. At this time, application A can automatically switch to logging in with the father's application account.

[0099] Alternatively, if application A does not match the stored voiceprint information based on the extracted voiceprint features, it can display the stored voiceprint information to the user for manual association. As shown in interface 500C, multiple voiceprint information stored in the system can be displayed. For example, when the large screen detects a click on a control indicating the father's voiceprint information in interface 500C, it can determine to associate the extracted voiceprint features with the father's voiceprint information to switch to the father's application account.

[0100] For example, within an application, multiple accounts can be created, each associated with a corresponding voiceprint feature. Based on this, switching between accounts within the application can be achieved based on voiceprint recognition, as shown in Figure 5. Optionally, the application accounts can be pre-created or triggered when a new account needs to be created in response to a scenario requiring account switching based on voiceprint recognition. Figure 6 shows another interface diagram of a switching method provided in this application embodiment. As shown in interface 600 of Figure 6, the accounts in the application can be divided into a family master account and family sub-accounts. For example, the family master account can be a public account. When no voiceprint feature is identified or the voiceprint feature is not a family member, the family master account can be used. Other application accounts can be family sub-accounts, such as the mother's application account, the father's application account, the child's application account, and the elderly's application account. When the voiceprint feature is identified as a family member, the application account matching that family member can be switched to.

[0101] Based on the description of the interface processing effect in Figures 4 to 6 above, the following process explains how to implement the method provided in the embodiments of this application.

[0102] For example, Figure 7 is a flowchart illustrating a switching method provided in an embodiment of this application. This process can be applied to electronic devices and may include the following steps:

[0103] Step 701: In response to the first operation, save the voiceprint information in the operating system.

[0104] For example, the first operation could be the operation of recording a voiceprint in the settings application of an electronic device, as shown in Figure 4.

[0105] Another example is that multiple electronic devices can log in to the same operating system account, such as a Huawei account. Therefore, voiceprint information can also be recorded through other electronic devices and downloaded from the server to the current electronic device for storage. For example, the other electronic device could be a mobile phone, and the current electronic device could be a large screen.

[0106] Optionally, voiceprint information may include, but is not limited to: voiceprint features; a universally unique identifier (UUID); and a voiceprint nickname. Voiceprint features provide information that allows electronic devices to distinguish between different users; the UUID facilitates processing by the electronic device; and the voiceprint nickname helps users identify the user corresponding to different voiceprint information, such as father, mother, child, or elderly person.

[0107] Step 702: In response to the second operation of creating the first account in the application, obtain the voiceprint information stored in the operating system.

[0108] For example, creating the first account can be understood as creating a new account, which can be triggered manually by the user or triggered based on step 705 below.

[0109] Referring to the example in Figure 4, the voiceprint information stored in the operating system can include that of 5 people, namely, the father, mother, child 1, child 2, and elderly person.

[0110] Step 703: Display one or more user identifiers, which are obtained based on the stored voiceprint information. Optionally, different user identifiers can be used to indicate different users.

[0111] For example, user identifiers can be obtained based on voiceprint nicknames. Referring to the example in Figure 5, five controls can be displayed in the interface to indicate different users.

[0112] Step 704: Select a target user identifier from the one or more user identifiers, and associate the target user identifier with the first account.

[0113] Referring to interface 500C in Figure 5, the target user identifier can be, for example, "Dad". For instance, when the electronic device detects a selection operation on the target user identifier, it can associate the target user identifier with a first account, thus identifying the first account created as Dad's application account.

[0114] Based on the steps shown in Figure 7, an association between application accounts and voiceprint information can be established. Based on this association, rapid switching of application accounts based on voiceprint recognition can be achieved. For example, Figure 8 is a flowchart illustrating a switching method provided in an embodiment of this application. This process can be applied to electronic devices and may include the following steps:

[0115] Step 705: First voice command detected.

[0116] For example, the first voice command is "Help me open the fitness app".

[0117] Step 706: In response to the first voice command, perform voiceprint recognition to determine the matching first voiceprint information; and launch the first application.

[0118] For example, the operating system of an electronic device can extract voiceprint features from the first voice command, and determine the first voiceprint information that matches the voiceprint features from multiple voiceprint information stored in the operating system, such as the father's voiceprint information. Optionally, the voiceprint information stored in the operating system includes voiceprint features and UUID, and the first voiceprint information can be matched based on the voiceprint features.

[0119] In another example, the operating system of the electronic device can extract voiceprint features from the first voice command. If no matching voiceprint information is found among the multiple voiceprint information stored in the operating system, a voiceprint recording interface can be displayed to guide the voiceprint recording. Additionally, the voiceprint recording interface may include a selection entry point for selecting voiceprint information from the multiple stored voiceprint information, thus avoiding duplicate voiceprint recording due to voiceprint feature matching failure.

[0120] Based on the first voice command, the first application can be a fitness application.

[0121] Step 707: Obtain the first application account associated with the first voiceprint information.

[0122] For example, the operating system of an electronic device calls an interface provided by an application, which is used to query all accounts and / or the current account of the application; then, the operating system receives the application account and its associated voiceprint information returned through the interface. Based on this, the operating system matches the application account according to the first voiceprint information. Optionally, the matching can be based on the UUID included in the first voiceprint information and the UUID in the voiceprint information associated with the application account. The matching result can include several possible scenarios:

[0123] Scenario A: If the first voiceprint information matches the voiceprint information associated with the first application account, then it can be determined that the first application account needs to be logged in, and the following steps 708 can be performed.

[0124] Scenario B: If the first voiceprint information does not match any other voiceprint information, it can be determined that no application account associated with that voiceprint information has been created in the application. Optionally, a login / registration interface can be provided to associate / create an application account with the first voiceprint information. Furthermore, verification, such as password verification, can be performed before providing the login / registration interface to ensure account security. If verification is successful, the user can access the login / registration interface; if verification fails, the user can be automatically redirected to a specified account, such as a main family account or a guest account.

[0125] Step 708: Log in to the first application account.

[0126] It is understandable that if the application was previously logged into a second application account, then through the processing of steps 705 to 708 above, it is possible to automatically switch to the first application account, thereby enabling flexible account switching and convenient personalized maintenance of different accounts.

[0127] Figures 7 and 8 above illustrate the process of automatic switching based on pre-created application accounts. Application accounts can also be newly created based on voiceprint recognition; the specific implementation process is described in Figure 9 below.

[0128] For example, Figure 9 is another flowchart illustrating a switching method provided in an embodiment of this application. This process can be applied to electronic devices and may include the following steps:

[0129] Step 901: Second voice command detected.

[0130] For example, the second voice command could also be "Help me open video application A".

[0131] Step 902: In response to the second voice command, perform voiceprint recognition to determine the matching second voiceprint information; and launch the second application.

[0132] For example, the operating system of the electronic device can extract voiceprint features from the second voice command, and determine the second voiceprint information that matches the voiceprint features from multiple voiceprint information stored in the operating system, such as the voiceprint information of child 2. Optionally, the voiceprint information stored in the operating system includes voiceprint features and UUID, and the second voiceprint information can be matched based on the voiceprint features.

[0133] In another example, the operating system of the electronic device can extract voiceprint features from the second voice command. If no matching voiceprint information is found among the multiple voiceprint information stored in the operating system, a voiceprint recording interface can be displayed to guide the voiceprint recording. Additionally, the voiceprint recording interface may include a selection entry point for selecting voiceprint information from the multiple stored voiceprint information, thus avoiding duplicate voiceprint recording due to voiceprint feature matching failure.

[0134] Combined with the second voice command, the second application can be video application A.

[0135] Step 903: If no application account associated with the second voiceprint information is obtained, create a second application account and associate the second voiceprint information with the second application account.

[0136] For example, an electronic device can determine whether an application account is associated with the UUID based on the UUID included in the second voiceprint information. If no application account associated with the UUID is found, it can be determined that the application account corresponding to the user is not registered in the application, and an application account can be automatically created for the user.

[0137] It's understandable that creating a second application account allows electronic devices to associate a second voiceprint with the second application account. This way, when the user subsequently uses the application, they can automatically switch to the second application account based on their voiceprint characteristics.

[0138] Optionally, the second application account can be a sub-account of a family. For example, during the creation of the second application account, the electronic device can obtain the identifier of the primary family account for the second application, such as a mobile phone number or UUID. Therefore, the authentication process for sub-account registration can be performed based on the identifier of the primary account.

[0139] Step 904: If a third application account associated with the second voiceprint information is obtained, switch to log in to the third application account.

[0140] Optionally, if the application was not previously logged into a third-party application account, it can automatically switch to that account. This allows for convenient automatic switching of application accounts based on the user's voice commands, facilitating the maintenance of records for different application accounts, such as video viewing history and favorites.

[0141] As shown in Figure 9, the application account can be automatically created when no application account exists based on voice commands. The association between the created application account and the voiceprint features extracted based on the voice commands can be established, which facilitates the maintenance of the user's application account, improves the convenience of maintaining different accounts for different users within the application, and enables personalized management of different users.

[0142] It should be noted that, in this embodiment of the application, the application account may also be associated with at least one of the following information: gender information and age information. This allows for more personalized recommendations within the application based on gender and / or age information. For example, if the age information indicates that the current application account is used by a child, then animated cartoons may be prioritized for recommendation.

[0143] For example, the target account for login can also be determined based on whether the user is a family member. Optionally, Figure 9 shows the implementation process in a scenario where the user is a family member. Here, family members can be understood as whether their voiceprint features are recorded in the operating system. As shown in Figure 4, family members include: father, mother, child 1, child 2, and elderly person.

[0144] For example, Figure 10 is another schematic flowchart of a switching method provided in an embodiment of this application. This process can be applied to electronic devices and may include the following steps:

[0145] Step 1001: Third voice command detected.

[0146] For example, the third voice command could also be "Help me open video application B".

[0147] Step 1002: In response to the third voice command, perform voiceprint recognition to determine that the user is not a family member; and launch the third application.

[0148] For example, the operating system of an electronic device can extract voiceprint features from the third voice command. From multiple voiceprint information stored in the operating system, it can be determined that no voiceprint information matches the voiceprint features, thus confirming that the user is not a family member, but rather a guest. Optionally, the voiceprint information stored in the operating system includes voiceprint features and a UUID, and matching can be performed based on the voiceprint features.

[0149] Combined with third voice commands, the third application can be video application B.

[0150] Step 1003: Switch to the specified account. The specified account may be, for example, the main family account or a guest account.

[0151] It's understandable that when a user is not a family member, there's no need to create an app account for that user, thus avoiding the maintenance of redundant app accounts. For example, a user might be a temporary guest; in this scenario, the user can be assumed to use the main family account to access the app.

[0152] It should be noted that when a user is detected as not being a family member, a prompt to enter voiceprint features can be displayed to the user, making it convenient for the user to enter voiceprint features and become a family member.

[0153] Based on the processes described above, different accounts can be created for different users within the same application. For example, an application may include a main family account and multiple sub-family accounts. To facilitate the management of multiple accounts, this application embodiment also provides an account aging process. For example, Figure 11 is another flowchart illustrating a switching method provided in this application embodiment. This process can be applied to electronic devices and may include the following steps:

[0154] Step 1101: A first event is detected. The first event is used to indicate that the fourth application account has not been used within a preset time.

[0155] For example, the preset time can be 1 year, etc.

[0156] Step 1102: In response to the first event, delete the fourth application account. For example, delete the association between the fourth application account and the voiceprint information.

[0157] The account aging process illustrated in Figure 11 facilitates application account management, allowing for the timely aging of expired application accounts and thus improving the efficiency of application account management. Furthermore, it can be understood that when a user subsequently reuses the application, a new application account can be created for that user based on any of the processes shown in Figures 7 to 10.

[0158] In this application embodiment, based on the various embodiments of account switching via voiceprint recognition described above, facial recognition can be combined for more accurate switching. For example, when a child is identified through voiceprint recognition, the accuracy of switching application accounts can be achieved by combining the image data captured by the camera with whether the child's facial features are included. For instance, if no child's facial features are captured, a pop-up window and / or voice prompt can be displayed to the user to determine whether to switch to the child's corresponding application account.

[0159] Based on the inventive concept similar to that described in the foregoing embodiments, Figure 12 is another schematic flowchart of a switching method provided by an embodiment of this application. This process may include the following steps:

[0160] Step 1201: In the first interface, a first voice command is detected. The first interface is used to instruct the first application to log in to the first account. For example, the first account can be understood as the original login account of the first application.

[0161] Step 1202: In response to the first voice command, display a second interface. The second interface is used to instruct the first application to log in to the second account. The first voiceprint information of the first voice command is associated with the second account. For example, the second account can be understood as the account logged in after switching in the first application.

[0162] The specific implementation process of steps 1201 and 1202 can be found in the foregoing embodiments, and will not be repeated in this application.

[0163] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the electronic device in the methods described in the embodiments of this application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations. For example, steps 701 to 704 performed by the electronic device in the embodiment shown in FIG. 7, or steps 705 to 708 in FIG. 8. Alternatively, steps 901 to 904 performed by the electronic device in the embodiment shown in FIG. 9. Alternatively, steps 1001 to 1003 performed by the electronic device in the embodiment shown in FIG. 10. Alternatively, steps 1101 to 1102 performed by the electronic device in the embodiment shown in FIG. 11. Alternatively, steps 1201 to 1202 performed by the electronic device in the embodiment shown in FIG. 12.

[0164] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor performs the functions performed by the electronic device in the various methods described in the embodiments of this application.

[0165] Steps 701 to 704 performed by the electronic device in the embodiment shown in FIG. 7, or steps 705 to 708 in FIG. 8. Alternatively, steps 901 to 904 performed by the electronic device in the embodiment shown in FIG. 9. Alternatively, steps 1001 to 1003 performed by the electronic device in the embodiment shown in FIG. 10. Alternatively, steps 1101 to 1102 performed by the electronic device in the embodiment shown in FIG. 11. Alternatively, steps 1201 to 1202 performed by the electronic device in the embodiment shown in FIG. 12.

[0166] Based on the above embodiments, this application also provides a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the methods described in the embodiments of this application.

[0167] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.

[0168] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.

[0169] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices. Those skilled in the art will understand that the embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0170] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0171] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0172] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0173] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A switching method, characterized in that, Applied to electronic devices, the method includes: In the first interface, a first voice command is detected, and the first interface is used to indicate that the first application has logged into the first account; In response to a first voice command, a second interface is displayed. The second interface is used to instruct the first application to log in to a second account. The first voiceprint information of the first voice command is associated with the second account.

2. The method according to claim 1, characterized in that, The method further includes: In response to the second voice command, a third interface is displayed, which is used to instruct the first application to log in to a third account, which is a newly created account; Establish the association between the second voiceprint information of the second voice command and the third account.

3. The method according to claim 1 or 2, characterized in that, The response to the first voice command to display the second interface includes: Extract the first voiceprint information from the first voice command; Based on the first voiceprint information, determine the first identifier; Based on the first identifier, the second account is found from the M accounts.

4. The method according to claim 3, characterized in that, The first identifier is a universally unique identifier (UUID).

5. The method according to any one of claims 1 to 4, characterized in that, Before detecting the first voice command, the method further includes: In response to a first operation instruction, the first voiceprint information is saved, wherein the first operation instruction is used to record the voiceprint features of the first voiceprint information. Generate a first identifier for the first voiceprint information; In response to a second operation instruction, an association is established between the first identifier and the second account, wherein the second operation instruction is used to instruct the establishment of the association between the first identifier and the second account.

6. The method according to any one of claims 1 to 5, characterized in that, The second account is a preset account, and the first voiceprint information is from an unsaved user.

7. The method according to claim 5, characterized in that, The preset account is either a family master account or a visitor account.

8. An electronic device, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 7.

10. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 7.