patents.google.com

CN104581599B - A kind of method and system that multiple speakers are played simultaneously - Google Patents

  • ️Tue Nov 27 2018

CN104581599B - A kind of method and system that multiple speakers are played simultaneously - Google Patents

A kind of method and system that multiple speakers are played simultaneously Download PDF

Info

Publication number
CN104581599B
CN104581599B CN201410842333.9A CN201410842333A CN104581599B CN 104581599 B CN104581599 B CN 104581599B CN 201410842333 A CN201410842333 A CN 201410842333A CN 104581599 B CN104581599 B CN 104581599B Authority
CN
China
Prior art keywords
slave
box
playing
sound box
sound
Prior art date
2014-12-30
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
CN201410842333.9A
Other languages
Chinese (zh)
Other versions
CN104581599A (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.)
Goertek Inc
Original Assignee
Goertek Inc
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.)
2014-12-30
Filing date
2014-12-30
Publication date
2018-11-27
2014-12-30 Application filed by Goertek Inc filed Critical Goertek Inc
2014-12-30 Priority to CN201410842333.9A priority Critical patent/CN104581599B/en
2015-04-29 Publication of CN104581599A publication Critical patent/CN104581599A/en
2018-11-27 Application granted granted Critical
2018-11-27 Publication of CN104581599B publication Critical patent/CN104581599B/en
Status Active legal-status Critical Current
2034-12-30 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 28
  • 230000005540 biological transmission Effects 0.000 claims abstract description 75
  • 230000001360 synchronised effect Effects 0.000 claims abstract description 56
  • 230000004044 response Effects 0.000 claims description 36
  • 230000001934 delay Effects 0.000 claims description 14
  • 238000004891 communication Methods 0.000 claims description 10
  • 230000000694 effects Effects 0.000 abstract description 4
  • 238000010586 diagram Methods 0.000 description 11
  • 238000006243 chemical reaction Methods 0.000 description 9
  • 101150052413 TNK2 gene Proteins 0.000 description 4
  • 230000008569 process Effects 0.000 description 3
  • 238000005516 engineering process Methods 0.000 description 1
  • 230000006872 improvement Effects 0.000 description 1
  • 230000004048 modification Effects 0.000 description 1
  • 238000012986 modification Methods 0.000 description 1

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of multiple speaker synchronous broadcast methods and systems, multiple speakers are connected by respective modulation /demodulation module with supply network by the present invention respectively, and it itself is main sound box that in multiple speakers a speaker is known according to the configuration-direct received and other speakers are from speaker.The method of the present invention includes:Main sound box and respective broadcast time-delay respectively is obtained from speaker;When playing audio-fequency data, the audio data that main sound box will acquire is sent to supply network by modulation /demodulation module, respectively obtains the audio data from supply network by modulation /demodulation module from speaker and stores;Main sound box and respectively being played simultaneously according to respective broadcast time-delay realization audio data from speaker.Technical solution of the present invention does not need to be routed, and each speaker placement location can arbitrarily change, and only achieves that being played simultaneously for all speakers by controlling main sound box, and during synchronous playback, the high stability of audio data transmission, and synchronous effect is preferable.

Description

Method and system for synchronously playing multiple sound boxes

Technical Field

The invention relates to the technical field of synchronous playing of sound boxes, in particular to a method and a system for synchronously playing a plurality of sound boxes.

Background

Currently, in a sound box system composed of a plurality of sound boxes, two ways are mostly adopted to realize synchronous playing. One is that the master speaker is connected to each slave speaker through an audio data line, and the master speaker transmits audio data to the slave speakers through the data line, and this method requires wiring between the speakers, and after wiring, the positions of the speakers are fixed, and if the positions of the speakers are to be changed, rewiring is required. In addition, the main sound box transmits the audio data to the auxiliary sound box through a wireless channel, and the method is influenced by a wireless network, so that the algorithm of synchronous playing is complex to realize and the effect is not good.

Disclosure of Invention

The invention mainly aims to provide a method and a system for synchronously playing a plurality of sound boxes, which are used for solving the problem that the existing sound box synchronous playing needs wiring or is easily influenced by a wireless network, and the algorithm is complex to realize.

In order to achieve the purpose, the technical scheme of the invention is realized as follows:

the invention provides a method for synchronously playing a plurality of sound boxes, wherein the sound boxes are respectively connected with a power supply network through respective modulation and demodulation modules, and one sound box in the sound boxes is known to be a main sound box and other sound boxes are known to be auxiliary sound boxes according to a received configuration instruction; the method comprises the following steps:

the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay;

when audio data are played, the main sound box sends the obtained audio data to a power supply network through a modulation and demodulation module, and each slave sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data;

and the master sound box and each slave sound box realize synchronous playing of audio data according to respective playing time delay.

Preferably, the step of implementing synchronous playing of audio data by the master speaker and each slave speaker according to their respective playing delays includes:

the master loudspeaker box determines the audio playing starting time of the master loudspeaker box according to the sending time of the audio data and the playing delay of the master loudspeaker box, and each slave loudspeaker box determines the audio playing starting time of each slave loudspeaker box according to the receiving time of the audio data and the playing delay of the slave loudspeaker box;

and the master sound box starts playing the audio data at the audio playing start time of the master sound box, and each slave sound box respectively starts playing the audio data at the audio playing start time of the corresponding slave sound box.

Preferably, the obtaining of the respective playing delays by the master loudspeaker box and the respective slave loudspeaker boxes includes:

the master loudspeaker box sends synchronous request data to each slave loudspeaker box, and obtains transmission time delay of each slave loudspeaker box on a power supply network according to the sending time of the synchronous request data and the receiving time of each slave loudspeaker box response packet;

