Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring now to FIG. 1, exemplary system architecture concepts that may be applied herein are shown.
The system architecture conceptual diagram can include a plurality of service terminals 11, service terminals 12 and voice playing terminals 13.
The service end 11 may send information to be pushed to the service end 12.
The server 12 may include a server, a server cluster, or a cloud platform constructed based on the server cluster, which performs packet ordering on information to be pushed sent by the multiple service terminals 11. The server 12 may be configured to group information to be pushed sent by the multiple service terminals 11, that is, to group multiple information to be pushed that require the same voice playing terminal 13, and then sort the information to be pushed in the same group, so that the voice playing terminal 13 may process concurrent voice information in order.
The voice playing terminal 13 has a voice broadcasting function, and can broadcast the content to be broadcasted by the service end 11 in a voice manner.
In another case, a Content Delivery Network 14 (CDN) may be further included between the server 12 and the voice playing terminal 13. The server 12 may store the sorted voice information in the CDN14, and transmit the voice information to the voice playing terminal 13 more quickly through the CDN 14.
It should be noted that, data interaction can be performed between the server 12 and the voice playing terminal 13 based on an encrypted protocol, so as to improve information security. Such as HTTPs (Hyper Text Transfer Protocol over Secure socket layer), WPA2(Wi-Fi Protected Access 2, second edition Wi-Fi Protected Access), and the like.
When multiple service terminals 11 push information to the same voice playing terminal 13, the service terminal 12 may sort the information in advance, so that the voice playing terminal 13 may broadcast the voice information in order.
An embodiment of a method for implementing voice control according to the present disclosure may be described below with reference to an example shown in fig. 2, where the method may include the following steps:
step 210: and the server receives the information to be pushed sent by the plurality of service terminals.
The information to be pushed comprises the equipment identification of the voice playing terminal, the pushed text information and the timestamp.
The device identifier of the voice playback terminal may identify a unique identifier of the voice playback terminal, such as a device ID, a device machine code, and the like. The device ID may be a unique identity ID assigned to the voice playback terminal after the voice playback terminal successfully registers on the server. The device Machine code (Machine code) may be a series of serial numbers formed by encrypting and hashing a series of device factory identifiers, and has uniqueness.
The pushed text information can be pushed contents needing to be broadcasted by the voice playing terminal.
The timestamp may include a time when the service end sends the information to be pushed; or, the server receives the time of the information to be pushed; and then, or the time when the voice playing terminal needs to broadcast the information preset by the service end, and the like.
Step 220: and the server side groups the text information of the same equipment identifier into a group according to the equipment identifier.
After receiving a large amount of information to be pushed, the server may group the information according to the device identifier of each piece of information to be pushed, or may group text information of the same device identifier into one group. Therefore, the information quantity required to be broadcasted by each voice playing terminal can be clear.
For example, the following steps are carried out:
the information to be pushed and pushed by the service line 1 is as follows: device identification a, text information 1, timestamp 1507602632;
the information to be pushed and pushed by the service line 2 is as follows: device identification a, text information 2, timestamp 1507602630;
information to be pushed by the service line 3: device identification B, text information 3, timestamp 1507602630;
information to be pushed by the service line 4: device identification a, text information 4, timestamp 1507602633;
information to be pushed by the service line 5: device identification B, text information 5, timestamp 1507602633.
The server side groups the equipment identification according to the equipment identification, and divides the text information 1, the text information 2 and the text information 4 of the equipment identification A into a group;
text information 3 and text information 5 of the device identification B are divided into a group.
Step 230: and the server sorts the grouped text information according to the time stamp and adds the text information into a corresponding message queue.
By sequencing the text information, each voice playing terminal can be ensured to serially process the information to be broadcasted, and information accumulation is prevented; and even cause a downtime of the voice playing terminal.
In this specification, the sorting may add the text information to the corresponding message queue according to the order of the timestamps. For example, the text information with the earliest timestamp is added to the message queue first, and then another text information with the second earliest timestamp is added to the message queue in turn until the text information with the latest timestamp is added to the message queue.
To be explained by taking the example in the above step 120, the process of sorting the text information 1, the text information 2, and the text information 4 for the same device identifier a is as follows:
since the time stamp 1507602630 (beijing time 2017/10/1010: 30:30) of the text information 2 is earlier than the time stamp 1507602632 (beijing time 2017/10/1010: 30:32) of the text information 1;
and timestamp 1507602632 (Beijing time 2017/10/1010: 30:32) of text information 1 is earlier than timestamp 1507602633 (Beijing time 2017/10/1010: 30:33) of text information 4;
setting a message queue corresponding to the equipment identifier A as a message queue A;
thus, text message 2 is added to message queue a first, then text message 1 is added to message queue a, and finally text message 4 is added to message queue a.
Similarly, the ranking procedure for text information 3 and text information 5 of the same device identification B is as follows:
since the time stamp 1507602630 (beijing time 2017/10/1010: 30:30) of the text information 3 is earlier than the time stamp 1507602633 (beijing time 2017/10/1010: 30:33) of the text information 5;
setting a message queue corresponding to the equipment identifier B as a message queue B;
thus, text message 3 is first added to message queue B, followed by text message 5.
Step 240: and the server converts the text information in the message queue into voice information.
Generally, the conversion of the text information into the speech information may be implemented based on a speech conversion technology, such as TTS (texttostech, from text to speech).
In one implementation, the server has a conversion function locally, for example, the server pre-stores a word bank with a correspondence between words and voices locally, and can assemble voice information locally.
In another implementation manner, the service end may invoke a third-party text-to-speech service (e.g., some speech data centers) to obtain the speech information converted by the third-party service.
Continuing with the example in the above step, taking message queue a as an example:
before conversion: a message queue a { text message 1, text message 2, text message 4 };
after conversion: message queue A { voice message 1, voice message 2, voice message 4 }; the voice information 1 is converted from the text information 1, the voice information 2 is converted from the text information 2, and the voice information 4 is converted from the text information 4. It should be noted that the order of the converted message queues is not changed.
Likewise, converted message queue B { Voice information 3, Voice information 5 }.
Step 250: and the server side sequentially pushes the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
The server can push the voice information in each message queue to the voice playing terminal corresponding to the corresponding equipment identifier.
For example, if there are 3 different message queues, the server may push the voice information in the 3 message queues to the voice playing terminal corresponding to the device identifier respectively. Suppose, the message queue of device identifier a { voice message 1, voice message 2, voice message 3 };
the message queue of the device identifier B { voice information 4, voice information 5, voice information 6 };
message queue { voice information 7, voice information 8} of device identifier C;
then, the server side can push the message queue { voice information 1, voice information 2, voice information 3} to the voice playing terminal a corresponding to the device identifier a;
pushing the message queue { voice information 4, voice information 5 and voice information 6} to a voice playing terminal B corresponding to the equipment identifier B;
and pushing the message queue { voice information 7, voice information 8} to the voice playing terminal C corresponding to the equipment identifier C.
Step 260: and the voice playing terminal plays voice information according to the pushing sequence.
Because the pushed voice messages are sequenced, the voice playing terminal can play concurrent messages from different service terminals according to the sequence.
In the embodiment of the present specification, a server for managing push information is arranged between a service end and a voice playing terminal, the server groups and sorts the information to be pushed from a plurality of service ends, converts the sorted text information into voice information, and finally pushes the sorted voice information in the same group to the voice playing terminal corresponding to the group, so that the voice information originally and concurrently sent by the voice playing terminal can be sequentially played according to the sorting order.
In a specific embodiment, before the step 220, the method further comprises:
the server side checks whether the information to be pushed is legal or not,
correspondingly, the step 220 specifically includes:
and under the condition that the information to be pushed is legal, grouping is carried out according to the equipment identification, and the text information of the same equipment identification is divided into a group.
In this embodiment, verifying whether the information to be pushed is legal may specifically include:
verifying whether the equipment identifier is legal or not;
specifically, in one implementation:
a white list may be queried and the device identification is located in the white list, then it is determined that the device identification is legitimate. The white list may be a list of valid devices maintained by the server.
In another implementation:
a blacklist may be queried, and if the device identification is not located in the blacklist, it may be determined that the device identification is legitimate. The black list may be a list maintained by the server and recording illegal devices.
Only when the equipment identifier is legal, grouping can be performed according to the equipment identifier, and the text information of the same equipment identifier is divided into a group.
In this embodiment, verifying whether the information to be pushed is legal may specifically include:
checking whether the length of the text information of the information to be pushed is legal or not;
specifically, the server may determine whether the length of the text information of the information to be pushed exceeds a threshold;
if not, determining that the information to be pushed is legal;
if so, determining that the information to be pushed is illegal;
and only under the condition that the length of the text information of the information to be pushed is legal, grouping can be carried out according to the equipment identification, and the text information of the same equipment identification is divided into a group.
In this embodiment, the information to be pushed further includes a token; the token is unique identity information corresponding to the service end;
after each service end is accessed to the service end for the first time, registration is required to be carried out so as to obtain a unique token. And only when the token is obtained, the service end can push information to the voice playing terminal through the service end.
Then, checking whether the information to be pushed is legal may specifically include:
verifying whether the token is legitimate;
specifically, the server side can judge whether the information to be pushed has a token; and whether the token indeed corresponds to the sent service end; in case both are true, it can be determined that the token is legitimate.
And only under the condition that the token is legal, grouping can be carried out according to the equipment identification, and the text information of the same equipment identification is divided into a group.
Through the embodiment for verifying the information to be pushed, some malicious and illegal pushed information can be intercepted.
In practical applications, the service end, and the voice playing terminal may be located at different places, and the data transmission speed and the distance have an inverse relationship, so that if the service end and the voice playing terminal are far apart, a certain delay occurs in pushing voice information. For some special scenarios, the requirement for timeliness is high, and such delay is unacceptable. To solve this problem, on the basis of the embodiment shown in fig. 2, before the step 250, the method further includes:
the server stores the voice information in the message queue to a content distribution network, and obtains a uniform resource locator of the voice information distributed by the content distribution network;
the step 250 specifically includes:
and the server side pushes the uniform resource locator of the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
In this embodiment, the content distribution network CDN is an efficient content delivery network. By deploying edge servers in various places and by using functional modules of the central platform, such as load balancing, content distribution, scheduling and the like, a user can obtain required content nearby, network congestion is reduced, and the access response speed and hit rate of the user are improved.
Generally, after receiving the storage content, the CDN may allocate a uniform resource locator URL; the user can obtain the corresponding storage content through the URL.
In this application, the step 260 specifically includes:
and the voice playing terminal acquires the voice information corresponding to the URL from the CDN according to the URL pushed by the server side and plays the acquired voice information according to the URL sequence.
Through this embodiment, utilize CDN can effectively promote voice information transmission efficiency, avoid the voice transmission process to appear longer delay.
In another embodiment: on the basis of the embodiment shown in fig. 2, before step 250, the method further comprises:
setting a digital signature for the voice information in the message queue;
the step 250 specifically includes:
and sequentially pushing the voice information after the digital signature in the message queue to a voice playing terminal corresponding to the equipment identifier.
In this embodiment, the digital signature refers to information for identifying an identity in internet communication, and is usually a string of numbers.
The step 260 specifically includes:
after receiving the voice information pushed by the server, the voice playing terminal verifies whether the digital signature is legal or not;
and under the condition that the digital signature is legal, sequentially playing the voice information.
In this embodiment, the voice playing terminal may generally store the digital signature allowed from some sender (for example, the server) locally in advance; therefore, after receiving the voice information from any sender, the digital signature is judged whether to exist or not, and if the digital signature exists, the digital signature is legal, so that the received voice information can be played.
By the embodiment, the voice playing terminal can discriminate the received voice information and only allows the voice information pushed by a legal sender to be broadcast; the reduction of user experience due to too much and disorder playing of voice information is avoided.
In general, the voice playing terminal has a feedback process, that is, on the basis of the embodiment shown in fig. 2, before the step 260, the method further includes:
the voice playing terminal returns notification information to the server; the notification information identifies whether the voice playing terminal receives the voice information pushed by the server side;
accordingly, the number of the first and second electrodes,
the server receives the notification information returned by the voice playing terminal;
under the condition that the notification information is failed to be received, the server side sequentially pushes the text information in the message queue to a voice playing terminal corresponding to the equipment identifier again;
or,
and under the condition that the notification information is successful, the server side empties the text information in the message queue.
Through a retry mechanism, when the voice playing terminal does not receive the voice information, the server can send the voice information in the message queue again;
and when the voice playing terminal receives the voice information, the server can condition the message queue. Thereby providing storage space for subsequent information to be pushed.
An embodiment of a method for the present application with a server as a main component is described below with reference to fig. 3, where the embodiment may correspond to fig. 2:
step 310: receiving information to be pushed sent by a plurality of service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
step 320: grouping according to the equipment identifications, and dividing text information of the same equipment identification into a group;
step 330: sorting the grouped text information according to the time stamp and adding the text information into a corresponding message queue;
step 340: converting the text information in the message queue into voice information;
step 350: and sequentially pushing the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before the step 350, the method further includes:
storing the voice information in the message queue to a content distribution network, and obtaining a uniform resource locator of the voice information distributed by the content distribution network;
the step 350 specifically includes:
and pushing the uniform resource locator of the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before the step 320, the method further includes:
verifying whether the equipment identifier is legal or not;
the step 320 specifically includes:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, the information to be pushed further includes a token; the token is unique identity information corresponding to the service end;
prior to the step 320, the method further comprises:
verifying whether the token is legitimate;
the step 320 specifically includes:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, before the step 350, the method further includes:
setting a signature for the voice information in the message queue;
the step 350 specifically includes:
and sequentially pushing the signed voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, the method further includes:
receiving notification information returned by the voice playing terminal;
when the notification information is that the receiving is failed, the voice information in the message queue is pushed to the voice playing terminal corresponding to the equipment identifier in sequence again;
or,
and under the condition that the notification information is successful, emptying the voice information in the message queue.
In the above embodiment, the conversion from text information to voice information is completed through the server; in practical application, the implementation can be completed by other execution entities, please refer to the following embodiments:
another embodiment of the present application for implementing voice control, as shown in fig. 4, includes the following steps:
step 410: the server receives information to be pushed sent by a plurality of service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
step 420: the server side groups the text information according to the equipment identification, and divides the text information of the same equipment identification into a group;
step 430: the server-side sorts the grouped text information according to the time stamp and adds the text information into a corresponding message queue;
step 440: the server side sequentially pushes the text information in the message queue to a voice playing terminal corresponding to the equipment identifier;
step 450: the voice playing terminal converts the received text information into voice information;
step 460: and the voice playing terminal plays the voice information according to the sequence.
Since most steps are the same as those in the embodiment shown in fig. 2, details are not repeated here, and the embodiment is different from the embodiment shown in fig. 2 in that the voice playing terminal converts the text information into the voice information in this embodiment, so that the embodiment of the present application can also achieve the effect of the embodiment shown in fig. 2.
In correspondence with the embodiment of fig. 4, the following introduces an embodiment of the method mainly based on the server, and as described in fig. 5, the method may include the following steps:
step 510: receiving information to be pushed sent by a plurality of service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
step 520: grouping according to the equipment identifications, and dividing text information of the same equipment identification into a group;
step 530: sorting the grouped text information according to the time stamp and adding the text information into a corresponding message queue;
step 540: and sequentially pushing the text information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before the step 520, the method further includes:
verifying whether the equipment identifier is legal or not;
the step 520 specifically includes:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, the information to be pushed further includes a token; the token is unique identity information corresponding to the service end;
prior to the step 520, the method further comprises:
verifying whether the token is legitimate;
the step 520 specifically includes:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, before the step 540, the method further includes:
setting a signature for the voice information in the message queue;
the step 540 specifically includes:
and sequentially pushing the signed text information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, the method further includes:
receiving notification information returned by the voice playing terminal;
under the condition that the notification information is failed to be received, sequentially pushing the text information in the message queue to a voice playing terminal corresponding to the equipment identifier again;
or,
and under the condition that the notification information is successful, emptying the text information in the message queue.
Corresponding to the foregoing voice control method embodiments, the present specification also provides embodiments of a voice control apparatus. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. In terms of hardware, a hardware structure of the apparatus in which the speech control apparatus is located in this specification may include a processor, a network interface, a memory, and a nonvolatile memory, and the apparatus in which the apparatus is located in the embodiment may also include other hardware generally according to the actual function of the speech control, which is not described in detail herein.
Referring to fig. 6, a block diagram of a voice control apparatus provided for an embodiment of the present disclosure, the apparatus corresponding to the embodiment shown in fig. 3, includes:
a receiving unit 610, configured to receive information to be pushed sent by multiple service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
a grouping unit 620, which groups the text information of the same device identifier into a group according to the device identifier;
the sorting unit 630 sorts the grouped text information according to the timestamp and adds the sorted text information into a corresponding message queue;
a conversion unit 640, which converts the text information in the message queue into voice information;
and the pushing unit 650 sequentially pushes the voice information in the message queue to the voice playing terminal corresponding to the device identifier.
In an alternative embodiment:
before the pushing unit 650, the apparatus further includes:
the storage subunit stores the voice information in the message queue to a content distribution network and obtains a uniform resource locator of the voice information distributed by the content distribution network;
the pushing unit 650 specifically includes:
and pushing the uniform resource locator of the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
In an alternative embodiment:
before the grouping unit 620, the apparatus further includes:
the checking subunit is used for checking whether the equipment identifier is legal or not;
the grouping unit 620 specifically includes:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
In an alternative embodiment:
the information to be pushed further comprises a token; the token is unique identity information corresponding to the service end;
before the grouping unit 620, the apparatus further includes:
the checking subunit checks whether the token is legal or not;
the grouping unit 620 specifically includes:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
In an alternative embodiment:
before the pushing unit 650, the apparatus further includes:
the digital signature subunit is used for setting a digital signature for the voice information in the message queue;
the pushing unit 650 specifically includes:
and sequentially pushing the voice information after the digital signature in the message queue to a voice playing terminal corresponding to the equipment identifier.
In an alternative embodiment:
the device further comprises:
the receiving subunit receives the notification information returned by the voice playing terminal;
a retry subunit, configured to, when the notification information is that the receiving fails, push the voice information in the message queue to the voice playing terminal corresponding to the device identifier in sequence again;
or,
and the clearing subunit is used for clearing the voice information in the message queue under the condition that the notification information is successful.
Referring to fig. 7, a block diagram of a voice control apparatus provided for an embodiment of the present disclosure, the apparatus corresponding to the embodiment shown in fig. 5, includes:
a receiving unit 710, configured to receive information to be pushed sent by multiple service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
the grouping unit 720, which groups the text messages with the same device identifier into a group;
the sorting unit 730 sorts the grouped text information according to the timestamp and adds the sorted text information into a corresponding message queue;
the pushing unit 740 sequentially pushes the text information in the message queue to the voice playing terminal corresponding to the device identifier.
In an alternative embodiment:
before the grouping unit 720, the apparatus further includes:
the checking subunit is used for checking whether the equipment identifier is legal or not;
the grouping unit 720 specifically includes:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
In an alternative embodiment:
the information to be pushed further comprises a token; the token is unique identity information corresponding to the service end;
before the grouping unit 720, the apparatus further includes:
the checking subunit checks whether the token is legal or not;
the grouping unit 720 specifically includes:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
In an alternative embodiment:
before the pushing unit 740, the apparatus further includes:
the digital signature subunit is used for setting a digital signature for the voice information in the message queue;
the pushing unit 740 specifically includes:
and sequentially pushing the text information after the digital signature in the message queue to a voice playing terminal corresponding to the equipment identifier.
In an alternative embodiment:
the device further comprises:
the receiving subunit receives the notification information returned by the voice playing terminal;
a retry subunit, configured to, when the notification information is that the receiving fails, push the text information in the message queue to the voice playing terminal corresponding to the device identifier in sequence again;
or,
and the clearing subunit is used for clearing the text information in the message queue under the condition that the notification information is successful.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 6 above describes the internal functional modules and the structural schematic of the voice control apparatus, and the substantial execution subject may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving information to be pushed sent by a plurality of service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
grouping according to the equipment identifications, and dividing text information of the same equipment identification into a group;
sorting the grouped text information according to the time stamp and adding the text information into a corresponding message queue;
converting the text information in the message queue into voice information;
and sequentially pushing the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before sequentially pushing the voice information in the message queue to the voice playing terminal corresponding to the device identifier, the method further includes:
storing the voice information in the message queue to a content distribution network, and obtaining a uniform resource locator of the voice information distributed by the content distribution network;
the sequentially pushing the voice information in the message queue to the voice playing terminal corresponding to the device identifier specifically includes:
and pushing the uniform resource locator of the voice information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before the grouping according to the device identifier, the method further includes:
verifying whether the equipment identifier is legal or not;
the grouping according to the device identifiers and the dividing of the text information of the same device identifier into a group specifically include:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, the information to be pushed further includes a token; the token is unique identity information corresponding to the service end;
before the grouping according to the device identifier, the method further includes:
verifying whether the token is legitimate;
the grouping according to the device identifiers and the dividing of the text information of the same device identifier into a group specifically include:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, before the sequentially pushing the voice information in the message queue to the voice playing terminal corresponding to the device identifier, the method further includes:
setting a digital signature for the voice information in the message queue;
the sequentially pushing the voice information in the message queue to the voice playing terminal corresponding to the device identifier specifically includes:
and sequentially pushing the voice information after the digital signature in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, the method further includes:
receiving notification information returned by the voice playing terminal;
when the notification information is that the receiving is failed, the voice information in the message queue is pushed to the voice playing terminal corresponding to the equipment identifier in sequence again;
or,
and under the condition that the notification information is successful, emptying the voice information in the message queue.
Similarly, fig. 7 above describes the internal functional modules and the structural schematic of the voice control device, and the substantial execution subject may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving information to be pushed sent by a plurality of service terminals; the information to be pushed comprises an equipment identifier of the voice playing terminal, pushed text information and a timestamp;
grouping according to the equipment identifications, and dividing text information of the same equipment identification into a group;
sorting the grouped text information according to the time stamp and adding the text information into a corresponding message queue;
and sequentially pushing the text information in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, before the grouping according to the device identifier, the method further includes:
verifying whether the equipment identifier is legal or not;
the grouping according to the device identifiers and the dividing of the text information of the same device identifier into a group specifically include:
and under the condition that the equipment identification is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, the information to be pushed further includes a token; the token is unique identity information corresponding to the service end;
before the grouping according to the device identifier, the method further includes:
verifying whether the token is legitimate;
the grouping according to the device identifiers and the dividing of the text information of the same device identifier into a group specifically include:
and under the condition that the token is legal, grouping according to the equipment identification, and dividing the text information of the same equipment identification into a group.
Optionally, before the sequentially pushing the text information in the message queue to the voice playing terminal corresponding to the device identifier, the method further includes:
setting a digital signature for the voice information in the message queue;
the sequentially pushing the text information in the message queue to the voice playing terminal corresponding to the device identifier specifically includes:
and sequentially pushing the text information after the digital signature in the message queue to a voice playing terminal corresponding to the equipment identifier.
Optionally, the method further includes:
receiving notification information returned by the voice playing terminal;
under the condition that the notification information is failed to be received, sequentially pushing the text information in the message queue to a voice playing terminal corresponding to the equipment identifier again;
or,
and under the condition that the notification information is successful, emptying the text information in the message queue.
In the above embodiments of the electronic device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the electronic device, since it is substantially similar to the embodiment of the method, the description is simple, and for the relevant points, reference may be made to part of the description of the embodiment of the method.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.