CN112449285A - Method and system for synchronously playing multiple sound boxes - Google Patents

Method and system for synchronously playing multiple sound boxes Download PDF

Info

Publication number
CN112449285A
CN112449285A CN202011476277.3A CN202011476277A CN112449285A CN 112449285 A CN112449285 A CN 112449285A CN 202011476277 A CN202011476277 A CN 202011476277A CN 112449285 A CN112449285 A CN 112449285A
Authority
CN
China
Prior art keywords
sound box
playing
information
sound
delay
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
Application number
CN202011476277.3A
Other languages
Chinese (zh)
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.)
Guangzhou Dbl Electronic Co ltd
Original Assignee
Guangzhou Dbl Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dbl Electronic Co ltd filed Critical Guangzhou Dbl Electronic Co ltd
Priority to CN202011476277.3A priority Critical patent/CN112449285A/en
Publication of CN112449285A publication Critical patent/CN112449285A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Stereophonic System (AREA)

Abstract

The invention relates to the technical field of sound box control, in particular to a method and a system for synchronously playing a plurality of sound boxes, wherein the method for synchronously playing the plurality of sound boxes comprises the following steps: when an audio playing message is acquired, acquiring audio data to be played; acquiring sound box identifiers corresponding to sound boxes installed in a preset field, and acquiring the receiving delay time of each sound box identifier; setting a playing delay time length according to the receiving delay time length, and sending the playing delay time length to a sound box terminal corresponding to each sound box identification according to the sound box identification; and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played. This application has when promoting a plurality of audio amplifier synchronous broadcast, the synchronous effect between each audio amplifier.

Description

Method and system for synchronously playing multiple sound boxes
Technical Field
The invention relates to the technical field of sound box control, in particular to a method and a system for synchronously playing a plurality of sound boxes.
Background
Currently, a sound box refers to a device that can convert an audio signal into sound. The application range of audio amplifier is very extensive, and when people need broadcast sound in the place of predetermineeing, can select for use the audio amplifier as the public amplifier equipment of sound usually.
Present in the use to the audio amplifier, if the place that needs to use audio amplifier broadcast sound is bigger, for promoting people's experience, can install a plurality of audio amplifiers work in this place usually, through signal transmission between every audio amplifier, make each audio amplifier can broadcast sound in step to the sound that makes the audio amplifier broadcast can evenly cover this place.
In view of the above-mentioned related art, the inventor believes that there is a defect that the effect of synchronous playing among a plurality of speakers is not good.
Disclosure of Invention
In order to improve the synchronous playing effect among the sound boxes when the sound boxes are played synchronously, the application provides a method and a system for synchronously playing the sound boxes.
The above object of the present invention is achieved by the following technical solutions:
a method for synchronously playing a plurality of sound boxes comprises the following steps:
when an audio playing message is acquired, acquiring audio data to be played;
acquiring sound box identifiers corresponding to sound boxes installed in a preset field, and acquiring the receiving delay time of each sound box identifier;
setting a playing delay time length according to the receiving delay time length, and sending the playing delay time length to a sound box terminal corresponding to each sound box identification according to the sound box identification;
and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played.
By adopting the technical scheme, the receiving delay time corresponding to each audio identifier is obtained when the audio data to be played needs to be played, so that the time delay required by each sound box for responding to the audio data to be played can be known, and the playing delay time can be calculated; by calculating the playing delay time of each sound box, after each sound box receives the audio data to be played, the audio playing response message is triggered by the playing delay time corresponding to the interval, so that each sound box can simultaneously and synchronously play the audio data to be played, and the experience of listeners is improved.
The present application may be further configured in a preferred example to: the acquisition is installed and is being predetermine the audio amplifier sign that each audio amplifier corresponds in the place to the receipt delay time of obtaining every audio amplifier sign specifically includes:
according to the sound box identifications, sending delay test signals to the sound box terminals corresponding to the sound box identifications;
and obtaining a delay test response fed back by the sound box terminal corresponding to each sound box identification, and calculating the receiving delay time corresponding to each sound box identification according to the delay test response.
By adopting the technical scheme, the delay test signal is triggered to each sound box, the feedback delay test response is obtained, the response time of each sound box can be obtained by utilizing the heartbeat detection principle, and the receiving delay time of each sound box is calculated.
The present application may be further configured in a preferred example to: the method comprises the steps of setting playing delay time according to the receiving delay time, and sending the playing delay time to a sound box terminal corresponding to each sound box identification according to the sound box identification, and specifically comprises the following steps:
calculating time length check data according to the receiving delay time length;
and carrying out time delay verification on the loudspeaker box terminal corresponding to each loudspeaker box identification according to the time length verification data, if the time delay verification is passed, taking the time length verification data as the playing time delay length, and if not, calculating the time length verification data and the time delay verification again.
By adopting the technical scheme, whether each sound box can synchronously play audio data or not can be detected by calculating the corresponding time length check data of each sound box and carrying out time delay check, so that the experience of listeners is further improved.
The present application may be further configured in a preferred example to: before the obtaining of the audio data to be played when the audio playing message is obtained, the method for synchronously playing the plurality of sound boxes further includes:
the method comprises the steps of obtaining space information of a field to be played, wherein the space information of the field to be played comprises field area information and field height information;
and acquiring the hanging position information of the field according to the height information of the field, and setting sound box selection information according to the area information of the field and the hanging position information of the field.
Through adopting above-mentioned technical scheme, hang position information through acquireing place area information and the place that corresponds, can select the audio amplifier that corresponds better, can reduce the quantity of audio amplifier when guaranteeing the broadcast effect to be favorable to sparingly arranging the cost in place.
The present application may be further configured in a preferred example to: according to place height information acquires place and hangs position information, and according to place area information with place hangs position information and sets up audio amplifier selection information, specifically includes:
acquiring a list of sound boxes to be selected, and acquiring sound box attribute information of each sound box to be selected in the list of sound boxes to be selected;
acquiring information of sound boxes to be installed and information of the number of sound boxes corresponding to the sound boxes to be installed according to the site area information and the sound box attribute information, and taking the information of the sound boxes to be installed and the information of the number of the sound boxes as sound box selection information;
and acquiring the installation position information of the sound box according to the area information of the field and the hanging position information of the field.
Through adopting above-mentioned technical scheme, treat through setting up in advance and select the audio amplifier list, can promote the efficiency of selecting the audio amplifier to and the position of rational planning every audio amplifier installation, and hang position information through combining the place, can reduce the utilization ratio of audio amplifier to ground, thereby can supply more listeners to participate in the experience and treat the broadcast audio data.
The second objective of the present invention is achieved by the following technical solutions:
a multiple-loudspeaker synchronous playing system, comprising:
the audio data acquisition module is used for acquiring audio data to be played when the audio playing message is acquired;
the delay acquisition module is used for acquiring sound box identifiers corresponding to sound boxes installed in a preset field and acquiring the receiving delay time of each sound box identifier;
the delayed playing calculation module is used for setting playing delay time according to the receiving delay time and sending the playing delay time to a sound box terminal corresponding to each sound box identifier according to the sound box identifier;
and the audio playing module is used for triggering an audio playing response message according to the playing delay duration so as to control each sound box terminal to synchronously play the audio data to be played.
By adopting the technical scheme, the receiving delay time corresponding to each audio identifier is obtained when the audio data to be played needs to be played, so that the time delay required by each sound box for responding to the audio data to be played can be known, and the playing delay time can be calculated; by calculating the playing delay time of each sound box, after each sound box receives the audio data to be played, the audio playing response message is triggered by the playing delay time corresponding to the interval, so that each sound box can simultaneously and synchronously play the audio data to be played, and the experience of listeners is improved.
The third purpose of the present application is achieved by the following technical solutions:
a computer device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the synchronous playing method for multiple sound boxes.
The fourth purpose of the present application is achieved by the following technical solutions:
a computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned method for synchronously playing multiple speakers.
In summary, the present application includes at least one of the following beneficial technical effects:
1. by acquiring the receiving delay time corresponding to each audio identifier when the audio data to be played needs to be played, the time delay required by each sound box for responding to the audio data to be played can be known, and the playing delay time can be calculated; by calculating the playing delay time of each sound box, after each sound box receives the audio data to be played, the audio playing response message can be triggered at intervals of the corresponding playing delay time, so that each sound box can simultaneously and synchronously play the audio data to be played, and the experience of listeners is improved;
2. by triggering the delay test signal to each sound box and acquiring the feedback delay test response, the response time of each sound box can be acquired by utilizing the heartbeat detection principle, so that the receiving delay time of each sound box is calculated;
3. through calculating corresponding time length check data for each sound box and carrying out delay check, whether each sound box can synchronously play audio data or not can be detected, and therefore the experience of audiences is further improved.
Drawings
Fig. 1 is a flowchart illustrating a method for synchronously playing a plurality of speakers according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an implementation of step S20 in a method for synchronously playing multiple speakers according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an implementation of step S30 in a method for synchronously playing multiple speakers according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another implementation of a method for synchronously playing multiple speakers according to an embodiment of the present application;
fig. 5 is a flowchart illustrating an implementation of step S12 in a method for synchronously playing multiple speakers according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a synchronous playback device with multiple speakers according to an embodiment of the present application;
fig. 7 is a schematic diagram of an apparatus in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
In an embodiment, as shown in fig. 1, the present application discloses a method for synchronously playing multiple speakers, which specifically includes the following steps:
s10: and when the audio playing message is acquired, acquiring audio data to be played.
In this embodiment, the audio playing message is a message for controlling a plurality of speakers installed in a predetermined place to synchronously play a predetermined audio file. The audio data to be played refers to an audio file to be played specifically.
Specifically, when a plurality of speakers are installed in a field to play audio files synchronously, the total length of the speakers is longer because there is a distance between each speaker and the speakers need to be installed more often if the field is larger. In order to ensure the playing quality of the sound boxes, the sound boxes are transmitted by a UHF (Ultra High Frequency) technology, however, in the transmission process, there is a time delay, the longer the total length of the sound boxes is, the longer the time delay between the sound box closest to the console and the sound box farthest from the console is, and in the actual playing, due to the existence of the time delay, the time for each sound box to play audio is inconsistent, and then the same audio file is played at different times, so that echoes are easily caused when the audio is played, and the experience of listeners is affected.
Therefore, when the audio playing message triggered by the console for controlling the loudspeaker box to work is acquired, the audio data to be played is acquired from the audio playing message.
S20: and acquiring the loudspeaker box identification corresponding to each loudspeaker box installed in a preset field, and acquiring the receiving delay time of each loudspeaker box identification.
In this embodiment, the speaker identifier refers to a character or a character string for distinguishing each speaker installed in a preset field. And receiving the time from the moment that the console triggers the audio playing message to the moment that the audio data to be played are actually played by each sound box in the delay time.
Specifically, after the sound boxes which need to be installed on the site are determined, unique characters or character strings are set for each sound box to serve as corresponding sound box identifiers.
Further, after each sound box is installed, the delay of each sound box is tested, and the test result is used as the receiving delay duration.
S30: and setting the playing delay time length according to the receiving delay time length, and sending the playing delay time length to the sound box terminal corresponding to each sound box identification according to the sound box identification.
In this embodiment, the playing delay duration refers to a time interval from the time when each sound box is controlled to acquire the audio data to be played to the time when the audio data to be played is actually played.
Specifically, the receiving delay duration with the longest receiving delay duration is obtained according to the receiving delay duration of each loudspeaker box, and the total delay time, that is, the time interval from the triggering of the audio playing message to the simultaneous playing of the audio data to be played by all the loudspeaker boxes, is obtained according to the receiving delay duration of each loudspeaker box, and the total delay time should meet the requirement that the total delay time is not less than the receiving delay duration.
Further, according to the total delay time and the receiving delay time of each sound box, the playing delay time corresponding to each sound box is calculated, that is, after the corresponding receiving delay time is subtracted from the total delay time, the obtained result is used as the playing delay time.
And further, the playing delay time of each sound box is sent to the corresponding sound box terminal according to the corresponding sound box identification.
S40: and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played.
In this embodiment, the audio playing response message is a message for controlling the corresponding speaker to play the audio data to be played.
Specifically, after each speaker terminal acquires audio data to be played, timing is started, and after each play delay time, an audio play response message is triggered to control each speaker terminal to synchronously play the audio data to be played.
In this embodiment, by acquiring the receiving delay time corresponding to each audio identifier when the audio data to be played needs to be played, the time delay required by each sound box to respond to the audio data to be played can be known, so that the playing delay time can be calculated; by calculating the playing delay time of each sound box, after each sound box receives the audio data to be played, the audio playing response message is triggered by the playing delay time corresponding to the interval, so that each sound box can simultaneously and synchronously play the audio data to be played, and the experience of listeners is improved.
Further, as shown in fig. 2, in step S20, that is, obtaining the sound box identifiers corresponding to the sound boxes installed in the preset site, and obtaining the receiving delay duration of each sound box identifier specifically include:
s21: and sending a delay test signal to the sound box terminal corresponding to each sound box identifier according to the sound box identifier.
In the present embodiment, the delay test signal refers to a signal for testing the delay of each sound box.
Specifically, the delayed test signal is sent to each speaker identification at the same time for testing the time that each speaker responds.
S22: and obtaining a delay test response fed back by the sound box terminal corresponding to each sound box identification, and calculating the receiving delay time corresponding to each sound box identification according to the delay test response.
In this embodiment, the delay test response refers to a message triggered when each loudspeaker box responds to the delay test.
Specifically, by adopting the principle of heartbeat detection, after the loudspeaker box corresponding to each loudspeaker box identification receives the delay test signal, the delay test response is triggered, and after the delay test response time sent by each loudspeaker box is obtained, the corresponding response time is recorded.
Further, since the response time includes the time when the sound boxes receive the delay test signal and the time when the delay test response triggered by the sound boxes is obtained, the response time of each sound box is divided by two to serve as the receiving delay duration corresponding to each sound box.
Optionally, in order to improve the efficiency of playing the audio data to be played, steps S21-S22 may be executed before step S10, that is, steps S21-S22 may be executed after the sound box is installed.
Further, as shown in fig. 3, in step S30, that is, setting the playing delay duration according to the receiving delay duration, and sending the playing delay duration to the speaker terminal corresponding to each speaker identifier according to the speaker identifier, specifically includes:
s31: and calculating time length check data according to the receiving delay time length.
In this embodiment, the duration verification data refers to information for testing whether each speaker is capable of playing an audio file at the same time.
Specifically, the time that each loudspeaker box should have a delay in order to be able to play synchronously is calculated through the receiving delay time length of each loudspeaker box and the set total delay time length, and the time is used as time length check data.
S32: and carrying out time delay verification on the loudspeaker box terminal corresponding to each loudspeaker box identification according to the time length verification data, if the time delay verification is passed, taking the time length verification data as the playing time delay length, and if not, calculating the time length verification data and the time delay verification again.
Specifically, a verification signal for verification is generated, a signal for delay verification is triggered, after the verification signal is obtained, each sound box passes through corresponding time length verification data, the verification signal is sent, the time of each sound box receiving the verification signal is recorded, if each sound box can obtain the verification signal at the same time, the verification is proved to be passed, otherwise, the steps S31-S32 are executed again, the time length verification data are calculated, and the delay verification is carried out.
Further, as shown in fig. 4, before step S10, the method for synchronously playing multiple speakers further includes:
s11: the method comprises the steps of obtaining space information of a field to be played, wherein the space information of the field to be played comprises field area information and field height information.
In this embodiment, the playing field space information refers to the size of the field where the audio data to be played needs to be played and the information of the situation of the field.
Specifically, when a plurality of speakers need to be installed in a predetermined site, for example, a concert, a square dance, or other event in a public place, the site area information of the site and the height at which the person participating in the event can stay at the maximum or the height of the enclosure of the site are acquired as the site height information.
S12: and acquiring the hanging position information of the field according to the height information of the field, and setting the sound box selection information according to the area information of the field and the hanging position information of the field.
In this embodiment, the field hanging position information refers to information of a position for hanging the speaker device. The sound box selection information is information for selecting a sound box of a specific brand and model.
Specifically, according to the place height information, the position where the sound box can be hung, such as a rail, a fence, a trunk, and the like, is acquired in the place, and the position information is hung as the place.
Further, according to the area information of the site, the range to be covered by the sound played by the sound boxes is used as the range to be covered by the sound boxes, when each sound box is in the best playing state in a preset list of the sound boxes, the coverage range of the sound is obtained and comprises the coverage range in the horizontal direction and the coverage range in the numerical direction, the quantity to be selected by each type of sound box is calculated according to the coverage range of the sound box, and on the premise that the selected sound box can cover the whole site, the brand and the model of the sound box corresponding to the minimum quantity are used as sound box selection information.
Further, as shown in fig. 5, in step S12, obtaining the floor hanging position information according to the floor height information, and setting the sound box selection information according to the floor area information and the floor hanging position information specifically includes:
s121: and acquiring a list of the sound boxes to be selected, and acquiring the sound box attribute information of each sound box to be selected in the list of the sound boxes to be selected.
In this embodiment, the list of speakers to be selected refers to a data table in which speakers of various categories that can be installed in a place where audio data to be played needs to be played are recorded. The loudspeaker attribute information refers to information of the audio playing capability of each type of loudspeaker.
Specifically, according to the actual situation that the audio data to be played needs to be played, the sound boxes with the played sound effects meeting the actual situation and the corresponding sound box attribute information are selected to form the list of the sound boxes to be selected.
S122: and acquiring the information of the loudspeaker boxes to be installed and the quantity information of the loudspeaker boxes corresponding to the loudspeaker boxes to be installed according to the site area information and the loudspeaker box attribute information, and taking the information of the loudspeaker boxes to be installed and the quantity information of the loudspeaker boxes as loudspeaker box selection information.
Specifically, the coverage of each loudspeaker box during playing is obtained according to the loudspeaker box attribute information of each loudspeaker box in the list of loudspeaker boxes to be selected, the loudspeaker box number information of each loudspeaker box is obtained according to the site area information, and the information of the loudspeaker box with the least loudspeaker box number information is used as the loudspeaker box information to be installed to form the loudspeaker box selection information.
S123: and acquiring the installation position information of the loudspeaker box according to the area information and the hanging position information of the field.
Specifically, when the information of the number of the sound boxes is calculated, the positions of the sound boxes of which the information of the sound boxes is to be selected are obtained and installed in the field, and if the positions are overlapped with the field hanging positions or are smaller than a preset distance, the field hanging positions are used as the positions where the sound boxes are actually installed, so that the information of the installation positions of the sound boxes of all the sound boxes is obtained.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In an embodiment, a multiple-speaker synchronous playing system is provided, where the multiple-speaker synchronous playing system corresponds to the multiple-speaker synchronous playing method in the above embodiment one to one. As shown in fig. 6, the multiple loudspeaker box synchronous playing systems include an audio data obtaining module, a delay playing calculating module, and an audio playing module. The functional modules are explained in detail as follows:
the audio data acquisition module is used for acquiring audio data to be played when the audio playing message is acquired;
the delay acquisition module is used for acquiring sound box identifiers corresponding to sound boxes installed in a preset field and acquiring the receiving delay time of each sound box identifier;
the delay play calculation module is used for setting play delay time according to the receiving delay time and sending the play delay time to the sound box terminal corresponding to each sound box identifier according to the sound box identifier;
and the audio playing module is used for triggering an audio playing response message according to the playing delay duration so as to control each sound box terminal to synchronously play the audio data to be played.
Optionally, the delay obtaining module includes:
the signal sending submodule is used for sending a delay test signal to the sound box terminal corresponding to each sound box identification according to the sound box identifications;
and the signal feedback submodule is used for acquiring the delay test response fed back by the sound box terminal corresponding to each sound box identification, and calculating the receiving delay time corresponding to each sound box identification according to the delay test response.
Optionally, the delayed playing calculation module includes:
the data calculation submodule is used for calculating time length check data according to the receiving delay time length;
and the data verification submodule is used for carrying out delay verification on the loudspeaker box terminal corresponding to each loudspeaker box identification according to the time length verification data, if the delay verification is passed, the time length verification data is used as playing delay time length, and otherwise, the time length verification data and the delay verification are calculated again.
Optionally, the system for synchronously playing a plurality of speakers further comprises:
the system comprises a field information acquisition module, a field height acquisition module and a field playing module, wherein the field information acquisition module is used for acquiring the space information of a field to be played, and the space information of the field to be played comprises field area information and field height information;
and the sound box selection module is used for acquiring the field hanging position information according to the field height information and setting sound box selection information according to the field area information and the field hanging position information.
Optionally, the speaker selection module includes:
the attribute acquisition submodule is used for acquiring a list of the sound boxes to be selected and acquiring sound box attribute information of each sound box to be selected in the list of the sound boxes to be selected;
the sound box selection submodule is used for acquiring sound box information to be installed and sound box quantity information corresponding to the sound boxes to be installed according to the site area information and the sound box attribute information, and taking the sound box information to be installed and the sound box quantity information as sound box selection information;
and the mounting position acquisition submodule is used for acquiring the mounting position information of the sound box according to the field area information and the field suspension position information.
For the specific limitations of the multiple-speaker synchronous playing system, reference may be made to the above limitations on the multiple-speaker synchronous playing method, which is not described herein again. All modules in the multiple sound box synchronous playing system can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the playing delay time of each sound box and a list of sound boxes to be selected. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a method for synchronously playing a plurality of sound boxes.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when an audio playing message is acquired, acquiring audio data to be played;
acquiring sound box identifiers corresponding to sound boxes installed in a preset field, and acquiring the receiving delay time of each sound box identifier;
setting a play delay time according to the receiving delay time, and sending the play delay time to a sound box terminal corresponding to each sound box identifier according to the sound box identifier;
and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when an audio playing message is acquired, acquiring audio data to be played;
acquiring sound box identifiers corresponding to sound boxes installed in a preset field, and acquiring the receiving delay time of each sound box identifier;
setting a play delay time according to the receiving delay time, and sending the play delay time to a sound box terminal corresponding to each sound box identifier according to the sound box identifier;
and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the system is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for synchronously playing a plurality of sound boxes is characterized by comprising the following steps:
when an audio playing message is acquired, acquiring audio data to be played;
acquiring sound box identifiers corresponding to sound boxes installed in a preset field, and acquiring the receiving delay time of each sound box identifier;
setting a playing delay time length according to the receiving delay time length, and sending the playing delay time length to a sound box terminal corresponding to each sound box identification according to the sound box identification;
and triggering an audio playing response message according to the playing delay time so as to control each sound box terminal to synchronously play the audio data to be played.
2. The method for playing multiple sound boxes synchronously according to claim 1, wherein the obtaining of the sound box identifiers corresponding to the sound boxes installed in the preset site and the obtaining of the receiving delay duration of each sound box identifier specifically include:
according to the sound box identifications, sending delay test signals to the sound box terminals corresponding to the sound box identifications;
and obtaining a delay test response fed back by the sound box terminal corresponding to each sound box identification, and calculating the receiving delay time corresponding to each sound box identification according to the delay test response.
3. The method for playing multiple sound boxes synchronously according to claim 1, wherein the setting of the playing delay duration according to the receiving delay duration and the sending of the playing delay duration to the sound box terminal corresponding to each sound box identifier according to the sound box identifier specifically includes:
calculating time length check data according to the receiving delay time length;
and carrying out time delay verification on the loudspeaker box terminal corresponding to each loudspeaker box identification according to the time length verification data, if the time delay verification is passed, taking the time length verification data as the playing time delay length, and if not, calculating the time length verification data and the time delay verification again.
4. The method for synchronously playing multiple speakers according to claim 1, wherein before the acquiring the audio data to be played when the audio playing message is acquired, the method for synchronously playing multiple speakers further comprises:
the method comprises the steps of obtaining space information of a field to be played, wherein the space information of the field to be played comprises field area information and field height information;
and acquiring the hanging position information of the field according to the height information of the field, and setting sound box selection information according to the area information of the field and the hanging position information of the field.
5. The method for playing multiple sound boxes synchronously according to claim 4, wherein the obtaining of the site hanging position information according to the site height information and the setting of the sound box selection information according to the site area information and the site hanging position information specifically include:
acquiring a list of sound boxes to be selected, and acquiring sound box attribute information of each sound box to be selected in the list of sound boxes to be selected;
acquiring information of sound boxes to be installed and information of the number of sound boxes corresponding to the sound boxes to be installed according to the site area information and the sound box attribute information, and taking the information of the sound boxes to be installed and the information of the number of the sound boxes as sound box selection information;
and acquiring the installation position information of the sound box according to the area information of the field and the hanging position information of the field.
6. A multiple-loudspeaker synchronous playing system is characterized in that the multiple-loudspeaker synchronous playing system comprises:
the audio data acquisition module is used for acquiring audio data to be played when the audio playing message is acquired;
the delay acquisition module is used for acquiring sound box identifiers corresponding to sound boxes installed in a preset field and acquiring the receiving delay time of each sound box identifier;
the delayed playing calculation module is used for setting playing delay time according to the receiving delay time and sending the playing delay time to a sound box terminal corresponding to each sound box identifier according to the sound box identifier;
and the audio playing module is used for triggering an audio playing response message according to the playing delay duration so as to control each sound box terminal to synchronously play the audio data to be played.
7. The system for synchronous playback of multiple speakers according to claim 6, wherein the delay retrieving module comprises:
the signal sending submodule is used for sending a delay test signal to the sound box terminal corresponding to each sound box identification according to the sound box identifications;
and the signal feedback submodule is used for acquiring the delay test response fed back by the sound box terminal corresponding to each sound box identification, and calculating the receiving delay time corresponding to each sound box identification according to the delay test response.
8. The system for synchronized playback of multiple speakers according to claim 6, wherein said delayed playback calculation module comprises:
the data calculation submodule is used for calculating time length check data according to the receiving delay time length;
and the data verification submodule is used for carrying out time delay verification on the loudspeaker box terminal corresponding to each loudspeaker box identification according to the time length verification data, if the time delay verification is passed, the time length verification data is used as the playing time delay length, and otherwise, the time length verification data and the time delay verification are calculated again.
9. The multiple-loudspeaker synchronous playing system according to claim 6, further comprising:
the system comprises a field information acquisition module, a field height acquisition module and a field playing module, wherein the field information acquisition module is used for acquiring the space information of a field to be played, and the space information of the field to be played comprises field area information and field height information;
and the sound box selection module is used for acquiring the field hanging position information according to the field height information and setting sound box selection information according to the field area information and the field hanging position information.
10. The system for synchronized playback of multiple speakers according to claim 9, wherein the speaker selection module comprises:
the attribute acquisition submodule is used for acquiring a list of the sound boxes to be selected and acquiring sound box attribute information of each sound box to be selected in the list of the sound boxes to be selected;
the sound box selection submodule is used for acquiring sound box information to be installed and sound box quantity information corresponding to the sound boxes to be installed according to the site area information and the sound box attribute information, and using the sound box information to be installed and the sound box quantity information as the sound box selection information;
and the mounting position acquisition submodule is used for acquiring the mounting position information of the sound box according to the field area information and the field suspension position information.
CN202011476277.3A 2020-12-15 2020-12-15 Method and system for synchronously playing multiple sound boxes Pending CN112449285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011476277.3A CN112449285A (en) 2020-12-15 2020-12-15 Method and system for synchronously playing multiple sound boxes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011476277.3A CN112449285A (en) 2020-12-15 2020-12-15 Method and system for synchronously playing multiple sound boxes

Publications (1)

Publication Number Publication Date
CN112449285A true CN112449285A (en) 2021-03-05

Family

ID=74740052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011476277.3A Pending CN112449285A (en) 2020-12-15 2020-12-15 Method and system for synchronously playing multiple sound boxes

Country Status (1)

Country Link
CN (1) CN112449285A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN115632731A (en) * 2022-10-26 2023-01-20 广州市保伦电子有限公司 Synchronous playing strategy for multi-playing terminal
CN116320902A (en) * 2023-05-19 2023-06-23 南昌航天广信科技有限责任公司 Sound box synchronous playing method and system
WO2023240636A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Sound box playing control method, sound box playing control apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030198255A1 (en) * 2002-04-23 2003-10-23 Gateway, Inc. Method of synchronizing the playback of a digital audio broadcast using an audio waveform sample
CN104637505A (en) * 2014-12-31 2015-05-20 小米科技有限责任公司 Audio playing method and device
CN106411448A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Play control method and device, and terminal
CN107196821A (en) * 2017-05-24 2017-09-22 深圳市乃斯网络科技有限公司 The method of calibration and system of time delay in network link
US20200004498A1 (en) * 2003-07-28 2020-01-02 Sonos, Inc Playback Device
CN110956974A (en) * 2019-12-05 2020-04-03 浙江大华技术股份有限公司 Echo cancellation method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030198255A1 (en) * 2002-04-23 2003-10-23 Gateway, Inc. Method of synchronizing the playback of a digital audio broadcast using an audio waveform sample
US20200004498A1 (en) * 2003-07-28 2020-01-02 Sonos, Inc Playback Device
CN104637505A (en) * 2014-12-31 2015-05-20 小米科技有限责任公司 Audio playing method and device
CN106411448A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Play control method and device, and terminal
CN107196821A (en) * 2017-05-24 2017-09-22 深圳市乃斯网络科技有限公司 The method of calibration and system of time delay in network link
CN110956974A (en) * 2019-12-05 2020-04-03 浙江大华技术股份有限公司 Echo cancellation method and related device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN113784486B (en) * 2021-08-11 2024-04-12 深圳市智岩科技有限公司 Equipment control method, device, electronic equipment and storage medium
WO2023240636A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Sound box playing control method, sound box playing control apparatus, and storage medium
CN115632731A (en) * 2022-10-26 2023-01-20 广州市保伦电子有限公司 Synchronous playing strategy for multi-playing terminal
CN115632731B (en) * 2022-10-26 2023-10-13 广东保伦电子股份有限公司 Synchronous playing strategy for multi-playing terminal
CN116320902A (en) * 2023-05-19 2023-06-23 南昌航天广信科技有限责任公司 Sound box synchronous playing method and system
CN116320902B (en) * 2023-05-19 2023-08-25 南昌航天广信科技有限责任公司 Sound box synchronous playing method and system

Similar Documents

Publication Publication Date Title
CN112449285A (en) Method and system for synchronously playing multiple sound boxes
CN113225744B (en) Intelligent device ad hoc network method, intelligent networking system and storage medium
CN106598539B (en) Method and device for processing audio in application program
CN106936835A (en) The method and system that equipment is accessed
JP2019536070A (en) User positioning method, information push method, and related apparatus
CN111857855B (en) Webpage loading method and device and intelligent equipment
CN109857751A (en) Cross-platform data update method, device and computer equipment based on block chain
CN113315943A (en) Conference information transmission method, system, computer equipment and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN103475526A (en) IP setting and detecting method supporting multi-VLAN virtual machine
CN104320435B (en) A kind of Cloud Server control method and system
CN108471361A (en) A kind of version upgrading method and device
CN111258530B (en) Audio playing control method, server and audio playing system
CN112566156A (en) Method for automatically testing compatibility of WiFi module and electronic equipment
JP2007003957A (en) Communication system for vehicle
CN113515420A (en) Test method and test system
US10064015B2 (en) Identification of selected mobile computing devices at a venue
WO2024066479A1 (en) Device deployment method and apparatus, storage medium, and electronic device
CN109246798A (en) The processing method and processing device of terminal access in a kind of WLAN
CN115334405A (en) Sound effect configuration method and device
CN104637480A (en) voice recognition control method, device and system
CN112040027B (en) Data processing method and device, electronic equipment and storage medium
CN115565557A (en) Audio acquisition method and device, display screen, electronic equipment and storage medium
CN115834443A (en) Flow playback method and device, computer equipment and storage medium
CN105682010B (en) Bluetooth connection control method, device and playback equipment in audio frequency broadcast system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210305