the main sound box determines the maximum value of the transmission time delay from the transmission time delays;

the master loudspeaker box sends the maximum value of the transmission time delay to each slave loudspeaker box through a power supply network;

the main sound box takes the maximum value of the transmission delay as the playing delay of the main sound box, and each slave sound box obtains the playing delay of the slave sound box according to the transmission delay of the slave sound box and the main sound box and the maximum value of the transmission delay.

Further preferably, the step of sending, by the master loudspeaker, synchronization request data to each slave loudspeaker, and obtaining, according to the sending time of the synchronization request data and the receiving time of the response packet of each slave loudspeaker, the transmission delay of each slave loudspeaker on the power supply network includes:

the master loudspeaker box sends synchronization request data to the first slave loudspeaker box at a first sending moment, the synchronization request data carries the identification of the first slave loudspeaker box, and a response packet returned by the first slave loudspeaker box is received at a first receiving moment; the main sound box obtains the transmission time delay of the main sound box and the first slave sound box on the power supply network according to the first receiving time minus half of the difference of the first sending time; in a similar way, the master loudspeaker box sequentially sends synchronous request data to other slave loudspeaker boxes, and sequentially obtains the transmission time delay of the master loudspeaker box and other slave loudspeaker boxes on the power supply network;

or,

the master loudspeaker box simultaneously sends synchronous request data to each slave loudspeaker box at the sending moment; the main sound box receives and analyzes the response packets returned by the slave sound boxes, and determines the receiving time of the response packets returned by the slave sound boxes according to the slave sound box identifiers carried in the response packets; the main sound box obtains the transmission time delay of the main sound box and each slave sound box on the power supply network according to the half of the difference of the receiving time minus the sending time of the response packet of each slave sound box;

each slave loudspeaker box obtains the playing time delay of the slave loudspeaker box according to the transmission time delay of the slave loudspeaker box and the master loudspeaker box and the maximum value of the transmission time delay, and the playing time delay comprises the following steps:

and each slave loudspeaker box subtracts the transmission time delay of the slave loudspeaker box and the master loudspeaker box according to the maximum value of the transmission time delay to obtain the playing time delay of the slave loudspeaker box.

Preferably, the plurality of sound boxes are in wireless communication connection with the remote control device through respective wireless modules;

one sound box of the plurality of sound boxes is informed that the sound box is a main sound box and other sound boxes are auxiliary sound boxes according to the received configuration instruction, wherein the configuration instruction comprises the following specific steps:

and one sound box in the plurality of sound boxes receives the configuration instruction from the remote control device through the wireless module in the sound box, and the sound box is known to be a main sound box and other sound boxes are known to be auxiliary sound boxes according to the configuration instruction.

Further preferably, the method further comprises:

the main sound box receives the playing control information sent by the remote control device through a wireless module;

the main sound box sends the playing control information to a power supply network through a modulation and demodulation module, and each auxiliary sound box obtains the playing control information from the power supply network through the modulation and demodulation module.

Further preferably, the method further comprises: the main sound box receives audio data transmitted by an audio source through a wireless module.

The invention also provides a system for synchronously playing a plurality of sound boxes, which comprises: the system comprises a plurality of sound boxes and a power supply network, wherein the sound boxes are respectively connected with the power supply network through respective modulation and demodulation modules, one sound box in the sound boxes is known to be a main sound box and other sound boxes are known to be auxiliary sound boxes according to a received configuration instruction;

the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay; at the time of playing back the audio data,

the main sound box sends the acquired audio data to a power supply network through a modulation and demodulation module;

the slave loudspeaker boxes acquire the audio data from a power supply network through respective modulation and demodulation modules and store the audio data;

and the master loudspeaker box and each slave loudspeaker box realize synchronous playing of the audio data according to respective playing time delay.

Preferably, the system further comprises a remote control; the plurality of sound boxes are in wireless communication connection with the remote control device through respective wireless modules,

and the remote control device is used for sending the configuration instruction to the main sound box and sending play control information to the main sound box.

In yet another aspect, the present invention provides an acoustic enclosure, comprising: a main control module, a modulation-demodulation module for realizing the conversion of audio data format and data transmission format on the power supply network, a wireless module for carrying out wireless communication with external equipment, a storage module for storing the audio data to be played, and a sound card module for converting the audio data into sound and playing,

the modulation and demodulation module, the wireless module, the storage module and the sound card module are respectively connected to the main control module;

the sound box is connected to a power supply network through the modulation and demodulation module, and receives configuration instructions, audio data and playing control information sent by external equipment through the wireless module.

The invention adopts the technical scheme that a plurality of sound boxes are respectively connected with a power supply network through respective modulation and demodulation modules, one sound box in the plurality of sound boxes is configured as a master sound box according to a configuration instruction, and other sound boxes are configured as slave sound boxes; before playing audio data, the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay; when audio data are played, the main sound box sends the obtained audio data to a power supply network through a modulation and demodulation module, and each auxiliary sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data; when the respective playing delay comes, the master loudspeaker box and the slave loudspeaker boxes play the audio data, thereby realizing the technical scheme that the plurality of loudspeaker boxes synchronously play the audio data. Compared with the prior art, the invention does not need wiring, the placement positions of all the sound boxes can be changed at will, the synchronous playing of all the sound boxes can be realized only by controlling the main sound box, in the synchronous playing process, the stability of audio data transmission is higher, the synchronization effect is better, and the problem that the existing sound box synchronous playing needs wiring or is easily influenced by a wireless network to realize complex algorithm is well solved.

Drawings

Fig. 1 is a schematic flow chart of a method for synchronously playing multiple speakers according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a system for synchronously playing multiple speakers according to an embodiment of the present invention;

