CN113596959A - Communication method and system based on natural language coding - Google Patents

Communication method and system based on natural language coding Download PDF

Info

Publication number
CN113596959A
CN113596959A CN202110870946.3A CN202110870946A CN113596959A CN 113596959 A CN113596959 A CN 113596959A CN 202110870946 A CN202110870946 A CN 202110870946A CN 113596959 A CN113596959 A CN 113596959A
Authority
CN
China
Prior art keywords
information
distribution network
equipment
natural language
broadcast
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
CN202110870946.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.)
Sipic Technology Co Ltd
Original Assignee
Sipic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sipic Technology Co Ltd filed Critical Sipic Technology Co Ltd
Priority to CN202110870946.3A priority Critical patent/CN113596959A/en
Publication of CN113596959A publication Critical patent/CN113596959A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the invention provides a communication method based on natural language coding. The method comprises the following steps: the first equipment carries out voice broadcast based on a resolution protocol of natural language coding; when the first equipment receives distribution network information which is at least carried with first equipment information and is coded by a plurality of second equipment based on natural language, the first equipment determines the second equipment corresponding to the first received distribution network information as alternative second equipment, and a distribution network is carried out based on the distribution network information of the alternative second equipment; and after the distribution network is finished, the first equipment plays a distribution network finishing information broadcast at least carrying the designated alternative second equipment as receiving equipment based on a natural language coded resolution protocol. The embodiment of the invention also provides a communication system based on the natural language coding. The embodiment of the invention can directly realize the point-to-point distribution network based on the sound wave without establishing a connection between the first equipment of the network to be distributed and the second equipment of the distributed network in advance based on the natural language code transmission process, and has high universality.

Description

