CN113709294A - State management and UI (user interface) updating method, device and equipment of voice assistant - Google Patents

State management and UI (user interface) updating method, device and equipment of voice assistant Download PDF

Info

Publication number
CN113709294A
CN113709294A CN202110845794.1A CN202110845794A CN113709294A CN 113709294 A CN113709294 A CN 113709294A CN 202110845794 A CN202110845794 A CN 202110845794A CN 113709294 A CN113709294 A CN 113709294A
Authority
CN
China
Prior art keywords
interface
voice assistant
user
button
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110845794.1A
Other languages
Chinese (zh)
Inventor
黑建业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110845794.1A priority Critical patent/CN113709294A/en
Publication of CN113709294A publication Critical patent/CN113709294A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Acoustics & Sound (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device and equipment for managing the state and updating a UI (user interface) of a voice assistant, wherein the method comprises the following steps: firstly, acquiring initialization information of a target voice assistant; and determining the initialization state of the target voice assistant according to the initialization information, then responding to the click operation of the user on the functional button of the page of the target voice assistant, entering the corresponding functional state and displaying the corresponding functional interface, then generating callback data through the functional interface according to the acquired input data of the user on the functional interface, updating the content of the functional interface by utilizing the callback data, and further responding to the click operation of the user on the return button in the functional interface and returning to the initialization state of the target voice assistant. Therefore, the method and the device can realize clear management of the voice assistant state and layered updating of the UI based on the state machine management and the layered thought, thereby reducing unnecessary data refreshing and resource waste.

Description

State management and UI (user interface) updating method, device and equipment of voice assistant
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for managing a state and updating a UI of a voice assistant.
Background
Along with the improvement of living standard of people, the popularization degree of intelligent equipment is higher and higher, and under the application scene of smart home, a voice assistant is a common application scene, for example, a voice assistant in Haierzhi family mobile phone software (APP for short) "Xiao you Lian" and the like. All intelligent devices and application scenes can be linked together through the voice assistant, such as consulting after-sales services through voice, controlling the temperature and wind speed of the intelligent air conditioner, and the like. The voice assistant is a small state machine, and for the front end, an important issue facing the front end is state management, and User Interface (UI) management in different states needs to be considered in the state management process to present different states and responses for the User, so as to play a complete assistant role. Therefore, how to dynamically manage the status update and UI interface change of the voice assistant to update the UI according to different data changes and event flows is an important issue.
However, the conventional management and update method is to perform the whole page refresh completely according to the data driving, which may cause unnecessary data refresh and generate unnecessary resource waste. Or, simply managing the change of the page, actively requesting the corresponding data after entering the corresponding page, waiting for data callback, and updating the UI. However, in this processing method, the state management timing is unclear, the maintenance of the subsequent timing is not flexible, and for a complex scenario, the state of the voice assistant (such as "little preferred online") is very complex and even cannot support the state management capability.
Disclosure of Invention
The embodiment of the application mainly aims to provide a method, a device and equipment for state management and UI (user interface) update of a voice assistant, which can realize clear management of the state of the voice assistant and accurate update of the UI based on state machine management and layering thought, and reduce unnecessary data refreshing and resource waste.
The embodiment of the application provides a method for managing the state and updating a UI (user interface) of a voice assistant, which comprises the following steps:
acquiring initialization information of a target voice assistant; determining the initialization state of the target voice assistant according to the initialization information;
responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data;
and returning to the initialization state of the target voice assistant in response to the clicking operation of the user on a return button in the functional interface.
In one possible implementation, the function button is a microphone button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the click operation of the user on the target voice assistant page microphone button, entering a sound receiving state and displaying a sound receiving interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
generating callback data through a voice interface according to the acquired voice data input by the user on the radio interface, and updating the content of the radio interface by using the callback data. .
In one possible implementation manner, the function button is a text button or a recommended corpus button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the clicking operation of the user on the text button or the recommended corpus button of the target voice assistant page, entering a chat state and displaying a chat interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
and generating callback data through the chat interface according to the obtained chat data input by the user on the chat interface, and updating the chat interface content by using the callback data.
In one possible implementation, the function button is a complaint button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the click operation of the user on the complaint button of the target voice assistant page, entering a complaint state and displaying a complaint interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
and generating callback data through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and updating the chat interface content by utilizing the callback data.
In a possible implementation, the method further includes:
and switching different function states in the target voice assistant, and correspondingly switching and displaying different function interfaces.
The embodiment of the present application further provides a device for managing the state and updating the UI of the voice assistant, where the device includes:
the acquisition unit is used for acquiring the initialization information of the target voice assistant; determining the initialization state of the target voice assistant according to the initialization information;
the entry unit is used for responding to the clicking operation of the user on the function button of the target voice assistant page, entering a corresponding function state and displaying a corresponding function interface;
the updating unit is used for generating callback data through a functional interface according to the acquired input data of the user on the functional interface and updating the content of the functional interface by using the callback data;
and the return unit is used for responding to the clicking operation of the user on a return button in the functional interface and returning to the initialization state of the target voice assistant.
In one possible implementation, the function button is a microphone button; the entry unit is specifically configured to:
responding to the click operation of the user on the target voice assistant page microphone button, entering a sound receiving state and displaying a sound receiving interface;
the update unit is specifically configured to:
generating callback data through a voice interface according to the acquired voice data input by the user on the radio interface, and updating the content of the radio interface by using the callback data.
In one possible implementation manner, the function button is a text button or a recommended corpus button; the entry unit is specifically configured to:
responding to the clicking operation of the user on the text button or the recommended corpus button of the target voice assistant page, entering a chat state and displaying a chat interface;
the update unit is specifically configured to:
and generating callback data through the chat interface according to the obtained chat data input by the user on the chat interface, and updating the chat interface content by using the callback data.
In one possible implementation, the function button is a complaint button; the entry unit is specifically configured to:
responding to the click operation of the user on the complaint button of the target voice assistant page, entering a complaint state and displaying a complaint interface;
the update unit is specifically configured to:
and generating callback data through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and updating the chat interface content by utilizing the callback data.
In a possible implementation manner, the apparatus further includes:
and the switching unit is used for switching different function states in the target voice assistant and correspondingly switching and displaying different function interfaces.
The embodiment of the present application further provides a device for managing a state and updating a UI of a voice assistant, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is used for storing one or more programs, and the one or more programs comprise instructions which when executed by the processor cause the processor to execute any one implementation of the state management and UI updating method of the voice assistant.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is enabled to execute any implementation manner of the above-mentioned method for managing a state of a voice assistant and updating a UI.
According to the method, the device and the equipment for managing the state and updating the UI of the voice assistant, the initialization information of a target voice assistant is obtained firstly; and determining the initialization state of the target voice assistant according to the initialization information, then responding to the click operation of the user on the functional button of the page of the target voice assistant, entering the corresponding functional state and displaying the corresponding functional interface, then generating callback data through the functional interface according to the acquired input data of the user on the functional interface, updating the content of the functional interface by utilizing the callback data, and further responding to the click operation of the user on the return button in the functional interface and returning to the initialization state of the target voice assistant. Therefore, the embodiment of the application can realize clear management of the voice assistant state and layered updating of the UI based on the state machine management and the layered thought, thereby reducing unnecessary data refreshing and resource waste.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for managing a status and updating a UI of a voice assistant according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data source of a target voice assistant according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a principle model of a hierarchical update UI according to an embodiment of the present application;
FIG. 4 is a diagram illustrating the status management of the primary content area of a target voice assistant according to an embodiment of the present application;
FIG. 5 is a diagram illustrating status management of a header area of a target voice assistant according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a status management of a bootstrap of a target voice assistant according to an embodiment of the present application;
FIG. 7 is a diagram illustrating management of the radio reception status in the main content area of the target voice assistant according to an embodiment of the present application;
FIG. 8 is an interaction sequence diagram for performing status management and UI update by using a preferred online as a target voice assistant according to an embodiment of the present application;
fig. 9 is a schematic composition diagram of a device for managing a state and updating a UI of a voice assistant according to an embodiment of the present application.
Detailed Description
In an application scenario of smart home, a voice assistant is a relatively common application scenario, for example, a voice assistant "small-priority online" in an application (APP for short) of a hail smart home. However, the existing state management and interface update modes for the voice assistant are completely driven according to data, and the whole page is refreshed, so that unnecessary data refreshing is possibly caused, and unnecessary resource waste is generated. Or, simply managing the change of the page, actively requesting the corresponding data after entering the corresponding page, waiting for data callback, and updating the UI. However, in this processing method, the state management timing is unclear, the maintenance of the subsequent timing is not flexible, and for a complex scenario, the state of the voice assistant (such as "little preferred online") is very complex and even cannot support the state management capability.
In order to solve the defects, the application provides a method, a device and equipment for state management and UI (user interface) update of a voice assistant, and the method comprises the steps of firstly acquiring initialization information of a target voice assistant; and determining the initialization state of the target voice assistant according to the initialization information, then responding to the click operation of the user on the functional button of the page of the target voice assistant, entering the corresponding functional state and displaying the corresponding functional interface, then generating callback data through the functional interface according to the acquired input data of the user on the functional interface, updating the content of the functional interface by utilizing the callback data, and further responding to the click operation of the user on the return button in the functional interface and returning to the initialization state of the target voice assistant. Therefore, the embodiment of the application can realize clear management of the voice assistant state and layered updating of the UI based on the state machine management and the layered thought, thereby reducing unnecessary data refreshing and resource waste.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First embodiment
Referring to fig. 1, a schematic flowchart of a method for managing a state and updating a UI of a voice assistant provided in this embodiment is shown, where the method includes the following steps:
s101: acquiring initialization information of a target voice assistant; and determines the initialization state of the target voice assistant based on the initialization information.
In this embodiment, any voice assistant that implements state management and UI update by using the method provided by the present application is defined as a target voice assistant. Moreover, it should be noted that the present embodiment does not limit the application scenario of the target voice assistant, for example, the target voice assistant may be located in a shopping APP or an entertainment APP. For example, the target voice assistant may be the voice assistant "little preferred online" in Haier's intellect home.
It can be understood that, in order to implement the status management and UI update of the target voice assistant, the initialization information of the target voice assistant needs to be acquired first; and determines the initialization state of the target voice assistant based on the initialization information. For example, the corpus data and the complaint question data that need to be displayed in the main content area of the target voice assistant may be acquired, and then initialized through the trigger ACTION of ACTION _ AI _ INIT to form a corpus list and a complaint question list that need to be displayed in the main content area of the target voice assistant, so as to execute the subsequent step S102.
S102: and responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface.
It should be noted that, for the target voice assistant, the data source is often callback data generated after the user input data is processed by the SDK through the user input and call function interface, as shown in fig. 2, in response to the user clicking the function button of the target voice assistant page, the state of the target voice assistant (e.g. little preferred online) or the UI content is changed by the operation of speaking through a microphone and the data feedback of the function interface (which is defined as AISDK herein), so that the factors triggering the change of the target voice assistant are only two types of data returned by the user input and the SDK, but the situations are very many, as shown in fig. 2.
Therefore, the target voice assistant generally involves many situations and states, and for this reason, the inventor considers using the state machine idea to perform the state management of the target voice assistant, so as to more conveniently comb and control different situations. When the state of the target voice assistant is managed, the target voice assistant can be divided into different levels according to the change range of the content area, so that the control of the data updating range is facilitated, namely, different interfaces are updated layer by layer.
On this basis, after the initialization state of the target voice assistant is determined through step S101, further, in response to the click operation of the user on the function button of the page of the target voice assistant, the corresponding function state is entered and the corresponding function interface is displayed.
The target voice assistant page function buttons can comprise a microphone button, a text button (or a recommended corpus button), a complaint button and the like, the three buttons respectively and correspondingly trigger three different states and display interfaces, namely a radio receiving state, a chat state and a complaint state, and the display interfaces are correspondingly a radio receiving interface, a chat interface, a complaint interface and the like.
S103: and generating callback data through the functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data.
In this embodiment, after the functional interface (e.g., a chat interface) is displayed for the user in step S102, the user may input corresponding data on the functional interface, such as inputting voice data on a radio interface, inputting a complaint question on a complaint interface, and the like. And generating callback data through the functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data.
In a possible implementation manner of the embodiment of the application, when the function button of the target voice assistant page is a microphone button, the microphone button can be clicked by a user, a radio reception state is entered and a radio reception interface is displayed, then callback data is generated through the voice interface according to the acquired voice data input by the user on the radio reception interface, and the content of the radio reception interface is updated by using the callback data.
Or, in another possible implementation manner of the embodiment of the application, when the function button of the target voice assistant page is a text button or a corpus recommended button, the chat state can be entered and the chat interface is displayed in response to the click operation of the user on the text button or the corpus recommended button, and then callback data is generated through the chat interface according to the obtained chat data input by the user on the chat interface, and the content of the chat interface is updated by using the callback data.
Still alternatively, in another possible implementation manner of the embodiment of the present application, when the function button of the target voice assistant page is a complaint button, the complaint state can be entered and the complaint interface is displayed in response to a click operation of a user on the complaint button of the target voice assistant page, and then callback data is generated through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and the content of the chat interface is updated by using the callback data.
The inventor utilizes the idea of layering from entering the function page to updating the function page, and realizes the updating of different UIs by two layers.
Specifically, the schematic model diagram of the hierarchical update UI shown in fig. 3 includes two levels, which are: event of status update, event of UI update. And the corresponding state driving event is also divided into two layers correspondingly, which are respectively: (1) initiating an ACTION _ AI _ INIT triggered by an initialization process and a return button click event; the characters or the recommended corpora are communicated with the AISDK interface, or the voice recognition process is finished, and the characters or the recommended corpora are driven to ENTER a chat interface through the ACTION _ ENTER _ CONTACT; the microphone button is clicked, and the ACTION _ ENTER _ TALK ENTERs the sound receiving interface. (2) Returning the reply content of the AISDK interface, and updating the chat interface content through an ACTION _ UPDATE _ CONTACT _ UI; and returning by the voice reception interface, and updating the contents of the voice reception interface through the ACTION _ UPDATE _ TALK _ UI.
Next, the present embodiment will describe the status management and UI update process of the target voice assistant in detail, and for understanding, the target voice assistant is "xiaoyou online" in the hail wisdom house APP, and as shown in fig. 4 to fig. 7, state diagrams of the main content area, the title bar, the xiaoyou guide and the toolbar of the xiaoyou online are presented respectively.
As shown in fig. 4, the main content area is mainly divided into: the system comprises a corpus list, a chat interface, a complaint question list and a radio interface. The corpus list state is mainly triggered through the ACTION _ AI _ INIT, and is driven to enter through a scene of opening a small-priority online initialization process and clicking a return button; the chat interface state is triggered through ACTION _ ENTER _ CONTACT, the recommended corpora are correspondingly clicked in the occurrence scene, and the keyboard input problem and the voice recognition are finished; the COMPLAINT question list state is triggered by clicking a feedback button, and the state is updated through ACTION _ ENTER _ COMPLAINT; the state of the radio interface is triggered by the ACTION _ ENTER _ TALK, and a scene is triggered to correspondingly click a microphone button.
In addition, the chat interface state and the sound reception state may be self-updated, and the corresponding ACTIONs are ACTION _ UPDATE _ CONTACT _ UI and ACTION _ UPDATE _ TALK _ UI, respectively.
Therefore, in a possible implementation manner of the embodiment of the application, different function states in the target voice assistant may be switched with each other, and different function interfaces are correspondingly switched and displayed. For example, the sound receiving state can be switched from a short-time online sound receiving state to a chat state, and then the chat state is switched to a sound recovering state; and the chat state is switched to enter the complaint state, or the radio reception state is switched to enter the complaint state, and the like.
It should be noted that, as can be seen from fig. 3 and 8, the optimization of the present application is mainly to update the state of the small-preference online main content area, specifically, a layering model is introduced on the basis of a state machine by referring to a layering thought in a software architecture, events and actions in state management are added to the layering thought, the events are divided into state update events and UI update events, and the actions are divided into state update actions and UI update actions; secondly, in the process of layout updating, the updating nodes are also updated, for example, the main content area is switched to a chat interface, then the radio reception character string is updated in the state after the radio reception is finished, the state and the UI are not influenced in the state, accurate updating is realized, different levels of nodes concern different levels of data, and waste of updating is avoided.
The update node of the hierarchical management data is divided into two levels: the first level is a primary content area type update node and the second level is a data model update node associated with a different primary content area. After the update node of the first level is changed, the binding node of the second level is also switched, and the previous binding node is not updated any more, so that the change of irrelevant data update trigger states or UIs is prevented, and unnecessary UI rendering and refreshing are avoided.
S104: and returning to the initialization state of the target voice assistant in response to the clicking operation of the user on the return button in the functional interface.
In this embodiment, each functional interface of the target voice assistant includes a return button, and no matter in the process of performing management of any state or UI update, the user can receive a click operation on the return button, and the current functional state interface is restored to the initialization state interface. Namely, the initial state of the target voice assistant is returned by responding to the clicking operation of the user on the return button in the functional interface.
In summary, in the method for managing the state and updating the UI of the voice assistant provided in this embodiment, the initialization information of the target voice assistant is first obtained; and determining the initialization state of the target voice assistant according to the initialization information, then responding to the click operation of the user on the functional button of the page of the target voice assistant, entering the corresponding functional state and displaying the corresponding functional interface, then generating callback data through the functional interface according to the acquired input data of the user on the functional interface, updating the content of the functional interface by utilizing the callback data, and further responding to the click operation of the user on the return button in the functional interface and returning to the initialization state of the target voice assistant. Therefore, the embodiment of the application can realize clear management of the voice assistant state and layered updating of the UI based on the state machine management and the layered thought, thereby reducing unnecessary data refreshing and resource waste.
Second embodiment
The present embodiment will describe a status management and UI updating apparatus of a voice assistant, and please refer to the above method embodiments for related contents.
Referring to fig. 9, a schematic diagram of a state management and UI updating apparatus for a voice assistant according to this embodiment is shown, where the apparatus 900 includes:
an acquiring unit 901 configured to acquire initialization information of a target voice assistant; determining the initialization state of the target voice assistant according to the initialization information;
an entering unit 902, configured to respond to a user's click operation on a function button of the target voice assistant page, enter a corresponding function state, and display a corresponding function interface;
an updating unit 903, configured to generate callback data through a functional interface according to the acquired input data of the user on the functional interface, and update the content of the functional interface by using the callback data;
a returning unit 904, configured to return to the initialization state of the target voice assistant in response to a user clicking a return button in the functional interface.
In one implementation manner of this embodiment, the function button is a microphone button; the entry unit 902 is specifically configured to:
responding to the click operation of the user on the target voice assistant page microphone button, entering a sound receiving state and displaying a sound receiving interface;
the updating unit 903 is specifically configured to:
generating callback data through a voice interface according to the acquired voice data input by the user on the radio interface, and updating the content of the radio interface by using the callback data.
In an implementation manner of this embodiment, the function button is a text button or a recommended corpus button; the entry unit 902 is specifically configured to:
responding to the clicking operation of the user on the text button or the recommended corpus button of the target voice assistant page, entering a chat state and displaying a chat interface;
the updating unit 903 is specifically configured to:
and generating callback data through the chat interface according to the obtained chat data input by the user on the chat interface, and updating the chat interface content by using the callback data.
In one implementation manner of this embodiment, the function button is a complaint button; the entry unit 902 is specifically configured to:
responding to the clicking operation of the user on the complaint button of the target voice assistant page, triggering to enter a complaint state and displaying a complaint interface;
the updating unit 903 is specifically configured to:
and generating callback data through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and updating the chat interface content by utilizing the callback data.
In an implementation manner of this embodiment, the apparatus further includes:
and the switching unit is used for switching different function states in the target voice assistant and correspondingly switching and displaying different function interfaces.
Further, an embodiment of the present application further provides a device for managing a state and updating a UI of a voice assistant, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is used for storing one or more programs, and the one or more programs comprise instructions which when executed by the processor cause the processor to execute any one implementation method of the state management and UI updating method of the voice assistant.
Further, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the instructions cause the terminal device to execute any implementation method of the above-mentioned voice assistant state management and UI update method.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for state management and UI update of a voice assistant, the method comprising:
acquiring initialization information of a target voice assistant; determining the initialization state of the target voice assistant according to the initialization information;
responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data;
and returning to the initialization state of the target voice assistant in response to the clicking operation of the user on a return button in the functional interface.
2. The method for status management and UI update of a voice assistant according to claim 1, wherein the function button is a microphone button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the click operation of the user on the target voice assistant page microphone button, entering a sound receiving state and displaying a sound receiving interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
generating callback data through a voice interface according to the acquired voice data input by the user on the radio interface, and updating the content of the radio interface by using the callback data.
3. The method for status management and UI update of a voice assistant according to claim 1, wherein the function button is a text button or a recommended corpus button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the clicking operation of the user on the text button or the recommended corpus button of the target voice assistant page, entering a chat state and displaying a chat interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
and generating callback data through the chat interface according to the obtained chat data input by the user on the chat interface, and updating the chat interface content by using the callback data.
4. The method for status management and UI update of a voice assistant according to claim 1, wherein the function button is a complaint button; the responding to the clicking operation of the user on the functional button of the target voice assistant page, entering a corresponding functional state and displaying a corresponding functional interface comprises the following steps:
responding to the click operation of the user on the complaint button of the target voice assistant page, entering a complaint state and displaying a complaint interface;
generating callback data through a functional interface according to the acquired input data of the user on the functional interface, and updating the content of the functional interface by using the callback data, wherein the method comprises the following steps:
and generating callback data through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and updating the chat interface content by utilizing the callback data.
5. A voice assistant's state management and UI update apparatus, the apparatus comprising:
the acquisition unit is used for acquiring the initialization information of the target voice assistant; determining the initialization state of the target voice assistant according to the initialization information;
the entry unit is used for responding to the clicking operation of the user on the function button of the target voice assistant page, entering a corresponding function state and displaying a corresponding function interface;
the updating unit is used for generating callback data through a functional interface according to the acquired input data of the user on the functional interface and updating the content of the functional interface by using the callback data;
and the return unit is used for responding to the clicking operation of the user on a return button in the functional interface and returning to the initialization state of the target voice assistant.
6. The voice assistant's state management and UI update apparatus of claim 5, wherein the function button is a microphone button; the entry unit is specifically configured to:
responding to the click operation of the user on the target voice assistant page microphone button, entering a sound receiving state and displaying a sound receiving interface;
the update unit is specifically configured to:
generating callback data through a voice interface according to the acquired voice data input by the user on the radio interface, and updating the content of the radio interface by using the callback data.
7. The device for status management and UI update of a voice assistant according to claim 5, wherein the function button is a text button or a recommended corpus button; the entry unit is specifically configured to:
responding to the clicking operation of the user on the text button or the recommended corpus button of the target voice assistant page, entering a chat state and displaying a chat interface;
the update unit is specifically configured to:
and generating callback data through the chat interface according to the obtained chat data input by the user on the chat interface, and updating the chat interface content by using the callback data.
8. The device for status management and UI update of a voice assistant according to claim 5, wherein the function button is a complaint button; the entry unit is specifically configured to:
responding to the click operation of the user on the complaint button of the target voice assistant page, entering a complaint state and displaying a complaint interface;
the update unit is specifically configured to:
and generating callback data through the complaint interface according to the obtained complaint data input by the user on the complaint interface, and updating the chat interface content by utilizing the callback data.
9. A voice assistant's state management and UI update apparatus, comprising: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-4.
10. A computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to perform the method of any one of claims 1-4.
CN202110845794.1A 2021-07-26 2021-07-26 State management and UI (user interface) updating method, device and equipment of voice assistant Pending CN113709294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110845794.1A CN113709294A (en) 2021-07-26 2021-07-26 State management and UI (user interface) updating method, device and equipment of voice assistant

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110845794.1A CN113709294A (en) 2021-07-26 2021-07-26 State management and UI (user interface) updating method, device and equipment of voice assistant

Publications (1)

Publication Number Publication Date
CN113709294A true CN113709294A (en) 2021-11-26

Family

ID=78650492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110845794.1A Pending CN113709294A (en) 2021-07-26 2021-07-26 State management and UI (user interface) updating method, device and equipment of voice assistant

Country Status (1)

Country Link
CN (1) CN113709294A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584879A (en) * 2018-11-23 2019-04-05 华为技术有限公司 A kind of sound control method and electronic equipment
CN110069176A (en) * 2018-01-24 2019-07-30 阿里巴巴集团控股有限公司 A kind of interface processing method and device, quick start method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069176A (en) * 2018-01-24 2019-07-30 阿里巴巴集团控股有限公司 A kind of interface processing method and device, quick start method and device
CN109584879A (en) * 2018-11-23 2019-04-05 华为技术有限公司 A kind of sound control method and electronic equipment

Similar Documents

Publication Publication Date Title
US20190362252A1 (en) Learning user preferences in a conversational system
WO2020192450A1 (en) Interactive message processing method and apparatus, computer device and storage medium
JP5579251B2 (en) Providing extended service using message input window
JP6305033B2 (en) Method and system for providing a multi-user messenger service
CN107450903B (en) Information processing method and device
CN116737900A (en) Man-machine interaction processing system and method, storage medium and electronic equipment
WO2019154153A1 (en) Message processing method, unread message display method and computer terminal
CN107748686A (en) Starting guide method, apparatus, storage medium and the intelligent terminal of application program
CN103744575B (en) A kind of method and apparatus for the input auxiliary area for being used to provide input application
CN108491188B (en) The exploitative management method and device of voice dialogue product
CN112152913B (en) Service control method, device and system
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN103530039A (en) Method and terminal for switching application
CN105975540A (en) Information display method and device
CN109948151A (en) The method for constructing voice assistant
CN108351889A (en) The group of enhancing finds
JP2016524767A (en) Instant message management method, apparatus, program, and recording medium
CN111611514A (en) Page display method and device based on user login information and electronic equipment
CN110268430A (en) Bundle the shared of content
CN113724036A (en) Method and electronic equipment for providing question consultation service
CN110324230A (en) Method for showing interface, client and computer storage medium
CN113709294A (en) State management and UI (user interface) updating method, device and equipment of voice assistant
CN107797646A (en) Method, device, terminal device and storage medium
CN111641551A (en) Voice playing method, voice playing device and electronic equipment
Mohan et al. Chatbot for University Resource Booking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211126