fig. 3 is a schematic diagram of a plurality of speakers playing audio data synchronously according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a sound box according to an embodiment of the present invention;

FIG. 5 is a schematic diagram of the main speaker playing audio data according to its play delay;

fig. 6 is a schematic diagram of the slave loudspeaker playing the audio data according to its playing delay.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

The overall thought of the invention is as follows: connecting a plurality of sound boxes with a power supply network through respective modulation and demodulation modules, configuring one sound box as a master sound box, and configuring other sound boxes as slave sound boxes; before playing audio data, the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay; when the audio data are played, the master loudspeaker box sends the audio data to be played to each slave loudspeaker box through a power supply network, and the master loudspeaker box and each slave loudspeaker box start playing the audio data according to respective playing delay, so that the audio data are played synchronously by a plurality of loudspeaker boxes.

According to the technical scheme, the plurality of sound boxes are respectively connected with the power supply network through respective modulation and demodulation modules, and the plurality of sound boxes and the power supply network form a synchronous playing network. The power supply network adopts a power line communication technology, namely a special communication mode for carrying out voice or data transmission by using a high-voltage power line (generally 35kV and above voltage class in the field of power carrier), a medium-voltage circuit line (10kV voltage class) or a low-voltage power distribution line (380/220V subscriber line) as an information transmission medium.

One sound box in the plurality of sound boxes is informed that the sound box is a main sound box and other sound boxes are auxiliary sound boxes according to the received configuration instruction. It should be noted that each sound box may be a master sound box or a slave sound box, and in actual use, the role of the sound box may be set by a user. For example, a user may send a configuration command to one of the plurality of speakers via the remote control device, where the configuration command includes an identification of each speaker that is pre-configured to form a synchronized playback network. The sound box learns that the sound box is set as a main sound box and other sound boxes are set as auxiliary sound boxes according to the received configuration instruction.

Fig. 1 is a schematic flow chart of a method for synchronously playing multiple speakers according to an embodiment of the present invention. As shown in fig. 1, the method for synchronously playing multiple speakers according to the embodiment of the present invention specifically includes:

s100, the main sound box and each slave sound box obtain respective playing time delay.

In step S100, the master speaker and each slave speaker may obtain their respective play delays by the following scheme:

the master loudspeaker box sends synchronous request data to each slave loudspeaker box, and obtains transmission time delay of each slave loudspeaker box on a power supply network according to the sending time of the synchronous request data and the receiving time of each slave loudspeaker box response packet;

the main sound box determines the maximum value of transmission delay from the transmission delay;

the master loudspeaker box sends the maximum value of the transmission delay to each slave loudspeaker box through a power supply network;

the main sound box takes the maximum value of the transmission delay as the playing delay of the main sound box, and each slave sound box obtains the playing delay of the slave sound box according to the transmission delay of the slave sound box and the main sound box and the maximum value of the transmission delay. Preferably, each slave loudspeaker subtracts the transmission delay of the slave loudspeaker from the transmission delay of the master loudspeaker according to the maximum value of the transmission delays to obtain the playing delay of the slave loudspeaker.

In the technical scheme, the master loudspeaker box transmits the synchronous request data to each slave loudspeaker box, and the playing delay of the master loudspeaker box and the playing delay of each slave loudspeaker box are obtained according to the transmitting time of the synchronous request data and the receiving time of the response packet of each slave loudspeaker box. The master loudspeaker box can simultaneously send synchronous request data to all the slave loudspeaker boxes, and can also sequentially send the synchronous request data to all the slave loudspeaker boxes.

Exemplarily, the master loudspeaker transmits synchronization request data to the first slave loudspeaker at a first transmission time, where the synchronization request data carries an identifier of the first slave loudspeaker, and receives a response packet returned by the first slave loudspeaker at a first reception time; the main sound box obtains the transmission time delay of the main sound box and the first slave sound box on the power supply network according to the first receiving time minus half of the difference of the first sending time; and similarly, the master loudspeaker box sequentially sends the synchronous request data to other slave loudspeaker boxes, and sequentially obtains the transmission time delay of the master loudspeaker box and other slave loudspeaker boxes on the power supply network. The master loudspeaker box obtains the transmission time delay of each slave loudspeaker box on the power supply network.

Exemplarily, the master loudspeaker box sends synchronous request data to each slave loudspeaker box at the same time at the sending moment; the master loudspeaker box receives and analyzes the response packets returned by the slave loudspeaker boxes, and determines the receiving time of the response packets returned by the slave loudspeaker boxes according to the slave loudspeaker box identifiers carried in the response packets; and the main sound box obtains the transmission time delay of the main sound box and each slave sound box on the power supply network according to a half of the difference obtained by subtracting the sending time from the receiving time of each slave sound box response packet. The master loudspeaker box obtains the transmission time delay of each slave loudspeaker box on the power supply network.

And S101, when audio data are played, the main sound box sends the obtained audio data to a power supply network through the modulation and demodulation module, and each auxiliary sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data.

And S102, the master sound box and each slave sound box realize synchronous playing of audio data according to respective playing time delay.

According to the method for synchronously playing the multiple sound boxes, the audio data format of each sound box is converted into the data transmission format on the power supply network through the modulation and demodulation module of each sound box for transmission, so that a household or an office can form the power supply network in the technical scheme by using the conventional power line and a power socket, synchronous playing of the multiple sound boxes can be realized through a common power line, the transmission of the audio data is not influenced by the wireless network in the audio synchronous playing process, and the stability of audio data transmission can be effectively improved.

