CN114090148A - Information synchronization method and device, electronic equipment and computer readable storage medium - Google Patents

Information synchronization method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114090148A
CN114090148A CN202111284991.7A CN202111284991A CN114090148A CN 114090148 A CN114090148 A CN 114090148A CN 202111284991 A CN202111284991 A CN 202111284991A CN 114090148 A CN114090148 A CN 114090148A
Authority
CN
China
Prior art keywords
scene
information
identifier
field
current
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
CN202111284991.7A
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111284991.7A priority Critical patent/CN114090148A/en
Publication of CN114090148A publication Critical patent/CN114090148A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The embodiment of the application discloses an information synchronization method, an information synchronization device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving scene information and a user instruction of a current scene sent by a terminal; acquiring a pre-stored scene field according to the identifier of the current scene; and generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to indicate the terminal to correspondingly switch the current scene. And determining new scene information through the user instruction, the scene field and the characteristic information of the scene, and realizing the updating and synchronization of the scene information. The scene field information of the scene can be acquired by the server according to the scene identification, and the scene identification replaces the direct transmission of the scene field, so that the data volume transmitted during information synchronization is reduced, and the efficiency of information synchronization is improved.

Description

Information synchronization method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an information synchronization method, an information synchronization device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of computer technology, the types of terminal products are increasing, and the terminal products relate to the problem of front-end and back-end synchronization in the use process, for example, a front-end interface needs to keep synchronization with data of a background server, or the background server needs to keep synchronization with information of the front-end interface.
At present, in the process of keeping the front-end interface and the background data synchronous, the data volume of the front-end interface is large, so the speed is low in the transmission process, the efficiency of information synchronization is poor, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides an information synchronization method, an information synchronization device, electronic equipment and a computer readable storage medium, which can improve the efficiency of information synchronization.
The embodiment of the application provides an information synchronization method, which is applied to a server and comprises the following steps:
receiving scene information and a user instruction of a current scene sent by a terminal, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene;
acquiring a pre-stored scene field according to the identifier of the current scene;
and generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to indicate the terminal to correspondingly switch the current scene.
Correspondingly, an embodiment of the present application further provides an information synchronization apparatus, including:
the scene information receiving module is used for receiving scene information and a user instruction of a current scene sent by the terminal, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene;
the identification module is used for acquiring a pre-stored scene field according to the identifier of the current scene;
and the instruction generating module is used for generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to instruct the terminal to correspondingly switch the current scene.
Optionally, in some embodiments of the present invention, the pre-stored scene field includes a fixed field in a corresponding scene, the information synchronization apparatus further includes a fixed field generating module, and the fixed field generating module includes:
the extraction unit is used for extracting a fixed field in the preset scene information;
the first determining unit is used for determining the fixed field as a pre-stored scene field of the preset scene information;
the second determining unit is used for determining the identifier of the preset scene information and establishing the mapping relation between the identifier of the preset scene information and the pre-stored scene field;
an identification module comprising:
and the third determining unit is used for determining the pre-stored scene field according to the mapping relation and the identifier of the current scene.
Wherein, the instruction generation module includes:
the splicing unit is used for splicing the pre-stored scene fields and the characteristic information to generate a complete scene page;
the identification unit is used for identifying the user instruction to obtain an identification result;
and the generating unit is used for matching the recognition result with the complete scene page so as to generate a switching instruction of the current scene.
Wherein, the information synchronizer also comprises an identification generating module, and the identification generating module comprises:
the receiving unit is used for receiving the scene information sent by the terminal;
an identification unit for identifying an identifier of the scene information;
and the setting unit is used for setting the scene identifier corresponding to the scene information according to a preset rule and sending the scene identifier to the terminal if the identifier does not exist.
The embodiment of the application provides an information synchronization method, which is applied to a terminal and comprises the following steps:
acquiring scene information and a user instruction of a current scene, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene;
sending the scene information and the user instruction to a server to instruct the server to generate a switching instruction according to the scene information and the user instruction;
and receiving a switching instruction to correspondingly switch the current scene.
Correspondingly, the embodiment of the present application further provides a terminal, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring scene information and a user instruction of a current scene, and the scene information comprises characteristic information of the current scene and an identifier of the current scene;
the sending module is used for sending the scene information and the user instruction to the server so as to instruct the server to generate a switching instruction according to the scene information and the user instruction;
and the receiving module is used for receiving a switching instruction so as to correspondingly switch the current scene.
Optionally, in some embodiments of the present invention, the terminal further includes a setting module, where the setting module:
the system comprises a presetting module, a judging module and a judging module, wherein the presetting module is used for presetting identifications for scenes in a terminal and storing the identifications of each scene;
or the like, or, alternatively,
the indication setting module is used for sending the scene information to the server so as to indicate the server to set corresponding identification for the scene corresponding to the scene information;
and the receiving identification module is used for receiving and storing the identification set by the server for the scene.
The embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps in the information synchronization method when executing the computer program.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the information synchronization method are implemented.
According to the method and the device, when the scene interface of the terminal changes, the user instruction, the scene identification and the scene characteristic information are sent to the server, the server can determine the scene field corresponding to the scene interface according to the scene identification, and the switching instruction of the scene interface is generated according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 schematic view of a scene of an information synchronization method provided in an embodiment of the present application;
fig. 2 is a first flowchart of an information synchronization method according to an embodiment of the present application;
fig. 3 is a second flow chart of an information synchronization method provided in an embodiment of the present application;
FIG. 4 is a first structural diagram of an information synchronization apparatus according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an architecture of a server in an information synchronization apparatus according to an embodiment of the present disclosure;
fig. 6 is a second schematic structural diagram of an information synchronization apparatus provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
The embodiment of the application provides an information synchronization method, an information synchronization device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the present application provides an information synchronization apparatus suitable for an electronic device, where the electronic device may be a terminal or a server. The terminal may be a television, an intelligent voice device (such as a bluetooth sound device), a mobile phone, a Computer, a notebook, a desktop, or a Personal Computer (PC), and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the server may be directly or indirectly connected through wired or wireless communication.
In the embodiment of the present application, the information synchronization method may be executed by a terminal alone, or the information synchronization method may be executed by a server alone, or the information synchronization method may be executed by the terminal and the server together, please refer to fig. 1, which takes the case where the information synchronization method is executed by the terminal and the server together as an example, where other devices may be added on the basis of the terminal and the server to assist in completing the information synchronization method, where types of the other devices are not limited; the terminal and the server are connected through a network, for example, a wired or wireless network connection, and the specific implementation process is as follows:
the terminal device 10 receives instruction information of a user, acquires scene information (including feature information of a scene and an identifier of the scene) of a current scene of the terminal device after receiving the instruction information, and sends the scene information and the user instruction to the server 11 to instruct the server 11 to generate a switching instruction of the scene according to the scene information and the instruction information;
the server 11 analyzes the received scene information to obtain a scene identifier, determines a scene field corresponding to a scene interface according to the scene identifier, and then the server 11 generates a switching instruction of the scene according to the feature information of the scene in the received scene information, the scene field determined by analysis, and the user instruction; subsequently, the server 11 transmits the generated switching instruction to the terminal device 10 to enable the terminal device 10 to perform scene switching according to the switching instruction.
In this embodiment of the present application, a scene includes a music playing environment or a video playing environment (e.g., interface information currently displayed by a terminal device), and correspondingly, feature information of the scene includes audio and video information played in a scene interface, for example, a name of a tv series being played, a name of music, and the like. In the embodiment of the present application, the terminal device includes a terminal device with a display screen and a terminal device without a display screen, and thus, in the embodiment of the present application, the scene includes a scene with a visual graphical interface and a scene without a visual graphical interface.
In the embodiment of the present application, the instruction information may be obtained by converting voice information of a user, for example, the terminal device 10 may include an intelligent voice device, where the intelligent voice device determines the instruction information of the user by receiving and recognizing voice of the user, and the intelligent voice device may further convert the voice into corresponding text information so as to determine a corresponding operation object (for example, buttons such as "play", "pause", "fast forward" and the like in a scene) according to the text information.
In the embodiment of the present application, for example, a scene of a visual graphical interface is taken as an example, in a visual interface of the terminal device 10, a music playing interface or a video playing interface is displayed, and buttons such as "play", "pause", "fast forward" and the like are correspondingly displayed in the interface, so that when the scene information of the terminal device 10 is updated through a switching instruction, the currently displayed interface information of the terminal device 10 is correspondingly updated, for example, when it is determined that the instruction information of the user is an operation on a "play" button in the interface, music or video in the current interface is correspondingly turned on, and when it is determined that the instruction information of the user is an operation on a "pause" button in the interface, the music or video in the current interface is correspondingly turned off.
In the embodiment of the present application, the server 11 stores the association relationship between the identifier of the scene and the interface element set (scene field) of the scene, so that after receiving the identifier of the scene sent by the terminal device, the server 11 may determine the scene field of the scene corresponding to the identifier of the scene according to the association relationship between the identifier of the scene and the scene field, and then may generate the switching instruction desired by the user through the user instruction, the scene field, and the feature information of the scene.
For example, in the embodiment of the present application, a target pre-stored scene field operated by a user is determined by identifying user instruction information, new scene information is generated according to the target pre-stored scene field and feature information of an existing scene, the new scene information is sent to the terminal device 10, and the terminal device 10 displays the new scene information.
In the embodiment of the present application, the scene identifier is a unique identifier of a scene and is used to distinguish each scene, where in the embodiment of the present application, the scene identifier includes a scene number, a scene name, or a combination of the scene number and the scene name, or a field capable of distinguishing and identifying a current scene from other scenes, and in the embodiment of the present application, the scene identifier is preferably a scene number.
The embodiment of the application provides an information synchronization method, which can be applied to a server and specifically comprises the following steps:
and receiving scene information and a user instruction of the current scene, which are sent by a terminal, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene.
In the embodiment of the present application, the terminal device includes a device that needs synchronization between a front-end server and a background server, for example, a television, an intelligent voice device, a mobile phone, or a computer, where the scene includes an information display environment, for example, a visual music playing interface, a video playing interface, a shopping website interface, a vocabulary entry encyclopedia interface, and the like, and a corresponding music playing scene, a video playing scene, a shopping scene, and an encyclopedia scene, respectively.
In the embodiment of the application, the server can regenerate new scene information according to the scene information and the user instruction by receiving the scene information and the user instruction sent by the terminal.
The feature information includes content information being played in the current scene, for example, a name of a tv series being played, a name of music, and the like. The scene identification is used for uniquely identifying the scene, so that the server can accurately identify the current scene of the terminal equipment.
And acquiring a pre-stored scene field according to the identifier of the current scene.
Each identifier corresponds to a unique scene, so that the incidence relation between each scene identifier and the scene field can be stored in the server in advance, then the scene field in the current scene of the terminal is determined according to the scene identifier, the scene field of the current scene can be acquired according to the scene identifier, the data transmission quantity when the terminal and the server perform information synchronization is reduced, and the information synchronization efficiency is improved.
For scenes which are not identified in advance, the scenes can also be uploaded in a cloud OCR mode through screenshot, after cloud identification, the distributed identifications are returned to the terminal, and the terminal realizes voice scene information synchronization by reporting the identifications.
And generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to indicate the terminal to correspondingly switch the current scene.
The switching instruction expected by the user can be determined through the user instruction, the scene field and the characteristic information, so that the terminal equipment can update the scene information according to the switching instruction.
In this embodiment of the present application, the user instruction includes play, pause, or next, and the switching instruction includes play or pause of the series content corresponding to the feature information, or play of the series content of the next series.
According to the method and the device, when the scene interface of the terminal changes, the user instruction, the scene identification and the scene characteristic information are sent to the server, the server can determine the scene field corresponding to the scene interface according to the scene identification, and the switching instruction of the scene interface is generated according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an information synchronization method according to an embodiment of the present disclosure. The specific process of the information synchronization method executed by the server may be as follows:
101. and receiving scene information and a user instruction of the current scene, which are sent by a terminal, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene.
The feature information includes content information being played in the current scene, for example, a name of a tv series being played, a name of music, and the like. The scene identification is used for uniquely identifying the scene, so that the server can accurately identify the current scene of the terminal equipment.
The scene information sent by the terminal equipment and the user instruction are received, so that the server can generate new scene information according to the scene information and the user instruction, and further the updating and synchronization of the scene information of the terminal equipment are realized.
In the embodiment of the application, the user instruction may be determined by recognizing the voice information of the user, for example, the voice information of the user is converted into instruction information, so as to obtain the user instruction.
102. And acquiring a pre-stored scene field according to the identifier of the current scene.
The scene identifier corresponds to a unique scene, so that a scene field of a current scene can be obtained according to the scene identifier, wherein the scene field is a fixed field in the scene. For example, in the embodiment of the present application, a corresponding relationship between each identifier and a scene field corresponding to a scene may be pre-established, so that after receiving an identifier of a scene, a server may acquire a scene field corresponding to the scene from inside the server, so as to reduce data transmission amount during information synchronization; that is, optionally, in some embodiments, before the step "obtaining the pre-stored scene field according to the identifier of the current scene", the method further includes:
extracting a fixed field in preset scene information;
determining the fixed field as a pre-stored scene field of preset scene information;
and determining the identifier of the preset scene information, and establishing a mapping relation between the identifier of the preset scene information and a pre-stored scene field.
Then, the step "obtaining the pre-stored scene field according to the identifier of the current scene" includes:
and determining a pre-stored scene field according to the mapping relation and the identifier of the current scene.
Each identifier corresponds to one piece of scene information, and the scene field in the scene information is also fixed, so that the corresponding relationship between each scene identifier and the corresponding scene field can be stored in the server in advance, so that the server can acquire the scene field corresponding to the scene according to the identifier of the scene.
103. And generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to indicate the terminal to correspondingly switch the current scene.
Wherein, the switching instruction expected by the user is determined through the instruction of the user, the scene field and the characteristic information of the scene.
In the server, the scene information (interface information) of the terminal scene may be reconstructed according to the scene field and the feature information, and then, according to the user instruction, the switching instruction desired by the user is determined, that is, optionally, in some embodiments, the step "generating the switching instruction based on the user instruction, the pre-stored scene field, and the feature information" includes:
splicing the pre-stored scene fields and the characteristic information to generate a complete scene page;
identifying the user instruction to obtain an identification result;
and matching the recognition result with the complete scene page to generate a switching instruction of the current scene.
In the embodiment of the application, the scene identification sent by the terminal device is received, and the scene field of the scene is determined in the server according to the scene identification, so that the server can obtain the scene field of the current scene without receiving the scene field information sent by the terminal device, the data transmission amount when the terminal device and the server are synchronized is reduced, and the information synchronization efficiency is improved.
Through the matching of the user instruction identification result and the scene page, the switching instruction expected by the user can be determined.
In the embodiment of the application, the scene field of the scene stored in the server may be identified and extracted from the scene information, for example, after the terminal device scene interface is drawn, the scene field of the scene may be extracted from the scene information and stored in the server.
In some embodiments, the server may set the identifier of the current scene according to a preset rule and send the identifier to the terminal, so that the terminal can obtain the identifier corresponding to the current scene, that is, optionally, the method further includes:
receiving scene information sent by a terminal;
identifying an identifier of the scene information;
if the identifier does not exist, setting the identifier of the scene corresponding to the scene information according to a preset rule, and sending the identifier of the scene to the terminal.
Whether each scene corresponds to a unique identifier can be detected by detecting the scene identifier, and the scene identifier is generated by a preset rule under the condition that the scene identifier is lost, for example, after an interface picture is transmitted to a server by a terminal for Optical Character Recognition (OCR), an appointed number is returned; that is, the server receives the scene information and then recognizes the scene information, and then may respectively give numbers of different forms according to the receiving sequence, the receiving time, the type of the scene information, and the like, and then synchronizes the corresponding numbers to the terminal. According to the method and the device, when the scene interface of the terminal changes, the server can determine the scene field corresponding to the scene interface according to the scene identifier by receiving the user instruction, the scene identifier and the scene characteristic information, and generate the switching instruction of the scene interface according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction.
Referring to fig. 3, fig. 3 is a schematic flow chart of an information synchronization method according to an embodiment of the present disclosure. The specific process executed by the terminal in the information synchronization method may be as follows:
201. and acquiring scene information and a user instruction of the current scene, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene.
The feature information of the current scene includes content information being played in the current scene, for example, a name of a tv series being played, a name of music, and the like. The scene identification is used for uniquely identifying the scene, so that the server can accurately identify the current scene of the terminal equipment.
202. And sending the scene information and the user instruction to the server to instruct the server to generate a switching instruction according to the scene information and the user instruction.
The characteristic information of the scene, the identification of the scene and the user instruction are sent to the server, so that the server can generate a switching instruction expected by the user according to the characteristic information of the scene, the identification of the scene and the instruction information of the user.
203. And receiving a switching instruction to correspondingly switch the current scene.
The terminal equipment can generate new scene information according to the switching instruction by receiving the switching instruction sent by the server, so that the terminal equipment can switch the new scene information according to the instruction of the user.
In this embodiment of the present application, the identifier of the scene may be preset and stored in the scene information or generated by a server, and then the scene identifier is stored in the terminal by the server, that is, optionally, in some embodiments, before the step "acquiring the scene information and the user instruction of the current scene", the method further includes:
setting an identifier for a scene in a terminal in advance, and storing the identifier of each scene;
or the like, or, alternatively,
sending the scene information to a server to instruct the server to set corresponding identification for a scene corresponding to the scene information;
and receiving and storing the identification of the scene setting by the server.
By setting the identification of the scenes, each scene can correspond to a unique identification, and the server can conveniently identify the scene field information of the corresponding scene according to the identification. In an embodiment corresponding to the present application, different identifiers may be set in advance for different scenes in the terminal, for example, each scene is sequentially numbered, so that each scene has a corresponding number identifier; or, corresponding scene information is sent to the server in the operation process of the terminal, then the server automatically gives different forms of numbers according to the sequence or receiving time of receiving the scene information or the type of the scene information, and then the corresponding numbers are synchronized to the terminal. Namely: for the scenes which are not prestored, a cloud OCR mode can be uploaded through screenshot, and after cloud recognition, the distributed identification is returned to the terminal, so that automation is realized. The scene identification is automatically set through the server, so that the diversity of the scene identification generation mode is increased.
According to the method and the device, when the scene interface of the terminal changes, the user instruction, the scene identification and the scene characteristic information are sent to the server, the server can determine the scene field corresponding to the scene interface according to the scene identification, and the switching instruction of the scene interface is generated according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an information synchronization apparatus integrated in a server, where the information synchronization apparatus may include a scene information receiving module 301, an identification module 302, and an instruction generating module 303, which may specifically be as follows:
the scene information receiving module 301 is configured to receive scene information of a current scene and a user instruction sent by a terminal, where the scene information includes feature information of the current scene and an identifier of the current scene.
And the identifying module 302 is configured to obtain a pre-stored scene field according to the identifier of the current scene.
Optionally, in some embodiments of the present application, the apparatus further includes a pre-storing module, where the pre-storing module includes:
the extraction unit is used for extracting a fixed field in the preset scene information;
the determining unit is used for determining the fixed field as a pre-stored scene field of the preset scene information;
and the establishing unit is used for determining the identifier of the preset scene information and establishing the mapping relation between the identifier of the preset scene information and the pre-stored scene field.
The identification module 302 includes:
and the identification unit is used for determining the pre-stored scene field according to the mapping relation and the identifier of the current scene.
The instruction generating module 303 is configured to generate a switching instruction based on the user instruction, the pre-stored scene field, and the feature information, so as to instruct the terminal to perform corresponding switching on the current scene.
The instruction generating module 303 includes:
the splicing unit is used for splicing the pre-stored scene fields and the characteristic information to generate a complete scene page;
the identification unit is used for identifying the user instruction to obtain an identification result;
and the matching unit is used for matching the recognition result with the complete scene page so as to generate a switching instruction of the current scene.
The device also comprises an identification generation module, wherein the identification generation module comprises:
the receiving unit is used for receiving the scene information sent by the terminal;
the identification unit is used for identifying the identification of the scene information;
and the generating unit is used for setting the scene identifier corresponding to the scene information according to a preset rule and sending the scene identifier to the terminal if the identifier does not exist.
Referring to fig. 5, fig. 5 is a schematic diagram of an architecture of a server in the embodiment of the present application, which is specifically as follows:
311. a dialog system module: the system is used for receiving user instruction information and scene information;
312. an identification module: the scene field is used for identifying the scene field corresponding to the instruction information of the user;
313. the mapping relation storage module: the system comprises a data storage space, a scene field and a scene identifier, wherein the data storage space is used for acquiring the mapping relation between the scene identifier and the scene field in the scene from the data storage space and determining the pre-stored scene field of the current scene according to the scene identifier and the mapping relation;
314. natural complex ecosystem: for generating user-desired changed scene information (i.e., new scene information) from the scene information and the user instruction information;
315. data storage module (database): for storing system data, user data, and various scene data, etc.;
316. a calling module: and the storage module is used for calling the corresponding storage module to acquire the corresponding data after being triggered.
In the embodiment of the application, the scene information receiving module 301 receives the scene information and the user instruction sent by the terminal device, receives the scene information and the user instruction, the identifying module 302 identifies the scene field of the scene stored in the memory of the server according to the identifier in the scene information, and then the instruction generating module 303 determines the switching instruction expected by the user according to the scene field, the feature information and the user instruction of the scene.
According to the method and the device, the server can directly acquire the scene field of the scene according to the scene identification by receiving the scene characteristic information, the scene identification and the user instruction sent by the terminal, the transmission of the scene field is not needed, the data volume transmitted during information synchronization is reduced, and the efficiency of information synchronization is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an information synchronization apparatus integrated in a terminal according to the present application, where the information synchronization apparatus may include an obtaining module 321, a sending module 322, and a receiving module 323, which may specifically be as follows:
the obtaining module 321 is configured to obtain scene information of a current scene and a user instruction, where the scene information includes feature information of the current scene and an identifier of the current scene.
A sending module 322, configured to send the scene information and the user instruction to the server, so as to instruct the server to generate a switching instruction according to the scene information and the user instruction.
The receiving module 323 is configured to receive a switching instruction, so as to perform corresponding switching on a current scene.
Optionally, in some embodiments of the present application, the apparatus further includes an identifier generation module, where the identifier generation module includes:
the pre-generation unit is used for setting an identifier for a scene in the terminal in advance and storing the identifier of each scene;
the generation identification module comprises:
the server generation unit is used for sending the scene information to the server so as to instruct the server to set corresponding identification for the scene corresponding to the scene information;
and the identification receiving unit is used for receiving and storing the identification set by the server for the scene.
In the embodiment of the application, the obtaining module 321 obtains the scene information of the terminal device itself in the current scene and the user instruction, then the sending module 322 sends the scene information to the server to indicate that the server can generate the switching instruction expected by the user according to the scene information and the user instruction, and then the receiving module 323 correspondingly switches the current scene in the terminal device according to the switching instruction.
The method and the device for acquiring the scene field of the scene enable the server to acquire the scene field of the scene according to the identification in the scene information by sending the characteristic information and the identification of the current scene to the server, so that transmission of the scene field during information synchronization is avoided, data volume required during information synchronization is reduced, and information synchronization efficiency is improved.
In addition, the present application also provides an electronic device, as shown in fig. 7, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing the steps in any information synchronization method provided by the present application.
According to the method and the device, when the scene interface of the terminal changes, the user instruction, the scene identification and the scene characteristic information are sent to the server, the server can determine the scene field corresponding to the scene interface according to the scene identification, and the switching instruction of the scene interface is generated according to the user instruction, the scene field and the characteristic information, so that the terminal can switch the scene interface according to the switching instruction.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium having stored thereon a computer program, which can be loaded by a processor to perform the steps of any one of the information synchronization methods provided herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute any step in the information synchronization provided by the present application, the beneficial effects that can be achieved by any information synchronization method provided by the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is provided for an information synchronization method, an information synchronization apparatus, an electronic device, and a storage medium, and the principle and the implementation of the present invention are described herein by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information synchronization method applied to a server includes:
receiving scene information and a user instruction of a current scene sent by a terminal, wherein the scene information comprises characteristic information of the current scene and an identifier of the current scene;
acquiring a pre-stored scene field according to the identifier of the current scene;
and generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to instruct the terminal to correspondingly switch the current scene.
2. The method according to claim 1, wherein the pre-stored scene field comprises a fixed field in the corresponding scene, and accordingly, before the obtaining the pre-stored scene field according to the identifier of the current scene, the method further comprises:
extracting a fixed field in preset scene information;
determining the fixed field as a pre-stored scene field of the preset scene information;
determining the identifier of the preset scene information, and establishing a mapping relation between the identifier of the preset scene information and the prestored scene field;
the acquiring of the pre-stored scene field according to the identifier of the current scene includes:
and determining a pre-stored scene field according to the mapping relation and the identifier of the current scene.
3. The method of claim 1, wherein generating a switch instruction based on the user instruction, the pre-stored scene field, and the feature information comprises:
splicing the pre-stored scene field and the characteristic information to generate a complete scene page;
identifying the user instruction to obtain an identification result;
and matching the recognition result with the complete scene page to generate a switching instruction of the current scene.
4. The method according to any one of claims 1 to 3, wherein the information synchronization method further comprises:
receiving scene information sent by the terminal;
identifying an identity of the scene information;
if the identification does not exist, setting the identification of the scene corresponding to the scene information according to a preset rule, and sending the identification of the scene to the terminal.
5. An information synchronization method is applied to a terminal, and comprises the following steps:
acquiring scene information and a user instruction of a current scene, wherein the scene information comprises feature information of the current scene and an identifier of the current scene;
sending the scene information and the user instruction to a server to instruct the server to generate a switching instruction according to the scene information and the user instruction;
and receiving the switching instruction to correspondingly switch the current scene.
6. The method of claim 5, wherein the information synchronization method further comprises:
setting an identifier for a scene in a terminal in advance, and storing the identifier of each scene;
or the like, or, alternatively,
sending scene information to a server to indicate the server to set corresponding identification for a scene corresponding to the scene information;
and receiving and storing the identifier of the scene setting by the server.
7. An information synchronization apparatus, comprising:
the system comprises a scene information receiving module, a scene information processing module and a scene information processing module, wherein the scene information receiving module is used for receiving scene information and a user instruction of a current scene sent by a terminal, and the scene information comprises characteristic information of the current scene and an identifier of the current scene;
the identification module is used for acquiring a pre-stored scene field according to the identifier of the current scene;
and the instruction generating module is used for generating a switching instruction based on the user instruction, the pre-stored scene field and the characteristic information so as to instruct the terminal to correspondingly switch the current scene.
8. An information synchronization apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring scene information and a user instruction of a current scene, and the scene information comprises characteristic information of the current scene and an identifier of the current scene;
the sending module is used for sending the scene information and the user instruction to a server so as to instruct the server to generate a switching instruction according to the scene information and the user instruction;
and the receiving module is used for receiving the switching instruction so as to correspondingly switch the current scene.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the information synchronization method according to any one of claims 1-4 or 5-6 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the information synchronization method according to any one of claims 1 to 4 or 5 to 6.
CN202111284991.7A 2021-11-01 2021-11-01 Information synchronization method and device, electronic equipment and computer readable storage medium Pending CN114090148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111284991.7A CN114090148A (en) 2021-11-01 2021-11-01 Information synchronization method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111284991.7A CN114090148A (en) 2021-11-01 2021-11-01 Information synchronization method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114090148A true CN114090148A (en) 2022-02-25

