A kind of the koinotropic type's intelligent sound box exchange method and system of polygonal color participation
Technical field
The invention belongs to wireless communication technology field more particularly to a kind of koinotropic type's intelligent sound box interactions that polygonal color participates in
Method and system.
Background technique
It enters after the internet of things era, more and more people start in family life using intelligent sound box, intelligent sound
The instruction that case can be according to ' owner ', such as puts a first song, executes the playback action of response.These a series of dos command line DOSs for it
Under, we talk with a robot in fact, this robot is exactly for example small news of role preset in sound-box device, small love
Deng.Although this, which can satisfy us, listens the primary demand of song, but it is clear that it is not smart enough, universal in nowadays intelligence
Very thorough epoch, our demand are not limited only to same machine and carry out stiff question-response formula interaction, we are more willing to allow it
It lives in, goes to carry out communication exchange with other people by frosty machine.People is group animal, we thirst for handing over others
Stream, the people that we thirst for another our care can hear our sound, it is known that our idea, and intelligence at this stage
Energy speaker does not solve the origin social demand that polygonal color participates in real-time, interactive jointly.
In addition, we have the real demand that the sound of oneself is communicated to other side under many scenes, such as in the Mother's Day
When, in the children of strange land work, thirst for singing what first sieve was helped greatly to mother with the sound of oneself《Mother》, because of mother
Hear the woman singer sung with the sound of oneself can feel you just with she.For another example best boudoir is celebrated a birthday sweet today, but cannot
It shows up and is celebrated for her, then will wish to sing a head《Happy birthday》Song is blessed with table, but currently, user can only be by existing
Real-time voice interactive tool, such as phone, speech message be that object sings, but in many instances using mobile phone or
Immediate communication tool always seem power is weak, penetration power not enough, oneself burning hot true emotion cannot be conveyed, be unable to satisfy
The demand of user.
In order to solve the above-mentioned technical problem, people have carried out long-term exploration, such as Chinese patent discloses a kind of realization
Method and system [the application number that intelligent sound box social activity is shared:CN104065718A], including:The social activity of intelligent sound box reception user
Operational order identifies social operation, and corresponding social parameter is sent to social networks speaker server 1;The social activity parameter
Share mode with the social of this social activity operation including social account number cipher;The intelligent sound box passes through the social account number cipher
It is interacted with the social networks speaker server 1, carries out sharing operation according to the social sharing mode of this social activity operation.
Above scheme increases the function of speaker, and person to person is associated using speaker, but above scheme can only incite somebody to action
Intrinsic music is shared with sharing object, the song that oneself is sung can not be shared with by speaker and share other side's speaker, it is even more impossible to
Instant messaging is carried out with object is shared.
Summary of the invention
Regarding the issue above, the present invention provides a kind of koinotropic type's intelligence that the polygonal color for extending function of loudspeaker box participates in
It can speaker exchange method;
The another object of this programme is to provide a kind of koinotropic type's intelligent sound box friendship that the polygonal color based on the above method participates in
Mutual system.
In order to achieve the above objectives, present invention employs following technical proposals:
A kind of koinotropic type's intelligent sound box exchange method that polygonal color participates in, including:
S1. the first speaker user and one or more second speaker users are built according to the request of the first speaker user
Vertical connection relationship;
S2. the operational order and voice messaging of the first speaker user are received, and according to the operational order by the voice
Information is sent to the target speaker user that the relationship that contacts is established with the first speaker user.
In koinotropic type's intelligent sound box exchange method that above-mentioned polygonal color participates in, step S2 is specifically included:
S201. the target sound that the voice messaging and the first speaker user for receiving the first speaker user are specified by operational order
Case user information;
S202. the voice messaging is sent to the target speaker user.
In koinotropic type's intelligent sound box exchange method that above-mentioned polygonal color participates in, in step s 2, using based on MQTT
Transport protocol carries out the communications between the first speaker user and target speaker user;
And step S2 is specifically included:
S211. the target speaker user information that the first speaker user is specified by operational order is received, and by the first speaker
The speech message of user is sent to the target speaker user;
S212. the Instant Messenger gateway of the first speaker user Yu target speaker user are established after target speaker user agrees to
System.
In koinotropic type's intelligent sound box exchange method that above-mentioned polygonal color participates in, in step sl, connection relationship is established
Step includes establishing friend relation, and establish friend relation by the following method:
S11. the good friend including one or more second speaker user account informations for receiving the first speaker user upload adds
Add application;
S12. the good friend is added into application and is sent to corresponding second speaker user, and agree to Shen in the second speaker user
Please after establish the friend relation between the first speaker user and the second speaker user.
In koinotropic type's intelligent sound box exchange method that above-mentioned polygonal color participates in, upon step s 2, further include:
S3. it is requested according to the first speaker user by the first speaker user-association to corresponding group, and is having speaker use
PUSH message is sent to the first speaker user when family is sung in corresponding group.
A kind of koinotropic type's intelligent sound box interactive system that polygonal color participates in, including speaker server, the speaker server
Module and communication module are established including relationship, wherein
Relationship establishes module, for according to the request of the first speaker user by the first speaker user and one or more
Second speaker user establishes connection relationship;
Communication module, for receiving the operational order and voice messaging of the first speaker user, and according to the operational order
The voice messaging is sent to the target speaker user that the relationship that contacts is established with the first speaker user.
In koinotropic type's intelligent sound box interactive system that above-mentioned polygonal color participates in, the communication module includes:
Receiving module, the voice messaging and the first speaker user for receiving the first speaker user are specified by operational order
Target speaker user information;
Forwarding module, for the voice messaging to be sent to the target speaker user.
It include i.e. in the speaker server in koinotropic type's intelligent sound box interactive system that above-mentioned polygonal color participates in
When communication protocol module, for carry out the instant messaging between the first speaker user and target speaker user transmission;
And the communication module includes instant messaging module, for establish the first speaker user and target speaker user i.e.
When correspondence.
In koinotropic type's intelligent sound box interactive system that above-mentioned polygonal color participates in, the relationship establishes module and includes:
Apply for processing module, includes one or more second speaker user accounts for receive the first speaker user upload
The good friend of information adds application, and the good friend is added application and is sent to corresponding second speaker user;
Good friend's module is used for establishing the first speaker user and second speaker after the second speaker user grants an application
Friend relation between family.
In koinotropic type's intelligent sound box interactive system that above-mentioned polygonal color participates in, the speaker server further includes group
Module for requesting according to the first speaker user by the first speaker user-association to corresponding group, and is having speaker user
PUSH message will be sent to the first speaker user when will be sung in corresponding group.
The present invention has the following advantages that compared to the prior art:The simple human-computer interaction of intelligent sound box is extended to everybody to hand over
Mutually, increase user's viscosity, the music for meeting user is social, and chorus, the demand that sings etc.;Sound is established using MQTT transport protocol
Instant messaging between case provides more stable communication connection mode for speaker user.
Detailed description of the invention
Fig. 1 is the method flow diagram of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the embodiment of the present invention two;
Fig. 3 is the method flow diagram of the embodiment of the present invention three;
Fig. 4 is the system structure diagram of the embodiment of the present invention five.
Appended drawing reference:Speaker server 1;Relationship establishes module 11;Apply for processing module 111;Good friend's module 112;Communication
Module 12;Receiving module 121;Forwarding module 122;Instant messaging module 123;Instant communication protocol module 13;Group's module 14;
First speaker user 2;Second speaker user 3;Target speaker user 31.
Specific embodiment
Although operations are described as the processing of sequence by flow chart, many of these operations can by concurrently,
Concomitantly or simultaneously implement.The sequence of operations can be rearranged.Processing can be terminated when its operations are completed,
It is also possible to have the additional step being not included in attached drawing.Processing can correspond to method, function, regulation, subroutine, son
Program etc..
Term "and/or" used herein above includes any of associated item listed by one of them or more and institute
There is combination.When a unit referred to as " connects " or when " coupled " to another unit, can be connected or coupled to described
Another unit, or may exist temporary location.
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless
Context clearly refers else, otherwise singular used herein above "one", " one " also attempt to include plural number.Also answer
When understanding, term " includes " and/or "comprising" used herein above provide stated feature, integer, step, operation,
The presence of unit and/or component, and do not preclude the presence or addition of other one or more features, integer, step, operation, unit,
Component and/or combination thereof.
The present invention is applied to intelligent sound box technical field, and the intelligent sound box for mainly solving the prior art has a single function, only
The problems such as being able to achieve simple human-computer interaction, human-computer interaction can not being risen to Health For All, cannot be met the needs of users, with
Under be the preferred embodiment of the present invention and in conjunction with attached drawing, technical scheme of the present invention will be further described, but the present invention is not
It is limited to these embodiments.
Embodiment one
As shown in Figure 1, present embodiment discloses a kind of koinotropic type's intelligent sound box exchange methods that polygonal color participates in, including:
S1. according to the request of the first speaker user 2 by the first speaker user 2 and one or more second speaker users
3 establish connection relationship;
S2. the operational order and voice messaging of the first speaker user 2 are received, and according to the operational order by the voice
Information is sent to the target speaker user 31 that the relationship that contacts is established with the first speaker user 2.
It should be noted that the second speaker user 3 here includes target speaker user 31, target speaker user 31 refers to
The specified communication object of first speaker user 2, that is to say, that the specified voice messaging sending object of the first speaker user 2.
Further, step S2 is specifically included:
S201. the target that the voice messaging and the first speaker user 2 for receiving the first speaker user 2 are specified by operational order
31 information of speaker user;
S202. the voice messaging is sent to the target speaker user 31.
Certainly, if target speaker user 31 has return information, which is replied to first by speaker server 1
Speaker user 2.
The method of the present embodiment is related to speaker server 1 and multiple speakers, in order to distinguish each speaker, here by speaker
It is divided into the first speaker user 2, the second speaker user 3 and target speaker user 31, in actual use, the first speaker user
2, the second speaker user 3 and target speaker user 31 can mutually convert.
In step sl, the first speaker user 2 can be established by the modes such as concern and the second speaker user 3 and contact pass
System, specifically, the first speaker user 2 can find the second speaker by modes such as account information, neighbouring people, network recommendations
User 3.
In addition, voice messaging here is mainly the song that user is sung, that is to say, that user can singing oneself
One first song is sent to its specified speaker by the speaker of oneself, and corresponding speaker owner is enable to listen on the speaker of oneself
This song is sung to user.
Further, the interaction between speaker and user can be used voice mode and interact, naturally it is also possible to use installation
Application on the terminal devices such as terminal device, such as mobile phone, plate is interacted with speaker, and the present embodiment is preferably voice side
Formula interaction.
Usage scenario introduction is carried out by taking interactive voice as an example below:
First speaker user 2 selects one or more second speaker users 3, establishes and contacts with these the second speaker users 3
Relationship, then the user of the first speaker sings on the first speaker and is contacted by phonetic order establishing with oneself after a song
Arbitrarily or by distance or by modes such as classification one or more target speaker users are selected in second speaker user 3 of relationship
31, the song that oneself is sung is sent to target speaker user 31 and completes once to share;
If that the user of the first speaker selects is neighbouring target speaker user 31, the first speaker user is received
The 2 target speakers for singing song can be broadcasted when being turned on to user:You are good by owner, there is 8 points in the morning of people near a
Clock has sung a head for you《Good morning》, if it plays?
If the first speaker user 2 selection is the target speaker user 31 for belonging to classmate's classification, target speaker meeting
It is broadcasted when user is turned on to user:You are good by owner, you have one call oneself from Shenzhen be university classmate people
Tone information please choose whether to play?
Embodiment two
The present embodiment is similar with embodiment one, the difference is that, in the step S1 of the present embodiment, establish connection relationship step
Rapid includes establishing friend relation, and as shown in Fig. 2, establish friend relation by the following method:
That S11. receive the first speaker user 2 upload includes the good friend of 3 account information of one or more second speaker users
Addition application;
S12. the good friend is added into application and is sent to corresponding second speaker user 3, and agreed in the second speaker user 3
The friend relation between the first speaker user 2 and the second speaker user 3 is established after application.
The present embodiment carries out usage scenario introduction equally by taking interactive voice as an example:
A speaker user selects B speaker user request to establish friend relation therewith;Speaker server 1 is good by A speaker user's
Friend's request is transmitted to B speaker user, and after B speaker user agrees to good friend's request, speaker server 1 establishes A speaker user and B speaker
Friend relation between user, and inform B speaker user.
After establishing friend relation, A speaker user can select to be connected to B speaker user and then start to sing, and performance terminates
The song that will sing of speaker server 1 is sent to B speaker user afterwards, is then turned off connection.
Embodiment three
The present embodiment optimizes on the basis of example 2, can not only be to other side point between the user of different speakers
Enjoy the song oneself sung, additionally it is possible to instant messaging is carried out therebetween, in this way, the user at both ends can hear in real time
The song of other side.
In the existing solution for realizing voice instant messaging, both in application software, directly in TCP/UDP agreement
Basis on carry out data exchange.And the data packet of voice and video transmits the udp protocol used, the risk with packet loss,
And it is particularly evident using peak period in user, bad experience can be caused to user, in addition the message length of ICP/IP protocol is very
It is long, a large amount of network flow can be occupied when carrying out extensive prolonged voice data transmission, and consuming energy can be very big.
If being transplanted to prior art and carrying out instant messaging on intelligent sound box, the body of user will be greatly reduced
Degree of testing.
So the present embodiment proposes:In step s 2 using based on MQTT transport protocol carry out the first speaker user 2 with
Communications between target speaker user 31.MQTT is the lightweight communications protocol based on TCP/UDP agreement, is in TCP/
Encapsulating again on the basis of UDP.By MQTT agreement, can be wrapped between speaker with the carry out instant messaging of real-time high-efficiency
Immediate voice communication, message message etc. are included, and can preferably adapt to network environment complicated and changeable.
Through the above scheme, make two based on the building bottom-layer network transmission connection of MQTT transport protocol between each speaker
Or more speakers are erected by MQTT and stablize effective long connection, it is orderly, lossless on the basis for connecting user herein
Real-time Transmission oneself voice data.
The present embodiment is based on the news release quality that can be set, and to guarantee that the reliable no loss of message is sent to, solution can
Existing for energy the problem of Network Packet Loss, the smallest data packet of MQTT agreement only has 2 bits and the not message header of application layer, makes
It obtains agreement exchange to minimize, reduces network bandwidth flow, while also reducing equipment kwh loss.
Specifically, as shown in figure 3, the present embodiment step S2 is specifically included:
S211. 31 information of target speaker user that the first speaker user 2 is specified by operational order is received, and by the first sound
The speech message of case user 2 is sent to the target speaker user 31;
S212. the instant of the first speaker user 2 and target speaker user 31 is established after target speaker user 31 agrees to
Correspondence.
The present embodiment carries out usage scenario introduction equally by taking interactive voice as an example:
A speaker user, which wants to establish instant messaging with the B speaker user for establishing friend relation with it, to be connect, then A
User can be issued to A speaker by way of voice and establish the phonetic order that instant messaging is connect, speaker clothes with B speaker user
Communication request is sent to B speaker user by business device 1, and B speaker is by way of notifying communication connection request to party B-subscriber to party B-subscriber
Casting:You are good by owner, and party A-subscriber wants with your line, if immediately accesses.
Speaker server 1 establishes the instant communication relation of A speaker user Yu B speaker user after B speaker user agrees to, it
Afterwards, A speaker user or B speaker user's word, the song sung can all be transmitted to other side in real time.In this way, party A-subscriber stays at home, K is sung,
The party B-subscriber that can invite in the distance participates in K song together, although the two, apart from far, the song played back has
The same effect of K song does not limit to here certainly and establishes instant communication relation between two speaker users, can also be more together
Between a speaker user.
Example IV
The present embodiment is similar to embodiment three with embodiment one, the difference is that, this implementation upon step s 2, is also wrapped
It includes:
S3. server requests for the first speaker user 2 to be associated with to corresponding group according to the first speaker user 2, and
There is speaker user to send PUSH message to the first speaker user 2 when will sing in corresponding group.
In addition, further including:Group spontaneously or according to user's request is established, then receives and agrees to each speaker user
The application of the group is added, receives the advance notice that sings of any or specific speaker user in the group later, then will sing pre-
It accuses and gives other speakers user in the group.
Method through this embodiment can not only sing between several specific one or several speaker users
Share, user can also share song to some group, or the song that sings of other users is heard in group, when in group
When having user that will sing, remaining speaker user can broadcast to corresponding user in group:You are good by owner, 8 points of tonight of your idol
As the small phenanthrene of king will sing in real time in XX group, if room is added and listens to?
Embodiment five
As shown in figure 4, present embodiment discloses a kind of koinotropic type's intelligent sound box interactive system that polygonal color participates in, including sound
Case server 1, speaker server 1 are connected to the first speaker user 2 and the second speaker user 3, or directly say that speaker takes
Business device is connected to each speaker 3 to realize the interaction between each speaker user, also, speaker here includes that voice is received
Storage and Audio Players, voice collector are used to collect the phonetic order and song of user, and Audio Players are used for and user
It interacts and plays the song that network song or other users sing to user.
Here speaker server 1 includes that relationship establishes module 11 and communication module 12, wherein
Relationship establishes module 11, for according to the request of the first speaker user 2 by the first speaker user 2 and one or
Multiple second speaker users 3 establish connection relationship;
Communication module 12 refers to for receiving the operational order and voice messaging of the first speaker user 2, and according to the operation
Enable the target speaker user 31 that the voice messaging is sent to and establishes the relationship that contacts with the first speaker user 2.
Further, the communication module 12 includes:
Receiving module 121, voice messaging and the first speaker user 2 for receiving the first speaker user 2 pass through operation and refer to
Enable specified 31 information of target speaker user;
Forwarding module 122, for the voice messaging to be sent to the target speaker user 31.
It preferably, include instant communication protocol module 13 in the speaker server 1, for carrying out the first speaker user
Instant messaging transmission between 2 and target speaker user 31;
At this point, the communication module 12 further includes:Instant messaging module 123, for establishing the first speaker user 2 and target
The instant communication relation of speaker user 31.
Further, the relationship establishes module 11 and includes:
Apply for processing module 111, includes one or more second speaker users for receive the first speaker user 2 upload
The good friend of 3 account informations adds application, and the good friend is added application and is sent to corresponding second speaker user 3;
Good friend's module 112, for establishing the first speaker user 2 and described second after the second speaker user 3 grants an application
Friend relation between speaker user 3.
The speaker server 1 further includes group's module 14, for being requested according to the first speaker user 2 by first sound
Case user 2 is associated with to corresponding group, and sends out when there is speaker user that will sing in group to the first speaker user 2
Send PUSH message.
Specific embodiment described herein is only to give an example to the present invention.The technical field of the invention
Technical staff can make various modifications or additions to the described embodiments or be substituted in a similar manner, but
Without departing from the spirit of the invention or going beyond the scope defined by the appended claims.
In addition, although speaker server 1 is used more herein;Relationship establishes module 11;Apply for processing module 111;
Good friend's module 112;Communication module 12;Receiving module 121;Forwarding module 122;Instant messaging module 123;Instant communication protocol mould
Block 13;Group's module 14;First speaker user 2;Second speaker user 3;The terms such as target speaker user 31, but be not precluded and make
A possibility that with other terms.The use of these items is only for be more convenient to describe and explain essence of the invention them
Being construed to any additional limitation is disagreed with spirit of that invention.