CN106878286B - Voice data synchronous method and device - Google Patents

Voice data synchronous method and device Download PDF

Info

Publication number
CN106878286B
CN106878286B CN201710033756.XA CN201710033756A CN106878286B CN 106878286 B CN106878286 B CN 106878286B CN 201710033756 A CN201710033756 A CN 201710033756A CN 106878286 B CN106878286 B CN 106878286B
Authority
CN
China
Prior art keywords
voice data
device identification
equipment
audio
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710033756.XA
Other languages
Chinese (zh)
Other versions
CN106878286A (en
Inventor
朱映波
曾荣
郭伶燕
韩胥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iMusic Culture and Technology Co Ltd
Original Assignee
iMusic Culture and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by iMusic Culture and Technology Co Ltd filed Critical iMusic Culture and Technology Co Ltd
Priority to CN201710033756.XA priority Critical patent/CN106878286B/en
Publication of CN106878286A publication Critical patent/CN106878286A/en
Application granted granted Critical
Publication of CN106878286B publication Critical patent/CN106878286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The present invention relates to a kind of voice data synchronous method and device, methods described to include:Receive voice data synchronic command;Extract the current play position of audio corresponding to user's mark, device identification, voice data and the voice data that the voice data synchronic command includes;Inquiry device identification set corresponding with user's mark described in said extracted;The device identification set includes at least one mobile unit mark and at least one mobile communication equipment mark;The device identification of extraction is filtered out from the device identification set inquired;By the current play position of audio corresponding to the voice data and the voice data, the equipment corresponding to the remaining device identification to after filtering is sent, to cause equipment audio corresponding to playing audio data from the current play position of audio corresponding to the voice data.The problem of scheme that the application provides is cumbersome when can avoid voice data synchronization.

Description

Voice data synchronous method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of voice data synchronous method and device.
Background technology
With the development of computer technology, it is various support that audio plays equipment it is more and more, for example mobile communication sets Standby or mobile unit etc..The equipment that user can be played by these support audios, the audio of broadcasting is arbitrarily chosen according to wish Listened to.Along with the progress of society, while the user for possessing the more equipment that audio can be supported to play is more and more, user Audio broadcasting can be carried out using different equipment respectively.
However, due to the influence of the other factors such as environment, user is when needs more exchange device progress audio continues and listened, it is necessary to hand The audio progress in equipment after dynamic regulation replacing listens position to continuous, cumbersome.
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 of Voice 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 described The 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 bag Include 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 filtering The device identification corresponding to equipment, to cause the current play position of audio corresponding to the equipment from the voice data Play 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 acquisition In 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 sound The current play position of audio corresponding to frequency evidence and the voice data, it is presence to send to corresponding equipment state Equipment corresponding to device identification, to cause the equipment to be broadcast from the current play position of audio corresponding to the voice data Put audio corresponding to the voice data;
S52, when equipment state is off-line state corresponding to the remaining device identification after filtering, cache the audio The current play position of audio corresponding to data and the voice data, and in equipment shape corresponding to the remaining device identification When state is updated to presence by off-line state, the equipment for being updated to presence is sent to equipment state, to cause described set The 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 state The device identification of off-line state, the current play position of audio corresponding to the voice data and the voice data is delayed Deposit into waiting list;
Detect equipment state be off-line state the device identification corresponding to equipment state be updated to presence When, audio corresponding to voice data corresponding to corresponding device identification and the voice data is read from the waiting list Current play position;
The current play position of the voice data of reading and the voice data is sent to corresponding device identification Corresponding 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 inquired Filter 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-mounted Equipment 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 includes According 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 equipment Logo 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, hair Equipment corresponding to the device identification delivered to after filtering, to cause working as audio corresponding to the equipment from the voice data Preceding 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 acquisition In conjunction.
In one embodiment, the sending module is additionally operable to the equipment corresponding to remaining device identification after filtering When state is presence, directly by the current play position of audio corresponding to the voice data and the voice data, hair Equipment state is the equipment corresponding to the device identification of presence corresponding to delivering to, to cause the equipment from the audio number Audio corresponding to playing audio data is played according to the current play position of corresponding audio;Remaining equipment after filtering When equipment state corresponding to mark is off-line state, the current of audio corresponding to the voice data and the voice data is cached Play position, and when equipment state corresponding to the remaining device identification is updated to presence by off-line state, send The equipment of presence is updated to equipment state, to cause the current of audio corresponding to the equipment from the voice data to broadcast Put 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 filtering When state is off-line state, corresponding to the device identification that equipment state is off-line state, by the voice data and described The current play position of audio corresponding to voice data is cached into waiting list;Detecting equipment state for off-line state When equipment state corresponding to the device identification is updated to presence, corresponding device identification is read from the waiting list The current play position of audio corresponding to corresponding voice data and the voice data;By the voice data of reading and institute The 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 unit When, 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 inquiring Mobile unit mark is filtered out in device identification set;Receive by equipment corresponding to the mobile communication equipment mark of extraction The voice data operational order of initiation;The voice data operational order of reception is sent to the mobile unit filtered out Mobile 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 to The user's mark and device identification that order includes, inquiry is corresponding with user mark, and including at least one mobile unit mark Know the device identification set with least one mobile communication equipment mark, therefrom filter out and initiate the synchronous equipment pair of voice data The device identification answered, then data syn-chronization is instructed to the currently playing of audio corresponding to the voice data and voice data included Position is sent to equipment corresponding to identifying corresponding other equipment mark with user so that the equipment is broadcast from the current of voice data Put position and play audio corresponding to playing audio-fequency data, realize the mobile unit and mobile communication equipment for automatically belonging to same user Between voice data it is synchronous, avoid audio progress in the equipment after regulation is changed manually and listen position cumbersome to continuing Problem.
Brief description of the drawings
Accompanying drawing be for providing a further understanding of the present invention, and a part for constitution instruction, it is and following specific Embodiment is used to explain the present invention together, but should not be construed as limiting the invention.In the accompanying drawings,
Fig. 1 is the implementation schematic diagram of one embodiment sound intermediate frequency method of data synchronization;
Fig. 2 is the internal structure schematic diagram for being used to realize the server of voice data synchronous method in one embodiment;
Fig. 3 is the schematic flow sheet of one embodiment sound intermediate frequency method of data synchronization;
Fig. 4 is the schematic flow sheet of another embodiment sound intermediate frequency method of data synchronization;
Fig. 5 is the audio broadcast interface schematic diagram of mobile unit in one embodiment;
Fig. 6 is the audio broadcast interface schematic diagram of mobile communication equipment in one embodiment;
Fig. 7 is the structured flowchart of one embodiment sound intermediate frequency data synchronization unit;
Fig. 8 is the structured flowchart of another embodiment sound intermediate frequency data synchronization unit.
Embodiment
For the objects, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with drawings and Examples, to this Invention 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 synchronous Method 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 set It 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 through Processor, non-volatile memory medium, built-in storage and the network interface of bus of uniting connection.Wherein, the server is non-volatile Property storage medium is stored with operating system and database.The processor of the server is used to provide calculating and control ability, support The operation of whole server.Computer-readable instruction can be stored in the built-in storage of the server, the computer-readable instruction During by the computing device, a kind of voice data synchronous method of the computing device may be such that.The network of the server connects Mouth 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 communication Voice data synchronic command that equipment is sent etc..Server can with independent server either multiple server groups into clothes Device 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 scheme Part-structure block diagram, do not form the restriction for the server being applied thereon to application scheme, specific server It 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 way Illustrated 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 or Mobile unit can obtain the voice data synchronic command triggered in interface, and the interface is used to show currently playing audio.It is mobile Communication apparatus or the detectable predefined trigger action for currently playing audio of mobile unit, are detecting the trigger action When 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 behaviour Make etc..Trigger action can also be the click to predefined physical button.For mobile communication equipment, trigger action can be with Be 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 include The 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 marks Know and device identification may each be the character string for including at least one of numeral, letter and symbol character.One user can gather around There is multiple equipment, that is, user's mark may correspond to multiple equipment mark.Voice data can be audio url address or Person's audio resource mark etc..The current play position of audio corresponding to voice data refers to the currently playing time axle position of audio Put.Such as currently playing to 03 point 03 second etc..
In one embodiment, voice data can be audio url address, can be specifically URL (Uniform Resource Locator URLs) address.The operable mobile communication equipment of user or mobile unit pass through user Voice data synchronic command is initiated in mark and device identification, and representing the voice data synchronic command is possessed wherein by the user One equipment is initiated.When sending voice data synchronic command by equipment by currently playing audio url address and the sound The 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 server Resources bank, server is that each audio resource distributes audio resource mark in audio resource storehouse, so that obtaining user is passing through movement When communication apparatus or mobile unit play audio, identified by audio resource from the audio resource storehouse of server and pull corresponding sound Frequency resource.User initiates voice data synchronization in operation mobile communication equipment or mobile unit by user's mark and device identification During 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 car Carry 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.Equipment Mark includes mobile unit mark and mobile communication equipment mark, and the quantity of mobile unit mark and mobile communication equipment mark It is at least one.Mobile unit corresponding to mobile unit mark refers to the equipment being arranged on mobile traffic.Such as car Carry sound equipment or vehicle-mounted computer etc..In the present embodiment, mobile unit corresponding to mobile unit mark is vehicular rear mirror.Support Audio plays and the client including interface can pass through the rearview mirror interface exhibition of vehicular rear mirror according on the vehicular rear mirror Show 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 movement Communication apparatus or mobile unit can send association request to server.The association request includes user corresponding to active user and identified With the equipment corresponding to device identification.Server includes association request after the association request of user's transmission is received Device 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 unit When client logs in, user's mark corresponding to the current user for carrying out register and the current equipment for carrying out register are obtained Corresponding device identification.Server is in the device identification for getting user's mark with after device identification, association request being included Storing 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.Service Device is identified with after device identification in the user that extraction voice data synchronic command includes, and inquires about on server store and extraction User'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 traversal Know 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 traversal Device 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 set Equipment corresponding to standby mark, to cause working as audio corresponding to equipment from voice data corresponding to remaining device identification after filtering Preceding 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 inquiry Equipment corresponding to knowledge is to need to carry out the synchronous equipment of voice data.Server will can extract from voice data synchronic command The current play position of audio corresponding to voice data and voice data send to determination to need to carry out voice data synchronous Equipment so that equipment corresponding to remaining device identification can be from the current play position of audio corresponding to voice data after filtering Audio 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 filtering Audio url address, the equipment is after the chained address is received, according to the chained address from server pull audio resource, then The 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 filtering Can be audio resource mark, the equipment is identified in server after audio resource mark is received according to audio resource Audio resource corresponding to being searched in audio resource storehouse, the current play position sent further according to server, jumps to the broadcasting position Put 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 instruction The user's mark included and device identification, inquiry is corresponding with user mark, and including at least one mobile unit mark and extremely The device identification set of few mobile communication equipment mark, therefrom filter out and initiate to set corresponding to the synchronous equipment of voice data Standby mark, then data syn-chronization is instructed the current play position of audio corresponding to the voice data and voice data included send out Deliver to equipment corresponding to other equipment mark corresponding with user's mark so that current play position of the equipment from voice data Audio corresponding to playing audio-fequency data is played, is realized between the mobile unit and mobile communication equipment that automatically belong to same user Voice 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.Obtain The user's mark and device identification that logging request includes.According to logging request, the device identification of acquisition is stored to acquisition In 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 unit During the logging request of login, user's mark and device identification that logging request includes are obtained.Server is getting user's mark Know 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 extraction In logo collection.
In one embodiment, server can obtain current login time when receiving logging request every time, will obtain The device identification corresponding record that includes of current login time and logging request.Server can be detected regularly and each device identification Corresponding login time record recently, if detection time and the time interval of nearest login time record are more than between preset time Every 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 can With the duration of reservation.Server also can start timing in login time corresponding to recording equipment mark, reach in timing duration During 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.This Kind 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 clothes The 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 equipment The 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 time The multiple equipment mark of mark is stored, to receive by identifying corresponding one of device identification hair with user When playing voice data synchronic command, the other equipment for determining to correspond to same user mark with the device identification in time identifies, with It 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 set When equipment state corresponding to standby mark is presence, directly by the currently playing of audio corresponding to voice data and voice data Position, it is the equipment corresponding to the device identification of presence to send to corresponding equipment state, to cause equipment from audio number Audio 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 sound The current play position of frequency audio corresponding to, and updated in equipment state corresponding to remaining device identification by off-line state For presence when, the equipment for being updated to presence is sent to equipment state, to cause sound corresponding to equipment from voice data The 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 server Standby state, to cause server according to whether the equipment carries out current device state reporting to judge that the equipment is in off-line state Or presence.In the present embodiment, server is when detecting the current device state sent by device identification, by equipment Corresponding equipment state corresponding to device identification is updated to presence in logo collection.Sent out being not detected by by device identification During the current device state sent, corresponding equipment state corresponding to device identification in device identification set is updated to offline shape State.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 register State, 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 data The current play position of frequency is transmitted so that the equipment can carry out voice data synchronization in real time.For in off-line state Equipment, the current play position of audio corresponding to voice data and voice data is stored, the equipment equipment state more It 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 method Equipment state when being off-line state, corresponding to the device identification that equipment state is off-line state, by voice data and audio number Cached according to the current play position of corresponding audio into waiting list.In the equipment mark for detecting that equipment state is off-line state When equipment state is updated to presence corresponding to knowledge, voice data corresponding to corresponding device identification is read from waiting list With voice data corresponding to audio current play position.The current play position of the voice data of reading and voice data is sent out Deliver 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 number Stored according to current play position to waiting list, in equipment corresponding to each voice data of storage and each current play position more Correspondingly it is transmitted when being newly presence.It so may be implemented in the equipment in off-line state and be updated to presence When, 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 is When mobile unit identifies, step S4 is continued executing with.When the device identification of extraction identifies for mobile communication equipment, from setting for determination Mobile unit mark is filtered out in standby logo collection.Receive what is initiated by equipment corresponding to the mobile communication equipment mark of extraction Voice data operational order.By the voice data operational order of reception send to filter out mobile unit mark corresponding to it is vehicle-mounted Equipment 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 cut Change.Specifically, server can detect that the device identification that the voice data synchronic command of reception includes is mobile communication After device identification, mobile unit mark is filtered out from the device identification set of determination, and establishes mobile communication equipment mark Long 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 server To mobile unit corresponding to the mobile unit mark filtered out so that the mobile unit responds the voice data operational order, real The 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 realize When 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 reception The voice data operational order that mobile communication equipment is sent is sent to filtering out corresponds to same user with mobile communication equipment The mobile unit of mark so that the mobile unit responds voice data operational order, realizes mobile communication equipment control pair in real time The 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 as Lower 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 acquisition In 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 includes According 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 one Mobile 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 extracted Interrogate 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 set Mobile 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 redirect To 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 set Standby state is the equipment corresponding to the device identification of presence, to cause the current of audio corresponding to equipment from voice data to broadcast Put 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 data The current play position of frequency is cached into waiting list;Detect equipment state be off-line state device identification corresponding to set When standby state is updated to presence, voice data and voice data corresponding to corresponding device identification are read from waiting list The current play position of corresponding audio;The current play position of the voice data of reading and voice data is sent to corresponding Equipment corresponding to device identification.
In the present embodiment, after voice data synchronic command is received, extraction data syn-chronization instructs the user included Mark and device identification, data syn-chronization are instructed the currently playing of audio corresponding to the voice data and voice data included Position is sent to equipment corresponding to identifying corresponding other equipment mark with user so that the equipment is broadcast from the current of voice data Put position and play audio corresponding to playing audio-fequency data, realize the mobile unit and mobile communication equipment for automatically belonging to same user Between voice data it is synchronous, avoid audio progress in the equipment after regulation is changed manually and listen position cumbersome to continuing Problem.
Secondly, for the equipment in off-line state, corresponding to device identification corresponding to the equipment, by voice data and work as Preceding play position is stored to waiting list, renewal of the equipment corresponding to each voice data of storage and each current play position be Correspondingly it is transmitted during wire state.The equipment in off-line state so be may be implemented in when being updated to presence, by phase The 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 reception The voice data operational order that equipment is sent is sent to the car for corresponding to same user mark with mobile communication equipment filtered out Carry 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 to The 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 embodiment In, the mobile unit is vehicular rear mirror.The interface includes handle icon 510, and handle icon 510 includes being used for trigger tone frequency According to the icon 511 of synchronic command.User can trigger voice data synchronic command by clicking on icon 511, and present video is broadcast The 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 reality Apply in example, the mobile communication equipment is mobile phone.The interface includes handle icon 610, and handle icon 610 includes being used to trigger audio The icon 611 of data syn-chronization instruction.User can trigger voice data synchronic command by clicking on icon 611, by present video Broadcast 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 module 701st, 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 includes According 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 bag Include 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 mistake Equipment corresponding to remaining device identification after filter, to cause equipment to be broadcast from the current play position of audio corresponding to voice data Put audio corresponding to voice data.
Above-mentioned voice data sychronisation, after voice data synchronic command is received, wrapped in extraction data syn-chronization instruction The user's mark included and device identification, inquiry is corresponding with user mark, and including at least one mobile unit mark and extremely The device identification set of few mobile communication equipment mark, therefrom filter out and initiate to set corresponding to the synchronous equipment of voice data Standby mark, then data syn-chronization is instructed the current play position of audio corresponding to the voice data and voice data included send out Deliver to equipment corresponding to other equipment mark corresponding with user's mark so that current play position of the equipment from voice data Audio corresponding to playing audio-fequency data is played, is realized between the mobile unit and mobile communication equipment that automatically belong to same user Voice 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 filtering For presence when, directly by the current play position of audio corresponding to voice data and voice data, send to corresponding and set Standby state is the equipment corresponding to the device identification of presence, to cause the current of audio corresponding to equipment from voice data to broadcast Put position and play audio corresponding to playing audio-fequency data;Equipment state corresponding to remaining device identification is off-line state after filtering When, the current play position of audio corresponding to buffered audio data and voice data, and set corresponding to remaining device identification When standby state is updated to presence by off-line state, the equipment for being updated to presence is sent to equipment state, to set The 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 data The current play position of frequency is transmitted so that the equipment can carry out voice data synchronization in real time.For in off-line state Equipment, the current play position of audio corresponding to voice data and voice data is stored, the equipment equipment state more It 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 filtering For off-line state when, corresponding to equipment state be off-line state device identification, by sound corresponding to voice data and voice data The current play position of frequency is cached into waiting list;Detect equipment state be off-line state device identification corresponding to set When standby state is updated to presence, voice data and voice data corresponding to corresponding device identification are read from waiting list The current play position of corresponding audio;The current play position of the voice data of reading and voice data is sent to corresponding Equipment corresponding to device identification.
In this embodiment, for the equipment in off-line state, corresponding to device identification corresponding to the equipment, by audio number Stored according to current play position to waiting list, in equipment corresponding to each voice data of storage and each current play position more Correspondingly it is transmitted when being newly presence.It so may be implemented in the equipment in off-line state and be updated to presence When, 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 module 801st, 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 includes According 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 bag Include 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 inquired The 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 mistake Equipment corresponding to remaining device identification after filter, to cause equipment to be broadcast from the current play position of audio corresponding to voice data Put 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 inquired Know 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 to Order;The voice data operational order of reception is sent to mobile unit corresponding to the mobile unit mark filtered out so that vehicle-mounted Equipment 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 realized Data syn-chronization, avoid manually regulation change after equipment on audio progress to continue listen position cumbersome the problem of.For Equipment in off-line state, corresponding to device identification corresponding to the equipment, by voice data and current play position store to Waiting list, correspondingly enter when renewal of the equipment corresponding to each voice data of storage and each current play position is presence Row 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 stored Issued 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 reception The voice data operational order that equipment is sent is sent to the car for corresponding to same user mark with mobile communication equipment filtered out Carry 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 to The 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 should When 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 scheme And any combination of the thought without prejudice to the invention that different embodiments are carried out, all should protection scope of the present invention it It is interior.

Claims (8)

1. a kind of voice data synchronous method, methods described include:
S1, receive voice data synchronic command;
User's mark, device identification, voice data and the audio that S2, the extraction voice data synchronic command include The current play position of audio corresponding to data;
S3, inquiry device identification set corresponding with the user mark of said extracted;The device identification set is included extremely Few 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 remaining to after filtering The device identification corresponding to equipment, to cause the current play position of audio corresponding to the equipment from the voice data Play audio corresponding to playing audio data;
Wherein, S51, when equipment state is presence corresponding to the remaining device identification after filtering, directly will described in The current play position of audio corresponding to voice data and the voice data, it is presence to send to corresponding equipment state Device identification corresponding to equipment, to cause the equipment from the current play position of audio corresponding to the voice data Audio corresponding to playing audio data;
S52, when equipment state is off-line state corresponding to the remaining device identification after filtering, cache the voice data With the voice data corresponding to audio current play position, and equipment state corresponding to the remaining device identification by When off-line state is updated to presence, send to equipment state the equipment for being updated to presence, with cause the equipment from The current play position of audio corresponding to the voice data plays audio corresponding to playing audio data.
2. according to the method for claim 1, it is characterised in that 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 equipment mark corresponding to the user mark of acquisition Know in set.
3. according to the method for claim 1, it is characterised in that the step S52 includes:
It is offline corresponding to equipment state when equipment state is off-line state corresponding to the remaining device identification after filtering The device identification of state, by the current play position of audio corresponding to the voice data and the voice data cache to In waiting list;
When detecting that equipment state is updated to presence for equipment state corresponding to the device identification of off-line state, from The current of audio corresponding to voice data corresponding to corresponding device identification and the voice data is read in the waiting list Play position;
The current play position of the voice data of reading and the voice data is sent corresponding to corresponding device identification Equipment.
4. according to the method for claim 1, it is characterised in that 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, screened from the device identification set inquired Go out mobile unit mark;
Receive the voice data operational order initiated by equipment corresponding to the mobile communication equipment mark of extraction;
The voice data operational order of reception is sent to mobile unit corresponding to the mobile unit mark filtered out, So that the mobile unit responds the voice data operational order.
5. a kind of voice data sychronisation, it is characterised in that described device includes:
Receiving module, for receiving voice data synchronic command;
Extraction module, for extract user's mark, device identification, voice data that the voice data synchronic command includes with And the current play position of audio corresponding to the voice data;
Enquiry module, the corresponding device identification set of user mark for inquiring about with extracting;The device identification set Including 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, sending extremely Equipment corresponding to the device identification after filtering, to cause the current of audio corresponding to the equipment from the voice data to broadcast Put position and play audio corresponding to playing audio data;
Wherein, the sending module is additionally operable to when equipment state is presence corresponding to the device identification after filtering, Directly by the current play position of audio corresponding to the voice data and the voice data, send to corresponding equipment state For the equipment corresponding to the device identification of presence, to cause the current of audio corresponding to the equipment from the voice data Play position plays audio corresponding to playing audio data;Equipment state corresponding to device identification after filtering be from During wire state, the current play position of audio corresponding to the voice data and the voice data is cached, and in remaining institute When stating that equipment state is updated to presence by off-line state corresponding to device identification, send to equipment state and be updated in wire The equipment of state, to cause the equipment to play the audio number from the current play position of audio corresponding to the voice data According to corresponding audio.
6. device according to claim 5, it is characterised in that 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 set corresponding to the user mark of acquisition In.
7. device according to claim 5, it is characterised in that the sending module is additionally operable to remaining described after filtering , will corresponding to the device identification that equipment state is off-line state when equipment state corresponding to device identification is off-line state The current play position of audio is cached into waiting list corresponding to the voice data and the voice data;Set detecting When standby state is updated to presence for equipment state corresponding to the device identification of off-line state, from the waiting list Read the current play position of audio corresponding to voice data corresponding to corresponding device identification and the voice data;It will read The voice data and the current play position of the voice data send to equipment corresponding to corresponding device identification.
8. device according to claim 5, it is characterised in that the filtering module is additionally operable to when the equipment mark of extraction Know when being identified for mobile unit, 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, from the equipment inquired Mobile unit mark is filtered out in logo collection;Receive the voice data initiated by the mobile communication equipment mark extracted Operational order;By the voice data operational order of reception send to filter out the mobile unit mark corresponding to it is vehicle-mounted Equipment so that the mobile unit responds the voice data operational order.
CN201710033756.XA 2017-01-18 2017-01-18 Voice data synchronous method and device Active CN106878286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710033756.XA CN106878286B (en) 2017-01-18 2017-01-18 Voice data synchronous method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710033756.XA CN106878286B (en) 2017-01-18 2017-01-18 Voice data synchronous method and device

Publications (2)

Publication Number Publication Date
CN106878286A CN106878286A (en) 2017-06-20
CN106878286B true CN106878286B (en) 2018-02-09

Family

ID=59157454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710033756.XA Active CN106878286B (en) 2017-01-18 2017-01-18 Voice data synchronous method and device

Country Status (1)

Country Link
CN (1) CN106878286B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173833B (en) * 2017-12-25 2022-06-07 汉海信息技术(上海)有限公司 Audio playing method, system, server and playing device
CN109062537B (en) * 2018-08-30 2021-07-30 倪兴炜 Audio delay reduction method, device, medium and equipment
CN109358905B (en) * 2018-09-17 2023-04-11 北京轩辕联科技有限公司 Data synchronization method and device for vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426853B (en) * 2013-08-23 2019-05-24 腾讯科技(深圳)有限公司 A kind of multimedia synchronous plays method, server, terminal and system
US10284651B2 (en) * 2014-02-27 2019-05-07 Harman International Industries, Incorporated Data aggregation and delivery
CN104317898B (en) * 2014-10-24 2018-08-10 联想(北京)有限公司 A kind of information processing method and server
CN105335471A (en) * 2015-09-29 2016-02-17 芜湖市汽车产业技术研究院有限公司 Vehicle multimedia device, mobile terminal, and vehicle multimedia playing method

Also Published As

Publication number Publication date
CN106878286A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
KR101975431B1 (en) Content item display system, method and apparatus
CN102640147B (en) Systems and methods for providing media pools in a communications network
CN106782600B (en) Scoring method and device for audio files
JP7227866B2 (en) VOICE INTERACTION METHOD, TERMINAL DEVICE, SERVER AND COMPUTER-READABLE STORAGE MEDIUM
CN106878286B (en) Voice data synchronous method and device
CN106658115A (en) Video playing method and mobile terminal
JP2019536070A (en) User positioning method, information push method, and related apparatus
CN105657498A (en) Video recording method and device of mobile terminal
EP3166343A1 (en) Audio playing method and apparatus for multiple playing devices
WO2013049707A2 (en) Audio file processing to reduce latencies in play start times for cloud served audio files
CN1910563B (en) Device registration system, server, and terminal device
JP6580132B2 (en) Method and apparatus for providing information associated with media content
CN103024587B (en) Video-on-demand message marking and displaying method and device
US20150237078A1 (en) Method and apparatus for playlist synchronization
CN103516856B (en) Information merges method and apparatus
TW201500934A (en) Method and system for sharing resource
CN105488109A (en) Content item configuration method, device and system
CN109509472A (en) Method, apparatus and system based on voice platform identification background music
CN106572241A (en) Method and device for displaying information
CN107071711A (en) Multimedia sharing method, device and Bluetooth equipment
JP2010049526A (en) Mobile electronic apparatus, content playback device, content acquisition method, content whereabouts notification method, content acquisition program, content whereabouts notification method, and content use system
CN109862430A (en) Multi-medium play method and terminal device
CN108415908B (en) Multimedia data processing method and server
CN106653068A (en) Audio data playing method, device and terminal
CN106101843B (en) The methods of exhibiting and device of rich media file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant