CN105992025B - System time calibration method, audio sync playback method and the device played based on audio sync - Google Patents

System time calibration method, audio sync playback method and the device played based on audio sync Download PDF

Info

Publication number
CN105992025B
CN105992025B CN201510083976.4A CN201510083976A CN105992025B CN 105992025 B CN105992025 B CN 105992025B CN 201510083976 A CN201510083976 A CN 201510083976A CN 105992025 B CN105992025 B CN 105992025B
Authority
CN
China
Prior art keywords
audio
time
audio data
system time
packets
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
CN201510083976.4A
Other languages
Chinese (zh)
Other versions
CN105992025A (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.)
Hunan Huide Electronics Co., Ltd.
Original Assignee
Hunan Huide Electronics 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 Hunan Huide Electronics Co Ltd filed Critical Hunan Huide Electronics Co Ltd
Priority to CN201510083976.4A priority Critical patent/CN105992025B/en
Publication of CN105992025A publication Critical patent/CN105992025A/en
Application granted granted Critical
Publication of CN105992025B publication Critical patent/CN105992025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The present invention provides a kind of system time calibration method, audio sync playback method and devices played based on audio sync, wherein the system time calibration method played based on audio sync includes: to establish connection by wireless network with audio player;It calibrates the first system time of the audio player, and the first system time after calibration is back to the audio player;Audio data is sent to audio player;It sends and plays control instruction to audio player;The first system time of audio player is obtained according to prefixed time interval;The first system time is calibrated again according to the deviation between the first system time and preset second system time, and returns to calibration result to audio player.What the above method and device improved audio player is played simultaneously effect.

Description

