CN107733745A - A kind of synchronous music player method and play system based on WIFI agreements - Google Patents
A kind of synchronous music player method and play system based on WIFI agreements Download PDFInfo
- Publication number
- CN107733745A CN107733745A CN201610651398.4A CN201610651398A CN107733745A CN 107733745 A CN107733745 A CN 107733745A CN 201610651398 A CN201610651398 A CN 201610651398A CN 107733745 A CN107733745 A CN 107733745A
- Authority
- CN
- China
- Prior art keywords
- frequency apparatus
- audio frequency
- reproduction time
- data
- wap
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2805—Home Audio Video Interoperability [HAVI] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
- H04L12/2812—Exchanging configuration information on appliance services in a home automation network describing content present in a home automation network, e.g. audio video content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of synchronous music player method and play system based on WIFI agreements, the synchronous music player method includes:The Beacon packets for carrying synchronized timestamp of WAP transmission are obtained by master and slave audio frequency apparatus;Synchronized timestamp is extracted from the Beacon packets of reception, is synchronously the clock of synchronized timestamp by the local clock of master and slave audio frequency apparatus;Voice data is obtained by main audio equipment, and in the packet header of each frame voice data addition reproduction time stamp;Voice data and reproduction time stamp are sent to from audio frequency apparatus, master and slave audio frequency apparatus is stabbed in reproduction time and carries out music.The underlying protocol that the present invention is carried using WIFI network, pass through the timestamp in Beacon packets, in the situation of no increase network load and without WIFI network clock synchronization protocol 802.11V is utilized, the time synchronized of more room systems is realized, has reached good effect.
Description
Technical field
The present invention relates to a kind of synchronization of more room music systems, more particularly to a kind of synchronous music based on WIFI agreements
Player method and play system.
Background technology
With the development of human society and the progress in epoch, pursuit of the people to high-quality music has become the one of life
Part, and wireless acoustics have been broken away from the constraint of connecting line and transmission cable, favored by people due to succinct, attractive in appearance.It is early
Phase, Baffle Box of Bluetooth is because its convenience obtains development at full speed, but Bluetooth technology is due to limited in bandwidth and can not be straight
The limitation connected with internet is connect, bottleneck is encountered to more high-end development.
And based on the audio amplifier of WIFI agreements, because its transmission range, network bandwidth are considerably beyond bluetooth, and support
Line cloud music and the broadcasting in radio station, the limitation of music can only be pushed from mobile phone so as to relieve bluetooth, has obtained quick development.
Although the bandwidth of WIFI agreements in itself is higher, due to the characteristic of wireless technology transmission, particularly when a set of more rooms
Between audio system be deployed under true environment, because multiple equipment is under limited space and same LAN, play identical
Audio stream, transmission signal will occur crowded, collision, so as to cause data re-transmitting, influence audio quality and propagation delay time.
Because human brain can be by the time difference of sound transmission to different ears come the accurate position for perceiving sound.Study table
It is bright, if sound wave reach left and right Auditory Pathway between time difference reach Millisecond, it is already possible to allow brain to determine sound source direction.
For more room system acoustic source systems, more accurate time synchronized is to really reproducing dynamic Audio Loop between WIFI equipment
Border is highly important.
Current existing technical scheme adopts the clock synchronous standard protocol for using WIFI mostly, i.e. IEEE1588 and
IEEE802.11as and 802.11v.
IEEE1588 standards define a kind of accurate time synchronization protocol PTP (Precision Time Protocol), main
It is to establish master-salve clock to want working mechanism, and then master-salve clock enters the exchange of row clock sync message by handshake mechanism, simultaneously
At the time of being exchanged with timestamp, while record message in a manner of timestamp and be actually sent out, receive, when recipient is according to these
Between stab, calculate from a network delay and clock it is cheap, and by compensation, it is synchronous with master clock to realize.
802.11as synchronization mechanisms use with IEEE1588v2 identical modes, but it define master clock selection and association
Business's algorithm, path delay measuring and calculating and backoff algorithm, 802.11as core lie also in timestamp mechanism, and 802.11as can be according to association
Sampling of the view triggering to local real-time clock (Real-Time Clock, RTC), the RTC values of oneself are entered with corresponding master clock
Row compares, and using path delay measuring and calculating and compensation technique, its RTC clock value is matched in network.
Based on clock synchronization scheme set forth above, the shake that may be introduced due to Radio Link and physical layer
(iitter), and the uncertainty of link delay measuring and calculating and backoff algorithm, so as to bring certain error, and this it is based on
The exchanged form of timestamp, it can also increase the burden and expense of link.According to actual measuring and calculating, the current this side based on timestamp
Case can provide the error of several milliseconds and a few tens of milliseconds, especially for synchronous effect the touching due to network of more room systems
Hit, be crowded, effect is worse, and this is unacceptable for the pursuer of more room high-quality musics.
The content of the invention
The present invention is solution the deficiencies in the prior art, there is provided a kind of synchronous music broadcasting side based on WIFI agreements
Method and play system, more accurate synchronized algorithm is realized, and minimum is influenceed to network load, to be adapted to more room music
The synchronization of system, at the same overcome Radio Link shake and path compensation algorithm caused by error.
, should the invention discloses a kind of synchronous music player method based on WIFI agreements to realize above-mentioned technique effect
For by WAP, main audio equipment and from the wireless network of audio frequency apparatus establishment, it is characterised in that the sound
Happy synchronous broadcast method includes:
By the main audio equipment and described obtained from audio frequency apparatus synchronization is carried by what the WAP was sent
First wireless data of timestamp;
The synchronized timestamp is extracted from first wireless data by the main audio equipment, the main audio is set
Local clock in standby is synchronously synchronized timestamp;By it is described extract from first wireless data from audio frequency apparatus it is described same
Timestamp is walked, is synchronously synchronized timestamp by the local clock from audio frequency apparatus;
The voice data sent by the WAP is obtained by the main audio equipment and carries reproduction time stamp
The second wireless data, by the voice data and carry reproduction time stamp second wireless data be sent to accordingly
It is described from audio frequency apparatus, make described to stab and playing audio data from audio frequency apparatus according to the reproduction time.
The synchronous music player method based on WIFI agreements, which further improves, to be, first wireless data packet
Containing the first beacon signal for carrying the synchronized timestamp;It is described from audio frequency apparatus by obtain WAP send take
First beacon signal with the synchronized timestamp obtains the synchronized timestamp.
The synchronous music player method based on WIFI agreements, which further improves, to be, second wireless data packet
Containing the voice data for carrying reproduction time stamp;The main audio equipment is by obtaining the voice data of WAP transmission simultaneously
Addition reproduction time stamp forms second wireless data to obtain the reproduction time stamp.
The synchronous music player method based on WIFI agreements, which further improves, to be, in addition to:
Control of intelligent terminal is communicatively coupled to by main audio equipment and from audio frequency apparatus;
The control of intelligent terminal is pushed by the WAP from high in the clouds or media server and control music is broadcast
Put and to the main audio equipment and it is described from audio frequency apparatus send control instruction.
The synchronous music player method based on WIFI agreements, which further improves, to be, by voice data and is carried
Second Wireless data transmission of reproduction time stamp is given after audio frequency apparatus, in addition to step:
From the clock T1 of voice data of the audio frequency apparatus based on previous broadcasting and buffering section T2 and what is received broadcast
Time stamp T 3 is put to be calculated in formula (1);
T3=T1+T2 (1)
When meeting formula (1), the voice data is carried out from audio frequency apparatus in the reproduction time stamp T3 received
Broadcasting;
When being unsatisfactory for formula (1), to being adjusted from the broadcasting frequency of audio frequency apparatus so that after meeting formula (1), from
Audio frequency apparatus carries out the broadcasting of the voice data in the reproduction time stamp T3 received.
The synchronous music player method based on WIFI agreements, which further improves, to be, in addition to Jing Yin detection;It is logical
Jing Yin detection algorithm is crossed, it is described to reacquire carrying for WAP transmission from audio frequency apparatus after Jing Yin each time
First wireless data of synchronized timestamp, and the synchronized timestamp is extracted from first wireless data, by the audio
The local clock of equipment is synchronously the clock of the synchronized timestamp.
The synchronous music player method based on WIFI agreements, which further improves, to be, the main audio equipment and institute
State from audio frequency apparatus and support DLNA/UPNP standard agreements and 802.11 standard agreements.
The invention also discloses a kind of music synchronous playing system based on WIFI agreements, including:WAP and nothing
The main audio equipment of line access point wireless connection and with WAP and the main audio equipment wireless connection from audio
Equipment;
The main audio equipment is used for:Obtain the first nothing for carrying synchronized timestamp sent by the WAP
Line number is according to, voice data and adds reproduction time stamp the second wireless data of composition, and institute is extracted from first wireless data
Synchronized timestamp is stated, is synchronously the synchronized timestamp by the local clock in the main audio equipment;By the voice data
And carry reproduction time stamp second wireless data be sent to it is corresponding described from audio frequency apparatus;
It is described to be used for from audio frequency apparatus:Obtain the first nothing for carrying synchronized timestamp sent by the WAP
Line number evidence, the synchronized timestamp is extracted from first wireless data, will be described same from the local clock in audio frequency apparatus
Walk as the synchronized timestamp;Obtain the voice data sent by the main audio equipment and carry reproduction time stamp
Second wireless data, the reproduction time stamp is extracted from second wireless data, according to reproduction time stamp
Playing audio data.
The music synchronous playing system based on WIFI agreements, which further improves, to be,
The main audio equipment includes:
First control module;
First wireless receiving module, with the WAP wireless connection and being connected to first control module and connecting
Connect, broadcast for obtaining the first wireless data for carrying synchronized timestamp sent by WAP, voice data and addition
Put timestamp and form the second wireless data, and transmit to first control module;
First clock synchronization module, it is connected with first control module, for being extracted from first wireless data
The synchronized timestamp and by the local clock in the main audio equipment it is synchronous be the synchronized timestamp;
Data transmitting module, it is connected with first control module, for externally transmitting the voice data and carrying
Second wireless data of reproduction time stamp;
First audio playing module, it is connected with first control module, is stabbed according to the reproduction time of second data
Playing audio data;
It is described to include from audio frequency apparatus:
Second control module;
Second wireless receiving module, with the WAP and the data transmitting module wireless connection and being connected to institute
The connection of the second control module is stated, for obtaining the first wireless data for carrying synchronized timestamp sent by WAP,
Obtain the voice data sent by the data transmitting module and carry second wireless data of reproduction time stamp,
And transmit to second control module;
Second clock synchronization module, it is connected with second control module, for being extracted from first wireless data
The synchronized timestamp and by the local clock from audio frequency apparatus it is synchronous be the synchronized timestamp;
Second audio playing module, it is connected with first control module, for being extracted from second wireless data
The reproduction time stamp, the playing audio data according to reproduction time stamp.
The music synchronous playing system based on WIFI agreements, which further improves, to be, in addition to intelligent control is whole
End, the control of intelligent terminal and the main audio equipment and it is described communicated to connect from audio frequency apparatus, for by described wireless
Access point is from high in the clouds or media server push and control music and to the main audio equipment and described is set from audio
Preparation send control instruction.The present invention makes it have following beneficial effect as a result of above technical scheme:
The underlying protocol carried using WIFI network, the timestamp in being wrapped by WIFI beacons (Beacon), is not being increased
Add the situation of network load and without utilizing under WIFI network clock synchronization protocol 802.11V, realize more room systems
Time synchronized, good effect is reached;
By the timestamp carried based on WIFI underlying protocol Beacon packets, bridge is used as by main equipment node,
By the voice data with timestamp, equipment end is distributed to, the sample rate that equipment end is buffered and played according to local played data,
It is finely adjusted, and combines VAD detection algorithms, the Synchronization Control of play time is realized, so as to reach more room system clocks
Synchronous is precisely controlled.
Brief description of the drawings
Fig. 1 is a kind of high-level schematic functional block diagram of the music synchronous playing system based on WIFI agreements of the present invention.
Fig. 2 is a kind of system signal block diagram of the synchronous music player method based on WIFI agreements of the present invention.
Fig. 3 is a kind of flow total figure of the synchronous music player method based on WIFI agreements of the present invention.
Fig. 4 is a kind of audio sync trajectory diagram of the synchronous music player method based on WIFI agreements of the present invention.
Fig. 5 is a kind of device plays chart spacing of the synchronous music player method based on WIFI agreements of the present invention.
Fig. 6 is a kind of synchronizing relay time diagram of the synchronous music player method based on WIFI agreements of the present invention.
Embodiment
Below in conjunction with the accompanying drawings and embodiment the present invention is further detailed explanation.
First, refering to shown in Fig. 1 and Fig. 2, a kind of music synchronous playing system based on WIFI agreements of the present invention mainly by
At least one main audio equipment 11 and it is at least one formed from audio frequency apparatus 12, the main audio equipment 11 with should be from audio frequency apparatus 12
Need to support DLNA/UPNP standard agreements and 802.11 standard agreements, coordinate a general WAP 13, realize the master
Audio frequency apparatus 11 obtains the data in wireless network with that should be added to from audio frequency apparatus 12 in wireless network.The WAP
13 can be general wireless router, and router need not specialty customization.
Wherein, main audio equipment 11 is used as bridger, digital media server (the Digital Media as the present invention
Server, abbreviation DMS) digital Media renderer (the Digital Media that are taken on of equipment and main audio device plays
Renderer, abbreviation DMR).Specifically in the present invention, the main audio equipment 11 is used for:Obtain what is sent by WAP 13
The first wireless data, voice data and addition reproduction time stamp the second wireless data of composition of synchronized timestamp are carried, from it
In the first wireless data in extract the synchronized timestamp, by main audio equipment 11 local clock synchronously for this it is synchronous when
Between stab;Voice data and the second wireless data for carrying reproduction time stamp are sent to accordingly from audio frequency apparatus 12;According to
The reproduction time stamp for sending voice data carries out the broadcasting of above-mentioned voice data.
Can be set simultaneously from audio frequency apparatus 12 it is multiple, mainly as digital Media renderer (Digital Media
Renderer, abbreviation DMR), or controlled end, major function are broadcasting media music.Specifically in the present invention, should be set from audio
Standby 12 are used for:The first wireless data for carrying synchronized timestamp that is sent by WAP 13 is obtained, it is first wireless from this
Synchronized timestamp described in extracting data, will be synchronously the synchronized timestamp from the local clock in audio frequency apparatus 12;Meanwhile obtain
Take the voice data sent by main audio equipment 11 and carry the second wireless data of reproduction time stamp, the second nothing therefrom
Line extracting data reproduction time stamp, stabs according to the reproduction time and plays above-mentioned voice data.
Main audio equipment 11 can also use as one from audio frequency apparatus, on the one hand can be used as DMS equipment, the opposing party
Face, also it can play the music come from high in the clouds or media server push as DMR equipment.Realizing to being broadcast from audio frequency apparatus
On the basis of putting control, itself and the synchronous broadcasting from audio frequency apparatus are further realized.
The present invention also includes control of intelligent terminal 14, as digital media controller (Digital Media
Controller, abbreviation DMC), from high in the clouds or media server push and control main audio equipment 11 and from audio frequency apparatus 12
Play music.The control of intelligent terminal 14 can be the application software being carried on the mobile devices such as smart mobile phone or tablet personal computer,
Use flexible, conveniently.
Specifically, refering to shown in Fig. 1 and Fig. 2, Fig. 1 is a kind of music synchronous playing system based on WIFI agreements of the present invention
High-level schematic functional block diagram;Fig. 2 is a kind of system signal block diagram of the synchronous music player method based on WIFI agreements of the present invention,
Each arrow representation signal in Fig. 2 transmits, and each alphabetical implication indicated on arrow is:T represents " synchronized timestamp ", and AT is represented
" voice data for carrying reproduction time stamp ", AS represents " voice data ", and C represents " control signal ".Wherein, principal and subordinate's audio is set
Standby 11 are mainly counted by one first control module 111, one first wireless receiving module 112, one first clock synchronization module 113, one
Formed according to the audio playing module 115 of transport module 114 and 1 first.First control module 111 is main audio frequency apparatus 11
Micro-control unit (Microcontroller Unit, abbreviation MCU).First wireless receiving module 112 and the nothing of WAP 13
Line connects and is connected to first control module 111, network is added by WAP 13 based on WIFI agreements, for obtaining
The first wireless data for carrying synchronized timestamp t1, voice data and the addition reproduction time stamp sent by WAP 13
Second wireless data of t2 compositions, and transmit to the first control module 111.First wireless data includes and carries lock in time
T1 the first beacon (Beacon) signal is stabbed, the first wireless receiving module 112 of main audio equipment 11 is by obtaining wireless access
13 the first beacon (Beacon) signals for carrying synchronized timestamp t1 sent are put to obtain synchronized timestamp t1.This
One clock synchronization module 113 is connected 111 with the first control module, for extracting synchronized timestamp t1 simultaneously from the first wireless data
It is synchronously synchronized timestamp t1 by the local clock in main audio equipment 11, realizes the school of the local clock of main audio equipment 11
Just.The data transmitting module 114 is connected with the first control module 111, when for externally transmission voice data and carrying broadcasting
Between stab t2 the second wireless data.Wherein, setting for t2 of reproduction time stamp should be using synchronized timestamp t1 as reference signal, relatively
Hysteresis, and need to consider Radio Link shake and the skew of path compensation.The first audio in main audio equipment 11 plays mould
Block 115 is connected with the first control module 111, and audio number is played for the timestamp in the second wireless data according to transmission
According to.
From audio frequency apparatus 12 mainly by one second control module 121, one second wireless receiving module 122, a second clock
The audio playing module 124 of synchronization module 123 and 1 second forms.Second control module 121 is the micro-control from audio frequency apparatus 12
Unit (Microcontroller Unit, abbreviation MCU) processed.Second wireless receiving module 122 and WAP 13 and master
The wireless connection of data transmitting module 114 of audio frequency apparatus 11 is simultaneously connected to second control module 121, is passed through based on WIFI agreements
WAP 13 adds network, and the first of synchronized timestamp t1 is carried without line number for obtain the transmission of WAP 13
According to, while obtain the voice data sent by the data transmitting module 114 of main audio equipment 11 and carry reproduction time stamp t2
The second wireless data, and transmit to second control module 121.First wireless data includes and carries synchronized timestamp t1
The first beacon (Beacon) signal, sent out from the second wireless receiving module 122 of audio frequency apparatus 12 by obtaining WAP
The first beacon signal for carrying synchronized timestamp t1 sent obtains synchronized timestamp t1.The second clock synchronization module
123 are connected with first control module 121, for extracting synchronized timestamp t1 from the first wireless data, and will be from sound
The local clock of frequency equipment 12 is synchronously synchronized timestamp t1 clock, that is, the synchronization of local clock is carried out, with the first beacon
(Beacon) the synchronized timestamp t1 in signal is as master clock.Second audio playing module 124 is connected to from audio frequency apparatus
12 the first control module 121, for extracting reproduction time stamp t2 from the second wireless data occurred by main audio equipment 11,
And the playing audio-fequency data according to reproduction time stamp t2.
The present invention is using two or more WAP compositions general from audio frequency apparatus and one, from audio
Equipment supports DLNA/UPNP standard agreements and 802.11 standard agreements, and specifies one of them from audio frequency apparatus as main audio
Equipment (bridger), the main audio equipment can be used as DMS equipment, also can play the music come from high in the clouds as DMR equipment.
The present invention also using smart mobile phone or tablet personal computer or be carried on the smart mobile phone or the tablet personal computer should
By the use of software as DMC, from high in the clouds or media server push and control music.Come from audio frequency apparatus as DMR equipment
The Beacon signals that WAP is sent are received, while, it is necessary to add network plays media music as media renderer.
Further, the underlying protocol that the present invention is carried using WIFI network, passes through the time in WIFI Beacon bags
Stamp, in the situation of no increase network load and without WIFI network clock synchronization protocol 802.11V is utilized, realize more
The time synchronized of room system, good effect is reached.
Coordinate again shown in Fig. 3, the present invention realizes one using the above-mentioned music synchronous playing system based on WIFI agreements
Synchronous music player method of the kind based on WIFI agreements, sets applied to by WAP, main audio equipment and from audio
In the standby wireless network set up, the synchronous music player method specifically includes:
S001:Obtain by main audio equipment and from audio frequency apparatus and carry synchronized timestamp by what WAP was sent
First wireless data;
S002:Synchronized timestamp is extracted from the first wireless data by main audio equipment, by the local in main audio equipment
It is synchronized timestamp that clock is synchronous;, will be from audio frequency apparatus by extracting synchronized timestamp from the first wireless data from audio frequency apparatus
In local clock it is synchronous be synchronized timestamp;
S003:The voice data sent by WAP is obtained by main audio equipment, and addition is broadcast in each frame packet header
Put timestamp and form the second wireless data, voice data and the second wireless data for carrying reproduction time stamp are sent to accordingly
From audio frequency apparatus, make from audio frequency apparatus according to reproduction time stamp playing audio-fequency data.
Wherein, the first wireless data includes the first beacon signal for carrying synchronized timestamp;From audio frequency apparatus by obtaining
The first beacon signal for carrying synchronized timestamp that WAP is sent is taken to obtain the synchronized timestamp.
Second wireless data includes the voice data for carrying reproduction time stamp;Principal and subordinate's audio frequency apparatus is wirelessly connect by obtaining
Voice data that access point is sent simultaneously adds reproduction time stamp the second wireless data of composition and described puts timestamp to obtain.
As shown in Fig. 2 each added first by WAP 13 from audio frequency apparatus 12 (including main audio equipment 11)
Network, and the first wireless data sent from WAP 13 is received, first wireless data is comprising when carrying synchronous
Between stab t1 the first beacon signal (Beacon with Time), first beacon signal be WIFI network carry bottom association
View, and synchronized timestamp t1 is the timestamp that the beacon signal of WIFI underlying protocols first (Beacon packets) carries, therefore,
Network load will not be increased, without utilization WIFI network clock synchronization protocol 802.11V.Afterwards, each from audio frequency apparatus 12
(including main audio equipment 11) after receiving and carrying synchronized timestamp t1 the first beacon signal, by first beacon signal
In synchronized timestamp t1 synchronized with the local clock out of audio frequency apparatus and main audio equipment 11, with the first beacon believe
Synchronized timestamp t1 in number will be synchronously somebody's turn to do as master clock from audio frequency apparatus 12 and the local clock of main audio equipment 11
Synchronized timestamp t1 setting clock, to being corrected from the local clock in audio frequency apparatus 12 and main audio equipment 11, and in fact
It is now synchronous from audio frequency apparatus 12 and the clock of main audio equipment 11.
In step S003, on the one hand main audio equipment 11 receives carries what reproduction time stabbed from WAP
Second beacon signal (second beacon signal is similarly the timestamp that WIFI network underlying protocol carries);On the other hand, the master
Audio frequency apparatus 11 will also receive the voice data of high in the clouds or media server push, row buffering of going forward side by side.The voice data is storage
Data beyond the clouds or in media server.By being communicatively coupled to intelligent control by main audio equipment 11 and from audio frequency apparatus 12
Terminal 14 (such as smart mobile phone or tablet personal computer), the control of intelligent terminal 14 is by WAP 13 from high in the clouds or media services
Device pushes and controlled music and sends control instruction to main audio equipment 11 and from audio frequency apparatus 12.Further, exist
In step S003, main audio equipment sends the voice data of compression plus the reproduction time stamp t2 that should play audio to together
It is each to be stabbed from audio frequency apparatus (DMR equipment), the reproduction time using synchronised clock as reference signal, and need to consider radio chains
The skew with path compensation is shaken on road, as shown in Figure 4.
Because all devices all completed in foregoing S002 processes it is synchronous between WAP, when broadcasting for setting
Putting the timestamp t2 moment arrives, all decodings for carrying out voice data simultaneously from audio frequency apparatus (including main audio equipment) can
With broadcasting, the synchronous broadcasting of more room music systems is realized.
In view of each trickle inconsistency between audio frequency apparatus, and the fluctuation of wireless data transmission, this hair
It is bright that the voice data for carrying reproduction time stamp t2 is transferred to after audio frequency apparatus in main audio equipment, needed from audio frequency apparatus
Voice data and buffering area and next time point that will be played based on previous broadcasting carry out a simple calculating,
So as to eliminate the influence for broadcasting the accumulation of empty or data redundancy.As shown in figure 5, one from audio frequency apparatus, front and rear two frames ideal situation
Formula should be met:
By voice data and carry reproduction time stamp the second Wireless data transmission give after audio frequency apparatus, in addition to
Step:
T3=T1+T2 (1)
Wherein, T1 is from the clock of the voice data of the previous broadcasting of audio frequency apparatus, and T2 is the buffering area from audio frequency apparatus
Between, T3 is the reproduction time stamp received from audio frequency apparatus.
When meeting formula (1), the clock T3 from audio frequency apparatus in the reproduction time stamp received carries out voice data
Play;
When being unsatisfactory for formula (1), to being adjusted from the currently playing frequency of audio frequency apparatus so that meet formula (1)
Afterwards, the broadcasting of voice data is carried out in the clock T3 of the reproduction time stamp received from audio frequency apparatus.Wherein, buffering section T2 can
Calculated using the length from voice data and broadcasting frequency such as when the data sampling rate of broadcasting is 44.1kHz, 16bit binary channels
Stereo, then buffer time T2 is
T2=buffering section byte number % (44100*2*2)
When system detectio is carried out to when being unsatisfactory for formula (1), it is necessary to pass through software to the frequency that is played from audio frequency apparatus
Fine setting.When T1+T2 is more than T3, it is meant that broadcasting speed is partially slow, can improve broadcasting frequency slightly;Conversely, then pico- reduce
Broadcasting frequency.
Further, a kind of synchronous music player method based on WIFI agreements of the present invention, in addition to Jing Yin detection;It is Jing Yin
Detect (Voice Activity Detection, abbreviation VAD), also known as speech terminals detection or speech endpoint detection, it is therefore an objective to
The prolonged Jing Yin phase is identified in voice signal stream.Mainly by Jing Yin detection algorithm, after Jing Yin each time, from audio
Equipment reacquires the first wireless data for carrying synchronized timestamp that WAP is sent, and from the first wireless data
Synchronized timestamp is extracted, is synchronously the clock of synchronized timestamp by the local clock from audio frequency apparatus.Because in view of length
Time plays, from the difference between audio frequency apparatus and the fluctuation of radiolink, it would be desirable to which software detects to Jing Yin.By quiet
Sound detects (VAD) algorithm, after Jing Yin each time, carries out synchronous calculating again.Such as music switching centre,
Or the centre of pause is played, carry out new synchronization once.
Instantly, the Intelligent mobile equipment such as smart mobile phone or tablet personal computer is widely used, and the present invention is based on WIFI agreements
The appearance of synchronous music player method and music synchronous playing system, Intelligent mobile equipment can be combined, to move WIFI as bridge,
In the field that mobile device is combined with smart home, new market is opened up.As long as user is using smart mobile phone in APP Store
Or the application software of the present invention is downloaded in Android market, just control of intelligent terminal of the present invention is downloaded on smart mobile phone.So
Afterwards, open the interface of the application software, add WIFI network, and WAP wireless connection, afterwards can pass through wireless
Access point links with high in the clouds or media server, is stored with substantial amounts of media database, user beyond the clouds or in media server
The music liked can be selected in media database by the application software, as " Liang Jingru《Ningxia》", and assisted based on WIFI
Selected music is packaged as voice data by view from high in the clouds or media server, is sent to the main audio equipment specified.Meanwhile
User can set reproduction time in the application software, such as " Beijing time 17:00 ", the reproduction time " Beijing time 17:00”
It is written into the timestamp for the underlying protocol that WIFI network carries, is taken this from high in the clouds or media server by WAP
Packed with reproduction time stamp wireless data together with voice data and be pushed to main playback equipment.Main playback equipment is receiving this
Carry reproduction time stamp wireless data and voice data after, then by this carry reproduction time stamp wireless data and audio
Data group issue specify from audio frequency apparatus.Because before this, the music based on WIFI agreements using the present invention is same
Walk player method and carry out oversampling clock synchronization to main audio equipment and from the local clock in audio frequency apparatus.Therefore, now, from sound
Frequency equipment receives carries reproduction time stamp " Beijing time 17 by what main audio equipment was sent:00 " wireless data and audio
Data be " Liang Jingru's《Ningxia》" after, main audio equipment and from audio frequency apparatus can reproduction time stab " Beijing time 17:00 " band
Come a moment, while the music in playing audio-fequency data " Liang Jingru's《Ningxia》", realize that the synchronous of more equipment plays and used
Long-range, the wireless manipulation at family.The present invention a kind of synchronous music player method and play system based on WIFI agreements by using
Above-mentioned technical proposal, on the WIFI chip platforms based on MTK7688, with a Cisco universal wireless access point arrange in pairs or groups into
Row test, the more rooms for realizing up to 8 equipment are synchronous;Also, from audio frequency apparatus lock in time under typical network environment
Within 1ms, Expected Results is reached, as shown in Figure 6.
The underlying protocol that the present invention is carried using WIFI network, the timestamp in being wrapped by WIFI beacons (Beacon),
Do not increase the situation of network load and without utilizing under WIFI network clock synchronization protocol 802.11V, realize more rooms
The time synchronized of system, good effect is reached.Specifically, by being carried based on WIFI underlying protocol Beacon packets
Timestamp, bridge is used as by main audio device node, by the voice data with timestamp, is distributed to equipment end, equipment end root
The sample rate for buffering and playing according to local played data, is finely adjusted, and combines VAD detection algorithms, realizes reproduction time
The Synchronization Control of point, so as to reach, more room system clocks are synchronous to be precisely controlled.
The present invention is described in detail above in association with drawings and Examples, those skilled in the art can basis
Described above makes many variations example to the present invention.Thus, some details in embodiment should not form limitation of the invention,
The present invention will be used as protection scope of the present invention using the scope that appended claims define.
Claims (10)
- A kind of 1. synchronous music player method based on WIFI agreements, applied to by WAP, main audio equipment, Yi Jicong In the wireless network that audio frequency apparatus is set up, it is characterised in that the synchronous music player method includes:By the main audio equipment and described obtained from audio frequency apparatus lock in time is carried by what the WAP was sent First wireless data of stamp;The synchronized timestamp is extracted from first wireless data by the main audio equipment, by the main audio equipment Local clock and synchronized timestamp extraction clock synchronize;Carried by described from audio frequency apparatus from first wireless data The synchronized timestamp is taken, is synchronously synchronized timestamp by the local clock from audio frequency apparatus;The voice data sent by the WAP is obtained by the main audio equipment and adds reproduction time stamp and is formed Second wireless data, the voice data and second wireless data for carrying reproduction time stamp are sent to corresponding institute State from audio frequency apparatus, make described to stab and playing audio data from audio frequency apparatus according to the reproduction time.
- 2. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that:Described first is wireless Packet contains the first beacon signal for carrying the synchronized timestamp;It is described to be sent out from audio frequency apparatus by obtaining WAP First beacon signal for carrying the synchronized timestamp sent obtains the synchronized timestamp.
- 3. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that:Described second is wireless Packet contains the voice data for carrying reproduction time stamp;The audio that the main audio equipment is sent by obtaining WAP Data simultaneously add reproduction time stamp composition second wireless data to obtain the reproduction time stamp.
- 4. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that also include:Control of intelligent terminal is communicatively coupled to by main audio equipment and from audio frequency apparatus;The control of intelligent terminal pushed by the WAP from high in the clouds or media server and control music with And to the main audio equipment and it is described from audio frequency apparatus send control instruction.
- 5. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that by voice data and The second Wireless data transmission of reproduction time stamp is carried to after audio frequency apparatus, in addition to step:From the clock T1 of voice data of the audio frequency apparatus based on previous broadcasting and buffering section T2 and the broadcasting received when Between stamp T3 calculated in formula (1);T3=T1+T2 (1)When meeting formula (1), broadcasting for the voice data is carried out from audio frequency apparatus in the reproduction time stamp T3 received Put;When being unsatisfactory for formula (1), to being adjusted from the broadcasting frequency of audio frequency apparatus so that after meeting formula (1), from audio Equipment carries out the broadcasting of the voice data in the reproduction time stamp T3 received.
- 6. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that:Also include Jing Yin inspection Survey;It is described to reacquire taking for WAP transmission from audio frequency apparatus after Jing Yin each time by Jing Yin detection algorithm The first wireless data with synchronized timestamp, and the synchronized timestamp is extracted from first wireless data, by described in The local clock of audio frequency apparatus is synchronously the clock of the synchronized timestamp.
- 7. the synchronous music player method based on WIFI agreements as claimed in claim 1, it is characterised in that:The main audio is set It is standby and described from audio frequency apparatus support DLNA/UPNP standard agreements and 802.11 standard agreements.
- A kind of 8. music synchronous playing system based on WIFI agreements, it is characterised in that including:WAP, with wirelessly connecing The main audio equipment of access point wireless connection and with WAP and the main audio equipment wireless connection from audio frequency apparatus;The main audio equipment is used for:Obtain and carry the first of synchronized timestamp without line number by what the WAP was sent According to, voice data and reproduction time stamp the second wireless data of composition is added, is extracted from first wireless data described same Timestamp is walked, is synchronously the synchronized timestamp by the local clock in the main audio equipment;By the voice data and take Second wireless data with reproduction time stamp is sent to corresponding described from audio frequency apparatus;It is described to be used for from audio frequency apparatus:Obtain and carry the first of synchronized timestamp without line number by what the WAP was sent According to extracting the synchronized timestamp from first wireless data, be synchronously by the local clock from audio frequency apparatus The synchronized timestamp;Obtain as the main audio equipment send the voice data and carry reproduction time stamp described in Second wireless data, the reproduction time stamp is extracted from second wireless data, is stabbed and played according to the reproduction time The voice data.
- 9. the music synchronous playing system as claimed in claim 8 based on WIFI agreements, it is characterised in thatThe main audio equipment includes:First control module;First wireless receiving module, with the WAP wireless connection and being connected to first control module and being connected, use The first wireless data for carrying synchronized timestamp, voice data and the addition reproduction time sent in acquisition by WAP Stamp the second wireless data of composition, and transmit to first control module;First clock synchronization module, it is connected with first control module, for described in the extraction from first wireless data Synchronized timestamp and by the local clock in the main audio equipment it is synchronous be the synchronized timestamp;Data transmitting module, it is connected with first control module, for externally transmitting the voice data and carrying broadcasting Second wireless data of timestamp;First audio playing module, it is connected with first control module, is stabbed and played according to the reproduction time of second data The voice data;It is described to include from audio frequency apparatus:Second control module;Second wireless receiving module, with the WAP and the data transmitting module wireless connection and being connected to described Two control modules connect, and for obtaining the first wireless data for carrying synchronized timestamp sent by WAP, obtain The voice data that is sent by the data transmitting module and second wireless data for carrying reproduction time stamp, and pass Transport to second control module;Second clock synchronization module, it is connected with second control module, for described in the extraction from first wireless data Synchronized timestamp and by the local clock from audio frequency apparatus it is synchronous be the synchronized timestamp;Second audio playing module, it is connected with first control module, for described in the extraction from second wireless data Reproduction time stabs, the playing audio data according to reproduction time stamp.
- 10. the music synchronous playing system as claimed in claim 8 based on WIFI agreements, it is characterised in that:Also include intelligence Terminal, the control of intelligent terminal and the main audio equipment are controlled and described from audio frequency apparatus communication connection, for passing through State WAP from high in the clouds or media server push and control music and to the main audio equipment and it is described from Audio frequency apparatus sends control instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610651398.4A CN107733745A (en) | 2016-08-10 | 2016-08-10 | A kind of synchronous music player method and play system based on WIFI agreements |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610651398.4A CN107733745A (en) | 2016-08-10 | 2016-08-10 | A kind of synchronous music player method and play system based on WIFI agreements |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107733745A true CN107733745A (en) | 2018-02-23 |
Family
ID=61200116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610651398.4A Pending CN107733745A (en) | 2016-08-10 | 2016-08-10 | A kind of synchronous music player method and play system based on WIFI agreements |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107733745A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151987A (en) * | 2018-07-03 | 2019-01-04 | 珠海全志科技股份有限公司 | A kind of method that more room audio groups are played simultaneously in WLAN |
CN110572799A (en) * | 2019-07-25 | 2019-12-13 | 华为技术有限公司 | Method and equipment for simultaneous response |
CN111147907A (en) * | 2019-12-26 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Method, device and system for synchronously playing multiple intelligent terminals and intelligent terminal |
CN111479184A (en) * | 2019-08-02 | 2020-07-31 | 爱科微半导体(上海)有限公司 | True wireless earphone, terminal equipment and connection method of true wireless earphone |
CN112235685A (en) * | 2020-09-30 | 2021-01-15 | 瑞芯微电子股份有限公司 | Sound box networking method and sound box system |
CN113438385A (en) * | 2021-06-03 | 2021-09-24 | 深圳市昊一源科技有限公司 | Video synchronization method and wireless image transmission system |
CN113613221A (en) * | 2021-04-26 | 2021-11-05 | 珠海市杰理科技股份有限公司 | TWS master device, TWS slave device, audio device and system |
CN114189727A (en) * | 2021-03-04 | 2022-03-15 | 浙江宇视科技有限公司 | Synchronous playing method, device, system, electronic equipment and readable storage medium |
CN114337890A (en) * | 2021-11-25 | 2022-04-12 | 伟乐视讯科技股份有限公司 | Multi-terminal broadcast synchronization system and method based on PTP network synchronization |
CN114339328A (en) * | 2021-12-31 | 2022-04-12 | 杭州当虹科技股份有限公司 | Method and system for realizing timestamp synchronization service |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103338204A (en) * | 2013-07-05 | 2013-10-02 | 曾德钧 | Audio synchronization output method and system |
CN103581816A (en) * | 2013-11-18 | 2014-02-12 | 广州市花都区中山大学国光电子与通信研究院 | Wireless multi-room music system synchronization mechanism based on UPnP protocol |
CN103828449A (en) * | 2011-09-23 | 2014-05-28 | 想象技术有限公司 | Method and apparatus for time synchronization in wireless networks |
CN104469413A (en) * | 2014-12-30 | 2015-03-25 | 中山大学花都产业科技研究院 | Local area network multi-terminal synchronous playing time deviation calculation improving method |
CN104581599A (en) * | 2014-12-30 | 2015-04-29 | 歌尔声学股份有限公司 | Method and system for synchronous broadcast of multiple speaker boxes, and speaker box |
US20150365184A1 (en) * | 2008-10-02 | 2015-12-17 | Aliphcom | Wireless clock regeneration and synchronization |
CN105592568A (en) * | 2015-12-22 | 2016-05-18 | Tcl通力电子(惠州)有限公司 | Audio playing method and system |
-
2016
- 2016-08-10 CN CN201610651398.4A patent/CN107733745A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150365184A1 (en) * | 2008-10-02 | 2015-12-17 | Aliphcom | Wireless clock regeneration and synchronization |
CN103828449A (en) * | 2011-09-23 | 2014-05-28 | 想象技术有限公司 | Method and apparatus for time synchronization in wireless networks |
CN103338204A (en) * | 2013-07-05 | 2013-10-02 | 曾德钧 | Audio synchronization output method and system |
CN103581816A (en) * | 2013-11-18 | 2014-02-12 | 广州市花都区中山大学国光电子与通信研究院 | Wireless multi-room music system synchronization mechanism based on UPnP protocol |
CN104469413A (en) * | 2014-12-30 | 2015-03-25 | 中山大学花都产业科技研究院 | Local area network multi-terminal synchronous playing time deviation calculation improving method |
CN104581599A (en) * | 2014-12-30 | 2015-04-29 | 歌尔声学股份有限公司 | Method and system for synchronous broadcast of multiple speaker boxes, and speaker box |
CN105592568A (en) * | 2015-12-22 | 2016-05-18 | Tcl通力电子(惠州)有限公司 | Audio playing method and system |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151987A (en) * | 2018-07-03 | 2019-01-04 | 珠海全志科技股份有限公司 | A kind of method that more room audio groups are played simultaneously in WLAN |
CN110572799A (en) * | 2019-07-25 | 2019-12-13 | 华为技术有限公司 | Method and equipment for simultaneous response |
CN111479184A (en) * | 2019-08-02 | 2020-07-31 | 爱科微半导体(上海)有限公司 | True wireless earphone, terminal equipment and connection method of true wireless earphone |
CN111147907A (en) * | 2019-12-26 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Method, device and system for synchronously playing multiple intelligent terminals and intelligent terminal |
CN112235685B (en) * | 2020-09-30 | 2022-07-15 | 瑞芯微电子股份有限公司 | Sound box networking method and sound box system |
CN112235685A (en) * | 2020-09-30 | 2021-01-15 | 瑞芯微电子股份有限公司 | Sound box networking method and sound box system |
CN114189727B (en) * | 2021-03-04 | 2024-04-05 | 浙江宇视科技有限公司 | Synchronous playing method, device, system, electronic equipment and readable storage medium |
CN114189727A (en) * | 2021-03-04 | 2022-03-15 | 浙江宇视科技有限公司 | Synchronous playing method, device, system, electronic equipment and readable storage medium |
CN113613221A (en) * | 2021-04-26 | 2021-11-05 | 珠海市杰理科技股份有限公司 | TWS master device, TWS slave device, audio device and system |
CN113613221B (en) * | 2021-04-26 | 2023-09-08 | 珠海市杰理科技股份有限公司 | TWS master device, TWS slave device, audio device and system |
CN113438385A (en) * | 2021-06-03 | 2021-09-24 | 深圳市昊一源科技有限公司 | Video synchronization method and wireless image transmission system |
CN114337890A (en) * | 2021-11-25 | 2022-04-12 | 伟乐视讯科技股份有限公司 | Multi-terminal broadcast synchronization system and method based on PTP network synchronization |
CN114337890B (en) * | 2021-11-25 | 2023-08-01 | 伟乐视讯科技股份有限公司 | Multi-terminal broadcasting synchronization system and method based on PTP network synchronization |
CN114339328A (en) * | 2021-12-31 | 2022-04-12 | 杭州当虹科技股份有限公司 | Method and system for realizing timestamp synchronization service |
CN114339328B (en) * | 2021-12-31 | 2023-09-01 | 杭州当虹科技股份有限公司 | Method and system for realizing time stamp synchronous service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107733745A (en) | A kind of synchronous music player method and play system based on WIFI agreements | |
US11546682B2 (en) | Method and system for synchronous audio playback of TWS earphones | |
US11039411B2 (en) | Synchronization method for synchronizing clocks of a Bluetooth device | |
US11375312B2 (en) | Method, device, loudspeaker equipment and wireless headset for playing audio synchronously | |
JP6640359B2 (en) | Wireless audio sync | |
US11848972B2 (en) | Multi-device audio streaming system with synchronization | |
CN107333339B (en) | Audio data transmission method between double wireless earphones and double wireless earphones | |
US7243150B2 (en) | Reducing the access delay for transmitting processed data over transmission data | |
CN101809906B (en) | Synchronizing related data streams in interconnection networks | |
CN104584567B (en) | Audio forwarding device and corresponding method | |
JP2014180005A (en) | Synchronization of signals for multiple data sinks | |
US20100034393A1 (en) | Ad-hoc adaptive wireless mobile sound system | |
CN109565466B (en) | Lip sound synchronization method and device among multiple devices | |
CN103905880A (en) | Playing method of audio data and video data, smart television set and mobile equipment | |
US20040114607A1 (en) | Low latency digital audio over packet switched networks | |
KR20160008602A (en) | Media time based usb frame counter synchronization for wi-fi serial bus | |
CN105592568A (en) | Audio playing method and system | |
AU2012216611A1 (en) | Communications system for transmission of signals between terminal equipment connected to intermediate equipment connected to an Ethernet network | |
CN102932676A (en) | Self-adaptive bandwidth transmitting and playing method based on audio and video frequency synchronization | |
KR20150055031A (en) | Playback synchronization | |
WO2009148751A4 (en) | Time aligned group audio reproduction in narrowband and broadband networks | |
CN108271095A (en) | A kind of major and minor Bluetooth audio equipment and its synchronous playing system and method | |
EP3868043B1 (en) | Wireless audio synchronization | |
KR20210055009A (en) | Multi-member bluetooth device capable of synchronizing audio playback between different bluetooth circuits | |
CN102843344B (en) | Signal transmission method of minitype base station |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |