CN116389436A - Broadcasting method and device of processing result, storage medium and electronic device - Google Patents

Broadcasting method and device of processing result, storage medium and electronic device Download PDF

Info

Publication number
CN116389436A
CN116389436A CN202310187327.3A CN202310187327A CN116389436A CN 116389436 A CN116389436 A CN 116389436A CN 202310187327 A CN202310187327 A CN 202310187327A CN 116389436 A CN116389436 A CN 116389436A
Authority
CN
China
Prior art keywords
information
bit information
field
broadcasting
processing result
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
CN202310187327.3A
Other languages
Chinese (zh)
Inventor
王金红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202310187327.3A priority Critical patent/CN116389436A/en
Publication of CN116389436A publication Critical patent/CN116389436A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The application discloses a response method and device of voice information, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the response method of the voice information comprises the following steps: transmitting voice information received from a target object to a cloud server, so that the cloud server transmits frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information; analyzing a setting field of the frame data to obtain field information of the setting field; the broadcasting mode of the processing result is determined according to the field information, and the processing result is broadcasted according to the broadcasting mode.

Description

Broadcasting method and device of processing result, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a broadcasting method and device of processing results, a storage medium and an electronic device.
Background
With the continuous maturity of intelligent voice application technology, more and more household devices apply intelligent voice technology, and the requirements and the use situations of voice interaction are continuously increased. Especially in the house, people are more and more used to giving instructions through voice and acquiring corresponding information, and because voice communication is a mode of human communication, hands are released, communication distance is extended, and interaction between people and intelligent household appliances is more natural.
With the increase of intelligent appliances in the home, intelligent scenes in the home become more and more complex, and scenes of other devices are more and more controlled through the voice network device, so that the intelligent devices are required to realize local control and have the capability of controlling the other devices. The control result and the broadcasting problem of the special scene are involved in controlling other devices through the intelligent device, and similar content broadcasting can be caused to be carried out twice or even more times at the moment, so that the user is puzzled. How to solve the problem of local voice interactive broadcasting and other control scene broadcasting on the basis of improving the user experience is particularly important.
At present, the processing logic of the intelligent device is mainly used for carrying out protocol analysis and then carrying out control and broadcasting logic processing according to instructions issued by a cloud, the processing mode is not problematic for controlling and broadcasting the local device, but for controlling other devices and scenes with special linkage in a home scene, when receiving the instructions for controlling the other devices, the voice recognition is completed and can issue instructions to the main control device, and meanwhile, the control instructions can be sent to the other devices, and after the control results of the other devices are returned, the information is issued to the voice main control device, at this time, the problem of repeated broadcasting in a short time can occur, and thus, the conditions of too frequent broadcasting, content redundancy and the like can be caused. In order to avoid such situations, the device side usually performs avoidance control according to the service field, and usually does not broadcast the synchronous message issued by the cloud side when resolving into a certain service, and waits for the asynchronous message issued by the cloud side to push and broadcast, but the processing mode is seriously coupled with the service, and the service in the actual intelligent home scene is complicated, and the resolving field needs to be synchronously updated for the device side every time a new service is added, so that the situations such as multiple broadcasting, redundancy and the like are difficult to avoid and solve in a one-to-one manner.
Aiming at the problems that in the related art, the broadcasting mode is seriously coupled with the service, so that the conditions such as repeated broadcasting, redundancy and the like frequently occur, an effective solution is not proposed.
Disclosure of Invention
The embodiment of the application provides a broadcasting method and device of a processing result, a storage medium and an electronic device, so as to at least solve the problems that in the related art, a broadcasting mode is seriously coupled with service, and therefore the conditions such as multiple broadcasting and redundancy are frequently generated.
According to an embodiment of the present application, there is provided a broadcasting method of a processing result, including: transmitting voice information received from a target object to a cloud server, so that the cloud server transmits frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information; analyzing a setting field of the frame data to obtain field information of the setting field; and determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode.
In an exemplary embodiment, parsing the setting field of the frame data to obtain field information of the setting field includes: acquiring bit information corresponding to the setting field; and determining field information of the setting field according to the bit information.
In an exemplary embodiment, obtaining bit information corresponding to the setting field includes: acquiring first bit information of a first bit, second bit information of a second bit and third bit information of a third bit in the case that the setting field includes three bits; wherein the first bit, the second bit and the third bit are sequentially arranged at positions in the setting field; determining field information of the setting field according to the bit information, including: and determining the field information according to the first bit information, the second bit information and the third bit information.
In one exemplary embodiment, the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, after determining the field information of the setting field according to the bit information, at least one of the following is included: determining that the broadcasting mode is to broadcast the processing result under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value; determining that the broadcasting mode is to broadcast the processing result and broadcast asynchronous information sent by the cloud server under the condition that the first bit information and the third bit information are the first numerical value and the second bit information is the second numerical value; and determining that the broadcasting mode is to broadcast the processing result when the first bit information is a first value and the second bit information and the third bit information are a second value.
In one exemplary embodiment, the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, after determining the field information of the setting field according to the bit information, it includes: and under the condition that the first bit information and the second bit information are the first numerical value and the third bit information is the second numerical value, determining that the broadcasting mode is to prohibit broadcasting of the processing result and broadcasting asynchronous information sent by the cloud server, wherein the voice information is used for indicating the first equipment to control the second equipment to execute target operation, and the asynchronous information is used for indicating the execution result of the second equipment.
In one exemplary embodiment, the bit information includes: and broadcasting the processing result according to the broadcasting mode under the condition of the first bit information, the second bit information and the third bit information, wherein the processing result comprises one of the following steps: analyzing the data field of the frame data under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value so as to acquire the processing result, and broadcasting the processing result; analyzing other fields of the frame data according to a network protocol corresponding to the multimedia playing skill of the first device under the condition that the first bit information is a first numerical value, the second bit information and the third bit information are a second numerical value, so as to acquire the processing result in the other fields of the frame data, and broadcasting the processing result; wherein the other fields are used to indicate fields other than the setting field.
In an exemplary embodiment, after parsing the set field of the frame data, the method further includes: determining whether to successfully parse the set field of the frame data; under the condition that the set field of the frame data is not successfully analyzed, analyzing a service identification field of the frame data according to a historical network protocol of the first equipment, wherein the service identification field is used for indicating a service function of the first equipment; and determining a service type according to the service identification field, and determining a broadcasting mode corresponding to the processing result according to the service type.
In one exemplary embodiment, parsing the set field of the frame data includes: analyzing the check field of the frame data to obtain check information of the frame data; decrypting the verification information according to a preset secret key to obtain decrypted verification information; and analyzing the setting field of the frame data under the condition that the decrypted check information is consistent with the preset check information.
According to another embodiment of the present application, there is further provided a broadcasting device for processing a result, including: the sending module is used for sending the voice information received from the target object to a cloud server so that the cloud server can send frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information; the analysis module is used for analyzing the set field of the frame data to obtain field information of the set field; and the playing module is used for determining a broadcasting mode of the processing result according to the field information and broadcasting the processing result according to the broadcasting mode.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the broadcasting method of the above processing result when executed.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the broadcasting method of the processing result by using the computer program.
In the embodiment of the application, voice information received from a target object is sent to a cloud server, so that the cloud server sends frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information; analyzing a setting field of the frame data to obtain field information of the setting field; determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode; by adopting the technical scheme, the problems that the broadcasting mode is seriously coupled with the service, the conditions such as multiple broadcasting and redundancy are frequently generated are solved, a field is newly added, the corresponding broadcasting mode is determined through the information in the newly added field, and the broadcasting mode is decoupled with the service, so that the conditions such as multiple broadcasting and redundancy are reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware environment diagram of a method for broadcasting a processing result according to an embodiment of the present application;
fig. 2 is a flowchart of a broadcasting method of a processing result according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method of broadcasting a processing result according to an alternative embodiment of the present application;
fig. 4 is a block diagram (a) of a structure of a broadcasting device for processing a result according to an embodiment of the present application;
fig. 5 is a block diagram (ii) of a processing result reporting apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a broadcasting method of a processing result is provided. The broadcasting method of the processing result is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), intelligent Home equipment ecology, intelligent Home (intelligent house) ecology and the like. Alternatively, in the present embodiment, the broadcasting method of the processing result described above may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for broadcasting a processing result is provided and applied to a first device, and fig. 2 is a flowchart of a method for broadcasting a processing result according to an embodiment of the present application, where the flowchart includes the following steps:
Step S202, voice information received from a target object is sent to a cloud server, so that the cloud server sends frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
note that the first device may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, or the like.
Step S204, analyzing the set field of the frame data to obtain the field information of the set field;
and S206, determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode.
Through the steps, voice information received from a target object is sent to a cloud server, so that the cloud server sends frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information; analyzing a setting field of the frame data to obtain field information of the setting field; the method comprises the steps of determining a broadcasting mode of a processing result according to field information, broadcasting the processing result according to the broadcasting mode, solving the problems that in the related art, the broadcasting mode is seriously coupled with a service, and therefore, the conditions such as multiple broadcasting and redundancy are frequently generated.
Alternatively, in step S204, this may be achieved by: acquiring bit information corresponding to the setting field; and determining field information of the setting field according to the bit information.
Further, in the case that the setting field includes three bits, first bit information of a first bit, second bit information of a second bit, and third bit information of a third bit are acquired; wherein the first bit, the second bit and the third bit are sequentially arranged at positions in the setting field; and determining the field information according to the first bit information, the second bit information and the third bit information.
The bit information includes: first bit information, second bit information, and third bit information.
That is, the field information of the setting field in the embodiment of the present invention is determined by setting bit information in the field, and specifically, the field information is determined according to the first bit information, the second bit information, and the third bit information sequentially arranged. According to the embodiment of the invention, the corresponding broadcasting mode is determined through the bit information in the newly added field and is decoupled with the service, so that the occurrence of multiple broadcasting, redundancy and other conditions is reduced.
In one exemplary embodiment, the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, after determining the field information of the setting field according to the bit information, at least one of the following is included:
1) Determining that the broadcasting mode is to broadcast the processing result under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value;
for example, when the first bit information, the second bit information, and the third bit information are values 0, it is determined that the broadcasting mode is a first broadcasting mode, that is, the processing result is broadcasted.
2) Determining that the broadcasting mode is to broadcast the processing result and broadcast asynchronous information sent by the cloud server under the condition that the first bit information and the third bit information are the first numerical value and the second bit information is the second numerical value;
for example, when the first bit information and the third bit information are the value 0 and the second bit information is the value 1, determining that the broadcasting mode is the second broadcasting mode, that is, determining that the broadcasting mode is to broadcast the processing result and broadcasting the asynchronous information sent by the cloud server;
It should be noted that, the asynchronous information sent by the cloud server also includes field information for indicating whether to play the asynchronous message, and if the field information indicates that the field information of the asynchronous message is not played, the asynchronous message is still played. According to the embodiment of the invention, even if the frame data corresponding to the asynchronous message and the received frame data are different in the playing mode of the asynchronous message, the asynchronous message can still be processed, and the accuracy of message processing is improved.
3) Determining that the broadcasting mode is to broadcast the processing result when the first bit information is a first value and the second bit information and the third bit information are a second value;
for example, when the first bit information is a value 0 and the second bit information and the third bit information are a value 1, determining that the broadcasting mode is a third broadcasting mode, that is, broadcasting the processing result;
the specific processing modes of the first broadcasting mode and the third broadcasting mode are different.
4) And under the condition that the first bit information and the second bit information are the first numerical value and the third bit information is the second numerical value, determining that the broadcasting mode is to prohibit broadcasting of the processing result and broadcasting asynchronous information sent by the cloud server, wherein the voice information is used for indicating the first equipment to control the second equipment to execute target operation, and the asynchronous information is used for indicating the execution result of the second equipment.
For example, when the first bit information and the second bit information are the value 0 and the third bit information is the value 1, it is determined that the broadcasting mode is a fourth broadcasting mode, that is, broadcasting of the processing result is prohibited, and asynchronous information sent by the cloud server is broadcasted.
It should be noted that, the asynchronous information sent by the cloud server also includes field information for indicating whether to play the asynchronous message, and if the field information indicates that the field information of the asynchronous message is not played, the asynchronous message is still played.
5) Analyzing a service identification field of the frame data according to a historical network protocol of the first device under the condition that the first bit information is a second numerical value, and the second bit information and the third bit information are first numerical values, wherein the service identification field is used for indicating a service function of the first device; and determining a service type according to the service identification field, and determining a broadcasting mode corresponding to the processing result according to the service type.
In an exemplary embodiment, broadcasting the processing result according to the broadcasting mode includes one of the following: analyzing the data field of the frame data under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value so as to acquire the processing result, and broadcasting the processing result; analyzing other fields of the frame data according to a network protocol corresponding to the multimedia playing skill of the first device under the condition that the first bit information is a first numerical value, the second bit information and the third bit information are a second numerical value, so as to acquire the processing result in the other fields of the frame data, and broadcasting the processing result; wherein the other fields are used to indicate fields other than the setting field.
That is, in the case that the broadcasting mode is the first broadcasting mode, only the data field of the frame data is analyzed to obtain the processing result, and the processing result is broadcasted; under the condition that the broadcasting mode is a third broadcasting mode, the intelligent terminal analyzes other fields of the frame data according to a format of a voice skill protocol; and under the condition that the broadcasting mode is a second broadcasting mode, analyzing other fields of the frame data according to a historical processing format to acquire the processing result, and broadcasting the processing result.
In an exemplary embodiment, after parsing the set field of the frame data, the method further includes: determining whether to successfully parse the set field of the frame data; under the condition that the set field of the frame data is not successfully analyzed, analyzing a service identification field of the frame data according to a historical network protocol of the first equipment, wherein the service identification field is used for indicating a service function of the first equipment; and determining a service type according to the service identification field, and determining a broadcasting mode corresponding to the processing result according to the service type.
That is, after the terminal receives the data issued by the cloud, according to the protocol analysis processing, under the condition that the old version intelligent terminal cannot analyze the newly added field, according to the original protocol processing, the frame data is analyzed, and the intelligent terminal capable of analyzing the newly added field corresponds to the response processing according to the analyzed new field type. According to the embodiment of the invention, even the old version intelligent terminal can determine the broadcasting mode corresponding to the processing result, so that the problems of repeated broadcasting and too frequent redundancy of broadcasting are reduced.
In an exemplary embodiment, to improve the security of interaction between the first device and the cloud server, it is necessary to verify the frame data sent by the cloud server, specifically: analyzing the check field of the frame data to obtain check information of the frame data; decrypting the verification information according to a preset secret key to obtain decrypted verification information; analyzing a setting field of the frame data under the condition that the decrypted check information is consistent with preset check information; and discarding the frame data under the condition that the decrypted check information is inconsistent with the preset check information.
By the embodiment of the invention, the interaction safety of the first equipment and the cloud server is improved.
In this embodiment, a method for sending a processing result is provided and applied to a cloud server, where the process includes the following steps:
step S402, receiving voice information sent by a first device;
step S404, sending frame data to the first device according to the voice information, wherein the frame data comprises a processing result of the voice information, analyzing a setting field of the frame data and determining field information of the setting field under the condition that the first device receives the frame data; and the first equipment determines a broadcasting mode corresponding to the processing result according to the field information, and broadcasts the processing result according to the broadcasting mode.
In an exemplary embodiment, before sending frame data to the first device according to the voice information, the method further includes: under the condition that the broadcasting mode corresponding to the processing result is the broadcasting of the processing result, writing a first numerical value into a first bit, a second bit and a third bit of the set field; or writing a first value in the first bit, and writing a second value in the second bit and the third bit; under the condition that the broadcasting mode corresponding to the processing result is determined to be the broadcasting prohibition mode of the processing result and asynchronous information sent by the cloud server is broadcasted, writing a first numerical value into the first bit and the third bit, and writing a second numerical value into the second bit; and under the condition that the broadcasting mode of the processing result is determined to be broadcasting the processing result and asynchronous information sent by the cloud server is broadcasted, writing the first bit and the second bit into a first value, and writing the third bit into a second value.
Through the steps, the problems that in the related art, the broadcasting mode is seriously coupled with the service, and therefore the conditions such as multiple broadcasting and redundancy are frequently generated are solved.
In order to better understand the procedure of the broadcasting method of the processing result, the following describes the implementation method flow of the broadcasting of the processing result in combination with the optional embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for broadcasting a processing result is provided, and fig. 3 is a schematic diagram of a method for broadcasting a processing result according to an alternative embodiment of the present application, as shown in fig. 3, specifically includes the following steps:
step S301: the user speaks a wake-up word to wake up the intelligent device;
step S302: the intelligent equipment picks up sound and sends a pick-up result to the cloud server;
step S303: the cloud server carries out voice recognition on the pickup result, carries out classification processing on the recognized pickup result, frames the analyzed result according to protocol regulation, and sends the frame to the intelligent equipment;
it should be noted that, for the first type of issue that only needs the intelligent device to broadcast;
classifying the full house control class according to the product requirement, classifying the service which only needs to broadcast the control result to the second type, and waiting for asynchronous message pushing by the intelligent terminal for broadcasting;
for a full house control scene (a scene requiring relatively long time for controlling other equipment), classifying and analyzing to a third type, firstly broadcasting by the intelligent terminal after analyzing, and then broadcasting after waiting for asynchronous message pushing;
Classifying skill class and media resource broadcasting into a fourth type, and analyzing and processing by the intelligent equipment according to a media resource protocol;
and classifying the local control class and the local scene part into a fifth type, and processing the local control class and the local scene part in a mode determined by the intelligent terminal.
Step S304: after receiving frame data issued by a cloud server, the intelligent equipment end analyzes and processes the frame data according to a protocol;
step S305: determining whether the intelligent device can parse the new field (corresponding to the setting field in the above embodiment) of the frame data, if so, executing step S307, otherwise executing step S306;
step S306: analyzing the frame data according to the original protocol;
step S307: analyzing the frame data according to a protocol capable of analyzing the newly added field;
specifically, under the condition that the first broadcasting mode is analyzed, when the intelligent equipment analyzes the type, only the field carrying broadcasting contents is needed to be analyzed, the broadcasting processing is directly carried out, and the analysis of other fields is not needed to be analyzed;
under the condition that the second broadcasting mode is analyzed, the intelligent equipment ignores the received frame data when analyzing the type, does not respond, directly ignores the interaction, and waits for the asynchronous message pushed by the cloud to be played later;
Under the condition of analyzing the third broadcasting mode, the intelligent equipment not only plays the content issued by the current protocol, but also broadcasts the upcoming asynchronous message;
under the condition of analyzing the fourth broadcasting mode, the intelligent equipment processes according to the format of the voice skill protocol;
under the condition of analyzing the fifth broadcasting mode, the intelligent equipment determines that the processing logic of the terminal is the same as that of the terminal when the field is not added, and the old intelligent equipment which cannot analyze the new field is not affected by the change of the new protocol according to the original logic.
Step S308: and (5) ending.
According to the embodiment of the invention, the development of a new functional scene is performed on the basis of compatibility with an old version, so that the flexibility of interaction is improved; aiming at the processing parts of the newly added fields, the processing parts are not distinguished one by one according to the types of specific services, but are classified according to the scenes of actual application, so that the processing parts measured by the intelligent terminal are more concise, and uninterrupted iteration is not needed; the availability of the original protocol is maintained, and the stability of the existing products in the market is protected; space is reserved for future scene and function expansion for subsequent iteration.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
Fig. 4 is a block diagram (a) of a structure of a broadcasting device for processing a result according to an embodiment of the present application; as shown in fig. 4, includes:
a sending module 42, configured to send voice information received from a target object to a cloud server, so that the cloud server sends frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
the parsing module 44 is configured to parse the setting field of the frame data to obtain field information of the setting field;
and the playing module 46 is configured to determine a broadcasting mode of the processing result according to the field information, and broadcast the processing result according to the broadcasting mode.
Through the device, voice information received from the target object is sent to a cloud server, so that the cloud server sends frame data to the first equipment according to the voice information; wherein the frame data includes: the cloud server processes the voice information; analyzing a setting field of the frame data to obtain field information of the setting field; the method comprises the steps of determining a broadcasting mode of a processing result according to field information, broadcasting the processing result according to the broadcasting mode, solving the problems that in the related art, the broadcasting mode is seriously coupled with a service, and therefore, the conditions such as multiple broadcasting and redundancy are frequently generated.
In an exemplary embodiment, the parsing module 44, configured to parse the setting field of the frame data to obtain field information of the setting field, includes: acquiring bit information corresponding to the setting field; and determining field information of the setting field according to the bit information.
In an exemplary embodiment, the parsing module 44 is configured to obtain, in a case where the setting field includes three bits, first bit information of a first bit, second bit information of a second bit, and third bit information of a third bit; wherein the first bit, the second bit and the third bit are sequentially arranged at positions in the setting field; and determining the field information according to the first bit information, the second bit information and the third bit information.
In one exemplary embodiment, the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, the play module 46 is configured to perform at least one of: determining that the broadcasting mode is to broadcast the processing result under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value; determining that the broadcasting mode is to broadcast the processing result and broadcast asynchronous information sent by the cloud server under the condition that the first bit information and the third bit information are the first numerical value and the second bit information is the second numerical value; determining that the broadcasting mode is to broadcast the processing result when the first bit information is a first value and the second bit information and the third bit information are a second value; and under the condition that the first bit information and the second bit information are the first numerical value and the third bit information is the second numerical value, determining that the broadcasting mode is to prohibit broadcasting of the processing result and broadcasting asynchronous information sent by the cloud server, wherein the voice information is used for indicating the first equipment to control the second equipment to execute target operation, and the asynchronous information is used for indicating the execution result of the second equipment.
In one exemplary embodiment, the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, the play module 46 is configured to perform at least one of: analyzing the data field of the frame data under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value so as to acquire the processing result, and broadcasting the processing result; analyzing other fields of the frame data according to a network protocol corresponding to the multimedia playing skill of the first device under the condition that the first bit information is a first numerical value, the second bit information and the third bit information are a second numerical value, so as to acquire the processing result in the other fields of the frame data, and broadcasting the processing result; wherein the other fields are used to indicate fields other than the setting field.
In one exemplary embodiment, parsing module 44 is configured to determine whether to successfully parse the set field of the frame data; under the condition that the set field of the frame data is not successfully analyzed, analyzing a service identification field of the frame data according to a historical network protocol of the first equipment, wherein the service identification field is used for indicating a service function of the first equipment; and determining a service type according to the service identification field, and determining a broadcasting mode corresponding to the processing result according to the service type.
In an exemplary embodiment, fig. 5 is a block diagram (ii) of a structure of a broadcasting device of a processing result according to an embodiment of the present application; as shown in fig. 5, the apparatus further includes: the parsing module 44 is configured to parse the check field of the frame data to obtain check information of the frame data; a determining module 52, configured to decrypt the verification information according to a preset key, so as to obtain decrypted verification information; and the parsing module 44 is configured to parse the setting field of the frame data if the decrypted check information is consistent with the preset check information.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, voice information received from a target object is sent to a cloud server, so that the cloud server sends frame data to first equipment according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
S2, analyzing a setting field of the frame data to obtain field information of the setting field;
and S3, determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, voice information received from a target object is sent to a cloud server, so that the cloud server sends frame data to first equipment according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
s2, analyzing a setting field of the frame data to obtain field information of the setting field;
And S3, determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. The broadcasting method of the processing result is characterized by being applied to first equipment and comprising the following steps of:
transmitting voice information received from a target object to a cloud server, so that the cloud server transmits frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
analyzing a setting field of the frame data to obtain field information of the setting field;
and determining a broadcasting mode of the processing result according to the field information, and broadcasting the processing result according to the broadcasting mode.
2. The broadcasting method of the processing result according to claim 1, wherein analyzing the set field of the frame data to obtain the field information of the set field comprises:
acquiring bit information corresponding to the setting field;
And determining field information of the setting field according to the bit information.
3. The method for broadcasting a processing result according to claim 2, wherein obtaining bit information corresponding to the setting field includes:
acquiring first bit information of a first bit, second bit information of a second bit and third bit information of a third bit in the case that the setting field includes three bits; wherein the first bit, the second bit and the third bit are sequentially arranged at positions in the setting field;
the determining the field information of the setting field according to the bit information includes: and determining the field information according to the first bit information, the second bit information and the third bit information.
4. The method of claim 2, wherein the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, after determining the field information of the setting field according to the bit information, at least one of the following is included:
determining that the broadcasting mode is to broadcast the processing result under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value;
Determining that the broadcasting mode is to broadcast the processing result and broadcast asynchronous information sent by the cloud server under the condition that the first bit information and the third bit information are the first numerical value and the second bit information is the second numerical value;
and determining that the broadcasting mode is to broadcast the processing result when the first bit information is a first value and the second bit information and the third bit information are a second value.
5. The method of claim 2, wherein the bit information includes: in the case of the first bit information, the second bit information, and the third bit information, after determining the field information of the setting field according to the bit information, it includes:
and under the condition that the first bit information and the second bit information are the first numerical value and the third bit information is the second numerical value, determining that the broadcasting mode is to prohibit broadcasting of the processing result and broadcasting asynchronous information sent by the cloud server, wherein the voice information is used for indicating the first equipment to control the second equipment to execute target operation, and the asynchronous information is used for indicating the execution result of the second equipment.
6. The method of claim 2, wherein the bit information includes: and broadcasting the processing result according to the broadcasting mode under the condition of the first bit information, the second bit information and the third bit information, wherein the processing result comprises one of the following steps:
analyzing the data field of the frame data under the condition that the first bit information, the second bit information and the third bit information are all of a first numerical value so as to acquire the processing result, and broadcasting the processing result;
analyzing other fields of the frame data according to a network protocol corresponding to the multimedia playing skill of the first device under the condition that the first bit information is a first numerical value, the second bit information and the third bit information are a second numerical value, so as to acquire the processing result in the other fields of the frame data, and broadcasting the processing result; wherein the other fields are used to indicate fields other than the setting field.
7. The method according to claim 1, wherein after parsing the setting field of the frame data, the method further comprises:
Determining whether to successfully parse the set field of the frame data;
under the condition that the set field of the frame data is not successfully analyzed, analyzing a service identification field of the frame data according to a historical network protocol of the first equipment, wherein the service identification field is used for indicating a service function of the first equipment;
and determining a service type according to the service identification field, and determining a broadcasting mode corresponding to the processing result according to the service type.
8. The broadcasting method of the processing result according to claim 1, wherein analyzing the setting field of the frame data comprises:
analyzing the check field of the frame data to obtain check information of the frame data;
decrypting the verification information according to a preset secret key to obtain decrypted verification information;
and analyzing the setting field of the frame data under the condition that the decrypted check information is consistent with the preset check information.
9. A broadcasting device for processing results, comprising:
the sending module is used for sending the voice information received from the target object to a cloud server so that the cloud server can send frame data to the first device according to the voice information; wherein the frame data includes: the cloud server processes the voice information;
The analysis module is used for analyzing the set field of the frame data to obtain field information of the set field;
and the playing module is used for determining a broadcasting mode of the processing result according to the field information and broadcasting the processing result according to the broadcasting mode.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 8.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 8 by means of the computer program.
CN202310187327.3A 2023-02-28 2023-02-28 Broadcasting method and device of processing result, storage medium and electronic device Pending CN116389436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310187327.3A CN116389436A (en) 2023-02-28 2023-02-28 Broadcasting method and device of processing result, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310187327.3A CN116389436A (en) 2023-02-28 2023-02-28 Broadcasting method and device of processing result, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116389436A true CN116389436A (en) 2023-07-04

Family

ID=86960554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310187327.3A Pending CN116389436A (en) 2023-02-28 2023-02-28 Broadcasting method and device of processing result, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116389436A (en)

Similar Documents

Publication Publication Date Title
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN115309062B (en) Control method and device of equipment, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN116360584A (en) Virtual target product generation method and device, storage medium and electronic device
CN107517236B (en) Event processing method, device and equipment for Internet of things
CN114023304A (en) Control method of intelligent equipment, intelligent household equipment, nonvolatile storage medium and processor
CN115002206B (en) Control method and device of intelligent equipment, storage medium and electronic device
CN115167163B (en) Scene execution method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115312048B (en) Equipment awakening method and device, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115296946B (en) Control request decomposition method and device, storage medium and electronic device
CN116132209A (en) Scene construction method and device, storage medium and electronic device
CN115419997B (en) Prompt message sending method and device, storage medium and electronic device
CN114866963B (en) Message sending method, storage medium and electronic device
CN115148204B (en) Voice wakeup processing method and device, storage medium and electronic device
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN116600172A (en) Video playing method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN117912465A (en) Scene data demonstration method and device, storage medium and electronic device
CN114900381A (en) Message sending method and device, storage medium and electronic device
CN117008865A (en) Play setting method and device, storage medium and electronic device
CN116436991A (en) Data message sending method and device, storage medium and electronic 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