According to the method for synchronously playing the multiple sound boxes, the multiple sound boxes are connected with a power supply network through respective modulation and demodulation modules, when audio data are played, a master sound box transmits the audio data obtained from an audio source to the power supply network after the audio data are modulated by the modulation and demodulation modules, each slave sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data, and each sound box starts playing the audio data according to respective playing delay time, so that the multiple sound boxes can synchronously play the audio data; the loudspeaker box has the characteristics of plug and play, wiring is not needed, each loudspeaker box only needs a power socket, the position is not limited and can be randomly placed, and compared with the prior art, the technical scheme can completely get rid of the trouble that the existing loudspeaker box needs wiring for synchronous playing or is easily influenced by a wireless network to realize complex algorithm.

Preferably, the main speaker receives audio data transmitted by the audio source through the wireless module. Further preferably, the main speaker receives the play control information sent by the remote control device through the wireless module; and the main sound box sends the playing control information to the power supply network through the modulation and demodulation module, and each slave sound box obtains the playing control information from the power supply network through the modulation and demodulation module. Therefore, the synchronous playing of all the sound boxes can be realized only by controlling the main sound box.

Fig. 2 is a schematic structural diagram of a system for synchronously playing multiple speakers according to an embodiment of the present invention, where the system includes: a plurality of sound boxes (22, 23) and a power supply network 21. The multiple sound boxes are respectively connected with the power supply network 21 through respective modulation and demodulation modules, and one sound box of the multiple sound boxes is known as a main sound box 22 and the other sound boxes are known as slave sound boxes 23 according to the received configuration instruction.

It should be noted that each sound box may be a master sound box or a slave sound box, and in actual use, the role of the sound box may be set by a user. For example, a user may send a configuration instruction to one of the plurality of speakers (the configuration instruction includes an identifier of each speaker to be set as a slave speaker), the speaker sets itself as a master speaker according to the received configuration instruction, and sets the corresponding other speakers as slave speakers according to the configuration instruction. .

Before playing the audio data, the master speaker 22 and each slave speaker 23 obtain their respective playing delays.

Preferably, the master loudspeaker 22 and each slave loudspeaker 23 obtain their respective playing delays by:

the master loudspeaker box 22 sends synchronization request data to each slave loudspeaker box 23, and obtains the transmission time delay of each slave loudspeaker box 23 on the power supply network 21 according to the sending time of the synchronization request data and the receiving time of each slave loudspeaker box 23 response packet; the main speaker 22 determines the maximum value of the transmission delay from the transmission delays; the master loudspeaker box 22 sends the maximum value of the transmission time delay to each slave loudspeaker box 23 through the power supply network 21; the master speaker 22 uses the maximum value of the transmission delay as the playing delay of the master speaker 22, and each slave speaker 23 obtains the playing delay of the slave speaker 23 according to the transmission delay between the slave speaker 23 and the master speaker 22 and the maximum value of the transmission delay. Preferably, each slave loudspeaker 23 subtracts the transmission delay between the slave loudspeaker 23 and the master loudspeaker 22 according to the maximum value of the transmission delay to obtain the playing delay of the slave loudspeaker 23.

In this technical solution, the master speaker 22 sends the synchronization request data to each slave speaker 23, and obtains the play delay of the master speaker 22 and the play delay of each slave speaker 23 according to the sending time of the synchronization request data and the receiving time of the response packet of each slave speaker 23. The master speaker 22 may simultaneously transmit the synchronization request data to the slave speakers 23, or may sequentially transmit the synchronization request data to the slave speakers 23.

Illustratively, the master speaker 22 sends synchronization request data to the first slave speaker 23 at a first sending time, where the synchronization request data carries an identifier of the first slave speaker 23, and receives a response packet returned by the first slave speaker at a first receiving time; the main sound box 22 obtains the transmission time delay of the main sound box 22 and the first slave sound box 23 on the power supply network 21 according to the first receiving time minus half of the difference between the first sending times; similarly, the master loudspeaker 22 sequentially sends the synchronization request data to the other slave loudspeakers 23, and sequentially obtains the transmission delay of the master loudspeaker 22 and the other slave loudspeakers 23 on the power supply network 21. The master loudspeaker 22 thus acquires the propagation delay with the slave loudspeakers 23 over the supply network 21.

Illustratively, the master loudspeaker 22 simultaneously transmits synchronization request data to the slave loudspeakers 23 at the time of transmission; the main sound box 22 receives and analyzes the response packets returned by the slave sound boxes 23, and determines the receiving time of the response packets returned by the slave sound boxes 23 according to the slave sound box 23 identifiers carried in the response packets; the transmission delay of the master loudspeaker box 22 and each slave loudspeaker box 23 on the power supply network 21 is obtained by the master loudspeaker box 22 according to a half of the difference between the receiving time and the sending time of the response packet of each slave loudspeaker box 23. The master loudspeaker 22 thus acquires the propagation delay with the slave loudspeakers 23 over the supply network 21.

When the multiple sound box synchronous playing system of the present embodiment plays audio data, the main sound box 22 sends the obtained audio data to the power supply network 21 through the modem module; each slave loudspeaker box 23 acquires audio data from the power supply network 21 through a respective modulation and demodulation module and stores the audio data; the master speaker 22 and each slave speaker 23 implement synchronous playing of audio data according to their respective playing delays.

In a preferred embodiment of this embodiment, the system further includes a remote control device, configured to send the configuration instruction to the main sound box and send the play control information to the main sound box. Preferably, the remote control device sends a configuration instruction to the plurality of sound boxes, and configures one sound box as a master sound box and the other sound boxes as slave sound boxes.

Further preferably, a plurality of sound boxes of the system are in wireless communication connection with the remote control device through respective wireless modules.

Further preferably, the master loudspeaker box receives the playing control information sent by the remote control device through the wireless module, and sends the playing control information to each slave loudspeaker box through the power supply network.

Further preferably, the main speaker further receives audio data transmitted by an audio source through a wireless module, and receives play control information sent by the remote control device through the wireless module.

In the above preferred embodiment, each sound box of the system wirelessly communicates with the remote control device through the wireless module, and one sound box can receive the configuration instruction sent by the remote control device through the wireless module to know that the sound box is the master sound box and the other sound boxes are the slave sound boxes. The main sound box can also receive audio data sent by an audio source and play control information from the remote control device through the wireless module of the main sound box, so that the sound boxes can be connected with each other without a data line, the relative independence of each sound box is ensured, the placement position of each sound box is not influenced by other sound boxes, the position of each sound box can be changed randomly, and the synchronous play of all the sound boxes can be realized only by controlling the main sound box.

Fig. 3 is a schematic diagram of a working principle of synchronously playing audio data by a plurality of speakers according to an embodiment of the present invention.

Before audio data is played, a master loudspeaker and each slave loudspeaker in the multiple loudspeaker synchronous playing system are connected with a power supply network through respective modulation and demodulation modules, the master loudspeaker sends a synchronous request to each slave loudspeaker, and the playing delay of the master loudspeaker and each slave loudspeaker is obtained according to the sending time of the synchronous request and the receiving time of a response packet of each slave loudspeaker.

Specifically, the master loudspeaker sends synchronization request data1 to the first slave loudspeaker at a first sending time t11, wherein the synchronization request data1 carries an identifier of the first slave loudspeaker;

each slave loudspeaker box receives and analyzes the synchronization request data1, and if the loudspeaker box identification carried in the synchronization request data1 is consistent with the self identification, a response packet Ack1 is returned to the master loudspeaker box;

the master loudspeaker box receives the response packet Ack1 returned by the first slave loudspeaker box at the first receiving time t 12;

the master speaker obtains the transmission time of the audio data from the master speaker to the first slave speaker according to the formula T1 ═ T12-T11)/2;

similarly, the master loudspeaker box sequentially sends the synchronization request data2, data3, … and datan to other slave loudspeaker boxes, and obtains the transmission time T2 and … Tn of the audio data transmitted from the master loudspeaker box to other slave loudspeaker boxes;

if the maximum value among T1, T2 and … Tn is Tmax, the main sound box calculates to obtain:

the playing delay Thost of the main sound box is Tmax; the playing delay Tclient1 of the first slave loudspeaker box is Tmax-T1; the playing delay Tclient2 of the second slave loudspeaker box is Tmax-T2; …, the nth slave loudspeaker box playing delay Tclientn is Tmax-Tn.

It should be noted that the master speaker and each slave speaker may also obtain their respective playing delays as follows.

The master loudspeaker box simultaneously sends synchronous request data to all slave loudspeaker boxes at the sending time t 0;

each slave loudspeaker box receives the synchronization request data and returns a response packet Ack1, Ack2, … and Ackn to the master loudspeaker box respectively, wherein the response packet carries the respective identification of the slave loudspeaker box;

the master loudspeaker box receives and analyzes the response packets Ack1, Ack2, … and Ackn returned by each slave loudspeaker box, and determines the receiving time t1, t2 and … tn of the response packets returned by each slave loudspeaker box according to the slave loudspeaker box identification carried in the response packets;

the master speaker obtains the transmission time of the audio data from the master speaker to the first slave speaker according to the formula T1 ═ T1-T0)/2; similarly, the main sound box obtains the transmission time T2, … Tn of the audio data transmitted from the main sound box to other auxiliary sound boxes;

if the maximum value among the T1, T2 and … Tn is Tmax, the main speaker calculates to obtain:

the playing delay Thost of the main sound box is Tmax; the playing delay Tclient1 of the first slave loudspeaker box is Tmax-T1; the playing delay Tclient2 of the second slave loudspeaker box is Tmax-T2; …, the nth slave loudspeaker box playing delay Tclientn is Tmax-Tn.

Referring to fig. 3, the synchronous playback system includes six speakers, wherein the main speaker obtains its playback delay through the above scheme, and stores the audio data obtained from the audio source in the buffer; five slave sound boxes, namely a first slave sound box, a second slave sound box …, a fourth slave sound box and a fifth slave sound box, obtain respective playing time delay through the scheme.

When playing the audio data, the audio data stored in the buffer area by the master loudspeaker box is subjected to data format conversion through the modulation and demodulation module and then sent to the power supply network, each slave loudspeaker box is subjected to data format conversion on the audio data acquired from the power supply network through the respective modulation and demodulation module, the converted audio data is cached in one local buffer area, the audio data in the buffer area is subjected to playing delay processing of the local loudspeaker box, and then the audio data in the buffer area is sent to the sound card module of the local loudspeaker box for playing, so that synchronous playing of a plurality of loudspeaker boxes is realized.

Fig. 4 is a schematic structural diagram of a sound box according to an embodiment of the present invention, where the sound box includes: the main control module 41, the modem module 42, the wireless module 43, the storage module 44 and the sound card module 45, wherein the modem module 42, the wireless module 43, the storage module 44 and the sound card module 45 are respectively connected with the main control module 41.

And the modulation and demodulation module 42 is used for realizing conversion of the audio data format and the data transmission format on the power supply network.

Specifically, the modem module 42 includes two interfaces, one interface is connected to the main control module 41 inside the speaker, and the other interface is connected to the power supply network outside the speaker.

And a wireless module 43 for performing wireless communication with an external device. For example, the wireless module 43 may perform wireless communication with an external device in a wireless manner such as bluetooth, infrared, wifi direct connection, wifi hotspot, or wifi.

And the storage module 44 is used for storing the audio data to be played. Preferably, the storage module 44 in this embodiment is a buffer area of the main control module 41.

