Voice messaging sharing method and its intelligent earphone based on cloud platform
Technical field
Share field the invention belongs to voice messaging, more particularly to a kind of voice messaging sharing method based on cloud platform and
Its intelligent earphone.
Background technology
In the prior art, if two people think to listen same voice messaging together, if two people are together, typically can be by hand
Earphone interface on machine connects a translation interface, and two earphone players are converted on such a interface, it is ensured that
Two earphones are connected on one mobile phone, so meeting two people can be while listens the purpose of same voice messaging.But, if beaten
Limitation on broken place, wants to listen same voice in two people of different location same time, and typically all one people shares one section
Voice messaging, such as a song give another people, or two people are each via the same voice of player plays of oneself
Information, it is desirable to keep playing synchronous, it is relatively difficult.
In order to solve the above-mentioned technical problem, United States Patent (USP) discloses a kind of audio devices [publication number:
US20040186707A1], while communication, initiator may be selected a language that need to be shared to the both sides that it discloses mobile communication
Message is ceased, and the shared voice messaging is carried out being decoded as general data signal, and the data signal of the same voice messaging is divided into
Two-way, wherein lead up to changing into after analog signal by voice output unit (such as loudspeaker, earphone;Output, and another way
The voice messaging that word signal is received with the microphone of mobile phone mixes the (audio-frequency information for hereinafter referred to as mixing;Afterwards by communicating mould
Block (such as GSM, GPRS;Send reciever mobile phone to, reciever mobile phone is received after the audio-frequency information of mixing in its local output,
The program can be realized carrying out music sharing during mobile communication.
For another example, Chinese patent discloses a kind of voice messaging sharing method based on smart bluetooth earphone, system and intelligence
Bluetooth earphone [application number:CN201510543220.3], smart bluetooth earphone respectively with audio-frequence player device and other bluetooth ears
Machine sets up Bluetooth pairing connection;The smart bluetooth earphone is received sets up the audio-frequence player device hair that Bluetooth pairing is connected with it
The voice data for sending;The smart bluetooth earphone exports audio playback signal after being decoded to the voice data, while will
The voice data send to the smart bluetooth earphone set up there is Bluetooth pairing be connected other bluetooth earphones, make described in its
His bluetooth earphone shares the voice data of the audio-frequence player device output, and the program can realize that an audio frequency apparatus connection is more
Individual bluetooth earphone is reaching shared purpose.
Above-mentioned two scheme realizes the shared target of voice messaging to a certain extent, but the realization of both functions is equal
Mobile phone this ancillary equipment is be unable to do without, and the former has limitation, it is necessary to realize sharing in communication process on share time,
There is limitation in the latter, be all significantly improved space in sharing method on, and also no one kind can lead at present
Cross hardware device and be directly realized by the shared scheme of voice messaging.
The content of the invention
Regarding the issue above, the present invention provides a kind of language based on cloud platform for being not limited to place and time
Sound information sharing method;
The another object of this programme is to provide and a kind of the connection of any place control at any time and can realize what is shared
Intelligent earphone based on cloud platform.
To reach above-mentioned purpose, present invention employs following technical proposal:Voice messaging based on cloud platform of the invention
Sharing method is comprised the following steps:
S1:The play instruction that mobile device is uploaded is received, and voice messaging is sent to the mobile device according to play instruction;
S2:Whether the shared switch of the mobile device is judged in opening,
If so, mobile device transmission is then received, and for asking to carry out matching shared being total to sharing request object
Enjoy solicited message;
S3:Sharing request object is searched, and whether judges the sharing request object in shared connection status,
If so, then performing step S4S4:Sent and the mobile device phase in step S1 or S2 to sharing request object synchronization
Same voice messaging.
By above-mentioned technical proposal, realize being not limited to place by cloud platform and can temporally allow between two equipment to share
Same data message in cloud platform is realizing information sharing.
In the above-mentioned voice messaging sharing method based on cloud platform, in step s 2, when determining the mobile device
Shared switch when being closed, cloud platform only sends voice messaging to the mobile device.
In the above-mentioned voice messaging sharing method based on cloud platform, described sharing request object is also for movement sets
Standby, each described mobile device is the intelligent earphone with unique link code.
In the above-mentioned voice messaging sharing method based on cloud platform, the content of described sharing request information is shared
Ask the phonetic order of the concatenation code of object.
In the above-mentioned voice messaging sharing method based on cloud platform, in step s 2, by judging whether to receive
Whether the sharing request information that the mobile device is uploaded is switched in opening with judging to share;
Or, judge to share by judging whether to receive the open command of the shared on & off switch on intelligent earphone
Whether switch is in opening.
In the above-mentioned voice messaging sharing method based on cloud platform, in step s3, by judgement and sharing request
Whether object shares connection status in connection status to judge whether the sharing request object is in;
Or by the open command that judges whether to receive the shared on & off switch on the sharing request object to sentence
Whether the sharing request object break in shared connection status.
In the above-mentioned voice messaging sharing method based on cloud platform, described voice messaging is to be stored in cloud platform
Audio file.
A kind of intelligent earphone based on cloud platform, including the headset body with unique link code, described headset body
Communication module, command reception module and playing module are inside provided with, described headset body is connected to cloud and puts down by communication module
Platform, wherein,
Cloud platform:For storing audio file, make headset body by with cloud platform connected reference audio file to play
Voice messaging, while for the data syn-chronization between at least two headset bodies with shared voice messaging;
Command reception module:For receiving play instruction and sharing request information;
Playing module:The audio file of cloud platform is stored in for being played according to play instruction.
In the above-mentioned intelligent earphone based on cloud platform, described command reception module includes that a phonetic order recognizes mould
Block, language processing module and task control module, wherein,
Phonetic order identification module:Include the phonetic order of play instruction and sharing request information for recognizing;
Language processing module:Treatment Analysis are carried out for the phonetic order to play instruction and sharing request information;
Task control module:For controlling headset body respectively according to play instruction and the phonetic order of sharing request information
To play and share voice messaging.
In the above-mentioned intelligent earphone based on cloud platform, described command reception module also includes being arranged on for identification
The operational order identification module of the open command of on & off switch is shared in headset body.
The present invention has the advantages that the convenience and ageing that voice messaging is shared, without specially being held in specified terminal
Row control operation, is not limited to other embedded devices, is also not limited to place, can Anywhere be controlled at any time
System connection.
The present invention also has earphone hardware architecture simple, it is not necessary to the advantages of ancillary equipment.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment one that the present invention is provided;
Fig. 2 is the flow chart of the embodiment two that the present invention is provided;
Fig. 3 is the communication process schematic diagram of the embodiment two that the present invention is provided;
Fig. 4 is the structured flowchart of the embodiment two that the present invention is provided.
In figure, headset body 1;Communication module 11;Command reception module 12;Phonetic order identification module 121;Language Processing
Module 122;Task control module 123;Operational order identification module 124;Playing module 13;Cloud platform 3.
Specific embodiment
The following is the preferred embodiments of the present invention and with reference to accompanying drawing, technical scheme is further described,
List is the invention is not restricted to these embodiments.
Embodiment one
As shown in figure 1, the voice messaging sharing method based on cloud platform of the invention is comprised the following steps:
S1:The mobile device of cloud platform 3 and at least one carries out wireless connection, and receives what at least one mobile device was uploaded
Play instruction, and voice messaging is sent to the mobile device according to play instruction;
S2:Whether the shared switch of the mobile device is judged in opening,
Determination methods are as follows:By judging whether to receive sharing request information that the mobile device uploads to judge to share
Whether switch is in opening, if the sharing request information for receiving upload gives tacit consent to the intelligence for sending the sharing request information
The shared switch of earphone is in opening, i.e., exist without shared switch physically herein.
Cloud platform 3 receives what the mobile device sent simultaneously, and it is shared to carry out pairing for request and sharing request object
Sharing request information;
And in step s 2, when the shared switch for determining the mobile device is closed, 3 pairs of shiftings of cloud platform
Dynamic equipment only sends voice messaging.
Wherein sharing request object is also mobile device, and each described mobile device is with unique link code
Intelligent earphone, in the present embodiment, in order that scheme becomes apparent from, readily appreciates, using as initiate sharing request Intellgent Ear
Machine is referred to as main earphone, and the intelligent earphone as sharing request object is referred to as set of headphones.
Wherein, voice messaging is the audio file being stored in cloud platform 3.
The process that main earphone plays voice messaging is as follows:Main earphone recognizes that broadcasting refers to by phonetic order identification module 121
Again by accessing the audio file of cloud platform 3 after order, i.e., play instruction is sent to cloud platform 3, cloud platform 3 receives play instruction
Afterwards, reading is analyzed to play instruction, and sends the audio being stored in cloud platform 3 to main earphone according to the result after reading
File, main earphone receives audio file to carry out voice messaging broadcasting.
S3:Cloud platform 3 judges whether the sharing request object is located according to sharing request information searching sharing request object
In shared connection status,
Determination methods are as follows:By judging whether cloud platform 3 is total in connection status with sharing request object to judge this
Whether request object is enjoyed in shared connection status, if sharing request object is that acquiescence is in connection status with cloud platform 3
Shared connection status, now, as long as cloud platform 3 receives request, the sharing request object carries out shared sharing request information i.e.
Shared state can be entered, also existed without shared switch physically herein;
If so, then performing step S4;
S4:Sent and the mobile device identical voice messaging in step S1 or S2 to sharing request object synchronization.
Wherein, the content of sharing request information is the phonetic order of the concatenation code of any intelligent earphone, and user is in main earphone
The concatenation code of any earphone is said in side, and the corresponding intelligent earphone of the concatenation code is just the set of headphones chosen by user;
Certainly, because each intelligent earphone is built-in with communication module 11 and playing module 13, and the playing module 13 is adopted
With stream media technology, there is connection cloud platform 3 to carry out uploading instructions and audio file is received for each intelligent earphone, and play
The function of Streaming Media, so main earphone and set of headphones also adjustable change place, i.e., main earphone is used as set of headphones, set of headphones conduct
Main earphone is used.
Stream media technology:
Streaming Media refers to continue to send multimedia messages to the multimedia technology of the other end from one end." stream " in Streaming Media
It is not a kind of carrier of media to express in the technology, but a kind of action for persistently transmitting information.Stream media technology passes through will
Multimedia file is decomposed and compressed, and is transmitted in the form of streaming, it is possible to when a multimedia is not sended over completely also
Can just be played out by media player.
Streaming transfer protocol:
The transmission of Streaming Media is supported, being attached using TCP or UDO can all cause some problems.Transmission Control Protocol can be with
Ensure that data order is correctly reached, but retrying for it can bring a large amount of time delays to ease up with timeout mechanism to real time streaming
Punching.UDP can send a large amount of Streaming Media bags with simple and effective, but but it cannot be guaranteed that will not packet loss, also in the absence of Fault recovery
Mechanism.Therefore Streaming Media mainly carries out data using realtime transmission protocol RTP agreement and RTCP Real-time Transport Control Protocol RTCP
The transmission of stream.RTP is used for providing has the transmission of feature of having a try end to end, it does not guarantee that the succession of data, it is necessary to by
RTCP provides the guarantee of service quality.
Use below the present embodiment is specifically described by taking the concrete scene of music sharing as an example:
Herein, using earphone A as main earphone, cloud platform 3 connects earphone A, and cloud platform 3 and ear by communication module 11
Machine A keeps connection long, and user sends play instruction according to the hobby of oneself by earphone A, and the play instruction is to be chosen by user
Song title or the song other information voice messaging, cloud platform 3 receives play instruction, and according to play instruction
3 search the song that user chooses in the audio file being stored in cloud platform 3, and the song that then will be chosen is sent to earphone A
Played out for earphone A;
User says the concatenation code of any intelligent earphone by voice, and earphone passes through the automatic identification chain of command reception module 12
Code is connect, while the content of the concatenation code is sent to cloud platform 3, cloud as the sharing request information of earphone A by communication module 11
Platform 3 receives sharing request information, and the corresponding earphone of the concatenation code is labeled as to set up shared relationship between main earphone
Set of headphones, herein, the set of headphones is earphone B, if now cloud platform 3 is detected with earphone B in connection status, then it represents that earphone
B is in shared connection status, and cloud platform sends the song chosen by user to earphone B, while synchronous with earphone A play.
This is sentenced as a example by song, certainly, in specific implementation process, is not limited to song, or other forms
Voice messaging.
Embodiment two
As shown in Fig. 2 the present embodiment is similar with embodiment one, difference is to present embodiments provide one kind to be based on
The intelligent earphone of cloud platform, including the headset body 1 with unique link code, communication mould is provided with described headset body 1
Block 11, command reception module 12 and playing module 13, described headset body 1 are connected to cloud platform 3 by communication module 11, its
In,
Cloud platform 3:One storage platform, also referred to as server, for storing audio file, make headset body 1 by with
The connected reference audio file of cloud platform 3 to play voice messaging, while for the data syn-chronization between at least two headset bodies 1
To share voice messaging;Specifically as shown in figure 3, earphone A is connected to cloud platform 3 by wifi, audio text in cloud platform 3 is accessed
Part, earphone B is connected to cloud platform 3 also by wifi, and earphone B accesses the audio file that earphone A is accessed.
Command reception module 12:For receiving play instruction and sharing request information;
Playing module 13:The audio file of cloud platform 3 is stored in for being played according to play instruction.
The playing module 13 of the present embodiment is transmitted and decoding audio lattice using treatment is completed using digital signal processor
The playback equipment of the task of formula file, its core is digital signal processor (DSP;, the transmission of DSP processing datas, control device
Audio file is decoded and is played, the processing speed of DSP quickly, and is consumed little circuit in processing procedure.
In the present embodiment, communication module 11 includes wifi module, its transport layer for belonging to Internet of Things, be by serial ports or
Transistor-Transistor Logic level is converted into the flush bonding module for meeting wifi wireless network communication standards, built-in wireless network protocol
Irr802.11b.g.n protocol stacks and ICP/IP protocol stack, traditional hardware device insertion wifi module can be utilized directly
Wifi links internet.
In Wifi modules, AP is exactly WAP, is a founder for wireless network, is the Centroid of network.
Numerous terminals being connected in wireless network referred to as website (STA;, all of communication in network is forwarded by AP
's.
Each headset body 1 has ID of unique concatenation code as correspondence earphone, for distinguishing each earphone.
Further, described command reception module 12 includes a phonetic order identification module 121, language processing module
122 and task control module 123, wherein,
Phonetic order identification module 121:Include the phonetic order of play instruction and sharing request information for recognizing;
Language processing module 122:Treatment Analysis are carried out for the phonetic order to play instruction and sharing request information;
Task control module 123:For controlling headset body 1 respectively according to play instruction and the voice of sharing request information
Instruction is played and shared voice messaging.
Further, described command reception module 12 also includes being arranged on to be shared in headset body 1 for identification opening
The operational order identification module 124 of crucial open command.
Embodiment three
The present embodiment is similar with embodiment one, and difference is the shared switch of the present embodiment to be arranged on intelligent earphone
On shared on & off switch, judge shared opening by judging whether to receive the open command of the shared on & off switch on intelligent earphone
Close and whether be in opening.The open command of on & off switch unlatching is received by command reception module 12, and by wireless module
It is transmitted to cloud platform 3;
Similarly, in the present embodiment, in order that scheme becomes apparent from, readily appreciate, also will be used as initiation sharing request
Intelligent earphone be referred to as main earphone, the intelligent earphone as sharing request object is referred to as set of headphones.
After the shared on & off switch on main earphone is operating as uploading open command in opening, cloud platform 3 etc.
The connection code of the sharing request object uploaded by main earphone to be received, the sharing request object is set of headphones, then looks up this
The shared on off state of set of headphones..
Similarly, cloud platform 3 pass through to judge whether to receive the open command of shared on & off switch in set of headphones with
Judge set of headphones whether in shared connection status..
When set of headphones shared on & off switch to cloud platform 3 upload open command after, cloud platform 3 find the set of headphones when
Wait, cloud platform 3 sends the voice messaging as main earphone to realize the voice messaging synchronization between two earphones to set of headphones
With it is shared.
The present embodiment is specifically described using concrete scene below, such as Fig. 4:
Herein, using earphone A as main earphone, earphone A connects cloud platform 3 by communication module 11, and is protected with cloud platform 3
Connection long is held, user sends play instruction according to the hobby of oneself, the play instruction is the name of the song that content is chosen by user
The voice of the other information of title or the song, cloud platform 3 receives play instruction, and is being stored in cloud platform according to play instruction
The song that user chooses is searched in audio file in 3, the song that then will be chosen is sent to earphone A and is played out for earphone A;
When on & off switch on earphone A sends open command by operation, command reception module 12 recognizes the on & off switch
Open command, is then uploaded to the concatenation code that the user of cloud platform 3 says set of headphones by voice, by command reception by open command
Module 12 is identified, and is as a result uploaded to cloud platform 3 by communication module 11 in the lump, and cloud platform 3 will correspond to the concatenation code
Earphone is labeled as set of headphones, and set of headphones is earphone B herein, if now earphone B sends open command, table by Operation switch key
Show that the shared switch of earphone B is in opening, i.e., in shared connection status, cloud platform 3 notifies that earphone B starts access cloud and puts down
The data that earphone A is accessed on platform 3, in other words cloud platform 3 send content as earphone A to earphone B, earphone A is same with earphone B
Step plays the song that user chooses.
This is sentenced as a example by song, certainly, in specific implementation process, is not limited to song, or other forms
Voice messaging.
It is an advantage of the current invention that headset body 1 is integrated with communication module 11 and the grade hardware of playing module 13, it is not necessary to outward
Peripheral equipment realizes the convenience of shared voice messaging and ageing directly accessing the audio file of cloud platform 3, and without specially
The executive control operation in specified terminal, is not limited to embedded device, is also not limited to room and time, can be any
When be Anywhere controlled connection.
Specific embodiment described herein is only to the spiritual explanation for example of the present invention.Technology neck belonging to of the invention
The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode
Generation, but without departing from spirit of the invention or surmount scope defined in appended claims.
Although more having used headset body 1 herein;Communication module 11;Command reception module 12;Phonetic order is recognized
Module 121;Language processing module 122;Task control module 123;Operational order identification module 124;Playing module 13;Cloud platform
3 grade terms, but it is not precluded from using the possibility of other terms.Conciliate just for the sake of more easily description using these terms
Release essence of the invention;Any additional limitation is construed as all to be disagreed with spirit of the present invention.