Communication method and system based on natural language coding
Technical Field
The invention relates to the field of intelligent voice, in particular to a communication method based on natural language coding.
Background
When the new device is used for the network distribution, the network distribution information (such as WIFI names and passwords) stored in the distributed device can be acquired to automatically distribute the network. The transmission mode between the new device and the device already in the network is as follows: internet based technologies such as wifi technology, cellular communication technology, or bluetooth, contactless radio frequency (NFC, RFID), etc.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art:
in the communication process of the distribution network, connection must be established on the premise, otherwise, direct communication interaction cannot be performed, data transmitted by information is generally byte streams, when the byte streams are transmitted in a channel, information users cannot sense the byte streams in the transmission process, the information interaction process cannot be displayed visually, and the users can only know the final result.
Disclosure of Invention
The method and the device aim to at least solve the problems that in the prior art, connection must be established on the premise that a network is distributed between a new device and a device which is already distributed, and a user cannot perceive the communication information interaction process.
In a first aspect, an embodiment of the present invention provides a communication method based on natural language coding, applied to a first device, and including:
the method comprises the following steps that a first device carries out voice broadcast based on a natural language coded analytic protocol and is used for obtaining distribution network information from at least one second device within a sound wave propagation range, wherein the voice broadcast comprises the following steps: a natural language voice broadcast carrying at least information not specifying a receiving device;
when the first device receives distribution network information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, the first device determines the second device corresponding to the first received distribution network information as an alternative second device, and performs distribution network based on the distribution network information of the alternative second device;
after the distribution network is completed, the first device plays a distribution network completion information broadcast at least carrying the appointed alternative second device as a receiving device based on the natural language coded resolution protocol, and the distribution network completion information broadcast is used for broadcasting the distribution network completion voice through the alternative second device so as to complete the sound wave point-to-point communication between the first device and the alternative second device.
In a second aspect, an embodiment of the present invention provides a communication method based on natural language coding, applied to a second device, including:
the second equipment monitors the voice broadcast in the sound wave transmission range in real time, and when the voice broadcast of the first equipment is found, the decoding is carried out based on the analysis protocol of natural language coding;
judging whether the voice broadcast is a distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
when the second device confirms that the voice broadcast is the distribution network intention and the second device contains distribution network information, the second device broadcasts the distribution network information at least carrying sending device information and receiving device information based on a natural language coded resolution protocol;
and in response to receiving the distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, converting the distribution network completion information broadcast into a voice broadcast for playing.
In a third aspect, an embodiment of the present invention provides a communication system based on natural language coding, including:
a voice broadcast program module, configured to perform voice broadcast on the basis of an analysis protocol of natural language coding by a first device, and acquire distribution network information from at least one second device within a sound wave propagation range, where the voice broadcast includes: a natural language voice broadcast carrying at least information not specifying a receiving device;
the network distribution program module is used for determining a first second device corresponding to the received network distribution information as an alternative second device by the first device when the first device receives network distribution information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, and carrying out network distribution based on the network distribution information of the alternative second device;
and the communication program module is used for playing a distribution network completion information broadcast at least carrying the appointed alternative second equipment as receiving equipment based on the resolution protocol of the natural language code by the first equipment after the distribution network is completed, and broadcasting a distribution network completion voice through the alternative second equipment so as to complete the sound wave point-to-point communication between the first equipment and the alternative second equipment.
In a fourth aspect, an embodiment of the present invention provides a communication system based on natural language coding, including:
the monitoring program module is used for monitoring the voice broadcast in the sound wave propagation range in real time by the second equipment, and decoding the voice broadcast based on the analytic protocol of the natural language code when the voice broadcast of the first equipment is found;
the judging program module is used for judging whether the voice broadcast is the distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
a broadcast program module, configured to, when the second device determines that the voice broadcast is a distribution network intention and the second device itself includes distribution network information, broadcast, by the second device, the distribution network information that carries at least sending device information and receiving device information based on an analysis protocol of natural language coding;
and the voice playing program module is used for responding to the received distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, and converting the distribution network completion information broadcast into a voice broadcast for playing.
In a fifth aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the natural language coding based communication method of any of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the steps of the natural language coding-based communication method according to any embodiment of the present invention.
The embodiment of the invention has the beneficial effects that: based on natural language coding, the point-to-point distribution network based on sound waves can be directly realized without establishing connection between the first equipment of the network to be distributed and the second equipment of the distributed network in advance in the transmission process. The popularity is high, and the distribution network information sent by other equipment is prevented from interfering in the distribution network process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a communication method based on natural language coding according to an embodiment of the present invention;
fig. 2 is a flowchart of an actual distribution network of a communication method based on natural language coding according to an embodiment of the present invention;
FIG. 3 is a flowchart of a communication method based on natural language coding according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication system based on natural language coding according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a communication system based on natural language coding according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a communication method based on natural language coding according to an embodiment of the present invention, which includes the following steps:
s11: the method comprises the following steps that a first device carries out voice broadcast based on a natural language coded analytic protocol and is used for obtaining distribution network information from at least one second device within a sound wave propagation range, wherein the voice broadcast comprises the following steps: a natural language voice broadcast carrying at least information not specifying a receiving device;
s12: when the first device receives distribution network information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, the first device determines the second device corresponding to the first received distribution network information as an alternative second device, and performs distribution network based on the distribution network information of the alternative second device;
s13: after the distribution network is completed, the first device plays a distribution network completion information broadcast at least carrying the appointed alternative second device as a receiving device based on the natural language coded resolution protocol, and the distribution network completion information broadcast is used for broadcasting the distribution network completion voice through the alternative second device so as to complete the sound wave point-to-point communication between the first device and the alternative second device.
In the embodiment, natural language coding is used, taking a newly purchased intelligent air conditioner as an example, a 'distribution network' is a 'distribution network intention' started after the intelligent air conditioner is self-detected, a natural language text can be generated according to a built-in stored word list and grammar, the natural language text can be Chinese, English or other languages, and the natural language text is determined according to the word list and the grammar; taking Chinese as an example, the common structure is "main + predicate + guest" to compose the intention of the device itself into a natural language text, and then perform speech synthesis, so as to generate a corresponding speech broadcast, for example, "i is a new device, and requests a network distribution". The voice broadcast is used for inquiring whether other equipment (such as an intelligent printer or other equipment with an intelligent voice interaction function) exists in the sound wave propagation range of the intelligent air conditioner, and the user can understand what the equipment is particularly in the process of the voice broadcast.
For step S11, the method can be applied to various devices with intelligent voice function, and the intelligent air conditioner is taken as the first device in the following. For the intelligent air conditioner of the equipment, the intelligent air conditioner is started by voice or by pressing a button, and the intelligent air conditioner is started to be distributed with a network. The intelligent air conditioner generates broadcast voice which accords with a natural language analysis protocol, and the voice content is as follows: and starting the distribution network. The device air conditioner generates broadcast voice while adding additional information, such as device information of the smart air conditioner, a device serial number, etc., to the transmitted sound wave by using a modulation method, but it is noted that the information is not specified for the receiving device. Since the acoustic delivery is in the form of a broadcast, there are many, and unknown, other networked devices that may receive the broadcast. If the information of the receiving equipment is added at the moment, the equipment does not exist or does not have a network, and the network communication cannot be distributed even if the point-to-point transmission of the sound waves is realized.
As an embodiment, the parsing protocol of the natural language code at least includes:
transmitting device information for additionally adding configuration information for indicating a transmitting device in broadcasting;
receiving device information for additionally attaching configuration information specifying a receiving device in a broadcast;
and the check bit is used for additionally adding configuration information for checking the broadcast validity in the broadcast.
The parsing protocol of the natural language code further comprises: starting message, sending message sequence packet, sending equipment information length, receiving message sequence number, receiving equipment information length, natural language voice ending mark and ending message.
In this embodiment, the device air conditioner generates broadcast voice and adds extra information to the transmitted sound wave by using a modulation method, and the protocol is defined as follows:
starting a message: marking the protocol to start;
sending message sequence number: marking the sequence number of message sending, such as the self-increment of the sequence number index;
length of transmission device information: marking the information length of the only sending equipment behind;
transmitting device information: such as the current sending device mac address;
receiving a message sequence number: responding to the received serial number of the sent message, and marking that the current message is the response to the specified message;
information length of reception apparatus information: marking the information length of the receiving equipment, if the receiving equipment is not designated at the beginning, the information length of the receiving equipment is 0, and the representing time broadcasts a message and is not point-to-point sound wave transmission;
receiving the equipment information: appointing receiving equipment information, mainly for realizing point-to-point communication;
natural language speech: for example, in the above scenario, the voice of "starting distribution network";
natural language end of speech marking: a preset natural language voice end mark;
checking the bit: checking the validity of the data packet, such as using crc checking, etc.;
and (5) ending the message: and marking the end of the protocol.
The effective information is added in the sound wave through the analytic protocol, the carried equipment information and the like are added in the voice through the sound wave, a user can only hear the voice and cannot know the equipment information in the sound wave, the safety of sound wave communication interaction is improved, and the user can be prompted as to which step the user communicates.
For step S12, for example, the notebook computer, the mobile phone, the smart printer, and the smart router in the area of the sound wave propagation range of the smart air conditioner receive the broadcasted voice message. These devices are also processed using natural language coded parsing protocols. For example, the intelligent printer and the intelligent router broadcast the distribution network information (wifi name, user name and password) carrying the first device information. In the protocol, both the sending device and the receiving device are specified, for example, in the distribution network information sent by the intelligent printer, the sending device is the mac address of the printer of the sending device, and the receiving device information is the mac address of the air conditioner. The carried first device information indicates that the broadcast is received by the first device, namely the intelligent air conditioner, but not any other device. Thus, the broadcasting of the sound wave broadcasting has a definite receiving object.
As shown in fig. 2, the intelligent air conditioner preferentially receives the distribution network information sent by the printer with a short distance, after decoding, the distribution network information is judged, the intelligent air conditioner determines the first received intelligent printer as the alternative device, and the distribution network information sent by the intelligent printer is used for distribution network.
As an embodiment, after the network distribution is performed based on the distribution network information of the alternative second device, the method further includes:
and modifying the distribution network state of the first equipment, wherein the first equipment generates a voice broadcast at least carrying non-alternative second equipment information based on a natural language coded resolution protocol, and is used for sending the distributed information to the non-alternative second equipment.
After the alternative equipment is judged to send the distribution network information, the distribution network state (initial state) is recorded as pending state, whether the received receiving equipment information is matched with the equipment information of the receiving equipment is judged, if yes, the distribution network information is set, and the distribution network state is recorded as pending state. When the intelligent air conditioner receives the distribution network information of the intelligent router again, judging whether the distribution network state is in a pending state or a pend state, if so, broadcasting the information that the air conditioner is distributed by other equipment to the intelligent router through the protocol, and after the intelligent router receives the information, prompting the air conditioner to be distributed by other equipment or to be distributed by the other equipment through voice broadcast by the intelligent router so as to further prompt a user.
For step S13, after the distribution network is completed, the intelligent air conditioner determines the natural language of the completion of the distribution network, and according to the above protocol, sends device information to fill in the information of the air conditioner itself, and receives device information to fill in the information of the intelligent printer to perform distribution network completion information broadcasting with a receiving destination, so that the intelligent printer performs voice broadcasting after parsing. And at the moment, the intelligent air conditioner is already distributed with a network, and a user can directly use the intelligent air conditioner. If this pronunciation is reported by intelligent air conditioner, the user still need wait for intelligent air conditioner to report the completion, just can carry out the interaction of next round, and reports through intelligent printer, has liberated intelligent air conditioner, and at the in-process of reporting, the user directly just can carry out new step's interaction with intelligent air conditioner, has promoted interactive efficiency.
According to the embodiment, although the sound waves are transmitted in a broadcasting mode, the sound waves carry extra information, a receiving object of the sound waves is determined, and the point-to-point distribution network based on the sound waves can be directly realized without establishing a good connection between the first equipment of the network to be distributed and the second equipment of the distributed network in advance in the transmission process. And the distribution network information sent by other equipment is prevented from interfering in the distribution network process.
Fig. 3 is a flowchart of a communication method based on natural language coding according to an embodiment of the present invention, which includes the following steps:
s21: the second equipment monitors the voice broadcast in the sound wave transmission range in real time, and when the voice broadcast of the first equipment is found, the decoding is carried out based on the analysis protocol of natural language coding;
s22: judging whether the voice broadcast is a distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
s23: when the second device confirms that the voice broadcast is the distribution network intention and the second device contains distribution network information, the second device broadcasts the distribution network information at least carrying sending device information and receiving device information based on a natural language coded resolution protocol;
s24: and in response to receiving the distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, converting the distribution network completion information broadcast into a voice broadcast for playing.
In this embodiment, the second device may be an intelligent product that has been purchased by a user, and only a protocol in the natural language code needs to be adapted without upgrading hardware, and a natural language is transmitted in the sound wave, and as long as the transmitted natural language conforms to the rule of the natural language parser, when the device function is increased, the device function can be realized through the natural language without extending the protocol.
For step S21, the devices in the sound wave propagation range of the intelligent air conditioner include a notebook computer, a mobile phone, an intelligent printer, and an intelligent router, which all receive the broadcasted voice message. These devices decode using natural language coded parsing protocols: after passing through the recognition model, the natural language decoding result obtained by recognition is decoded by using the prior knowledge (comprising a preset dictionary and a natural language parser).
For step S22, it is noted that two instruction judgments are performed according to the obtained decoding result, and it is determined whether the voice broadcast is the distribution network intention, and it is also determined whether the devices, such as the notebook computer, the mobile phone, the intelligent printer, and the intelligent router, contain distribution network information, if the notebook computer and the mobile phone are not connected to the network, the two devices can judge the distribution network intention, but do not contain distribution network information, and do not perform subsequent processing, which is also implemented based on natural language coding.
With respect to step S23, for example, the network distribution information is contained in the intelligent printer and the intelligent router, and it is also confirmed that the voice broadcast of the intelligent air conditioner of the first device is the network distribution intention. At this time, the intelligent printer and the intelligent router broadcast the distribution network information (wifi name, user name, password) based on the natural language coding resolution protocol, and both the sending device and the receiving device in the protocol are specified, for example, in the distribution network information sent by the printer, the sending device is the mac address of the printer itself, and the receiving device information is the mac address of the air conditioner.
For step S24, taking the intelligent printer as an example, the intelligent printer receives the distribution network completion information broadcast with the intelligent printer receiving device played by the intelligent air conditioner, the intelligent printer confirms that the distribution network completion information broadcast is sent to itself, and the natural language code converts the distribution network completion information broadcast into a voice broadcast for playing, so that the user can know that the distribution network is successful.
As another embodiment, after the broadcasting the distribution network information at least carrying the sending device information and the receiving device information, the method further includes:
and when the second equipment receives the information of the distributed network broadcasted by the first equipment, ending the distribution network.
Taking the intelligent router as an example, since the intelligent printer preferentially sends the distribution network information to the intelligent air conditioner, at this time, the intelligent air conditioner is already in a distribution network state, and the intelligent air conditioner broadcasts the 'distributed network information' carrying the information of the intelligent router device. The intelligent router finishes the distribution of the network after receiving the information, and meanwhile, the intelligent router can also prompt that the air conditioner is distributed in the network by other equipment or the network is distributed by other equipment through voice broadcasting, so that the state of the distribution network is further prompted to a user.
According to the embodiment, the second equipment can be used for carrying out point-to-point distribution of sound waves with the first equipment which is not distributed with the network only by adapting to the protocol in the natural language code, the universality is high, and meanwhile, the interference of other equipment can be avoided.
To further illustrate the steps of the method, it is shown from the perspective of the apparatus, as shown in FIG. 2.
For the smart air conditioner of the first device:
an air conditioner starts a distribution network (voice starting or key starting);
and packaging the sound waves, wherein information in a protocol is added into the sound waves, and the sound waves comprise a starting message, equipment information, a sending information serial number, a natural language conforming to a natural language decoding rule, verification information, an ending message and the like.
Broadcasting the above group package information, and transmitting the above information together by sound waves.
For the intelligent printer of the second device:
receiving sound waves, judging that the message is a complete one through a start message and an end message, and simultaneously checking whether the sent message is finished (through a check bit in the message);
through natural language decoding, judging that the intention is the intention of requesting the distribution network;
judging whether the equipment printer side contains distribution network information or not;
the method comprises the steps that the network distribution information is packaged and comprises information such as a wifi name, a user name and a password, meanwhile, the sound wave protocol comprises self equipment information, the receiving equipment information is designated as air conditioner equipment information, the receiving serial number is designated as a sending serial number of a currently received network distribution request message, and the mark is a response to the message;
and sending the distribution network information to a printer.
For the intelligent router of the second device:
the steps are the same as the steps of the intelligent printer.
For the smart air conditioner of the first device:
after sound wave information of a distribution network of the intelligent printer is received, the sound wave information is decoded through natural language to judge that the sound wave information is the intention of the distribution network, the received serial number in the received sound wave is judged to be the serial number sent last time, and the current state is set to be the state of the distribution network;
after sound wave information of a distribution network of the intelligent router is received, the purpose of the distribution network is judged through natural language decoding, the received serial number in the received sound wave is judged to be the last sent serial number, the current state of the distribution network is judged, and the sound wave in the distribution network is sent to the router;
the intelligent air-conditioning equipment starts to be distributed with a network, and sends distribution network completion sound waves to the printer after the distribution network is completed.
For the intelligent printer of the second device:
and after receiving the information that the intelligent air conditioner distribution network is completed, broadcasting that the intelligent air conditioner distribution network is the air conditioner distribution network.
For the intelligent router of the second device:
after the information that the intelligent air conditioner is in the distribution network is received, the fact that the air conditioner is distributed in the distribution network by other equipment is reported.
In the process of distribution network, each device is preset with natural language analysis codes, including natural language analysis algorithms and dictionaries, and periodically updated analysis algorithms and dictionaries, and the like, and the whole device control process has natural voice prompt, so that the device is user-friendly and clear in process, and meanwhile, the point-to-point distribution of sound waves is realized.
Fig. 4 is a schematic structural diagram of a communication system based on natural language coding according to an embodiment of the present invention, which can execute the communication method based on natural language coding according to any of the above embodiments and is configured in a terminal.
The communication system 10 based on natural language coding provided by the embodiment includes: a voice broadcast program module 11, a distribution network program module 12 and a communication program module 13.
The voice broadcast program module 11 is configured to enable a first device to perform voice broadcast based on an analysis protocol of natural language coding, and is configured to acquire distribution network information from at least one second device within a sound wave propagation range, where the voice broadcast includes: a natural language voice broadcast carrying at least information not specifying a receiving device; the distribution network program module 12 is configured to, when the first device receives distribution network information that is encoded by a plurality of second devices based on natural language and at least carries the first device information, determine, by the first device, a second device corresponding to the first received distribution network information as an alternative second device, and perform distribution network based on the distribution network information of the alternative second device; the communication program module 13 is configured to, after completion of a network distribution, play a network distribution completion information broadcast at least carrying a designation of the candidate second device as a receiving device based on an analysis protocol of the natural language code by the first device, and broadcast a network distribution completion voice through the candidate second device, so as to complete sound wave point-to-point communication between the first device and the candidate second device.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the communication method based on the natural language code in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
the method comprises the following steps that a first device carries out voice broadcast based on a natural language coded analytic protocol and is used for obtaining distribution network information from at least one second device within a sound wave propagation range, wherein the voice broadcast comprises the following steps: a natural language voice broadcast carrying at least information not specifying a receiving device;
when the first device receives distribution network information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, the first device determines the second device corresponding to the first received distribution network information as an alternative second device, and performs distribution network based on the distribution network information of the alternative second device;
after the distribution network is completed, the first device plays a distribution network completion information broadcast at least carrying the appointed alternative second device as a receiving device based on the natural language coded resolution protocol, and the distribution network completion information broadcast is used for broadcasting the distribution network completion voice through the alternative second device so as to complete the sound wave point-to-point communication between the first device and the alternative second device.
Fig. 5 is a schematic structural diagram of a communication system based on natural language coding according to an embodiment of the present invention, which can execute the communication method based on natural language coding according to any of the above embodiments and is configured in a terminal.
The communication system 20 based on natural language coding provided by the embodiment includes: a monitor program module 21, a discrimination program module 22, a broadcast program module 23 and a voice playing program module 24.
The monitoring program module 21 is configured to monitor, by the second device, a voice broadcast within a sound wave propagation range in real time, and when the voice broadcast of the first device is found, decode the voice broadcast based on an analysis protocol of natural language coding; the discrimination program module 22 is configured to discriminate whether the voice broadcast is a distribution network intention and discriminate whether the second device itself includes distribution network information according to the decoding result; the broadcast program module 23 is configured to, when the second device determines that the voice broadcast is a distribution network intention and the second device itself includes distribution network information, broadcast, by the second device, the distribution network information that at least carries sending device information and receiving device information based on an analysis protocol of natural language coding; the voice playing program module 24 is configured to convert, in response to receiving a distribution network completion information broadcast that is played by the first device and carries at least the second device as a receiving device, the distribution network completion information broadcast into a voice broadcast, and play the voice broadcast.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the communication method based on the natural language code in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
the second equipment monitors the voice broadcast in the sound wave transmission range in real time, and when the voice broadcast of the first equipment is found, the decoding is carried out based on the analysis protocol of natural language coding;
judging whether the voice broadcast is a distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
when the second device confirms that the voice broadcast is the distribution network intention and the second device contains distribution network information, the second device broadcasts the distribution network information at least carrying sending device information and receiving device information based on a natural language coded resolution protocol;
and in response to receiving the distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, converting the distribution network completion information broadcast into a voice broadcast for playing.
As a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium, which when executed by a processor, perform a natural language coding based communication method of any of the method embodiments described above.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the device, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the natural language coding based communication method of any of the embodiments of the present invention.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones, multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as tablet computers.
(3) Portable entertainment devices such devices may display and play multimedia content. The devices comprise audio and video players, handheld game consoles, electronic books, intelligent toys and portable vehicle-mounted navigation devices.
(4) Other electronic devices with data processing capabilities.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
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 may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A communication method based on natural language coding is applied to a first device and comprises the following steps:
the method comprises the following steps that a first device carries out voice broadcast based on a natural language coded analytic protocol and is used for obtaining distribution network information from at least one second device within a sound wave propagation range, wherein the voice broadcast comprises the following steps: a natural language voice broadcast carrying at least information not specifying a receiving device;
when the first device receives distribution network information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, the first device determines the second device corresponding to the first received distribution network information as an alternative second device, and performs distribution network based on the distribution network information of the alternative second device;
after the distribution network is completed, the first device plays a distribution network completion information broadcast at least carrying the appointed alternative second device as a receiving device based on the natural language coded resolution protocol, and the distribution network completion information broadcast is used for broadcasting the distribution network completion voice through the alternative second device so as to complete the sound wave point-to-point communication between the first device and the alternative second device.
2. The method of claim 1, wherein after the network distribution based on the distribution network information of the alternative second device, the method further comprises:
and modifying the distribution network state of the first equipment, wherein the first equipment generates a voice broadcast at least carrying non-alternative second equipment information based on a natural language coded resolution protocol, and is used for sending the distributed information to the non-alternative second equipment.
3. The method of claim 1, wherein the natural language coded parsing protocol comprises at least:
transmitting device information for additionally adding configuration information for indicating a transmitting device in broadcasting;
receiving device information for additionally attaching configuration information specifying a receiving device in a broadcast;
and the check bit is used for additionally adding configuration information for checking the broadcast validity in the broadcast.
4. The method of claim 3, wherein the natural language coded parsing protocol further comprises: starting message, sending message sequence packet, sending equipment information length, receiving message sequence number, receiving equipment information length, natural language voice ending mark and ending message.
5. A communication method based on natural language coding is applied to a second device and comprises the following steps:
the second equipment monitors the voice broadcast in the sound wave transmission range in real time, and when the voice broadcast of the first equipment is found, the decoding is carried out based on the analysis protocol of natural language coding;
judging whether the voice broadcast is a distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
when the second device confirms that the voice broadcast is the distribution network intention and the second device contains distribution network information, the second device broadcasts the distribution network information at least carrying sending device information and receiving device information based on a natural language coded resolution protocol;
and in response to receiving the distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, converting the distribution network completion information broadcast into a voice broadcast for playing.
6. The method of claim 5, wherein after the broadcasting the distribution network information at least carrying the sending device information and the receiving device information, the method further comprises:
and when the second equipment receives the information of the distributed network broadcasted by the first equipment, ending the distribution network.
7. A natural language coding based communication system comprising:
a voice broadcast program module, configured to perform voice broadcast on the basis of an analysis protocol of natural language coding by a first device, and acquire distribution network information from at least one second device within a sound wave propagation range, where the voice broadcast includes: a natural language voice broadcast carrying at least information not specifying a receiving device;
the network distribution program module is used for determining a first second device corresponding to the received network distribution information as an alternative second device by the first device when the first device receives network distribution information which is at least carried with the first device information and is coded by a plurality of second devices based on natural language, and carrying out network distribution based on the network distribution information of the alternative second device;
and the communication program module is used for playing a distribution network completion information broadcast at least carrying the appointed alternative second equipment as receiving equipment based on the resolution protocol of the natural language code by the first equipment after the distribution network is completed, and broadcasting a distribution network completion voice through the alternative second equipment so as to complete the sound wave point-to-point communication between the first equipment and the alternative second equipment.
8. A natural language coding based communication system comprising:
the monitoring program module is used for monitoring the voice broadcast in the sound wave propagation range in real time by the second equipment, and decoding the voice broadcast based on the analytic protocol of the natural language code when the voice broadcast of the first equipment is found;
the judging program module is used for judging whether the voice broadcast is the distribution network intention or not and judging whether the second equipment contains distribution network information or not according to a decoding result;
a broadcast program module, configured to, when the second device determines that the voice broadcast is a distribution network intention and the second device itself includes distribution network information, broadcast, by the second device, the distribution network information that carries at least sending device information and receiving device information based on an analysis protocol of natural language coding;
and the voice playing program module is used for responding to the received distribution network completion information broadcast which is played by the first equipment and at least carries the second equipment as receiving equipment, and converting the distribution network completion information broadcast into a voice broadcast for playing.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any of claims 1-6.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110870946.3A 2021-07-30 2021-07-30 Communication method and system based on natural language coding Pending CN113596959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110870946.3A CN113596959A (en) 2021-07-30 2021-07-30 Communication method and system based on natural language coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110870946.3A CN113596959A (en) 2021-07-30 2021-07-30 Communication method and system based on natural language coding