And the sound card module 45 is used for converting the audio data into sound and playing the sound.

The sound box in the embodiment is connected to a power supply network through the modulation and demodulation module, and receives a configuration instruction, audio data and play control information sent by external equipment through the wireless module.

A plurality of sound boxes according to embodiments of the present invention may form a synchronous playing system shown in fig. 2. When the audio data are played, the main sound box sends the audio data to be played to the modulation and demodulation module for format conversion and then sends the audio data to a power supply network; and the other slave loudspeaker boxes perform format conversion on the audio data received from the power supply network through respective modulation and demodulation modules, and then the audio data are sent to respective storage modules through the main control module to be stored. Fig. 5 and 6 are schematic diagrams of the master speaker and each slave speaker respectively implementing synchronous audio data playing according to their respective playing delays.

As shown in fig. 5, which is a schematic diagram of a main speaker playing audio data according to its playing delay, a main control module of the main speaker caches audio data received by a wireless module from an audio source in a cache region of the main control module, and sends the audio data in the cache region to a modem module for data format conversion, and the modem module sends the audio data after format conversion to a power supply network; meanwhile, the main control module controls and sends the audio data in the cache region to the sound card module for playing after local playing delay Thost delay processing.

As shown in fig. 6, in a schematic diagram of the slave loudspeaker box playing audio data according to its playing delay, the slave loudspeaker box obtains the audio data through the power supply network, and after format conversion is performed on the audio data by the modem module, the master control module stores the audio data in the buffer area, and sends the audio data in the buffer area to the sound card module for playing after delay processing of local playing delay Tclient.

In summary, the multiple sound boxes are respectively connected to the power supply network through the respective modem modules, and one sound box of the multiple sound boxes is configured as a master sound box according to the configuration instruction, and the other sound boxes are configured as slave sound boxes; before playing audio data, the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay; when audio data are played, the main sound box sends the obtained audio data to a power supply network through a modulation and demodulation module, and each auxiliary sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data; when the respective playing delay comes, the master loudspeaker box and the slave loudspeaker boxes play the audio data, thereby realizing the technical scheme that the plurality of loudspeaker boxes synchronously play the audio data. Compared with the prior art, the invention does not need wiring, the placement positions of all the sound boxes can be changed at will, the synchronous playing of all the sound boxes can be realized only by controlling the main sound box, in the synchronous playing process, the stability of audio data transmission is higher, the synchronization effect is better, and the problem that the existing sound box synchronous playing needs wiring or is easily influenced by a wireless network to realize complex algorithm is well solved.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. A method for synchronously playing a plurality of sound boxes is characterized in that the sound boxes are respectively connected with a power supply network through respective modulation and demodulation modules, and the sound boxes are in wireless communication connection with a remote control device through respective wireless modules; a user sends a configuration instruction to one of a plurality of sound boxes through a remote control device, the configuration instruction comprises an identifier of each sound box which is pre-assembled to form a synchronous playing network, one sound box of the plurality of sound boxes receives the configuration instruction from the remote control device through a wireless module in the sound box, and the sound box is known to be a master sound box and other sound boxes are known to be slave sound boxes according to the received configuration instruction; the method comprises the following steps:

the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay;

when audio data are played, the main sound box sends the obtained audio data to a power supply network through a modulation and demodulation module, and each slave sound box obtains the audio data from the power supply network through the modulation and demodulation module and stores the audio data;

the master sound box and each slave sound box realize synchronous playing of audio data according to respective playing delay;

the method further comprises the following steps:

the main sound box receives the playing control information sent by the remote control device through a wireless module;

the main sound box sends the playing control information to a power supply network through a modulation and demodulation module, and each auxiliary sound box obtains the playing control information from the power supply network through the modulation and demodulation module.

2. The method of claim 1, wherein the step of implementing the synchronous playing of the audio data by the master speaker and each of the slave speakers according to the respective playing delays comprises:

the master loudspeaker box determines the audio playing starting time of the master loudspeaker box according to the sending time of the audio data and the playing delay of the master loudspeaker box, and each slave loudspeaker box determines the audio playing starting time of each slave loudspeaker box according to the receiving time of the audio data and the playing delay of the slave loudspeaker box;

and the master sound box starts playing the audio data at the audio playing start time of the master sound box, and each slave sound box respectively starts playing the audio data at the audio playing start time of the corresponding slave sound box.

3. The method of claim 1, wherein obtaining the respective playback delays for the master loudspeaker and the respective slave loudspeakers comprises:

the master loudspeaker box sends synchronous request data to each slave loudspeaker box, and obtains transmission time delay of each slave loudspeaker box on a power supply network according to the sending time of the synchronous request data and the receiving time of each slave loudspeaker box response packet;

the main sound box determines the maximum value of the transmission time delay from the transmission time delays;

the master loudspeaker box sends the maximum value of the transmission time delay to each slave loudspeaker box through a power supply network;

the main sound box takes the maximum value of the transmission delay as the playing delay of the main sound box, and each slave sound box obtains the playing delay of the slave sound box according to the transmission delay of the slave sound box and the main sound box and the maximum value of the transmission delay.

4. The method of claim 3, wherein the master speaker transmits the synchronization request data to each slave speaker, and the obtaining the transmission delay of each slave speaker on the power supply network according to the transmission time of the synchronization request data and the reception time of each slave speaker response packet comprises:

the master loudspeaker box sends synchronization request data to the first slave loudspeaker box at a first sending moment, the synchronization request data carries the identification of the first slave loudspeaker box, and a response packet returned by the first slave loudspeaker box is received at a first receiving moment; the main sound box obtains the transmission time delay of the main sound box and the first slave sound box on the power supply network according to the first receiving time minus half of the difference of the first sending time; in a similar way, the master loudspeaker box sequentially sends synchronous request data to other slave loudspeaker boxes, and sequentially obtains the transmission time delay of the master loudspeaker box and other slave loudspeaker boxes on the power supply network; or,