Family

ID=80298565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111284991.7A Pending CN114090148A (en) 2021-11-01 2021-11-01 Information synchronization method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114090148A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090306985A1 (en) * 2008-06-06 2009-12-10 At&T Labs System and method for synthetically generated speech describing media content
CN106020668A (en) * 2016-05-23 2016-10-12 青岛海信移动通信技术股份有限公司 Song switching method and apparatus, and terminal
CN108234768A (en) * 2018-01-02 2018-06-29 联想(北京)有限公司 Resource switch control method, device and terminal device
US20190066682A1 (en) * 2017-08-29 2019-02-28 Baidu Online Network Technology (Beijing) Co., Ltd . Interface intelligent interaction control method, apparatus and system, and storage medium
CN109584879A (en) * 2018-11-23 2019-04-05 华为技术有限公司 A kind of sound control method and electronic equipment
CN110418181A (en) * 2019-07-25 2019-11-05 腾讯科技(深圳)有限公司 To the method for processing business of smart television, device, smart machine and storage medium
CN110660391A (en) * 2019-09-29 2020-01-07 苏州思必驰信息科技有限公司 Method and system for customizing voice control of large-screen terminal based on RPA (resilient packet Access) interface
CN110797022A (en) * 2019-09-06 2020-02-14 腾讯科技(深圳)有限公司 Application control method and device, terminal and server
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment
CN111385661A (en) * 2018-12-29 2020-07-07 Tcl集团股份有限公司 Method and terminal for controlling full-screen playing through voice
CN111475241A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Interface operation method and device, electronic equipment and readable storage medium
US20200379721A1 (en) * 2018-07-17 2020-12-03 Tencent Technology (Shenzhen) Company Ltd Multimedia playing control method and apparatus, terminal, and storage medium
CN112346695A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method for controlling equipment through voice and electronic equipment
CN112351304A (en) * 2020-09-24 2021-02-09 深圳Tcl新技术有限公司 Intelligent large screen control method, device, equipment and computer readable storage medium
CN113253971A (en) * 2021-07-09 2021-08-13 广州小鹏汽车科技有限公司 Voice interaction method and device, voice interaction system, vehicle and medium
US20210258357A1 (en) * 2018-11-29 2021-08-19 Guangzhou Shiyuan Electronics Co., Ltd. Method and device for recording and transmitting courseware, interactive white board and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090306985A1 (en) * 2008-06-06 2009-12-10 At&T Labs System and method for synthetically generated speech describing media content
CN106020668A (en) * 2016-05-23 2016-10-12 青岛海信移动通信技术股份有限公司 Song switching method and apparatus, and terminal
US20190066682A1 (en) * 2017-08-29 2019-02-28 Baidu Online Network Technology (Beijing) Co., Ltd . Interface intelligent interaction control method, apparatus and system, and storage medium
CN108234768A (en) * 2018-01-02 2018-06-29 联想(北京)有限公司 Resource switch control method, device and terminal device
US20200379721A1 (en) * 2018-07-17 2020-12-03 Tencent Technology (Shenzhen) Company Ltd Multimedia playing control method and apparatus, terminal, and storage medium
CN109584879A (en) * 2018-11-23 2019-04-05 华为技术有限公司 A kind of sound control method and electronic equipment
US20210258357A1 (en) * 2018-11-29 2021-08-19 Guangzhou Shiyuan Electronics Co., Ltd. Method and device for recording and transmitting courseware, interactive white board and storage medium
CN111385661A (en) * 2018-12-29 2020-07-07 Tcl集团股份有限公司 Method and terminal for controlling full-screen playing through voice
CN110418181A (en) * 2019-07-25 2019-11-05 腾讯科技(深圳)有限公司 To the method for processing business of smart television, device, smart machine and storage medium
CN112346695A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method for controlling equipment through voice and electronic equipment
CN110797022A (en) * 2019-09-06 2020-02-14 腾讯科技(深圳)有限公司 Application control method and device, terminal and server
CN110660391A (en) * 2019-09-29 2020-01-07 苏州思必驰信息科技有限公司 Method and system for customizing voice control of large-screen terminal based on RPA (resilient packet Access) interface
CN110928626A (en) * 2019-11-21 2020-03-27 北京金山安全软件有限公司 Interface switching method and device and electronic equipment
CN111475241A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Interface operation method and device, electronic equipment and readable storage medium
CN112351304A (en) * 2020-09-24 2021-02-09 深圳Tcl新技术有限公司 Intelligent large screen control method, device, equipment and computer readable storage medium
CN113253971A (en) * 2021-07-09 2021-08-13 广州小鹏汽车科技有限公司 Voice interaction method and device, voice interaction system, vehicle and medium

Similar Documents

Publication Publication Date Title
CN111709362B (en) Method, device, equipment and storage medium for determining important learning content
JP2021034003A (en) Human object recognition method, apparatus, electronic device, storage medium, and program
CN110035120A (en) Information push method, device, electronic equipment and storage medium
CN113807515A (en) Model training method and device, computer equipment and storage medium
CN114095793A (en) Video playing method and device, computer equipment and storage medium
CN112044061B (en) Game picture processing method and device, electronic equipment and storage medium
CN113596529A (en) Terminal control method and device, computer equipment and storage medium
CN113617027A (en) Cloud game processing method, device, equipment and medium
CN112163174A (en) Message display method and device, storage medium and computer equipment
CN113535541A (en) Test method, test device, storage medium and computer equipment
CN112843681A (en) Virtual scene control method and device, electronic equipment and storage medium
CN112382292A (en) Voice-based control method and device
CN114090148A (en) Information synchronization method and device, electronic equipment and computer readable storage medium
CN113676761B (en) Multimedia resource playing method and device and main control equipment
CN115589432A (en) Message push management method, device, medium and equipment
CN114417201A (en) Message processing method and device, computer equipment and storage medium
CN114116090A (en) Information display method and device, electronic equipment and computer readable storage medium
CN114090911A (en) Interface processing method and device, computer equipment and computer readable storage medium
CN111031354B (en) Multimedia playing method, device and storage medium
CN111708674A (en) Method, device, equipment and storage medium for determining key learning content
CN115002496B (en) Information processing method and device of live broadcast platform, computer equipment and storage medium
CN108881281A (en) A kind of playback method of Story machine, device, system, equipment and storage medium
CN113840177B (en) Live interaction method and device, storage medium and electronic equipment
CN114189641B (en) Video processing method, device, equipment and storage medium
CN114115657B (en) Display mode switching method, device, equipment and medium of cloud mobile phone

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