Publications (1)

Publication Number Publication Date
CN113596959A true CN113596959A (en) 2021-11-02

Family

ID=78252610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110870946.3A Pending CN113596959A (en) 2021-07-30 2021-07-30 Communication method and system based on natural language coding

Country Status (1)

Country Link
CN (1) CN113596959A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615720A (en) * 2022-03-04 2022-06-10 杭州萤石软件有限公司 Distribution network voice playing method, system and terminal and Internet of things equipment
CN114980267A (en) * 2022-05-20 2022-08-30 Oppo广东移动通信有限公司 Network sharing method and device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107947985A (en) * 2017-11-27 2018-04-20 海尔优家智能科技(北京)有限公司 Method, apparatus that equipment networks, intelligent terminal, networked and treated log equipment
CN110149678A (en) * 2019-06-10 2019-08-20 深圳国美云智科技有限公司 Distribution methods, devices and systems
CN110198242A (en) * 2019-06-06 2019-09-03 百度在线网络技术(北京)有限公司 Distribution method, apparatus and storage medium for speech ciphering equipment
US20190295532A1 (en) * 2018-03-22 2019-09-26 Adobe Inc. Remote Generation of Executable Code for a Client Application Based on Natural Language Commands Captured at a Client Device
CN111726886A (en) * 2019-03-20 2020-09-29 阿里巴巴集团控股有限公司 Network configuration method and device and electronic equipment
CN111867007A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Automatic network distribution method and system for intelligent equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107947985A (en) * 2017-11-27 2018-04-20 海尔优家智能科技(北京)有限公司 Method, apparatus that equipment networks, intelligent terminal, networked and treated log equipment
US20190295532A1 (en) * 2018-03-22 2019-09-26 Adobe Inc. Remote Generation of Executable Code for a Client Application Based on Natural Language Commands Captured at a Client Device
CN111726886A (en) * 2019-03-20 2020-09-29 阿里巴巴集团控股有限公司 Network configuration method and device and electronic equipment
CN110198242A (en) * 2019-06-06 2019-09-03 百度在线网络技术(北京)有限公司 Distribution method, apparatus and storage medium for speech ciphering equipment
CN110149678A (en) * 2019-06-10 2019-08-20 深圳国美云智科技有限公司 Distribution methods, devices and systems
CN111867007A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Automatic network distribution method and system for intelligent equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615720A (en) * 2022-03-04 2022-06-10 杭州萤石软件有限公司 Distribution network voice playing method, system and terminal and Internet of things equipment
CN114615720B (en) * 2022-03-04 2023-10-10 杭州萤石软件有限公司 Method, system, terminal and Internet of things equipment for playing distribution network voice
CN114980267A (en) * 2022-05-20 2022-08-30 Oppo广东移动通信有限公司 Network sharing method and device, and storage medium