System time calibration method, the audio sync playback method played based on audio sync And device
Technical field
The present invention relates to multimedia play technology fields, more particularly to a kind of system time played based on audio sync Calibration method, audio sync playback method and device.
Background technique
Wireless audio devices are routed due to not needing, and get rid of the limitation of conducting wire, can arbitrarily be disposed at various locations, to use Family brings great convenience.For example, wireless audio devices are home audio-visual system, user can play same simultaneously in multiple rooms Song can also play different music in each room.Wireless audio devices include generate source of sound audio server and Play the audio player of sound.In order to guarantee that audio sync plays, audio server needs elder generation before sending audio data Calibrate the system time in audio player connected to it.
Traditional system time calibration method can only be calibrated before audio broadcasting.Since audio is in playing process In, calibrated system time is easy the situation for occurring system time inaccuracy again due to network congestion or network delay, The effect for causing audio player to be played simultaneously is poor.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide it is a kind of improve be played simultaneously effect based on audio sync System time calibration method, audio sync playback method and the device of broadcasting.
A kind of system time calibration method played based on audio sync, which comprises
Connection is established by wireless network with audio player;
It calibrates the first system time of the audio player, and the first system time after calibration is back to institute State audio player;
Audio data is sent to audio player;
It sends and plays control instruction to audio player;
The first system time of audio player is obtained according to prefixed time interval;
When calibrating the first system again according to the deviation between the first system time and preset second system time Between, and calibration result is returned to audio player.
The step of transmission audio data to audio player in one of the embodiments, comprising:
Audio data is split into fixed-size packets of audio data;
The packets of audio data is pre-processed;
At the uniform velocity send the pretreated packets of audio data, the transmission speed of the pretreated packets of audio data with The speed of audio player plays packets of audio data is identical.
It is described in one of the embodiments, that pretreated step is carried out to the packets of audio data, comprising:
Packets of audio data corresponding play time stamp is increased and preset delays play time;
The packets of audio data is numbered, the audio data after the number includes corresponding packet number.
It is described according between the first system time and preset second system time in one of the embodiments, Deviation calibrates the first system time again, and the step of returning to calibration result to audio player, comprising:
Obtain the time difference between the first system time and preset second system time;
Judge whether the time difference is greater than preset first threshold value, if so, storing the time difference;
When the quantity of the time difference of storage is equal to default second threshold, the average time of the time difference of the storage is calculated Difference;
Calibrate the first system time, and by after calibration the first system time and average time difference be back to audio and broadcast Put device.
A kind of audio sync playback method, which comprises
The first system time is sent to audio server by wireless network;
It receives audio server and calibrates the first system time, and return to the first system time after the calibration;
At the uniform velocity receive the fixed-size packets of audio data that audio server is sent, the corresponding broadcasting of the packets of audio data Timestamp increase it is preset delay play time, the packets of audio data includes corresponding packet number;
It is packaged according to packet number to packets of audio data;
Receive the broadcasting control instruction that audio player is sent;
On the basis of the first system time after the calibration, according to the audio number after broadcasting control instruction control broadcasting group packet According to packet;
The first system time is sent to audio server according to prefixed time interval;
The audio server is received according to the deviation between the first system time and preset second system time Again calibrate the first system time, and return calibration result, the calibration result include calibration after the first system time with And average time difference;
The processing for abandoning packets of audio data or being inserted into quiet data packet is done according to average time difference.
Described done according to average time difference abandons packets of audio data or insertion quiet data packet in one of the embodiments, Processing the step of, comprising:
When average time difference is the first system time to be faster than the difference of second system time, then insertion and the average time The equal quiet data packet of poor play time;
When average time difference is the first system time to be slower than the difference of second system time, then discards play time stamp and exist Packets of audio data within the scope of average time difference.
A kind of system time calibrating installation played based on audio sync, described device include:
Connection establishment module, for establishing connection by wireless network with audio player;
First calibration module, for calibrating the first system time of audio player, and when by the first system after calibration Between be back to the audio player;
Data transmission blocks, for sending audio data to audio player;
Instruction sending module plays control instruction to audio player for sending;
Time-obtaining module, for obtaining the first system time of audio player according to prefixed time interval;
Second calibration module, for according to the deviation between the first system time and preset second system time again The secondary calibration the first system time, and calibration result is returned to audio player.
Data transmission blocks include: in one of the embodiments,
Data split module, for audio data to be split into fixed-size packets of audio data;
Data processing module, for being pre-processed to the packets of audio data;
Packet sending module, at the uniform velocity sending pretreated packets of audio data, the pretreated audio number It is identical as the speed of audio player plays packets of audio data according to the transmission speed of packet.
The data processing module includes: in one of the embodiments,
Time increases module, and for stabbing packets of audio data corresponding play time, increase is preset to delay play time;
Data number module, for the packets of audio data to be numbered, the audio data after the number includes pair The packet number answered.
Second calibration module includes: in one of the embodiments,
Time difference obtains module, obtains the time difference between the first system time and preset second system time;
Time difference memory module, for judging whether the time difference is greater than preset first threshold value, if so, described in storage Time difference;
Mean value calculation module, for being deposited described in calculating when the quantity of the time difference of storage is equal to default second threshold The average time difference of the time difference of storage;
Time check module, for calibrating the first system time, and by the first system time and average time after calibration Difference is back to audio player.
A kind of audio data playing device, described device include:
First time sending module, for sending the first system time to audio server by wireless network;
Time receiving module calibrates the first system time for receiving audio server, and return after calibration the One system time;
Packet-receiving module, it is described at the uniform velocity receiving the fixed-size packets of audio data of audio server transmission Packets of audio data corresponding play time stamp increase it is preset delay play time, the packets of audio data includes corresponding packet Sequence number;
Data group packet module, for being packaged according to packet number to packets of audio data;
Command reception module, for receiving the broadcasting control instruction of audio player transmission;
Audio playing module, for being played according to control instruction control is played on the basis of the first system time after calibration Packets of audio data after group packet;
Second time sending module, for sending the first system time to audio server according to prefixed time interval;
As a result receiving module, for receiving the audio server according to the first system time and preset second system Deviation between the system time is calibrated the first system time again, and the calibration result returned, and the calibration result includes after calibrating The first system time and average time difference;
Synchronous processing module, for doing the place for abandoning packets of audio data or being inserted into quiet data packet according to average time difference Reason.
The module that is played simultaneously is also used to when average time difference be that the first system time is fast in one of the embodiments, In the difference of second system time, then the quiet data packet equal with the average time difference play time is inserted into;Work as mean time Between difference be the first system time to be slower than the difference of second system time, then discard play time stamp within the scope of average time difference Packets of audio data.
Above-mentioned system time calibration method, audio sync playback method and the device played based on audio sync, in audio In playing process when the first system time inaccuracy, the first system time can be calibrated again, due to audio Player is all thus to effectively prevent playing to play out on the basis of identical system time in entire playing process Occur playing asynchronous caused by the first system time inaccuracy again in the process, improves being played simultaneously for audio player Effect.
Detailed description of the invention
Fig. 1 is the flow diagram of the system time calibration method played in one embodiment based on audio sync;
Fig. 2 is in one embodiment according to the school again of the deviation between the first system time and preset second system time Quasi- the first system time and the flow diagram for returning to calibration result step;
Fig. 3 is the flow diagram of one embodiment sound intermediate frequency synchronous broadcast method;
Fig. 4 is the structural schematic diagram of the system time calibrating installation played in one embodiment based on audio sync;
Fig. 5 is the structural schematic diagram of data transmission blocks in one embodiment;
Fig. 6 is the structural schematic diagram of data processing module in one embodiment;
Fig. 7 is the structural schematic diagram of the second calibration module in one embodiment;
Fig. 8 is the structural schematic diagram of one embodiment sound intermediate frequency simultaneously playing device.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, a kind of system time calibration method based on audio sync provided should Method includes the following steps:
Step 101, connection is established by wireless network with audio player.
In the present embodiment, wireless audio devices include the audio server and audio player for generating source of sound.Audio plays Device establishes connection by wireless network with audio server.For example, audio player can be wireless in family's audio-video system Sound equipment, the server for providing source of sound can be DVD player.
In one embodiment, when one in wireless audio devices is selected as audio server, remaining equipment Just as audio player, the role of audio player and audio server be can be interchanged (i.e. a wireless audio is set It can also be used as audio player for both can be used as audio server).Wherein, include in audio server and audio player Wireless communication module, specifically, wireless communication module includes but is not limited to following at least one: wifi module and bluetooth module Deng.Audio player is waited to match with it after audio server starting service, audio player and audio server successful matching Wireless connection is established afterwards.
Step 102, it calibrates the first system time of audio player, and the first system time after calibration is back to sound Frequency player.
In the present embodiment, in order to enable audio server and audio player be all on the basis of identical system time, Guarantee that audio player can synchronize to play out, audio server sends audio data after establishing connection with audio player Before, it needs to calibrate the first system time.The calibration the first system time refers to when in the first system time and server The second system time it is not identical when, the first system time is adjusted to identical as the second system time.
Step 103, audio data is sent to audio player.
The audio file solution to be played that audio decoder in audio server compresses sound channel is pressed into original audio data Stream, original audio data can be played out directly after streaming sound card.The corresponding audio data of original audio data stream is sent To audio player.
In one embodiment, the original audio data stream obtained after decoding is the playable audio data of full sound channel, if Directly transmit the audio data of full sound channel, data volume it is big and there are many data be it is useless, consume excessive network bandwidth, hold Easily cause network congestion.Further, the channel information in audio player is obtained, voice data stream is split into and is believed with sound channel Cease corresponding packets of audio data.Since the packets of audio data of transmission is matched with the channel information of audio player, and then reduce The transmission of useless packets of audio data.Reduce the possibility of network congestion generation.
For example, if original audio data stream is the audio data of 5.1 sound channels, and the channel information in audio player is The audio data of 5.1 sound channels is split into packets of audio data corresponding with 2.1 sound channels by 2.1 sound channels.Due to what is obtained after splitting 2.1 channel audio data are considerably less than the audio data of 5.1 sound channels, thus reduce biography of a large amount of hashes on network It is defeated, it is not easy to generate network congestion.
In one embodiment, step 103, sending audio data to audio player includes: to split into audio data Fixed-size packets of audio data;Packets of audio data is pre-processed;At the uniform velocity send pretreated packets of audio data.
Audio data is resolved into fixed-size packets of audio data, further, packets of audio data is added to transmission In queue, the packets of audio data in transmit queue is sent by the wireless transmitter of audio server.Audio data is torn open It is divided into the efficiency of transmission that fixed-size packets of audio data accelerates audio data, audio data is enabled to be transmitted to audio in time Player reduces the sending probability of broadcast time-delay.
In order to further guarantee the packets of audio data that audio server is sent and the audio data that audio player consumes Packet synchronizes, by the control to network traffic data so that packets of audio data keeps a stable transmission speed, the present embodiment In, the transmission speed of pretreated packets of audio data is identical as the speed of audio player plays packets of audio data.
In one embodiment, carrying out pretreated step to packets of audio data includes: to broadcast packets of audio data is corresponding It puts timestamp and increases and preset delay play time;Packets of audio data is numbered, the audio data after number includes to correspond to Packet number.
Since packets of audio data needs elapsed time during network transmission, and packets of audio data is in audio server Data buffer storage section wait playing and be also required to consumption certain time, therefore in the base of packets of audio data corresponding play time stamp Increase on plinth and delay play time, packets of audio data is played on time.Preset play time of delaying is an empirical value, The empirical value is slow in the data of audio player according to the time and packets of audio data of packets of audio data wireless transmission consumption It is obtained after depositing area spent waiting time statistics.
Step 104, it sends and plays control instruction to audio player.
In one embodiment, it includes but is not limited to following at least one for playing control instruction: playing, pause, stops, is fast Into the control instructions such as, rewind and volume adjustment.
Step 105, the first system time of audio player is obtained according to prefixed time interval.
Step 106, the first system is calibrated according to the deviation between the first system time and preset second system time again It unites the time, and returns to calibration result to audio player.
Due to the shake or delay of wireless network, it is easy the situation for occurring the first system time inaccuracy again, in order to protect It can be played simultaneously between card audio player, at this time, it may be necessary to be calibrated again to the first system time.In the present embodiment, The second system time is the system time in audio server.The first system time is periodically obtained, and counts the first system Deviation between time and second system time, the music matter that frequently calibration the first system time effects play in order to prevent Amount only just carries out system time calibration when audio player, which is played simultaneously, in deviation generates materially affect.
The above-mentioned system time calibration method played based on audio sync, when the first system time in audio playing process When inaccurate, the first system time can be calibrated again, due to audio player in entire playing process all It is to be played out on the basis of identical system time, thus when effectively preventing occurring again in playing process the first system Between play caused by inaccuracy asynchronous, improve audio player is played simultaneously effect.
As shown in Fig. 2, in one embodiment, step 106, according to the first system time and preset second system time Between deviation calibrate the first system time again and return to calibration result and include:
Step 201, the time difference between the first system time and preset second system time is obtained.
Step 202, judge whether the time difference is greater than preset first threshold value.If so, 203 are entered step, if it is not, then tying Beam.
Step 203, storage time is poor.
Step 204, when the quantity of the time difference of storage is equal to default second threshold, being averaged for the time difference of storage is calculated Time difference.
Step 205, calibrate the first system time, and by after calibration the first system time and average time difference be back to sound Frequency player.
In the present embodiment, at regular intervals, audio player can carry out primary network clock synchronization with audio server, and The time difference between the two is recorded, if the time difference is not more than preset first threshold value, then it represents that the inaccurate the first system time Only it will not be greater than preset first threshold value when the time difference to generation materially affect is played simultaneously, then when inaccurate the first system Between just will affect and be played simultaneously.At this point, frequent calibration system time or multiple players while all calibration system in order to prevent Influence (because the stopping that in calibration process can having sound) of the time to result of broadcast, first time of occurrence difference is greater than the first threshold It is also calibrated without system time when value.It will store time difference, when the quantity of storage to time difference is equal to default second threshold When value, just start to carry out system time calibration.It averages to obtain average time difference again after summing to the time difference of storage.And it will Average time difference is back to audio player.In one embodiment, poor come storage time by time difference array, work as the time difference After array is filled up by the time difference, further, the time difference in time difference group is averaged to obtain average time difference, into one Step, the first system time is calibrated according to average time difference, and average time difference is back to audio player, it is convenient Processing of the audio player in the calibration system time to packets of audio data.
As shown in figure 3, in one embodiment, a kind of audio sync playback method provided, this method includes following step It is rapid:
Step 301, the first system time is sent to audio server by wireless network.
Step 302, it receives audio server and calibrates the first system time, and return to the first system time after calibration.
Step 303, the fixed-size packets of audio data that audio server is sent at the uniform velocity is received.In the present embodiment, audio Data packet corresponding play time stamp increase it is preset delay play time, packets of audio data includes corresponding packet number.
Step 304, it is packaged according to packet number to packets of audio data.
Step 305, the broadcasting control instruction that audio player is sent is received.
Step 306, on the basis of the first system time after calibration, according to the sound after broadcasting control instruction control broadcasting group packet Frequency data packet.
Group packet refers to the audio data that the single packets of audio data that will be received is assembled into before splitting.Guarantee the sound played Sound is consistent with the sound that audio server is sent.The wireless receiver of audio player receives packets of audio data, further, will Single packets of audio data is assembled into complete audio data and is added in broadcasting queue, plays team according to control instruction control is played Packets of audio data in column plays out.For example, playing control instruction is play instruction, then the audio data in queue will be played Packet is sent into audio frequency play interface, plays sound by sound card.
Step 307, the first system time is sent to audio server according to prefixed time interval.
Step 308, audio server is received according to the deviation between the first system time and preset second system time The calibration result calibrated the first system time, and returned again.In the present embodiment, calibration result includes the first system after calibration Time and average time difference.
Step 309, the processing for abandoning packets of audio data or being inserted into quiet data packet is done according to average time difference.
In playing process, due to the shake or delay of wireless network, it be easy to cause the first system time and second system The synchronization of time again needs audio server to calibrate again to the first system time to guarantee to be played simultaneously.Sound Frequency player sends a first system time to audio server every one section of prefixed time interval, is judged by audio server Whether need to carry out system time calibration, if desired calibrate, then receives audio server and return to the first system after calibrating again Time and average time difference.
In one embodiment, step 309, it is done according to average time difference and abandons packets of audio data or insertion quiet data packet Processing include: then insertion and average time when average time difference is the first system time to be faster than the difference of second system time The equal quiet data packet of poor play time;When average time difference is the first system time to be slower than the difference of second system time, It then discards play time and stabs the packets of audio data within the scope of average time difference.
(the i.e. audio of audio player when average time difference is the first system time to be faster than the difference of second system time Broadcasting speed is faster than the audio transmission speed of audio server), in order to keep being played simultaneously, at this time audio player need by It could continue to play after the waiting of a period of time difference, in the data buffer area of packets of audio data, insertion quiet data packet can be real The waiting of existing audio player.
When average time difference is the first system time to be slower than the second system time, (i.e. the audio of audio player plays speed Degree is slower than the audio transmission speed of audio server), in order to keep being played simultaneously, it is slow to need to abandon data for audio player at this time It deposits play time in area and stabs the packets of audio data within the scope of time difference.It ensure that audio to greatest extent by above-mentioned processing System time calibration is carried out between player will not influence result of broadcast.
As shown in figure 4, a kind of system time calibrating installation played based on audio sync provided, the device include as follows Module:
Connection establishment module 40, for establishing connection by wireless network with audio player.
First calibration module 41, for calibrating the first system time of audio player, and by the first system after calibration Time is back to audio player.
Data transmission blocks 42, for sending audio data to audio player.
Instruction sending module 43 plays control instruction to audio player for sending.
Time-obtaining module 44, for obtaining the first system time of audio player according to prefixed time interval.
Second calibration module 45, for according to the deviation between the first system time and preset second system time again The first system time is calibrated, and returns to calibration result to audio player.
As shown in figure 5, in one embodiment, data transmission blocks 42 include:
Data split module 420, for audio data to be split into fixed-size packets of audio data.
Data processing module 421, for being pre-processed to packets of audio data.
Packet sending module 422, at the uniform velocity sending pretreated packets of audio data, pretreated audio data The transmission speed of packet is identical as the speed of audio player plays packets of audio data.
As shown in fig. 6, in one embodiment, data processing module 421 includes:
Time increases module 4210, for by packets of audio data corresponding play time stamp increase it is preset delay broadcasting when Between.
Data number module 4211, for packets of audio data to be numbered, the audio data after number includes corresponding Packet number.
As shown in fig. 7, in one embodiment, the second calibration module 45 includes:
Time difference obtains module 450, obtains the time difference between the first system time and preset second system time.
Time difference memory module 451, for judging whether the time difference is greater than preset first threshold value, if so, storage time Difference.
Mean value calculation module 452, for calculating storage when the quantity of the time difference of storage is equal to default second threshold Time difference average time difference.
Time check module 453, for calibrating the first system time, and by after calibration the first system time and mean time Between difference be back to audio player.
As shown in figure 8, in one embodiment, a kind of audio sync playing device provided includes:
First time sending module 80, for sending the first system time to audio server by wireless network.
Time receiving module 81, for receive audio server calibration the first system time, and return calibration after first System time.
Packet-receiving module 82, at the uniform velocity receiving the fixed-size packets of audio data of audio server transmission.This In embodiment, packets of audio data corresponding play time stamp increase it is preset delay play time, packets of audio data includes pair The packet number answered.
Data group packet module 83, for being packaged according to packet number to packets of audio data.
Command reception module 84, for receiving the broadcasting control instruction of audio player transmission.
Audio playing module 85, for being broadcast according to control instruction control is played on the basis of the first system time after calibration Packets of audio data after putting group packet.
Second time sending module 86, for sending the first system time to audio server according to prefixed time interval.
As a result receiving module 87, for receiving audio server according to the first system time and preset second system Deviation between time is calibrated the first system time again, and the calibration result returned.In the present embodiment, calibration result includes school The first system time and average time difference after standard.
Synchronous processing module 88, for doing the place for abandoning packets of audio data or being inserted into quiet data packet according to average time difference Reason.
In one embodiment, module 88 is played simultaneously to be also used to when average time difference be the first system time to be faster than second The difference of system time is then inserted into the quiet data packet equal with average time difference play time;When average time difference is first System time is slower than the difference of second system time, then discards play time and stab the audio data within the scope of average time difference Packet.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not Therefore limitations on the scope of the patent of the present invention are interpreted as.It should be pointed out that for those of ordinary skill in the art, Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention It encloses.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of system time calibration method played based on audio sync, which comprises
Connection is established by wireless network with audio player;
It calibrates the first system time of the audio player, and the first system time after calibration is back to the sound Frequency player;
Audio data is sent to audio player;The audio data includes matched with the channel information of the audio player Packets of audio data;
It sends and plays control instruction to audio player;
The first system time of audio player is obtained according to prefixed time interval;
Obtain the time difference between the first system time and preset second system time;
Judge whether the time difference is greater than preset first threshold value, if so, storing the time difference;
When the quantity of the time difference of storage is equal to default second threshold, the average time difference of the time difference of the storage is calculated;
It is calibrated the first system time according to the average time difference, and by the first system time and average time after calibration Difference is back to audio player.
2. the method according to claim 1, wherein the step of transmission audio data to audio player, Include:
Audio data is split into fixed-size packets of audio data;
The packets of audio data is pre-processed;
At the uniform velocity send the pretreated packets of audio data, the transmission speed and audio of the pretreated packets of audio data The speed of player plays packets of audio data is identical.
3. according to the method described in claim 2, it is characterized in that, described carry out pretreated step to the packets of audio data Suddenly, comprising:
Packets of audio data corresponding play time stamp is increased and preset delays play time;
The packets of audio data is numbered, the audio data after the number includes corresponding packet number.
4. a kind of audio sync playback method, which comprises
The first system time is sent to audio server by wireless network;
It receives audio server and calibrates the first system time, and return to the first system time after the calibration;
At the uniform velocity receive the fixed-size packets of audio data that audio server is sent, the corresponding play time of the packets of audio data Stamp increase it is preset delay play time, the packets of audio data includes corresponding packet number;The packets of audio data with The channel information of audio player matches;
It is packaged according to packet number to packets of audio data;
Receive the broadcasting control instruction that audio player is sent;
On the basis of the first system time after the calibration, according to the audio data after broadcasting control instruction control broadcasting group packet Packet;
The first system time is sent to audio server according to prefixed time interval;
The audio server is received according to the deviation between the first system time and preset second system time again The calibration result calibrated the first system time, and returned, the calibration result is comprising the first system time after calibration and puts down The equal time difference;The processing for abandoning packets of audio data or being inserted into quiet data packet is done according to average time difference;
It is described to include: according to the processing that average time difference does discarding packets of audio data or is inserted into quiet data packet
When average time difference is the difference for the first system time being faster than the second system time, then insertion is broadcast with the average time difference Put time equal quiet data packet;
When average time difference is the first system time to be slower than the difference of second system time, then play time stamp is discarded average Packets of audio data within the scope of time difference.
5. a kind of system time calibrating installation played based on audio sync, which is characterized in that described device includes:
Connection establishment module, for establishing connection by wireless network with audio player;
First calibration module is returned for calibrating the first system time of audio player, and by the first system time after calibration It is back to the audio player;
Data transmission blocks, for sending audio data to audio player;The audio data includes playing with the audio The matched packets of audio data of the channel information of device;
Instruction sending module plays control instruction to audio player for sending;
Time-obtaining module, for obtaining the first system time of audio player according to prefixed time interval;
Second calibration module, for according to the school again of the deviation between the first system time and preset second system time The quasi- the first system time, and calibration result is returned to audio player;
Second calibration module includes:
Time difference obtains module, for obtaining the time difference between the first system time and preset second system time;
Time difference memory module, for judging whether the time difference is greater than preset first threshold value, if so, storing the time Difference;
Mean value calculation module, for calculating the storage when the quantity of the time difference of storage is equal to default second threshold The average time difference of time difference;
Time check module, for calibrating the first system time according to the average time difference, and by the first system after calibration Time and average time difference are back to audio player.
6. device according to claim 5, which is characterized in that data transmission blocks include:
Data split module, for audio data to be split into fixed-size packets of audio data;
Data processing module, for being pre-processed to the packets of audio data;
Packet sending module, at the uniform velocity sending pretreated packets of audio data, the pretreated packets of audio data Transmission speed it is identical as the speed of audio player plays packets of audio data.
7. device according to claim 6, which is characterized in that the data processing module includes:
Time increases module, and for stabbing packets of audio data corresponding play time, increase is preset to delay play time;
Data number module, for the packets of audio data to be numbered, the audio data after the number includes corresponding Packet number.
8. a kind of audio data playing device, which is characterized in that described device includes:
First time sending module, for sending the first system time to audio server by wireless network;
Time receiving module calibrates the first system time for receiving audio server, and returns to the first system after calibration It unites the time;
Packet-receiving module, at the uniform velocity receiving the fixed-size packets of audio data of audio server transmission, the audio Data packet corresponding play time stamp increase it is preset delay play time, the packets of audio data includes corresponding packet sequence Number;The packets of audio data is matched with the channel information of audio player;
Data group packet module, for being packaged according to packet number to packets of audio data;
Command reception module, for receiving the broadcasting control instruction of audio player transmission;
Audio playing module, for controlling broadcasting group packet according to control instruction is played on the basis of the first system time after calibration Packets of audio data afterwards;
Second time sending module, for sending the first system time to audio server according to prefixed time interval;
As a result receiving module, when for receiving the audio server according to the first system time and preset second system Between between the deviation calibration result calibrating the first system time, and return again, the calibration result includes the after calibration One system time and average time difference;
Synchronous processing module, for doing the processing for abandoning packets of audio data or being inserted into quiet data packet according to average time difference;
The module that is played simultaneously is also used to when average time difference be the difference for the first system time being faster than the second system time, then It is inserted into the quiet data packet equal with the average time difference play time;When average time difference is the first system time to be slower than the The difference of two system time then discards play time and stabs the packets of audio data within the scope of average time difference.
CN201510083976.4A 2015-02-15 2015-02-15 System time calibration method, audio sync playback method and the device played based on audio sync Active CN105992025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510083976.4A CN105992025B (en) 2015-02-15 2015-02-15 System time calibration method, audio sync playback method and the device played based on audio sync

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510083976.4A CN105992025B (en) 2015-02-15 2015-02-15 System time calibration method, audio sync playback method and the device played based on audio sync

