The content of the invention
Based on this, it is necessary to it is cumbersome when carrying out that audio is continuous to listen for the equipment of same user the problem of, there is provided it is a kind ofVoice data synchronous method and device.
A kind of voice data synchronous method, methods described include:
S1, receive voice data synchronic command;
User's mark that S2, the extraction voice data synchronic command include, device identification, voice data and describedThe current play position of audio corresponding to voice data;
S3, inquiry device identification set corresponding with the user mark of said extracted;The device identification set bagInclude at least one mobile unit mark and at least one mobile communication equipment mark;
S4, the device identification for filtering out from the device identification set inquired extraction;
S5, the current play position by audio corresponding to the voice data and the voice data, send to after filteringThe device identification corresponding to equipment, to cause the current play position of audio corresponding to the equipment from the voice dataPlay audio corresponding to playing audio data.
In one embodiment, before the step S1, methods described also includes:
Receive logging request;
Obtain user's mark and the device identification that the logging request includes;
According to the logging request, the device identification of acquisition is stored to setting corresponding to the user mark of acquisitionIn standby logo collection.
In one embodiment, the step S5 includes:
S51, when equipment state is presence corresponding to the remaining device identification after filtering, directly by the soundThe current play position of audio corresponding to frequency evidence and the voice data, it is presence to send to corresponding equipment stateEquipment corresponding to device identification, to cause the equipment to be broadcast from the current play position of audio corresponding to the voice dataPut audio corresponding to the voice data;
S52, when equipment state is off-line state corresponding to the remaining device identification after filtering, cache the audioThe current play position of audio corresponding to data and the voice data, and in equipment shape corresponding to the remaining device identificationWhen state is updated to presence by off-line state, the equipment for being updated to presence is sent to equipment state, to cause described setThe standby audio corresponding to playing audio data from the current play position of audio corresponding to the voice data.
In one embodiment, the step S52 includes:
When equipment state is off-line state corresponding to the remaining device identification after filtering, it is corresponding to equipment stateThe device identification of off-line state, the current play position of audio corresponding to the voice data and the voice data is delayedDeposit into waiting list;
Detect equipment state be off-line state the device identification corresponding to equipment state be updated to presenceWhen, audio corresponding to voice data corresponding to corresponding device identification and the voice data is read from the waiting listCurrent play position;
The current play position of the voice data of reading and the voice data is sent to corresponding device identificationCorresponding equipment.
In one embodiment, after the step S3, methods described also includes:
When the device identification of extraction identifies for mobile unit, the step S4 is performed;
When the device identification of extraction identifies for mobile communication equipment, from the device identification set inquiredFilter out mobile unit mark;
Receive the voice data operational order initiated by equipment corresponding to the mobile communication equipment mark of extraction;
By the voice data operational order of reception send to filter out the mobile unit mark corresponding to it is vehicle-mountedEquipment so that the mobile unit responds the voice data operational order.
The present invention also proposes a kind of voice data sychronisation, and described device includes:
Receiving module, for receiving voice data synchronic command;
Extraction module, for extracting the user's mark, device identification, audio number that the voice data synchronic command includesAccording to this and audio corresponding to the voice data current play position;
Enquiry module, for inquiring about device identification set corresponding with the user mark of said extracted;The equipmentLogo collection includes at least one mobile unit mark and at least one mobile communication equipment mark;
Filtering module, for filtering out the device identification of extraction from the device identification set inquired;
Sending module, for by the current play position of audio corresponding to the voice data and the voice data, hairEquipment corresponding to the device identification delivered to after filtering, to cause working as audio corresponding to the equipment from the voice dataPreceding play position plays audio corresponding to playing audio data.
In one embodiment, described device also includes:
Relating module, for receiving logging request;Obtain user's mark and the device identification that the logging request includes;According to the logging request, the device identification of acquisition is stored to device identification collection corresponding to the user mark of acquisitionIn conjunction.
In one embodiment, the sending module is additionally operable to the equipment corresponding to remaining device identification after filteringWhen state is presence, directly by the current play position of audio corresponding to the voice data and the voice data, hairEquipment state is the equipment corresponding to the device identification of presence corresponding to delivering to, to cause the equipment from the audio numberAudio corresponding to playing audio data is played according to the current play position of corresponding audio;Remaining equipment after filteringWhen equipment state corresponding to mark is off-line state, the current of audio corresponding to the voice data and the voice data is cachedPlay position, and when equipment state corresponding to the remaining device identification is updated to presence by off-line state, sendThe equipment of presence is updated to equipment state, to cause the current of audio corresponding to the equipment from the voice data to broadcastPut position and play audio corresponding to playing audio data.
In one embodiment, the sending module is additionally operable to the equipment corresponding to remaining device identification after filteringWhen state is off-line state, corresponding to the device identification that equipment state is off-line state, by the voice data and describedThe current play position of audio corresponding to voice data is cached into waiting list;Detecting equipment state for off-line stateWhen equipment state corresponding to the device identification is updated to presence, corresponding device identification is read from the waiting listThe current play position of audio corresponding to corresponding voice data and the voice data;By the voice data of reading and instituteThe current play position for stating voice data is sent to equipment corresponding to corresponding device identification.
In one embodiment, the filtering module is additionally operable to when the device identification of extraction identifies for mobile unitWhen, the device identification of extraction is filtered out from the device identification set inquired;
Described device also includes:
Synchronization module, for when extraction the device identification for mobile communication equipment identify when, described in inquiringMobile unit mark is filtered out in device identification set;Receive by equipment corresponding to the mobile communication equipment mark of extractionThe voice data operational order of initiation;The voice data operational order of reception is sent to the mobile unit filtered outMobile unit corresponding to mark so that the mobile unit responds the voice data operational order.
Above-mentioned voice data synchronous method and device, after voice data synchronic command is received, extraction data syn-chronization refers toThe user's mark and device identification that order includes, inquiry is corresponding with user mark, and including at least one mobile unit markKnow the device identification set with least one mobile communication equipment mark, therefrom filter out and initiate the synchronous equipment pair of voice dataThe device identification answered, then data syn-chronization is instructed to the currently playing of audio corresponding to the voice data and voice data includedPosition is sent to equipment corresponding to identifying corresponding other equipment mark with user so that the equipment is broadcast from the current of voice dataPut position and play audio corresponding to playing audio-fequency data, realize the mobile unit and mobile communication equipment for automatically belonging to same userBetween voice data it is synchronous, avoid audio progress in the equipment after regulation is changed manually and listen position cumbersome to continuingProblem.
Embodiment
For the objects, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with drawings and Examples, to thisInvention is described in further detail.It should be appreciated that embodiment described herein is only to explain the present invention,Do not limit protection scope of the present invention.
Fig. 1 is the implementation schematic diagram of one embodiment sound intermediate frequency method of data synchronization.Reference picture 1, the voice data are synchronousMethod is applied to voice data synchronization system.
Voice data synchronization system includes mobile communication equipment 110, mobile unit 120 and server 130, and mobile communication is setIt is connected respectively by network with server 120 for 110 and mobile unit 120.Mobile communication equipment 110 can be specifically mobile phone,At least one of tablet personal computer, notebook computer etc..Mobile unit 120 can be specifically the equipment that can be arranged on vehicle.Server 130 can be specifically independent server or server cluster.
Fig. 2 is the internal structure schematic diagram of server in one embodiment.As shown in Fig. 2 the server is including passing throughProcessor, non-volatile memory medium, built-in storage and the network interface of bus of uniting connection.Wherein, the server is non-volatileProperty storage medium is stored with operating system and database.The processor of the server is used to provide calculating and control ability, supportThe operation of whole server.Computer-readable instruction can be stored in the built-in storage of the server, the computer-readable instructionDuring by the computing device, a kind of voice data synchronous method of the computing device may be such that.The network of the server connectsMouth is used to communicate by network connection with the mobile communication equipment and/or mobile unit of outside according to this, for example receives mobile communicationVoice data synchronic command that equipment is sent etc..Server can with independent server either multiple server groups into clothesDevice cluster be engaged in realize.It will be understood by those skilled in the art that the structure shown in Fig. 2, only related to application schemePart-structure block diagram, do not form the restriction for the server being applied thereon to application scheme, specific serverIt can include, than more or less parts shown in figure, either combining some parts or arranging with different parts.
As shown in figure 3, in one embodiment, there is provided a kind of voice data synchronous method, the present embodiment is in this wayIllustrated applied to the server 130 in above-mentioned Fig. 1.This method specifically comprises the following steps:
S1, receive voice data synchronic command.
Wherein, voice data synchronic command refers to carry out the synchronous instruction of voice data between distinct device for triggering.There is including interface operation, and the client for supporting audio to play on mobile communication equipment or mobile unit.Mobile communication equipment orMobile unit can obtain the voice data synchronic command triggered in interface, and the interface is used to show currently playing audio.It is mobileCommunication apparatus or the detectable predefined trigger action for currently playing audio of mobile unit, are detecting the trigger actionWhen trigger corresponding voice data synchronic command, the voice data synchronic command of triggering is sent to server.
Trigger action can be the operation to control in interface, such as, touch control operation or cursor to control click on behaviourMake etc..Trigger action can also be the click to predefined physical button.For mobile communication equipment, trigger action can be withBe triggered when showing the interface of currently playing audio rock operation etc..
User's mark, device identification, voice data and the voice data that S2, extraction voice data synchronic command includeThe current play position of corresponding audio.
Wherein, user is identified for one user of unique mark.Device identification is used for one equipment of unique mark.User marksKnow and device identification may each be the character string for including at least one of numeral, letter and symbol character.One user can gather aroundThere is multiple equipment, that is, user's mark may correspond to multiple equipment mark.Voice data can be audio url address orPerson's audio resource mark etc..The current play position of audio corresponding to voice data refers to the currently playing time axle position of audioPut.Such as currently playing to 03 point 03 second etc..
In one embodiment, voice data can be audio url address, can be specifically URL (UniformResource Locator URLs) address.The operable mobile communication equipment of user or mobile unit pass through userVoice data synchronic command is initiated in mark and device identification, and representing the voice data synchronic command is possessed wherein by the userOne equipment is initiated.When sending voice data synchronic command by equipment by currently playing audio url address and the soundThe current play position of frequency, it is encapsulated in voice data synchronic command and is transmitted.
In one embodiment, voice data can also be audio resource mark.Audio can be previously stored in serverResources bank, server is that each audio resource distributes audio resource mark in audio resource storehouse, so that obtaining user is passing through movementWhen communication apparatus or mobile unit play audio, identified by audio resource from the audio resource storehouse of server and pull corresponding soundFrequency resource.User initiates voice data synchronization in operation mobile communication equipment or mobile unit by user's mark and device identificationDuring instruction, the audio resource mark of currently playing audio can be encapsulated in voice data synchronic command and be transmitted.
S3, inquiry device identification set corresponding with the user's mark extracted;Device identification set includes at least one carCarry device identification and at least one mobile communication equipment mark.
Wherein, device identification set includes some device identifications, and each device identification is used to identify an equipment.EquipmentMark includes mobile unit mark and mobile communication equipment mark, and the quantity of mobile unit mark and mobile communication equipment markIt is at least one.Mobile unit corresponding to mobile unit mark refers to the equipment being arranged on mobile traffic.Such as carCarry sound equipment or vehicle-mounted computer etc..In the present embodiment, mobile unit corresponding to mobile unit mark is vehicular rear mirror.SupportAudio plays and the client including interface can pass through the rearview mirror interface exhibition of vehicular rear mirror according on the vehicular rear mirrorShow client end interface.Vehicular rear mirror can also show client end interface by projection mode.
In the present embodiment, user is when the client run on mobile communication equipment or mobile unit logs in, the movementCommunication apparatus or mobile unit can send association request to server.The association request includes user corresponding to active user and identifiedWith the equipment corresponding to device identification.Server includes association request after the association request of user's transmission is receivedDevice identification is stored in device identification set corresponding to the user's mark included to association request.
In one embodiment, server can also detect what user ran on mobile communication equipment or mobile unitWhen client logs in, user's mark corresponding to the current user for carrying out register and the current equipment for carrying out register are obtainedCorresponding device identification.Server is in the device identification for getting user's mark with after device identification, association request being includedStoring to association request is included in device identification set corresponding to user's mark.
Further, user's mark and device identification set corresponding with user's mark are stored with the server.ServiceDevice is identified with after device identification in the user that extraction voice data synchronic command includes, and inquires about on server store and extractionUser's mark the device identification set of corresponding relation be present.
S4, the device identification for filtering out from the device identification set inquired extraction.
Specifically, server can travel through each device identification in device identification set, in traversal, by the equipment mark of traversalKnow and the device identification of extraction is contrasted, when the device identification of traversal is identical with the device identification extracted, by being somebody's turn to do for traversalDevice identification filters out, and terminates to travel through.
S5, the current play position by audio corresponding to voice data and voice data, send remaining to after filtering setEquipment corresponding to standby mark, to cause working as audio corresponding to equipment from voice data corresponding to remaining device identification after filteringPreceding play position plays audio corresponding to playing audio-fequency data.
Specifically, server can determine remaining equipment mark after screening and filtering is carried out to the device identification set of inquiryEquipment corresponding to knowledge is to need to carry out the synchronous equipment of voice data.Server will can extract from voice data synchronic commandThe current play position of audio corresponding to voice data and voice data send to determination to need to carry out voice data synchronousEquipment so that equipment corresponding to remaining device identification can be from the current play position of audio corresponding to voice data after filteringAudio corresponding to playing audio-fequency data.
In one embodiment, the voice data of equipment is corresponding to remaining device identification after server is sent to filteringAudio url address, the equipment is after the chained address is received, according to the chained address from server pull audio resource, thenThe current play position sent according to server, jumps to the play position and continues to play the audio.
In one embodiment, the voice data of equipment corresponding to remaining device identification after server is sent to filteringCan be audio resource mark, the equipment is identified in server after audio resource mark is received according to audio resourceAudio resource corresponding to being searched in audio resource storehouse, the current play position sent further according to server, jumps to the broadcasting positionPut and continue to play the audio.
Above-mentioned voice data synchronous method, after voice data synchronic command is received, wrapped in extraction data syn-chronization instructionThe user's mark included and device identification, inquiry is corresponding with user mark, and including at least one mobile unit mark and extremelyThe device identification set of few mobile communication equipment mark, therefrom filter out and initiate to set corresponding to the synchronous equipment of voice dataStandby mark, then data syn-chronization is instructed the current play position of audio corresponding to the voice data and voice data included send outDeliver to equipment corresponding to other equipment mark corresponding with user's mark so that current play position of the equipment from voice dataAudio corresponding to playing audio-fequency data is played, is realized between the mobile unit and mobile communication equipment that automatically belong to same userVoice data is synchronous, avoids audio progress in the equipment after regulation is changed manually to continuing the problem of listening position cumbersome.
In one embodiment, before step S1, voice data synchronous method also includes:Receive logging request.ObtainThe user's mark and device identification that logging request includes.According to logging request, the device identification of acquisition is stored to acquisitionIn device identification set corresponding to user's mark.
Specifically, server can be carried out receiving the client that user runs on mobile communication equipment or mobile unitDuring the logging request of login, user's mark and device identification that logging request includes are obtained.Server is getting user's markKnow with after device identification, the device identification of acquisition is stored to the equipment of storage on the server corresponding to user's mark of extractionIn logo collection.
In one embodiment, server can obtain current login time when receiving logging request every time, will obtainThe device identification corresponding record that includes of current login time and logging request.Server can be detected regularly and each device identificationCorresponding login time record recently, if detection time and the time interval of nearest login time record are more than between preset timeEvery will then be filtered out in device identification slave unit logo collection corresponding to nearest login time record.
Wherein, the slave unit that prefixed time interval refers to pre-set identifies corresponding login time and risen, and device identification canWith the duration of reservation.Server also can start timing in login time corresponding to recording equipment mark, reach in timing durationDuring prefixed time interval, still it is not detected by user and is logged in again by the device identification, then filter out the device identification.ThisKind device identification reservation mode can filter out in time is not carried out device identification corresponding to the equipment of register for a long time, avoids clothesThe problem of equipment that business device is stopped using to user carries out voice data synchronously and wastes server resource.
In the present embodiment, just will currently be logged in when receiving and being identified by user in the request logged in equipmentThe storage corresponding with the user's mark passed through during current log in of device identification corresponding to the equipment of use, can will correspond to user in timeThe multiple equipment mark of mark is stored, to receive by identifying corresponding one of device identification hair with userWhen playing voice data synchronic command, the other equipment for determining to correspond to same user mark with the device identification in time identifies, withIt will need corresponding to the audio playing status synchronism that synchronizes to the other equipment mark of determination in equipment.
In one embodiment, step S5 is specifically included in voice data synchronous method:S51, remaining after filtering setWhen equipment state corresponding to standby mark is presence, directly by the currently playing of audio corresponding to voice data and voice dataPosition, it is the equipment corresponding to the device identification of presence to send to corresponding equipment state, to cause equipment from audio numberAudio corresponding to playing audio-fequency data is played according to the current play position of corresponding audio.
S52, when equipment state corresponding to remaining device identification after filtering is off-line state, buffered audio data and soundThe current play position of frequency audio corresponding to, and updated in equipment state corresponding to remaining device identification by off-line stateFor presence when, the equipment for being updated to presence is sent to equipment state, to cause sound corresponding to equipment from voice dataThe current play position of frequency plays audio corresponding to playing audio-fequency data.
Specifically, user currently carry out register use equipment can timing report the current of the equipment to set to serverStandby state, to cause server according to whether the equipment carries out current device state reporting to judge that the equipment is in off-line stateOr presence.In the present embodiment, server is when detecting the current device state sent by device identification, by equipmentCorresponding equipment state corresponding to device identification is updated to presence in logo collection.Sent out being not detected by by device identificationDuring the current device state sent, corresponding equipment state corresponding to device identification in device identification set is updated to offline shapeState.Wherein, regularly refer to periodically perform certain operation, can be specifically every 10 minutes etc..
In additional embodiment, server also actively can regularly detect the current device of the current equipment for performing registerState, according to the current device state detected with current device state corresponding to recording the equipment in the server.
In the present embodiment, for the equipment in presence, directly by sound corresponding to voice data and voice dataThe current play position of frequency is transmitted so that the equipment can carry out voice data synchronization in real time.For in off-line stateEquipment, the current play position of audio corresponding to voice data and voice data is stored, the equipment equipment state moreIt is transmitted when being newly presence, the problem of data may cause loss of data can not be received in time by avoiding off-line device.
Further, in one embodiment, remaining device identification is corresponding after filtering in voice data synchronous methodEquipment state when being off-line state, corresponding to the device identification that equipment state is off-line state, by voice data and audio numberCached according to the current play position of corresponding audio into waiting list.In the equipment mark for detecting that equipment state is off-line stateWhen equipment state is updated to presence corresponding to knowledge, voice data corresponding to corresponding device identification is read from waiting listWith voice data corresponding to audio current play position.The current play position of the voice data of reading and voice data is sent outDeliver to equipment corresponding to corresponding device identification.
In this embodiment, for the equipment in off-line state, corresponding to device identification corresponding to the equipment, by audio numberStored according to current play position to waiting list, in equipment corresponding to each voice data of storage and each current play position moreCorrespondingly it is transmitted when being newly presence.It so may be implemented in the equipment in off-line state and be updated to presenceWhen, the voice data of respective stored and current play position are issued exactly, ensure that the synchronous accuracy of voice data.
In one embodiment, after step s 3, voice data synchronous method also includes:When the device identification of extraction isWhen mobile unit identifies, step S4 is continued executing with.When the device identification of extraction identifies for mobile communication equipment, from setting for determinationMobile unit mark is filtered out in standby logo collection.Receive what is initiated by equipment corresponding to the mobile communication equipment mark of extractionVoice data operational order.By the voice data operational order of reception send to filter out mobile unit mark corresponding to it is vehicle-mountedEquipment so that mobile unit responds voice data operational order.
Wherein, voice data operational order refers to the instruction operated to currently playing audio.For example suspend or cutChange.Specifically, server can detect that the device identification that the voice data synchronic command of reception includes is mobile communicationAfter device identification, mobile unit mark is filtered out from the device identification set of determination, and establishes mobile communication equipment markLong connection between corresponding mobile communication equipment and the corresponding mobile unit of mobile unit mark filtered out.
The mobile communication equipment by extraction of reception can be identified the voice data operational order initiated and sent by serverTo mobile unit corresponding to the mobile unit mark filtered out so that the mobile unit responds the voice data operational order, realThe real-time synchronization now established between the mobile communication equipment and mobile unit of long connection, it is real by mobile communication equipment so as to realizeWhen control mobile unit.
In the present embodiment, when the equipment of initiation voice data synchronic command is mobile communication equipment, by being somebody's turn to do for receptionThe voice data operational order that mobile communication equipment is sent is sent to filtering out corresponds to same user with mobile communication equipmentThe mobile unit of mark so that the mobile unit responds voice data operational order, realizes mobile communication equipment control pair in real timeThe mobile unit that should be identified in same user.
As shown in figure 4, in one embodiment, there is provided a kind of voice data synchronous method.This method specifically include asLower step:
S402, receive logging request.
S404, obtain user's mark and device identification that logging request includes.
S406, according to logging request, the device identification of acquisition is stored to device identification corresponding to user's mark of acquisitionIn set.
S408, receive voice data synchronic command.
S410, user's mark, device identification, voice data and the audio number that extraction voice data synchronic command includesAccording to the current play position of corresponding audio.
S412, inquire about device identification set corresponding with the user's mark extracted;Device identification set includes at least oneMobile unit identifies and at least one mobile communication equipment mark.
S414, whether the device identification of Detection and Extraction is mobile communication equipment mark;If so, step S416 is then jumped to,If it is not, then jump to step S418.
S416, mobile unit mark is filtered out from the device identification set inquired;Receive and led to by the movement extractedInterrogate the voice data operational order that device identification is initiated;The voice data operational order of reception is sent to what is filtered out and vehicle-mounted setMobile unit corresponding to standby mark so that mobile unit responds voice data operational order.
S418, the device identification of extraction is filtered out from the device identification set inquired.
S420, whether equipment state corresponding to remaining device identification is presence after detection filtering;If so, then redirectTo step S422;If it is not, then jump to step S424.
S422, directly by the current play position of audio corresponding to voice data and voice data, send to corresponding and setStandby state is the equipment corresponding to the device identification of presence, to cause the current of audio corresponding to equipment from voice data to broadcastPut position and play audio corresponding to playing audio-fequency data.
S424, corresponding to the device identification that equipment state is off-line state, by sound corresponding to voice data and voice dataThe current play position of frequency is cached into waiting list;Detect equipment state be off-line state device identification corresponding to setWhen standby state is updated to presence, voice data and voice data corresponding to corresponding device identification are read from waiting listThe current play position of corresponding audio;The current play position of the voice data of reading and voice data is sent to correspondingEquipment corresponding to device identification.
In the present embodiment, after voice data synchronic command is received, extraction data syn-chronization instructs the user includedMark and device identification, data syn-chronization are instructed the currently playing of audio corresponding to the voice data and voice data includedPosition is sent to equipment corresponding to identifying corresponding other equipment mark with user so that the equipment is broadcast from the current of voice dataPut position and play audio corresponding to playing audio-fequency data, realize the mobile unit and mobile communication equipment for automatically belonging to same userBetween voice data it is synchronous, avoid audio progress in the equipment after regulation is changed manually and listen position cumbersome to continuingProblem.
Secondly, for the equipment in off-line state, corresponding to device identification corresponding to the equipment, by voice data and work asPreceding play position is stored to waiting list, renewal of the equipment corresponding to each voice data of storage and each current play position beCorrespondingly it is transmitted during wire state.The equipment in off-line state so be may be implemented in when being updated to presence, by phaseThe voice data and current play position that should be stored issue exactly, ensure that the synchronous accuracy of voice data.
Moreover, when the equipment of initiation voice data synchronic command is mobile communication equipment, by the mobile communication of receptionThe voice data operational order that equipment is sent is sent to the car for corresponding to same user mark with mobile communication equipment filtered outCarry equipment so that the mobile unit responds voice data operational order, and it is same to realize that mobile communication equipment control in real time corresponds toThe mobile unit of user's mark.
Fig. 5 shows the audio broadcast interface schematic diagram of mobile unit in one embodiment.With reference to figure 5, in the present embodimentIn, the mobile unit is vehicular rear mirror.The interface includes handle icon 510, and handle icon 510 includes being used for trigger tone frequencyAccording to the icon 511 of synchronic command.User can trigger voice data synchronic command by clicking on icon 511, and present video is broadcastThe state of putting is sent to the mobile communication equipment identified corresponding to same user, is listened with realizing that audio is continuous.
Fig. 6 shows the audio broadcast interface schematic diagram of mobile communication equipment in one embodiment, with reference to figure 6, in this realityApply in example, the mobile communication equipment is mobile phone.The interface includes handle icon 610, and handle icon 610 includes being used to trigger audioThe icon 611 of data syn-chronization instruction.User can trigger voice data synchronic command by clicking on icon 611, by present videoBroadcast state is sent to the mobile unit identified corresponding to same user, is listened with realizing that audio is continuous.
As shown in fig. 7, in one embodiment, there is provided a kind of voice data sychronisation 700, including:Receiving module701st, extraction module 702, enquiry module 703, filtering module 704 and sending module 705.
Receiving module 701, for receiving voice data synchronic command.
Extraction module 702, for extracting the user's mark, device identification, audio number that voice data synchronic command includesAccording to this and audio corresponding to voice data current play position.
Enquiry module 703, the corresponding device identification set of user's mark for inquiring about with extracting;Device identification set bagInclude at least one mobile unit mark and at least one mobile communication equipment mark.
Filtering module 704, for filtering out the device identification of extraction from the device identification set inquired.
Sending module 705, for sending the current play position of audio corresponding to voice data and voice data to mistakeEquipment corresponding to remaining device identification after filter, to cause equipment to be broadcast from the current play position of audio corresponding to voice dataPut audio corresponding to voice data.
Above-mentioned voice data sychronisation, after voice data synchronic command is received, wrapped in extraction data syn-chronization instructionThe user's mark included and device identification, inquiry is corresponding with user mark, and including at least one mobile unit mark and extremelyThe device identification set of few mobile communication equipment mark, therefrom filter out and initiate to set corresponding to the synchronous equipment of voice dataStandby mark, then data syn-chronization is instructed the current play position of audio corresponding to the voice data and voice data included send outDeliver to equipment corresponding to other equipment mark corresponding with user's mark so that current play position of the equipment from voice dataAudio corresponding to playing audio-fequency data is played, is realized between the mobile unit and mobile communication equipment that automatically belong to same userVoice data is synchronous, avoids audio progress in the equipment after regulation is changed manually to continuing the problem of listening position cumbersome.
In one embodiment, sending module 705 is additionally operable to the equipment state corresponding to remaining device identification after filteringFor presence when, directly by the current play position of audio corresponding to voice data and voice data, send to corresponding and setStandby state is the equipment corresponding to the device identification of presence, to cause the current of audio corresponding to equipment from voice data to broadcastPut position and play audio corresponding to playing audio-fequency data;Equipment state corresponding to remaining device identification is off-line state after filteringWhen, the current play position of audio corresponding to buffered audio data and voice data, and set corresponding to remaining device identificationWhen standby state is updated to presence by off-line state, the equipment for being updated to presence is sent to equipment state, to setThe standby audio corresponding to playing audio-fequency data from the current play position of audio corresponding to voice data.
In the present embodiment, for the equipment in presence, directly by sound corresponding to voice data and voice dataThe current play position of frequency is transmitted so that the equipment can carry out voice data synchronization in real time.For in off-line stateEquipment, the current play position of audio corresponding to voice data and voice data is stored, the equipment equipment state moreIt is transmitted when being newly presence, the problem of data may cause loss of data can not be received in time by avoiding off-line device.
In one embodiment, sending module 705 is additionally operable to the equipment state corresponding to remaining device identification after filteringFor off-line state when, corresponding to equipment state be off-line state device identification, by sound corresponding to voice data and voice dataThe current play position of frequency is cached into waiting list;Detect equipment state be off-line state device identification corresponding to setWhen standby state is updated to presence, voice data and voice data corresponding to corresponding device identification are read from waiting listThe current play position of corresponding audio;The current play position of the voice data of reading and voice data is sent to correspondingEquipment corresponding to device identification.
In this embodiment, for the equipment in off-line state, corresponding to device identification corresponding to the equipment, by audio numberStored according to current play position to waiting list, in equipment corresponding to each voice data of storage and each current play position moreCorrespondingly it is transmitted when being newly presence.It so may be implemented in the equipment in off-line state and be updated to presenceWhen, the voice data of respective stored and current play position are issued exactly, ensure that the synchronous accuracy of voice data.
As shown in figure 8, in one embodiment, there is provided a kind of voice data sychronisation 800, including:Receiving module801st, extraction module 802, enquiry module 803, filtering module 804, sending module 805, relating module 806 and synchronization module 807.
Receiving module 801, for receiving voice data synchronic command.
Extraction module 802, for extracting the user's mark, device identification, audio number that voice data synchronic command includesAccording to this and audio corresponding to voice data current play position.
Enquiry module 803, the corresponding device identification set of user's mark for inquiring about with extracting;Device identification set bagInclude at least one mobile unit mark and at least one mobile communication equipment mark.
Filtering module 804, for when extraction device identification for mobile unit identify when, from the device identification collection inquiredThe device identification of extraction is filtered out in conjunction.
Sending module 805, for sending the current play position of audio corresponding to voice data and voice data to mistakeEquipment corresponding to remaining device identification after filter, to cause equipment to be broadcast from the current play position of audio corresponding to voice dataPut audio corresponding to voice data.
Relating module 806, for receiving logging request;Obtain user's mark and the device identification that logging request includes;According to logging request, the device identification of acquisition is stored into device identification set corresponding to user's mark of acquisition.
Synchronization module 807, for when extraction device identification for mobile communication equipment identify when, from the equipment mark inquiredKnow and mobile unit mark is filtered out in set;The voice data operation initiated by the mobile communication equipment mark extracted is received to refer toOrder;The voice data operational order of reception is sent to mobile unit corresponding to the mobile unit mark filtered out so that vehicle-mountedEquipment responds voice data operational order.
In the present embodiment, the audio between the mobile unit and mobile communication equipment that automatically belong to same user is realizedData syn-chronization, avoid manually regulation change after equipment on audio progress to continue listen position cumbersome the problem of.ForEquipment in off-line state, corresponding to device identification corresponding to the equipment, by voice data and current play position store toWaiting list, correspondingly enter when renewal of the equipment corresponding to each voice data of storage and each current play position is presenceRow is sent.The equipment in off-line state so be may be implemented in when being updated to presence, by the voice data of respective storedIssued exactly with current play position, ensure that the synchronous accuracy of voice data.
Moreover, when the equipment of initiation voice data synchronic command is mobile communication equipment, by the mobile communication of receptionThe voice data operational order that equipment is sent is sent to the car for corresponding to same user mark with mobile communication equipment filtered outCarry equipment so that the mobile unit responds voice data operational order, and it is same to realize that mobile communication equipment control in real time corresponds toThe mobile unit of user's mark.
Without departing from the thought of the invention, the various different embodiments of the present invention are combined, all shouldWhen being considered as present disclosure;In the range of the technology design of the present invention, a variety of simple modifications are carried out to technical schemeAnd any combination of the thought without prejudice to the invention that different embodiments are carried out, all should protection scope of the present invention itIt is interior.