Similar Documents

Publication Publication Date Title
CN110753330B (en) Bluetooth pairing method and Bluetooth headset
CN113596959A (en) Communication method and system based on natural language coding
CN112202908B (en) Method, device, electronic equipment and system for associating equipment with account
JP7094485B2 (en) Business data processing method, equipment and related equipment
CN102833582B (en) Method for searching audio and video resources via voice
CN110223697B (en) Man-machine conversation method and system
CN108777596B (en) Communication method, communication system and computer readable storage medium based on sound wave
CN106896933B (en) method and device for converting voice input into text input and voice input equipment
CN105722183A (en) Sharing method and apparatus for Wi-Fi (wireless fidelity) link information
JP2023509868A (en) SERVER-SIDE PROCESSING METHOD AND SERVER FOR ACTIVELY PROPOSING START OF DIALOGUE, AND VOICE INTERACTION SYSTEM FOR POSITIVELY PROPOSING START OF DIALOGUE
CN106686639A (en) Network configuration method and device for intelligent voice interaction equipment, and related equipment
US20140380344A1 (en) Method and Apparatus for Program Information Exchange and Communications System
CN110769382B (en) Message pushing method and device, terminal equipment and storage medium
CN110719573B (en) Information transmission method and device, terminal equipment and storage medium
EP3059731A1 (en) Method and apparatus for automatically sending multimedia file, mobile terminal, and storage medium
CN103488497A (en) Upgrading method and system of audio equipment
CN109660988B (en) Communication authentication processing method and device and electronic equipment
CN115132213A (en) Audio data transmission method, device, chip, electronic equipment and storage medium
CN110381097A (en) A kind of voice shares method, system and the car-mounted terminal of audio
CN110517691B (en) Voice transparent transmission method and system for voice conversation platform
CN111510555B (en) Communication method, device and system for DECT base station
CN110034858B (en) Data packet retransmission method and device, mobile terminal and storage medium
WO2019114074A1 (en) Method and device for performing system configuration, and translation device
CN112954602A (en) Voice control method, transmission method, device, electronic equipment and storage medium
CN106656353B (en) Information transmission method and device applied to intelligent robot

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