the master loudspeaker box simultaneously sends synchronous request data to each slave loudspeaker box at the sending moment; the main sound box receives and analyzes the response packets returned by the slave sound boxes, and determines the receiving time of the response packets returned by the slave sound boxes according to the slave sound box identifiers carried in the response packets; the main sound box obtains the transmission time delay of the main sound box and each slave sound box on the power supply network according to the half of the difference of the receiving time minus the sending time of the response packet of each slave sound box;

each slave loudspeaker box obtains the playing time delay of the slave loudspeaker box according to the transmission time delay of the slave loudspeaker box and the master loudspeaker box and the maximum value of the transmission time delay, and the playing time delay comprises the following steps:

and each slave loudspeaker box subtracts the transmission time delay of the slave loudspeaker box and the master loudspeaker box according to the maximum value of the transmission time delay to obtain the playing time delay of the slave loudspeaker box.

5. The method of claim 1, wherein when playing audio data, the method further comprises: the main sound box receives audio data transmitted by an audio source through a wireless module.

6. A multiple-loudspeaker synchronous playing system is characterized in that the system comprises: the system comprises a plurality of sound boxes, a remote control device and a power supply network, wherein the sound boxes are respectively connected with the power supply network through respective modulation and demodulation modules, the sound boxes are in wireless communication connection with the remote control device through respective wireless modules, a user sends a configuration instruction to one sound box of the sound boxes through the remote control device, the configuration instruction comprises an identifier of each sound box which is pre-assembled into a synchronous playing network, one sound box of the sound boxes receives the configuration instruction from the remote control device through a wireless module of the sound box, and the sound box is known to be a main sound box and other sound boxes are known to be auxiliary sound boxes according to the received configuration instruction;

the master loudspeaker box and each slave loudspeaker box acquire respective playing time delay; at the time of playing back the audio data,

the main sound box sends the acquired audio data to a power supply network through a modulation and demodulation module;

the slave loudspeaker boxes acquire the audio data from a power supply network through respective modulation and demodulation modules and store the audio data;

the master sound box and each slave sound box realize synchronous playing of audio data according to respective playing time delay;

the remote control device is also used for sending play control information to the main sound box;

the main sound box receives the playing control information sent by the remote control device through a wireless module;

the main sound box sends the playing control information to a power supply network through a modulation and demodulation module, and each auxiliary sound box obtains the playing control information from the power supply network through the modulation and demodulation module.

CN201410842333.9A 2014-12-30 2014-12-30 A kind of method and system that multiple speakers are played simultaneously Active CN104581599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410842333.9A CN104581599B (en) 2014-12-30 2014-12-30 A kind of method and system that multiple speakers are played simultaneously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410842333.9A CN104581599B (en) 2014-12-30 2014-12-30 A kind of method and system that multiple speakers are played simultaneously

Publications (2)

Publication Number Publication Date
CN104581599A CN104581599A (en) 2015-04-29
CN104581599B true CN104581599B (en) 2018-11-27

Family

ID=53096615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410842333.9A Active CN104581599B (en) 2014-12-30 2014-12-30 A kind of method and system that multiple speakers are played simultaneously

Country Status (1)

