CN114531480A - Method, apparatus, device and storage medium for sharing data - Google Patents

Method, apparatus, device and storage medium for sharing data Download PDF

Info

Publication number
CN114531480A
CN114531480A CN202011185178.XA CN202011185178A CN114531480A CN 114531480 A CN114531480 A CN 114531480A CN 202011185178 A CN202011185178 A CN 202011185178A CN 114531480 A CN114531480 A CN 114531480A
Authority
CN
China
Prior art keywords
data
target
sharing
shared data
transmission data
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
CN202011185178.XA
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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202011185178.XA priority Critical patent/CN114531480A/en
Publication of CN114531480A publication Critical patent/CN114531480A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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

Abstract

The application discloses a method, a device, equipment and a storage medium for sharing data, and relates to the fields of data processing, Internet of things, voice technology and information flow. The specific implementation scheme is as follows: the data sharing end receives a target instruction sent by the cloud end, and the target instruction is generated based on a voice signal sent by the data sharing end received by the cloud end; according to the target instruction, determining indication information of target shared data; and acquiring target shared data according to the indication information, outputting the target shared data to the cloud end so that the cloud end determines target transmission data based on the target shared data, and pushing the target transmission data to a target terminal so that the target terminal acquires the target shared data based on the target transmission data. This implementation mode can directly share target shared data to target terminal through voice signal control, and control is simple to need not to install the remote controller and carry out loaded down with trivial details operation, promote user experience.

Description

Method, apparatus, device and storage medium for sharing data
Technical Field
The present application relates to the field of data processing, and in particular, to the field of data processing, internet of things, voice technology, and information flow, and more particularly, to a method, an apparatus, a device, and a storage medium for sharing data.
Background
At present, pictures and videos on a television need to be shared by storing the pictures and the videos into a local memory card and then importing the pictures and the videos into a mobile phone.
The smart television terminal is complex in operation, needs to use a memory card or network storage to dump data, and cannot be directly shared to other users. The instant communication software of the television end is used for sharing, and the remote controller is complex to operate.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and storage medium for sharing data.
According to a first aspect of the present disclosure, there is provided a method for sharing data, comprising: the data sharing end receives a target instruction sent by the cloud end, and the target instruction is generated based on a voice signal sent by the data sharing end received by the cloud end; according to the target instruction, determining indication information of target shared data; and acquiring target shared data according to the indication information, outputting the target shared data to the cloud end, enabling the cloud end to determine target transmission data based on the target shared data, and pushing the target transmission data to the target terminal, so that the target terminal acquires the target shared data based on the target transmission data.
According to a second aspect of the present disclosure, there is provided a method for sharing data, comprising: the cloud end receives a voice signal sent by the data sharing end, and analyzes the voice signal to obtain indication information of target shared data; determining a target terminal based on the indication information, generating a target instruction, and sending the target instruction to a data sharing end; receiving target shared data output by a data sharing end, and determining target transmission data based on the target shared data; and pushing the target transmission data to the target terminal so that the target terminal acquires the target shared data based on the target transmission data.
According to a third aspect of the present disclosure, there is provided a method for sharing data, comprising: the target terminal receives target transmission data pushed by the cloud; and acquiring target shared data based on the target transmission data.
According to a fourth aspect of the present disclosure, there is provided an apparatus for sharing data, comprising: the receiving unit is configured to receive a target instruction sent by the cloud end, and the target instruction is generated based on the cloud end receiving a voice signal sent by the data sharing end; an indication information determination unit configured to determine indication information of the target shared data according to the target instruction; and the output unit is configured to acquire the target shared data according to the indication information and output the target shared data to the cloud end, so that the cloud end determines target transmission data based on the target shared data and pushes the target transmission data to the target terminal, so that the target terminal acquires the target shared data based on the target transmission data.
According to a fifth aspect of the present disclosure, there is provided an apparatus for sharing data, comprising: the receiving unit is configured to receive a voice signal sent by the data sharing end and analyze the voice signal to obtain indication information of target shared data; a sending unit configured to determine a target terminal based on the indication information, generate a target instruction, and send the target instruction to the data sharing terminal; a target transmission data determination unit configured to receive target shared data output by the data sharing terminal and determine target transmission data based on the target shared data; and the pushing unit is configured to push the target transmission data to the target terminal so that the target terminal acquires the target shared data based on the target transmission data.
According to a sixth aspect of the present disclosure, there is provided an apparatus for sharing data, comprising: the receiving unit is configured to receive target transmission data pushed by the cloud end; an acquisition unit configured to acquire target shared data based on the target transmission data.
According to a seventh aspect of the present disclosure, there is provided an electronic device for sharing data, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for sharing data as described above.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for sharing data as described above.
According to the technology of this application when having solved data sharing, can not directly share for other users and the loaded down with trivial details problem of remote operation through memory card or network memory dump, can directly share target shared data to target terminal through voice signal control, control is simple to need not to install the remote controller and carry out loaded down with trivial details operation, promote user experience.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow chart of embodiment 1 of a method for sharing data according to the present application;
FIG. 3 is a schematic illustration of an application scenario of embodiment 1 of a method for sharing data according to the present application;
FIG. 4 is a flow chart of embodiment 2 of a method for sharing data according to the present application;
FIG. 5 is a flow chart of embodiment 3 of a method for sharing data according to the present application;
FIG. 6 is a flow chart of embodiment 4 of a method for sharing data according to the present application;
FIG. 7 is a flow chart of embodiment 5 of a method for sharing data according to the present application;
FIG. 8 is a flow chart of embodiment 6 of a method for sharing data according to the present application;
fig. 9 is a schematic structural diagram of embodiment 1 of an apparatus for sharing data according to the present application;
fig. 10 is a schematic structural diagram of embodiment 2 of an apparatus for sharing data according to the present application;
fig. 11 is a schematic structural diagram of embodiment 3 of an apparatus for sharing data according to the present application;
FIG. 12 is a block diagram of an electronic device for implementing a method for sharing data according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for sharing data or the apparatus for sharing data of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a data sharing node 101, a cloud node 102, and a target terminal. The data sharing terminal 101 may share the target shared data with the target terminal 103 through the cloud terminal 102 in a wired or wireless connection manner.
The data sharing terminal 101, the cloud terminal 102, and the target terminal 103 may be connected in a wireless manner. The data sharing terminal 101, the cloud terminal 102, and the target terminal 103 may be different terminal devices. The terminal device may be various electronic devices having a display screen and supporting network communication, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop portable computer, a desktop computer, and the like.
The APP is installed at the data sharing end 101, so that uploading, recognition and instruction receiving processing of voice signals are conducted. The target terminals 103 of the user and the friend contact who needs to share data also need to install corresponding APP software and log in an account to receive shared data and perform data processing. Friend contacts are friends that the user has added in the APP. As another implementation manner, the functions related to uploading, recognizing, and receiving processing of the voice signal may also be integrated into the data sharing terminal 101 and the target terminal 103, so that there is no need to install an APP with the related functions. Whether the APP having the functions of uploading, recognizing, and receiving and processing the instruction of the voice signal is installed in the data sharing terminal 101 and the target terminal 103 is not particularly limited in the present application.
With continued reference to fig. 2, a flow 200 of embodiment 1 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the data sharing end 101 in fig. 1. The APP is installed at the data sharing end 101, so that uploading, recognition and instruction receiving processing of voice signals are conducted. The method for sharing data of the embodiment comprises the following steps:
in step 201, a data sharing end receives a target instruction sent by a cloud end.
In this embodiment, an execution subject (for example, the data sharing terminal 101 in fig. 1) of the method for sharing data may receive the target instruction sent by the cloud terminal in a wired connection or a wireless connection manner. Specifically, the execution subject (for example, the data sharing terminal 101 in fig. 1) may be a smart television, a tablet computer with voice control, or a smart voice speaker with a screen, and the execution subject is not particularly limited in this application. The target instruction is generated based on the voice signal sent by the data sharing end received by the cloud end. Specifically, the target instruction may be a command that the cloud sends a data sharing end-based voice signal to a processor of the data sharing end to perform a data sharing operation, and may be composed of a string of binary codes, where the target instruction may indicate that "share screen capture", "share picture", "share video", "share screen recording for two minutes", "share screen recording for one minute" to scarlet (scarlet is a friend contact name of APP installed on the data sharing end) ", and the present application does not specifically limit the target instruction.
Step 202, according to the target instruction, determining indication information of the target shared data.
After the execution main body obtains the target instruction, the instruction information of the target shared data can be determined according to the target instruction. Specifically, the execution subject may obtain a historical target instruction, compare the current target instruction with the historical target instruction, find a historical target instruction that is the same as or similar to the current target instruction, and determine the indication information of the target shared data according to the same or similar historical target instruction. As another implementation manner, the execution main body may also parse the target instruction, determine whether the user wants to share a picture or a video, and whether the user wants to capture a screen or record the screen, and share the picture or the video to the user or share the picture or the video to the friend contact person, and use the parsing result of the implementation manner as the indication information of the target shared data.
And step 203, acquiring target shared data according to the indication information, and outputting the target shared data to a cloud.
In this embodiment, after obtaining the indication information, the execution main body may obtain the target shared data, and output the target shared data to the cloud end, so that the cloud end determines the target transmission data based on the target shared data, and pushes the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data. Specifically, for example, the execution main body may extract a current picture played by the data sharing end according to the "shared picture" in the indication information and output the current picture to the cloud; the execution main body can extract the current video played by the data sharing end according to the shared video in the indication information and output the current video to the cloud end; the execution main body can record a screen with corresponding duration according to the recording duration specified in the instruction from the reception of the target instruction according to 'one minute for recording the screen' in the indication information to obtain a recorded video; the execution main body can capture the screen of the content currently played by the data sharing end according to the screen capture sharing in the indication information and output the content to the cloud, and it can be understood that when the screen capture sharing in the indication information does not specify a sharing contact, the content is shared by default to the execution main body, and then target transmission data (namely, a message notification obtained based on the target sharing data, wherein the message notification contains information of a sharer, information (such as a picture or a video) of the target sharing data, and APP information, a storage address URL and check token information to be opened) is pushed by the cloud to a mobile terminal (such as a mobile phone, a tablet computer and the like) of the execution main body; the execution main body can share for minired according to 'record screen one minute' in the instruction information and record the screen for one minute to the content of data sharing end present broadcast to transmit to the high in the clouds, can understand that, when there is target sharing contact minired in the instruction information, follow-up target terminal that the minired corresponds of friend contact who is given APP installed on the data sharing end by high in the clouds propelling movement target transmission data. Specifically, the executing agent may determine, based on the name of "pinkish red", the Identification (ID) of the mobile terminal corresponding to the name of pinkish red, and then may determine, based on the Identification (ID), the target terminal to share data.
With continued reference to fig. 3, a schematic diagram of one application scenario of a method for sharing data according to the present application is shown. In the application scenario of fig. 3, the data sharing node 302 receives a target instruction B sent by the cloud 301, and the target instruction B is generated based on the cloud 301 receiving the voice signal a sent by the data sharing node 302. The data sharing end 302 determines the indication information 305 of the target shared data 304 according to the target instruction B. The data sharing terminal 302 obtains the target shared data 304 according to the indication information 305, and outputs the target shared data 304 to the cloud terminal 301, so that the cloud terminal 301 determines the target transmission data 306 based on the target shared data 304, and pushes the target transmission data 306 to the target terminal 303, so that the target terminal 303 obtains the target shared data 304 based on the target transmission data 306.
According to the embodiment, the target shared data can be directly shared to the target terminal through voice signal control, the control is simple, a remote controller does not need to be installed to conduct complex operation, and the user experience is improved.
With continued reference to FIG. 4, a flow 400 of embodiment 2 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the data sharing peer 101 in fig. 1. As shown in fig. 4, the method for sharing data of this embodiment may include the following steps:
step 401, a data sharing end receives a target instruction sent by a cloud end.
In this embodiment, the target instruction is generated based on a voice signal sent by the data sharing terminal received by the cloud terminal.
Step 402, according to the target instruction, determining indication information of the target shared data.
And step 403, acquiring target shared data according to the indication information, and outputting the target shared data to a cloud.
In this embodiment, after the execution main body obtains the indication information, the execution main body may obtain the target shared data according to the indication information, and output the target shared data to the cloud end, so that the cloud end determines the target transmission data based on the target shared data, and pushes the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data.
The principle of step 401 to step 403 is similar to that of step 201 to step 203, and is not described herein again.
In this embodiment, the cloud includes a speech recognition control server and a data storage server, and the method for sharing data further includes:
and step 404, receiving the storage address data and the check token data of the target shared data returned by the data storage service end.
The execution main body acquires the target shared data according to the indication information, and can receive the storage address data and the check token data of the target shared data returned by the data storage server after the target shared data is output to the cloud. Specifically, the storage address data may be a storage address of the target shared data in the cloud, and may be represented by a corresponding website. The verification token data may be a verification code that needs to be input by a user when obtaining target shared data at a cloud, for example, the verification code may be a verification code composed of limited numbers, for example, 0123, 34568, or a verification code composed of letters and numbers, for example, Y12U, or certainly, verification in a graph splicing form, and the like.
Step 405, sending the storage address data and the check token data to the voice recognition control server.
After the execution main body obtains the storage address data and the verification token data, the execution main body can send the storage address data and the verification token data to the voice recognition control server side at the cloud end, so that the voice recognition control server side generates target transmission data based on the storage address data and the verification token data and pushes the target transmission data to a target terminal. Specifically, the execution main body sends the storage address data and the check token data of the target shared data to the voice recognition control server side at the cloud end, so that the subsequent user can obtain the target shared data and perform position positioning and verification, and therefore the efficiency and the safety of obtaining the target shared data by the user are improved.
With continued reference to fig. 5, a flow 500 of embodiment 3 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the cloud 102 in fig. 1. The method for sharing data of the embodiment comprises the following steps:
step 501, the cloud receives a voice signal sent by a data sharing end, and analyzes the voice signal to obtain indication information of target shared data.
In this embodiment, an execution main body (for example, the cloud 102 in fig. 1) of the method for sharing data may receive a voice signal sent by a data sharing end through a wired connection or a wireless connection, and analyze the voice signal to obtain indication information of target shared data. Specifically, the voice signal may be a voice audio, and the cloud may perform voice recognition and semantic analysis on the received voice audio, for example, convert the voice into a text, and extract key information therein, such as whether a picture or a video is to be shared, whether a screen is to be captured or recorded, whether there is a designated sharing contact, and the like, which are indicated by the text converted from the voice signal, so as to serve as indication information of the target shared data.
Step 502, based on the indication information, determining a target terminal, generating a target instruction, and sending the target instruction to the data sharing terminal.
In this embodiment, after obtaining the indication information, the execution main body may determine the target terminal based on the indication information, generate the target instruction, and send the target instruction to the data sharing end. Specifically, the execution main body may determine the target terminal according to an Identifier (ID) corresponding to the user designated to share in the indication information; of course, if the user who does not specify sharing in the indication information is shared to the target terminal by default, the target terminal is a mobile terminal of the target terminal (for example, the target terminal may be a mobile phone or a tablet computer, which is not limited in the present application). Specifically, the execution main body may generate a target instruction of a string of binary codes according to target shared data such as "share screen capture", "share picture", "share video", "share screen recording for two minutes", "share screen recording for one minute to xiaohong (xiaohong is a friend contact name of APP installed on the data sharing end)", and the like in the indication information, and the specific form of the target instruction is not limited in the present application.
Step 503, receiving the target shared data output by the data sharing end, and determining the target transmission data based on the target shared data.
In this embodiment, after sending the target instruction to the data sharing end, the execution main body may receive the target shared data output by the data sharing end in a wired or wireless manner, and determine the target transmission data based on the target shared data. Specifically, the execution main body may trace back a data sharing end Identifier (ID) of the target shared data according to the target shared data (for indicating which data sharing end performs data sharing, for example, for indicating which smart television is), information (for example, picture or video) of the target shared data, and may configure an APP to be opened for the target shared data (the target shared data may be obtained by opening the APP), and determine information of the APP to be opened, storage address URL information (indicating an address at which the target shared data is stored), and check token information (when the target shared data is obtained, authentication is to be performed, for example, information such as an authentication code), and the like, so as to determine the target transmission data, that is, the target transmission data includes the data sharing end Identifier (ID), the information of the target shared data, the information of the APP to be opened, the data sharing end Identifier (ID), the target shared data, and the check token information of the target shared data to be opened, And storing the address URL information and the check token information to ensure that a user of the target terminal can accurately acquire the target shared data.
Step 504, pushing the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data.
After obtaining the target transmission data, the execution main body can immediately push or regularly push the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data.
According to the embodiment, the target transmission data is determined through the information such as the related storage address information, the check token information and the APP to be opened based on the target shared data, the target shared data can be accurately acquired by a user, and the target transmission data can be immediately or regularly pushed to the target terminal, for example, the target transmission data can be pushed to the user when the user eats, so that the normal working time of the user can be avoided from being disturbed, and the user experience is improved.
With continued reference to fig. 6, a flow 600 of embodiment 4 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the cloud 102 in fig. 1. The method for sharing data of the embodiment comprises the following steps:
step 601, the cloud receives a voice signal sent by the data sharing end, and analyzes the voice signal to obtain indication information of the target shared data.
Step 602, determining a target terminal based on the indication information, generating a target instruction, and sending the target instruction to the data sharing end.
The principle of step 601 to step 602 is similar to that of step 501 to step 502, and is not described here again.
Specifically, step 602 may be implemented by steps 6021 to 6022:
step 6021, based on the indication information, determining the target terminal.
Step 6022, based on the indication information, generating a target instruction and sending the target instruction to the data sharing end.
The principle of steps 6021 to 6022 is similar to that of step 502, and is not described here.
Specifically, step 6021 may be implemented by:
based on the indication information, a target identification is determined, step 60211.
In this embodiment, after obtaining the indication information, the execution main body may determine the target identifier based on the indication information. Specifically, the execution subject can determine that the screen shot sharing is shared to the execution subject by default according to the screen shot sharing in the indication information; the execution main body can determine to share the APP friend contact person 'xiaohong' added to the data sharing end according to 'screen capture sharing to xiaohong' in the indication information. Then, the execution subject may determine, according to the determined target sharing contact "pinkish", an Identifier (ID) corresponding to the "pinkish", and the identifier is the target identifier.
And step 60212, determining the target terminal according to the target identifier.
After determining the target identifier, the execution subject may determine the target terminal according to the target identifier. Specifically, the execution body may determine a target terminal corresponding to the target identifier according to a correspondence between a pre-stored Identifier (ID) and the terminal.
According to the embodiment, the corresponding target terminal is determined according to the identification corresponding to the target sharing contact in the indication information, so that the target sharing data can be shared more accurately, and the user experience is improved.
Step 603, receiving the target shared data output by the data sharing end, and determining target transmission data based on the target shared data.
The principle of step 603 is similar to that of step 503, and is not described here again.
Specifically, step 603 can be implemented by steps 6031 to 6032:
step 6031, target shared data output by the data sharing end is received.
In step 6032, target transmission data is determined based on the target shared data.
The principle of step 6031-step 6032 is similar to that of step 503, and is not described here again.
Specifically, step 6032 may be implemented by steps 60321 to 60322:
step 60321, receiving the storage address data and the check token data of the target shared data sent by the data sharing end.
In this embodiment, the execution main body may receive, by wired connection or wireless connection, the storage address data and the check token data of the target shared data sent by the data sharing end.
At step 60322, target transfer data is generated based on the storage address data and the check token data.
In this embodiment, after receiving the storage address data and the check token data, the execution main body may generate the target transmission data based on the storage address data and the check token data. Specifically, the execution body may encode the storage address data and the check token data for transmission, and determine the encoded data as the target transmission data. Of course, it can be understood that, when the execution body encodes the storage address data and the check token data, the storage address data and the check token data may be encoded separately, and then spliced, and the spliced data is determined as the target transmission data. The execution body may also fuse the storage address data and the check token data and then encode the data, where the fusion manner includes, but is not limited to, end-to-end splicing, and then determine the encoded data as the target transmission data. Of course, the target transmission data may include not only the storage address data and the check token data, but also independently encoded and then spliced or fused data of the data sharing end identifier, the APP to be opened, the information indicating the type of the target sharing data, and the like.
The embodiment can generate accurate target transmission data based on the storage address data and the check token data, so that a user can accurately find and acquire target shared data according to the generated target transmission data.
Step 604, pushing the target transmission data to the target terminal.
And the target terminal acquires the target shared data based on the target transmission data.
The principle of step 604 is similar to that of step 504, and is not described here again.
With continued reference to FIG. 7, a flow 700 of embodiment 5 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the target terminal 103 in fig. 1. The application installs APP software corresponding to the APP installed on the data sharing terminal 101 at the target terminal 103 to receive the target sharing data and perform data processing. The method for sharing data of the embodiment comprises the following steps:
in step 701, a target terminal receives target transmission data pushed by a cloud.
In this embodiment, an execution subject (for example, the target terminal 103 in fig. 1) of the method for sharing data may receive target transmission data pushed by the cloud in a wired connection or wireless connection manner. The target transmission data may include data sharing end Identification (ID), information of target shared data, information of APP to be opened, storage address URL information, and check token information. Of course, the target transmission data may also include a compressed file of the target shared data in the form of an attachment, or the target transmission data may include the target shared data in the form of an attachment.
Step 702, obtaining target shared data based on the target transmission data.
In this embodiment, after obtaining the target transmission data, the execution main body may obtain the target shared data based on the target transmission data. Specifically, the target shared data may exist in the target transmission data in a compressed form, and the execution subject may decompress the target shared data in the compressed form existing in the target transmission data to obtain the target shared data, and specifically, the target shared data in the compressed form may exist in a form of an attachment to the target transmission data. Of course, the target transmission data may also directly include the target shared data, for example, a picture or a video is directly added to the target transmission data in the form of an attachment, and the target shared data is obtained by downloading the attachment in the target transmission data.
The target terminal of the embodiment can accurately acquire the target shared data by transmitting data based on the target.
With continued reference to FIG. 8, a flow 800 of embodiment 6 of a method for sharing data according to the present application is shown. It should be noted that the method for sharing data provided in the embodiment of the present application may be executed by the target terminal 103 in fig. 1. The method for sharing data of the embodiment comprises the following steps:
step 801, a target terminal receives target transmission data pushed by a cloud.
Step 802, obtaining target shared data based on the target transmission data.
The principle of steps 801 to 802 is similar to that of steps 701 to 702, and is not described herein again.
Specifically, step 802 can be implemented by steps 8021 to 8022:
step 8021, parsing the target transmission data, and determining the storage address of the target shared data and the check token data.
In this embodiment, after obtaining the target transmission data, the execution main body may parse the target transmission data, and determine a storage address of the target shared data and check token data. Specifically, the data formats of the target transmission data in this embodiment may be two types: JSON, XML. In this embodiment, the target transmission data may be analyzed by using the Cocos2 d-x. Specifically, the Cocos2d-x provides support for the parsing of two data formats, namely JSON and XML, and mainly comprises the following steps: JOSN data analysis and XML data analysis. The JOSN data analysis process comprises the following steps: firstly creating a JSON file, then including document.h and cos-ext.h header files in the class, then obtaining a JSON file path through FileUtils, analyzing JSON data through a Document object, finally obtaining different types of data values, and then determining a storage address and check token data in the obtained different types of data values. The XML data parsing process comprises the following steps: firstly creating an XML file, then including a header file in the class and using a naming file, then obtaining the full path of the XML file, loading the XML file, finally obtaining elements and analyzing the storage address and the check token data. The present application does not specifically limit the analysis method of the target transmission data.
Step 8022, based on the storage address and the check token data, obtains the target shared data from the cloud.
In this embodiment, after the execution main body analyzes the storage address and the check token data, the execution main body may obtain the target shared data from the cloud based on the storage address and the check token data. Specifically, the execution main body responds to the target transmission data clicked by the user in the notification bar, can trigger the opening of the APP corresponding to the target transmission data, analyzes the target transmission data, finds the storage position of the target shared data in the cloud according to the storage address URL information in the analyzed target transmission data, accesses the position of the cloud for storing the target shared data according to the check token information, and obtains the target shared data from the position, for example, obtains a shared picture or video.
In the embodiment, the storage address and the check token data of the target shared data are determined by analyzing the target transmission data, the position of the target shared data in the cloud can be accurately positioned based on the storage address, and the position of the target shared data stored in the cloud can be conveniently accessed through the check token data, so that the target shared data can be more accurately acquired from the cloud.
With further reference to fig. 9, as an implementation of the methods shown in the above figures, the present application provides an embodiment 1 of an apparatus for sharing data, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 9, the apparatus 900 for sharing data of the present embodiment includes: a receiving unit 901, an indication information determining unit 902 and an output unit 903.
The receiving unit 901 is configured to receive a target instruction sent by the cloud, where the target instruction is generated based on the cloud receiving a voice signal sent by the data sharing end.
An indication information determination unit 902 configured to determine indication information of the target shared data according to the target instruction.
An output unit 903 configured to obtain the target shared data according to the indication information, and output the target shared data to the cloud, so that the cloud determines target transmission data based on the target shared data, and pushes the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data.
In some optional implementation manners of this embodiment, the cloud includes a voice recognition control server and a data storage server; and the receiving unit 901 is further configured to: receiving storage address data and verification token data of target shared data returned by a data storage server; the means for sharing data further comprises not shown in fig. 9: and the sending unit is configured to send the storage address data and the verification token data to the voice recognition control server so that the voice recognition control server generates target transmission data based on the storage address data and the verification token data and pushes the target transmission data to a target terminal.
It should be understood that units 901 to 903, which are recited in the apparatus 900 for sharing data, respectively correspond to the respective steps in the method described with reference to fig. 2. Thus, the operations and features described above for the method for sharing data in embodiment 1 are also applicable to the apparatus 900 and the units included therein, and are not described again here.
With further reference to fig. 10, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment 2 of an apparatus for sharing data, which corresponds to the method embodiment shown in fig. 5, and which can be applied in various electronic devices.
As shown in fig. 10, the apparatus 1000 for sharing data of the present embodiment includes: a receiving unit 1001, a transmitting unit 1002, a target transmission data determining unit 1003, and a pushing unit 1004.
The receiving unit 1001 is configured to receive the voice signal sent by the data sharing end, and analyze the voice signal to obtain the indication information of the target shared data.
A sending unit 1002 configured to determine a target terminal based on the indication information, generate a target instruction, and send the target instruction to the data sharing terminal.
And a target transmission data determination unit 1003 configured to receive the target shared data output by the data sharing terminal and determine the target transmission data based on the target shared data.
A pushing unit 1004 configured to push the target transmission data to the target terminal so that the target terminal acquires the target shared data based on the target transmission data.
In some optional implementations of this embodiment, the sending unit 1002 includes what is not shown in fig. 10: a target identifier determining subunit configured to determine a target identifier based on the indication information; and the target terminal determining subunit is configured to determine the target terminal according to the target identifier.
In some optional implementations of the present embodiment, the target transmission data determining unit 1003 is further configured to: receiving storage address data and check token data of target shared data sent by a data sharing end; target transmission data is generated based on the storage address data and the check token data.
It should be understood that units 1001 to 1004, which are recited in the apparatus 1000 for sharing data, respectively correspond to the respective steps in the method described with reference to fig. 5. Thus, the operations and features described above for the method for sharing data in embodiment 3 are also applicable to the apparatus 1000 and the units included therein, and are not described again here.
With further reference to fig. 11, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment 3 of an apparatus for sharing data, which corresponds to the method embodiment shown in fig. 7, and which can be applied to various electronic devices in particular.
As shown in fig. 11, the apparatus 1100 for sharing data of the present embodiment includes: a receiving unit 1101 and an acquisition unit 1102.
A receiving unit 1101 configured to receive target transmission data pushed by a cloud.
An acquisition unit 1102 configured to acquire target shared data based on the target transmission data.
In some optional implementations of this embodiment, the obtaining unit 1102 is further configured to: analyzing the target transmission data, and determining a storage address and check token data of the target shared data; and acquiring target shared data from the cloud based on the storage address and the check token data.
It should be understood that units 1101 to 1102 recited in the apparatus for sharing data 1100 correspond to respective steps in the method described with reference to fig. 7, respectively. Thus, the operations and features described above for the method for sharing data in embodiment 5 are also applicable to the apparatus 1100 and the units included therein, and are not described again here.
According to an embodiment of the present application, an electronic device and a readable storage medium for sharing data are also provided.
As shown in fig. 12, is a block diagram of an electronic device for a method of sharing data according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 12, the electronic apparatus includes: one or more processors 1201, memory 1202, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses 1205 and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses 1205 can be used, along with multiple memories and multiple memories, if desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 12 illustrates an example of one processor 1201.
Memory 1202 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for sharing data provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method for sharing data provided by the present application.
The memory 1202, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and units such as program instructions/units corresponding to the method for sharing data in the embodiment of the present application (for example, the receiving unit 901, the indication information determining unit 902, and the output unit 903 shown in fig. 9). The processor 1201 executes various functional applications of the server and data processing, i.e., implements the method for sharing data in the above-described method embodiments, by executing non-transitory software programs, instructions, and modules stored in the memory 1202.
The memory 1202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device for sharing data, and the like. Further, the memory 1202 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 1202 may optionally include memory located remotely from the processor 1201, which may be connected to electronic devices for sharing data over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for sharing data may further include: an input device 1203 and an output device 1204. The processor 1201, the memory 1202, the input device 1203, and the output device 1204 may be connected by a bus 1205 or otherwise, and are illustrated in fig. 12 as being connected by the bus 1205.
The input device 1203 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus for sharing data, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 1204 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the target shared data can be directly shared to the target terminal through the control of the voice signal, the control is simple, the remote controller does not need to be installed, complex operation is carried out, and the user experience is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method for sharing data, comprising:
the data sharing end receives a target instruction sent by the cloud end, and the target instruction is generated based on a voice signal sent by the data sharing end received by the cloud end;
according to the target instruction, determining indication information of target shared data;
and acquiring target shared data according to the indication information, outputting the target shared data to a cloud end, enabling the cloud end to determine target transmission data based on the target shared data, and pushing the target transmission data to a target terminal, so that the target terminal acquires the target shared data based on the target transmission data.
2. The method of claim 1, wherein the cloud comprises a voice recognition control server and a data storage server; and
the method further comprises the following steps:
receiving storage address data and check token data of target shared data returned by the data storage server;
and sending the storage address data and the verification token data to the voice recognition control server so that the voice recognition control server generates target transmission data based on the storage address data and the verification token data and pushes the target transmission data to a target terminal.
3. A method for sharing data, comprising:
the cloud receives a voice signal sent by a data sharing end, and analyzes the voice signal to obtain indication information of target shared data;
determining a target terminal based on the indication information, generating a target instruction, and sending the target instruction to a data sharing end;
receiving target shared data output by a data sharing end, and determining target transmission data based on the target shared data;
and pushing the target transmission data to the target terminal so that the target terminal acquires the target shared data based on the target transmission data.
4. The method of claim 3, wherein the determining a target terminal based on the indication information comprises:
determining a target identifier based on the indication information;
and determining a target terminal according to the target identifier.
5. The method of claim 3, wherein the determining target transmission data based on the target shared data comprises:
receiving storage address data and check token data of target shared data sent by a data sharing end;
and generating target transmission data based on the storage address data and the check token data.
6. A method for sharing data, comprising:
the target terminal receives target transmission data pushed by the cloud;
and acquiring target shared data based on the target transmission data.
7. The method of claim 6, wherein the obtaining target shared data based on the target transmission data comprises:
analyzing the target transmission data, and determining a storage address of target shared data and check token data;
and acquiring target shared data from the cloud based on the storage address and the check token data.
8. An apparatus for sharing data, comprising:
the receiving unit is configured to receive a target instruction sent by a cloud end, and the target instruction is generated based on a voice signal sent by a data sharing end received by the cloud end;
an indication information determination unit configured to determine indication information of target shared data according to the target instruction;
the output unit is configured to acquire target shared data according to the indication information and output the target shared data to the cloud end, so that the cloud end determines target transmission data based on the target shared data and pushes the target transmission data to a target terminal, so that the target terminal acquires the target shared data based on the target transmission data.
9. The apparatus of claim 8, wherein the cloud comprises a voice recognition control server and a data storage server; and
the receiving unit is further configured to:
receiving storage address data and check token data of target shared data returned by the data storage server;
the device further comprises:
and the sending unit is configured to send the storage address data and the verification token data to the voice recognition control server so that the voice recognition control server generates target transmission data based on the storage address data and the verification token data and pushes the target transmission data to a target terminal.
10. An apparatus for sharing data, comprising:
the receiving unit is configured to receive a voice signal sent by the data sharing end and analyze the voice signal to obtain indication information of target shared data;
a sending unit configured to determine a target terminal based on the indication information, generate a target instruction, and send the target instruction to a data sharing terminal;
a target transmission data determination unit configured to receive target shared data output by the data sharing terminal and determine target transmission data based on the target shared data;
the pushing unit is configured to push the target transmission data to the target terminal, so that the target terminal obtains the target shared data based on the target transmission data.
11. The apparatus of claim 10, wherein the transmitting unit comprises:
a target identifier determining subunit configured to determine a target identifier based on the indication information;
and the target terminal determining subunit is configured to determine the target terminal according to the target identifier.
12. The apparatus of claim 10, wherein the target transmission data determination unit is further configured to:
receiving storage address data and verification token data of target shared data sent by a data sharing end;
and generating target transmission data based on the storage address data and the check token data.
13. An apparatus for sharing data, comprising:
the receiving unit is configured to receive target transmission data pushed by the cloud end;
an acquisition unit configured to acquire target shared data based on the target transmission data.
14. The apparatus of claim 13, wherein the obtaining unit is further configured to:
analyzing the target transmission data, and determining a storage address of target shared data and check token data;
and acquiring target shared data from the cloud based on the storage address and the check token data.
15. An electronic device for sharing data, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202011185178.XA 2020-10-30 2020-10-30 Method, apparatus, device and storage medium for sharing data Pending CN114531480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185178.XA CN114531480A (en) 2020-10-30 2020-10-30 Method, apparatus, device and storage medium for sharing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185178.XA CN114531480A (en) 2020-10-30 2020-10-30 Method, apparatus, device and storage medium for sharing data

Publications (1)

Publication Number Publication Date
CN114531480A true CN114531480A (en) 2022-05-24

Family

ID=81618862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185178.XA Pending CN114531480A (en) 2020-10-30 2020-10-30 Method, apparatus, device and storage medium for sharing data

Country Status (1)

Country Link
CN (1) CN114531480A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101052A1 (en) * 2012-12-27 2014-07-03 华为技术有限公司 Information sharing method and device
CN106254467A (en) * 2016-08-05 2016-12-21 北京小米移动软件有限公司 Sharing files method and device
WO2017000820A1 (en) * 2015-07-01 2017-01-05 北京奇虎科技有限公司 File sharing method, apparatus, and system based on cloud storage
CN106534324A (en) * 2016-11-18 2017-03-22 广东欧珀移动通信有限公司 Data sharing method and cloud server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101052A1 (en) * 2012-12-27 2014-07-03 华为技术有限公司 Information sharing method and device
WO2017000820A1 (en) * 2015-07-01 2017-01-05 北京奇虎科技有限公司 File sharing method, apparatus, and system based on cloud storage
CN106254467A (en) * 2016-08-05 2016-12-21 北京小米移动软件有限公司 Sharing files method and device
CN106534324A (en) * 2016-11-18 2017-03-22 广东欧珀移动通信有限公司 Data sharing method and cloud server

Similar Documents

Publication Publication Date Title
US11487503B2 (en) Interactive control method and device for voice and video communications
US10613717B2 (en) Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image
CN109510754B (en) Online document generation method, device and system and electronic equipment
CN111726682A (en) Video clip generation method, device, equipment and computer storage medium
CN111158924B (en) Content sharing method and device, electronic equipment and readable storage medium
US10942622B2 (en) Splitting and merging files via a motion input on a graphical user interface
WO2022142568A1 (en) Method and device for content displaying
US10757051B2 (en) Integrating different messaging applications without relying on messaging protocols
CN112843681B (en) Virtual scene control method and device, electronic equipment and storage medium
CN110912948A (en) Method and device for reporting problems
CN111615171B (en) Access method and device of wireless local area network
KR20210040330A (en) Video clip extraction method and device
CN112382294A (en) Voice recognition method and device, electronic equipment and storage medium
CN110600039B (en) Method and device for determining speaker attribute, electronic equipment and readable storage medium
CN112069137A (en) Method and device for generating information, electronic equipment and computer readable storage medium
CN112311597A (en) Message pushing method and device
CN111581518A (en) Information pushing method and device
CN114531480A (en) Method, apparatus, device and storage medium for sharing data
CN113746837B (en) Information processing method and apparatus, electronic device, and computer readable medium
CN113542888A (en) Video processing method and device
CN114661274A (en) Method and device for generating intelligent contract
CN113852835A (en) Live broadcast audio processing method and device, electronic equipment and storage medium
CN112752323A (en) Method and device for changing hotspot access state
CN112770415A (en) Information processing method and device about wireless hotspot
CN110555027A (en) information security processing method and device, storage medium and computing equipment

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