Publications (2)

Publication Number Publication Date
CN105992025A CN105992025A (en) 2016-10-05
CN105992025B true CN105992025B (en) 2019-09-27

Family

ID=57038216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510083976.4A Active CN105992025B (en) 2015-02-15 2015-02-15 System time calibration method, audio sync playback method and the device played based on audio sync

Country Status (1)

Country Link
CN (1) CN105992025B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411449B (en) * 2016-10-08 2019-02-01 Oppo广东移动通信有限公司 Control method for playing back, device and terminal
CN106445458B (en) * 2016-10-08 2020-01-14 Oppo广东移动通信有限公司 Playing control method, device and terminal
CN106411448B (en) * 2016-10-08 2019-02-01 Oppo广东移动通信有限公司 Control method for playing back, device and terminal
CN106452643B (en) * 2016-10-08 2018-07-27 广东欧珀移动通信有限公司 Control method for playing back, device, terminal and play system
CN106454635B (en) * 2016-11-16 2020-04-24 深圳Tcl数字技术有限公司 Method and system for synchronizing data between multi-channel wireless sound boxes
CN106686438B (en) * 2016-12-29 2019-12-13 北京奇艺世纪科技有限公司 method, device and system for synchronously playing audio images across equipment
CN108965990B (en) * 2018-07-20 2020-11-17 广州酷狗计算机科技有限公司 Method and device for controlling movement of sound altitude line
US11190836B2 (en) 2018-12-20 2021-11-30 Hisense Visual Technology Co., Ltd. Audio playing and transmitting methods and apparatuses
CN111352605A (en) * 2018-12-20 2020-06-30 海信视像科技股份有限公司 Audio playing and sending method and device
CN111970759B (en) * 2019-05-20 2023-05-30 中兴通讯股份有限公司 Delay adjustment method and device for end-to-end service, storage medium and electronic device
CN111028818B (en) * 2019-11-14 2022-11-22 北京达佳互联信息技术有限公司 Chorus method, apparatus, electronic device and storage medium
CN112311521B (en) * 2020-10-30 2023-11-17 昆腾微电子股份有限公司 Equipment group audio synchronization method and device, electronic equipment and storage medium
CN113691837B (en) * 2021-08-25 2024-03-19 京东方科技集团股份有限公司 Method, device, system and storage medium for controlling playing of video

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127917A (en) * 2007-09-06 2008-02-20 中兴通讯股份有限公司 A method and system for synchronizing Internet stream media format video and audio
CN102340730A (en) * 2010-07-23 2012-02-01 希姆通信息技术(上海)有限公司 Method for playing multi-channel stereo by matching multiple mobile phones
CN102739661A (en) * 2012-06-18 2012-10-17 李洋 Method and system for network audio sync output on basis of data statistics
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system
CN104125534A (en) * 2013-07-18 2014-10-29 中国传媒大学 Synchronous multi-channel audio recording and playing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102027699B (en) * 2008-03-12 2015-04-29 珍尼雷克公司 Data transfer method and system for loudspeakers in a digital sound reproduction system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127917A (en) * 2007-09-06 2008-02-20 中兴通讯股份有限公司 A method and system for synchronizing Internet stream media format video and audio
CN102340730A (en) * 2010-07-23 2012-02-01 希姆通信息技术(上海)有限公司 Method for playing multi-channel stereo by matching multiple mobile phones
CN102739661A (en) * 2012-06-18 2012-10-17 李洋 Method and system for network audio sync output on basis of data statistics
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system
CN104125534A (en) * 2013-07-18 2014-10-29 中国传媒大学 Synchronous multi-channel audio recording and playing method and system

Also Published As

Publication number Publication date
CN105992025A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN105992025B (en) System time calibration method, audio sync playback method and the device played based on audio sync
US11039411B2 (en) Synchronization method for synchronizing clocks of a Bluetooth device
WO2023024834A9 (en) Game data processing method and apparatus, and storage medium
DK3118855T3 (en) Method, device and system for synchronous audio playback
JP7120997B2 (en) Multi-mode synchronous rendering of audio and video
US7243150B2 (en) Reducing the access delay for transmitting processed data over transmission data
EP2186230B1 (en) Synchronizing related data streams in interconnection networks
KR101374408B1 (en) Method and system for synchronizing the output of terminals
CN105992040A (en) Multichannel audio data transmitting method, audio data synchronization playing method and devices
CN102742249B (en) Method, system and device for synchronization of media streams
US20080040759A1 (en) System And Method For Establishing And Maintaining Synchronization Of Isochronous Audio And Video Information Streams in Wireless Multimedia Applications
CN109565466B (en) Lip sound synchronization method and device among multiple devices
KR20110022664A (en) Synchronization of media stream components
KR20150055031A (en) Playback synchronization
WO2017071670A1 (en) Audio and video synchronization method, device and system
CN104168218B (en) Jitter buffer method and device
WO2008031293A1 (en) A method for quickly playing the multimedia broadcast channels
EP2695389B1 (en) Processing media streams for synchronised output at multiple end points
KR20150146116A (en) A method and apparatus for providing a broadcast service based on a heterogenous network
EP2164222A1 (en) Method and system for synchronizing the output of a group of end-terminals
EP2053822A1 (en) Method and system for synchronizing the output of a group of end-terminals
US12034828B2 (en) System, device and a method for providing an improved WiFi™ audio system
Ke et al. Synchronization of multiroom audio streams in Wi-Fi environment
US20230124746A1 (en) System, device and a method for providing an improved wifitm audio system
JP2008016905A (en) Content transmission apparatus, content receiving apparatus, and content distribution method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161214

Address after: Taoyuan County, Hunan province 415700 city of Changde Zhang Jiang Zhen Guan Ping Yin Xi Road No. 1 community Huide Industrial Park

Applicant after: Hunan Huide Electronics Co., Ltd.

Address before: 518000 Shenzhen Software Park, Nanshan District high tech Industrial Park, Guangdong, China, 3,, China

Applicant before: Shenzhen Innosystem Technology Limited

GR01 Patent grant
GR01 Patent grant