Country Link
CN (1) CN104581599B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412771A (en) * 2015-07-27 2017-02-15 连信洲 Multichannel combined sound
CN106535059B (en) * 2015-09-14 2018-05-08 中国移动通信集团公司 Rebuild stereosonic method and speaker and position information processing method and sound pick-up
JP6569441B2 (en) * 2015-09-30 2019-09-04 ヤマハ株式会社 Audio equipment, audio system control program, and control terminal device
CN105259830A (en) * 2015-10-20 2016-01-20 北京小鸟听听科技有限公司 Voice box automatic switching method, apparatus and voice box device
CN108650594B (en) * 2015-11-04 2020-12-15 Oppo广东移动通信有限公司 Sound box management method, user terminal and computer storage medium
CN106028221B (en) * 2016-07-14 2019-04-16 Oppo广东移动通信有限公司 Method for controlling time synchronization and intelligent sound box
CN106162438B (en) * 2016-07-19 2019-03-22 吕建新 The operating method for the system that multifrequency section audio plays
CN107733745A (en) * 2016-08-10 2018-02-23 上海悟空信息科技有限公司 A kind of synchronous music player method and play system based on WIFI agreements
CN106452644B (en) * 2016-10-08 2019-02-01 Oppo广东移动通信有限公司 playing control method, device and terminal
CN106454449A (en) * 2016-10-25 2017-02-22 深圳芯智汇科技有限公司 Master sound box, slave sound box and method for controlling synchronous playing of audio by router
CN107734444B (en) * 2017-10-23 2020-02-18 恒玄科技(上海)股份有限公司 Wireless multichannel sound synchronous playing control system and method
CN108449630B (en) * 2018-04-09 2020-05-22 歌尔股份有限公司 Audio synchronization method and system
CN108616767B (en) * 2018-04-28 2020-12-29 海信视像科技股份有限公司 Audio data transmission method and device
CN108989955A (en) * 2018-09-20 2018-12-11 钱军成 Module type stereo sound case
CN109219008A (en) * 2018-09-11 2019-01-15 北京爱德发科技有限公司 A kind of transmission method and system of wireless sound box combination
CN111049709B (en) * 2019-11-19 2022-03-04 广东好太太智能家居有限公司 Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN111314811A (en) * 2020-03-25 2020-06-19 东莞市赛米电子科技有限公司 Harmless repacking vehicle-mounted bluetooth sound
CN113037413B (en) * 2021-03-11 2023-04-21 成都德芯数字科技股份有限公司 Frequency modulation synchronization method, device, system, equipment and storage medium
CN115119112A (en) * 2022-07-11 2022-09-27 深圳感臻智能股份有限公司 Method and device for simultaneous playback of speakers
CN116320902B (en) * 2023-05-19 2023-08-25 南昌航天广信科技有限责任公司 Sound box synchronous playing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003042858A1 (en) * 2001-11-13 2003-05-22 Enikia Llc Media content and data distribution and consumption
JP2006237918A (en) * 2005-02-24 2006-09-07 Sony Corp Information processing system, reproducing terminal and reproducing method, information processing apparatus and method, and program
CN101465910A (en) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 Control method, terminal and system for playing stereo based on mobile terminal
CN101547404A (en) * 2008-03-24 2009-09-30 大唐移动通信设备有限公司 Method, system and equipment for realizing synchronization between radio network controllers
CN102103884A (en) * 2006-08-25 2011-06-22 中国移动通信集团公司 Audio playing device
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system
CN204425653U (en) * 2014-12-30 2015-06-24 歌尔声学股份有限公司 A kind of audio amplifier, audio frequency broadcast system and multiple audio amplifier synchronous playing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7672465B2 (en) * 2005-01-14 2010-03-02 Sony Corporation System and method for synchronization using GPS in home network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003042858A1 (en) * 2001-11-13 2003-05-22 Enikia Llc Media content and data distribution and consumption
JP2006237918A (en) * 2005-02-24 2006-09-07 Sony Corp Information processing system, reproducing terminal and reproducing method, information processing apparatus and method, and program
CN102103884A (en) * 2006-08-25 2011-06-22 中国移动通信集团公司 Audio playing device
CN101547404A (en) * 2008-03-24 2009-09-30 大唐移动通信设备有限公司 Method, system and equipment for realizing synchronization between radio network controllers
CN101465910A (en) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 Control method, terminal and system for playing stereo based on mobile terminal
CN103338204A (en) * 2013-07-05 2013-10-02 曾德钧 Audio synchronization output method and system
CN204425653U (en) * 2014-12-30 2015-06-24 歌尔声学股份有限公司 A kind of audio amplifier, audio frequency broadcast system and multiple audio amplifier synchronous playing system

Also Published As

Publication number Publication date
CN104581599A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104581599B (en) 2018-11-27 A kind of method and system that multiple speakers are played simultaneously
CN109314813B (en) 2020-07-28 Earphone wireless communication method, master earphone, slave earphone and earphone system
CN108600897A (en) 2018-09-28 Realize the one drag two bluetooth headset and communication means of low frequency switching
US20130051329A1 (en) 2013-02-28 Radio equipment and radio base station
CN103929687A (en) 2014-07-16 LED lighting device, wireless speaker system and wireless audio playback method
RU2013127235A (en) 2014-12-20 WIRELESS NETWORK INTERFACE WITH INFRASTRUCTURE AND DIRECT MODES
CN103925583A (en) 2014-07-16 Wireless speaker system and wireless data transmission method
CN108901004A (en) 2018-11-27 A kind of method of synchronous transfer bluetooth headset
RU2012117982A (en) 2013-11-20 METHOD AND SYSTEM OF WIRELESS CONTROL OF SWITCHING DEVICES OF POWER SUPPLY NETWORK
CN107040848A (en) 2017-08-11 Synchronization parameter transmission method, device and the equipment of AVDTP agreements
CN112290992B (en) 2023-12-01 Method for allocating working time slots of satellite Internet of things terminal
CN112272375A (en) 2021-01-26 Bluetooth communication system and method and Bluetooth communication conversion device
WO2021208359A1 (en) 2021-10-21 Tws bluetooth apparatus, primary apparatus and secondary apparatus thereof, and method of transmitting data between apparatuses
US20250016526A1 (en) 2025-01-09 Method, apparatus and computer program for broadcast discovery service in wireless communication system, and recording medium therefor
CN103209269B (en) 2015-07-08 Zigbee-technology-based digital wireless multi-channel audio conference method and device
US20180302757A1 (en) 2018-10-18 Communication apparatus, communication method, program, and communication system
CN109041200A (en) 2018-12-18 The method and system of synchronous sound between a kind of multitone case
CN110460926A (en) 2019-11-15 It is compatible wirelessly with wired earphone system, earphone playback method and true wireless headset
CN204425653U (en) 2015-06-24 A kind of audio amplifier, audio frequency broadcast system and multiple audio amplifier synchronous playing system
CN213783607U (en) 2021-07-23 Bluetooth communication system and Bluetooth communication conversion device
WO2017140184A1 (en) 2017-08-24 Data processing method self-adaptive to access network architectures, access network architecture, and storage medium
US9210612B2 (en) 2015-12-08 Communication system, method and device
CN203813918U (en) 2014-09-03 LED illumination devices and wireless loudspeaker box system
EP4106373A1 (en) 2022-12-21 Method, device and computer program for cloud-authenticated pairing in wireless communication system, and recording medium therefor
SE544478C2 (en) 2022-06-14 System, device and a method for providing an improved wireless audio system

Legal Events

Date Code Title Description
2015-04-29 C06 Publication
2015-04-29 PB01 Publication
2015-05-27 C10 Entry into substantive examination
2015-05-27 SE01 Entry into force of request for substantive examination
2016-09-28 CB02 Change of applicant information

Address after: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant after: Goertek Inc.

Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant before: Goertek Inc.

2016-09-28 COR Change of bibliographic data
2018-11-27 GR01 Patent grant
2018-11-27 GR01 Patent grant