CN109151987A - A kind of method that more room audio groups are played simultaneously in WLAN - Google Patents
A kind of method that more room audio groups are played simultaneously in WLAN Download PDFInfo
- Publication number
- CN109151987A CN109151987A CN201810711450.XA CN201810711450A CN109151987A CN 109151987 A CN109151987 A CN 109151987A CN 201810711450 A CN201810711450 A CN 201810711450A CN 109151987 A CN109151987 A CN 109151987A
- Authority
- CN
- China
- Prior art keywords
- audio
- data
- equipment
- frame
- clock
- 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
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000002123 temporal effect Effects 0.000 claims abstract description 19
- 239000000284 extract Substances 0.000 claims abstract description 14
- 230000001360 synchronised effect Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/0017—Lossless audio signal coding; Perfect reconstruction of coded audio signal by transmission of coding error
-
- 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/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- 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)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses the methods that room audio groups more in a kind of WLAN are played simultaneously, it is characterized in that this method comprises: step 1, WIFI mould group decodes Beacon frame, the timing information of AP is extracted from Beacon frame, and the clock counter of WIFI mould group is updated, keep the clock counter of WIFI mould group consistent with AP clock counter;Step 2, the master and slave equipment of audio accesses WIFI mould group clock counter, obtains identical clock reference, realizes that the master and slave equipment room clock reference of audio is identical;Step 3, audio main equipment obtains audio data, is sent to audio in the form of data frames from equipment after coding;Step 4, audio receives data frame from equipment, extracts the temporal information in data frame, and determine whether playing audio-fequency data.The method of the present invention is made clock in WIFI module internal and is synchronized, and avoiding WIFI driving, protocol stack and system transport layer bring influences, and makes isochronous audio broadcasting precision between distinct device that the clock reference synchronization error for being less than 20us may be implemented.
Description
Technical field
The present invention relates to the methods that room audio groups more in a kind of WLAN are played simultaneously, and belong at computer audio
Manage technical field.
Background technique
With the development of technology, people are not content with the audio data that Bluetooth transmission damages, the lossless audio based on WiFi
Transmission system is using more and more extensive, in order to obtain better audio, it will usually which multiple wireless sound boxes are combined into room more than one
Between audio frequency broadcast system.In more room voice box group sound systems, if each speaker only plays a sound channel, speaker and speaker it
Between broadcasting synchronization just seem particularly important.For example, in a music playing system, there are two speakers.Pass through setting
Speaker 1 is set to play the L channel of a first stereo music, speaker 2 plays the right channel of same first stereo music, if two sounds
Case play time difference be greater than 5ms, human ear can obviously experience play it is asynchronous, largely effect on the experience listened to music.Existing skill
Art scheme can achieve higher frequently with hardware and two class implementation of software using hardware realization precise synchronization
Precision, but need to increase corresponding hardware module;And the existing scheme using software realization, mostly use Network Time Protocol or
Ieee1588 high precision clock synchronous protocol, as shown in Figure 1, synchronous protocol operates in application layer, synchronous protocol operation needs to receive
Data packet is sent out, extracts packet time information to run synchronized algorithm, since data packet is handled by WIFI mould group, to driving layer
The problem of handling, then handle to protocol layer, encountering many scheduling and cache, is extremely difficult to the error of delicate rank.
Summary of the invention
In view of the deficiencies of the prior art, technical solution of the present invention provides more room audio groups in a kind of WLAN
The method being played simultaneously realizes high precision clock reference synchronization technology.
To achieve the above object, the technical solution of the present invention is as follows:
A kind of method that more room audio groups are played simultaneously in WLAN, it is characterised in that this method comprises:
S01, AP broadcast beacon frame, WIFI mould group decode beacon frame, and the timing information of AP is extracted from beacon frame, and update
The clock counter of WIFI mould group, while adjusting local clock source running frequency is consistent local time counter with AP;
S02, the master and slave equipment of audio in same local area network accesses WIFI mould group clock counter, when obtaining identical
Clock benchmark realizes that the master and slave equipment room clock reference of audio is identical;
S03, audio main equipment obtain audio data, are sent to audio in the form of data frames from equipment after coding;
S04, audio receive data frame from equipment, extract the temporal information in data frame, and determine whether to play audio number
According to.
Further, to include main equipment obtain audio number from media server to the method for main equipment coded frame data in S03
According to, it is decoded as PCM format, and data truncation at the data length of a frame frame, header information is added before every frame data, it is described
Header information further includes the one or more combined informations for controlling information and version information in addition to including temporal information.
Further, S04 sound intermediate frequency receives data frame from equipment, and extracting the temporal information in data frame is to extract to receive
Data frame timestamp.
Further, S04 sound intermediate frequency receives data frame from equipment, extracts the temporal information in data frame, first judges whether
Meet broadcast request, if satisfied, then in predetermined time playing audio-fequency data, if not satisfied, then not playing audio in the predetermined time
Data.
Further, judge whether that the method for meeting broadcast request includes parsing the data frame received from equipment, extract
The clock information on head, compares with local clock, lags behind local clock when data frame packet contains temporal information, then abandons, no
Recognize the temporal information provided according to data frame, stamp plays the frame audio data at the appointed time.
Further, the master and slave equipment of S02 sound intermediate frequency accesses WIFI mould group clock counter, obtains identical clock reference
It further include that access WIFI mould group clock counter bring shake is eliminated by error correction module.
The invention has the benefit that the present invention tells that equipment updates in local area network by using AP periodic broadcasting beacon frame
Timing information, equipment extract beacon frame time information, calculate clocking error and adjust local time counter, equipment access obtains
WIFI clock counter, the method for forming equipment room synchronous base, the clock realized in WIFI module internal are synchronized, are avoided
WIFI driving, protocol stack and system transport layer bring influence, and isochronous audio broadcasting precision between distinct device may be implemented
Clock reference synchronization error less than 20us.
Detailed description of the invention
Fig. 1 show the overview flow chart of embodiment according to the present invention;
Fig. 2 show the flow diagram of main equipment coded frame data of the present invention;
Fig. 3 show the schematic diagram of the master and slave equipment access WIFI mould group clock counter of the present invention;
Fig. 4 show the structure and information transmitting schematic diagram of audio system of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
A kind of method that more room audio groups are played simultaneously in WLAN, the flow chart of this method refering to fig. 1, the party
Method includes:
S01, AP broadcast beacon frame, WIFI mould group decode beacon frame, and the timing information of AP is extracted from beacon frame, and update
The clock counter of WIFI mould group, while adjusting local clock source running frequency is consistent local time counter with AP;
S02, the master and slave equipment of audio in same local area network accesses WIFI mould group clock counter, when obtaining identical
Clock benchmark realizes that the master and slave equipment room clock reference of audio is identical;
S03, audio main equipment obtain audio data, are sent to audio in the form of data frames from equipment after coding;
S04, audio receive data frame from equipment, extract the temporal information in data frame, and determine whether to play audio number
According to.
The method of main equipment coded frame data includes main equipment from media server acquisition audio data in S03, is decoded as
PCM format, and data truncation at the data length of a frame frame, header information, the header information are added before every frame data
It further include the one or more combined informations for controlling information and version information, as shown in Figure 2 in addition to including temporal information.
S04 sound intermediate frequency receives data frame from equipment, and extracting the temporal information in data frame is to extract the data frame received
Timestamp.
S04 sound intermediate frequency receives data frame from equipment, extracts the temporal information in data frame, first judges whether to meet to play and want
It asks, if satisfied, then in predetermined time playing audio-fequency data, if not satisfied, then in predetermined time not playing audio-fequency data.Judgement is
The no method for meeting broadcast request includes parsing the data frame that receives from equipment, extracts the clock information on head, with it is local when
Clock compares, and lags behind local clock when data frame packet contains temporal information, then abandons, denies the time letter provided according to data frame
Breath, stamp plays the frame audio data at the appointed time.
The master and slave equipment of S02 sound intermediate frequency accesses WIFI mould group clock counter, and obtaining identical clock reference further includes passing through
Error correction module eliminates access WIFI mould group clock counter bring shake, as shown in Figure 3.
More specific in order to make to illustrate, the present embodiment lists a specific more room audio systems to more room audios
The workflow that group is played simultaneously is illustrated, as shown in figure 4, audio main equipment and audio represent sound from the dotted line between equipment
Frequency main equipment is transferred to information flow of the audio from equipment after being decoded to audio data.More room audio systems include road
By device, an audio main equipment and the first audio are from equipment and the second audio from equipment.Three audio frequency apparatuses are connected by WIFI
It is connected to the same router, audio main equipment obtains audio data from media server via router, by audio data
Other audios are encoded and then are sent to from equipment.Audio frequency apparatus after wherein encoding includes audio data, control letter
The information such as breath, temporal information receive audio data, extracting time information and audio data from equipment, and mention according to temporal information
Show, puts audio frame in program request at the same time with main equipment, realize that more equipment are played simultaneously.
In conclusion the method for the present invention tells that equipment updates timing information in local area network by AP periodic broadcasting beacon frame,
Equipment extracts beacon frame time information, calculates clocking error and adjusts local time counter, equipment access obtains WIFI clock meter
Number device forms equipment room synchronous base, and this method is made clock in WIFI module internal and synchronized, and avoids WIFI driving, protocol stack
And system transport layer bring influences, and makes isochronous audio broadcasting precision between distinct device that the clock base for being less than 20us may be implemented
Plesiochronous error.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.
Claims (6)
1. a kind of method that more room audio groups are played simultaneously in WLAN, it is characterised in that this method comprises:
S01, AP broadcast beacon frame, WIFI mould group decode beacon frame, and the timing information of AP is extracted from beacon frame, and update WIFI
The clock counter of mould group, while adjusting local clock source running frequency is consistent local time counter with AP;
S02, the master and slave equipment of audio in same local area network access WIFI mould group clock counter, obtain identical clock base
Standard realizes that the master and slave equipment room clock reference of audio is identical;
S03, audio main equipment obtain audio data, are sent to audio in the form of data frames from equipment after coding;
S04, audio receive data frame from equipment, extract the temporal information in data frame, and determine whether playing audio-fequency data.
2. the method that more room audio groups are played simultaneously in WLAN as described in claim 1, it is characterised in that:
The method of main equipment coded frame data includes main equipment from media server acquisition audio data in S03, is decoded as PCM lattice
Formula, and data truncation at the data length of a frame frame, header information is added before every frame data, the header information, which removes, includes
It further include the one or more combined informations for controlling information and version information outside temporal information.
3. the method that more room audio groups are played simultaneously in WLAN as claimed in claim 2, it is characterised in that:
S04 sound intermediate frequency from equipment receive data frame, extract data frame in temporal information be extract receive data frame when
Between stab.
4. the method that more room audio groups are played simultaneously in WLAN as claimed in claim 3, it is characterised in that:
S04 sound intermediate frequency receives data frame from equipment, extracts the temporal information in data frame, first judges whether to meet broadcast request,
If satisfied, then in predetermined time playing audio-fequency data, if not satisfied, then in predetermined time not playing audio-fequency data.
5. the method that more room audio groups are played simultaneously in WLAN as claimed in claim 4, it is characterised in that: judgement
Whether meeting the method for broadcast request includes parsing the data frame received from equipment, the clock information on head is extracted, with local
Clock compares, and lags behind local clock when data frame packet contains temporal information, then abandons, deny the time provided according to data frame
Information, stamp plays the frame audio data at the appointed time.
6. the method that more room audio groups are played simultaneously in WLAN as described in claim 1, it is characterised in that: S02
The master and slave equipment of sound intermediate frequency accesses WIFI mould group clock counter, and obtaining identical clock reference further includes by error correction mould
Block eliminates access WIFI mould group clock counter bring shake.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810711450.XA CN109151987A (en) | 2018-07-03 | 2018-07-03 | A kind of method that more room audio groups are played simultaneously in WLAN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810711450.XA CN109151987A (en) | 2018-07-03 | 2018-07-03 | A kind of method that more room audio groups are played simultaneously in WLAN |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109151987A true CN109151987A (en) | 2019-01-04 |
Family
ID=64799582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810711450.XA Pending CN109151987A (en) | 2018-07-03 | 2018-07-03 | A kind of method that more room audio groups are played simultaneously in WLAN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151987A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110428798A (en) * | 2019-08-02 | 2019-11-08 | 湖南国声声学科技股份有限公司深圳分公司 | Voice and accompaniment synchronous method, bluetooth equipment, terminal and storage medium |
CN110557454A (en) * | 2019-09-10 | 2019-12-10 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN112367584A (en) * | 2020-11-06 | 2021-02-12 | 炬芯科技股份有限公司 | Audio playing method and device of Bluetooth TWS equipment |
CN113138623A (en) * | 2020-01-20 | 2021-07-20 | 南京深视光点科技有限公司 | Global clock synchronous transmission method |
CN113923497A (en) * | 2021-10-08 | 2022-01-11 | 上海物骐微电子有限公司 | Audio synchronization adjusting method and audio equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374377A (en) * | 2015-10-20 | 2016-03-02 | 北京小鸟听听科技有限公司 | Control method, control system, and loudspeaker box of multiroom audio playing |
WO2016085563A1 (en) * | 2014-11-25 | 2016-06-02 | Google Inc. | Clock synchronization using wifi beacons |
CN106303928A (en) * | 2016-08-31 | 2017-01-04 | 深圳聚点互动科技有限公司 | A kind of many room audio group network-building method and system thereof |
CN107733745A (en) * | 2016-08-10 | 2018-02-23 | 上海悟空信息科技有限公司 | A kind of synchronous music player method and play system based on WIFI agreements |
-
2018
- 2018-07-03 CN CN201810711450.XA patent/CN109151987A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016085563A1 (en) * | 2014-11-25 | 2016-06-02 | Google Inc. | Clock synchronization using wifi beacons |
CN105374377A (en) * | 2015-10-20 | 2016-03-02 | 北京小鸟听听科技有限公司 | Control method, control system, and loudspeaker box of multiroom audio playing |
CN107733745A (en) * | 2016-08-10 | 2018-02-23 | 上海悟空信息科技有限公司 | A kind of synchronous music player method and play system based on WIFI agreements |
CN106303928A (en) * | 2016-08-31 | 2017-01-04 | 深圳聚点互动科技有限公司 | A kind of many room audio group network-building method and system thereof |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110428798A (en) * | 2019-08-02 | 2019-11-08 | 湖南国声声学科技股份有限公司深圳分公司 | Voice and accompaniment synchronous method, bluetooth equipment, terminal and storage medium |
CN110428798B (en) * | 2019-08-02 | 2021-08-10 | 湖南国声声学科技股份有限公司深圳分公司 | Method for synchronizing voice and accompaniment, Bluetooth device, terminal and storage medium |
CN110557454A (en) * | 2019-09-10 | 2019-12-10 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN110557454B (en) * | 2019-09-10 | 2022-07-05 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN113138623A (en) * | 2020-01-20 | 2021-07-20 | 南京深视光点科技有限公司 | Global clock synchronous transmission method |
CN112367584A (en) * | 2020-11-06 | 2021-02-12 | 炬芯科技股份有限公司 | Audio playing method and device of Bluetooth TWS equipment |
CN113923497A (en) * | 2021-10-08 | 2022-01-11 | 上海物骐微电子有限公司 | Audio synchronization adjusting method and audio equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109151987A (en) | A kind of method that more room audio groups are played simultaneously in WLAN | |
US20230297319A1 (en) | Systems and methods for providing real-time audio and data | |
JP6640359B2 (en) | Wireless audio sync | |
US8233648B2 (en) | Ad-hoc adaptive wireless mobile sound system | |
US20210400367A1 (en) | Method and system for synchronous audio playback of tws earphones | |
US8792473B2 (en) | Synchronization of a plurality of data streams | |
CN106717079B (en) | Clock synchronization using WIFI beacons | |
JP2009521882A (en) | Media data synchronization in wireless networks | |
CN101484939A (en) | Clock drift compensation techniques for audio decoding | |
US10341773B2 (en) | Packet based delivery of multi-channel audio over wireless links | |
US20150156740A1 (en) | Increased Bluetooth Clock Accuracy | |
CN108170398B (en) | Apparatus and method for synchronizing speakers | |
CN114286149A (en) | Method and system for synchronously rendering audio and video across equipment and system | |
EP3868043B1 (en) | Wireless audio synchronization | |
TWI587697B (en) | Multimedia synchronization system and method | |
CN106209343A (en) | The broadcasting of the digital signal that synchronization sends to multiple movable audio frequency terminals | |
CN106211308B (en) | Multimedia synchronization system and method | |
CN110753232A (en) | Audio processing method, system and storage medium for online interactive scene | |
CN112235685B (en) | Sound box networking method and sound box system | |
Tatlas et al. | WLAN Technologies for Audio Delivery | |
CN118102434A (en) | Audio synchronous playing method, system and storage medium | |
CN115119112A (en) | Method and device for synchronously playing sound boxes | |
CN116260539A (en) | Audio data synchronization method, digital broadcasting system and electronic equipment |
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: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |