CN112188361A - Audio data transmission method, sound box system and computer readable storage medium - Google Patents

Audio data transmission method, sound box system and computer readable storage medium Download PDF

Info

Publication number
CN112188361A
CN112188361A CN202011015187.4A CN202011015187A CN112188361A CN 112188361 A CN112188361 A CN 112188361A CN 202011015187 A CN202011015187 A CN 202011015187A CN 112188361 A CN112188361 A CN 112188361A
Authority
CN
China
Prior art keywords
slave
audio
sound box
audio file
configuration information
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
CN202011015187.4A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011015187.4A priority Critical patent/CN112188361A/en
Publication of CN112188361A publication Critical patent/CN112188361A/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

Abstract

The invention discloses an audio data transmission method, which comprises the following steps: when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes; determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box; and transmitting the second audio file from the main sound box to the slave sound box by using the near magnetic induction module. The invention also discloses a sound box system and a computer readable storage medium. The audio file is transmitted from the main sound box to the auxiliary sound box through the near magnetic induction module, so that the stereo sound effect is constructed after the auxiliary sound box is combined with the main sound box, and the audio output effect is improved.

Description

Audio data transmission method, sound box system and computer readable storage medium
Technical Field
The present invention relates to the field of device control technologies, and in particular, to an audio data transmission method, a speaker system, and a computer-readable storage medium.
Background
As smart speakers increasingly enter people's lives, they also play an increasingly important role in our lives. Usually, data transmission is carried out to communication methods such as accessible WIFI or bluetooth between a plurality of intelligent audio amplifier, nevertheless there is the consumption height when transmitting audio data through communication methods such as WIFI or bluetooth, and communication stability is not good and the interference killing feature is relatively poor scheduling problem, leads to audio transmission effect relatively poor, influences user experience and feels.
Disclosure of Invention
The invention mainly aims to provide an audio data transmission method, a sound box system and a computer readable storage medium, and aims to solve the problem that in the prior art, each sound box in the sound box system is connected in a WiFi or Bluetooth mode for data transmission to cause poor audio output effect.
In order to achieve the above object, the present invention provides an audio data transmission method, including the steps of:
when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box;
and transmitting a second audio file from the main sound box to the auxiliary sound box by using the near magnetic induction module.
Optionally, the step of transmitting a second audio file from the master speaker to the slave speaker by using the near magnetic induction module includes:
determining a transmission link for transmitting the second audio file;
and transmitting a second audio file from the main sound box to the slave sound box through the transmission link by using the near magnetic induction module.
Optionally, when there are a plurality of slave speakers, the step of determining a transmission link of the second audio file includes:
acquiring file information of a second audio file;
determining the file type of the second audio file according to the file information;
and determining a transmission link of the second audio file according to the file type.
Optionally, when there are a plurality of slave speakers, the step of determining a transmission link of the second audio file includes:
acquiring position information of a plurality of slave loudspeaker boxes;
and determining a transmission link of the audio file of the slave loudspeaker according to the position information of the slave loudspeaker.
Optionally, the step of determining a second audio file corresponding to the slave loudspeaker from the first audio file according to the master loudspeaker configuration information and the slave loudspeaker configuration information includes:
decomposing the first audio file into at least two third audio files according to the configuration information of the master sound box and the configuration information of the slave sound boxes;
and determining a second audio file corresponding to the slave loudspeaker box from the at least two decomposed third audio files.
Optionally, the step of decomposing the first audio file into at least two third audio files according to the master loudspeaker configuration information and the slave loudspeaker configuration information includes:
determining first sound channel information and first audio frequency information of a main sound box according to the configuration information of the main sound box;
determining second channel information and second audio frequency information of the slave loudspeaker box according to the slave loudspeaker box configuration information;
and decomposing the acquired first audio file into at least two third audio files according to the first sound channel information of the main sound box, the second sound channel information of the auxiliary sound box, the first audio frequency information of the main sound box and the second audio frequency information of the auxiliary sound box.
Optionally, before the step of obtaining the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box, the method includes:
acquiring position information and quantity information of a main sound box and a slave sound box in a sound box system and size information of an action space of the sound box system;
and performing parameter configuration on the main sound boxes according to the quantity information, the position information and the size information to generate main sound box configuration information, and performing parameter configuration on the auxiliary sound boxes to generate auxiliary sound box configuration information.
Optionally, after the step of determining the second audio file corresponding to the slave loudspeaker from the audio files according to the configuration information of the master loudspeaker and the configuration information of the slave loudspeaker, the method further includes:
determining a fourth audio file corresponding to the master loudspeaker box from the at least two audio files, so that when the slave loudspeaker box receives a synchronous playing instruction, the master loudspeaker box and the slave loudspeaker box synchronously play corresponding audio files;
and the synchronous playing instruction is transmitted from the master sound box to the slave sound box through the near magnetic induction module.
In addition, in order to achieve the above object, the present invention further provides a sound box system, where the sound box system includes a memory, a processor, and an audio data transmission program stored on the processor and capable of running on the processor, and the processor implements the steps of the audio data transmission method when executing the audio data transmission program.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an audio data transmission program which, when executed by a processor, implements the steps of the audio data transmission method as described above.
According to the embodiment of the invention, when an audio playing instruction is received, a first audio file corresponding to the audio playing instruction is firstly obtained, the configuration information of a main sound box and the configuration information of a slave sound box are obtained, then a second audio file corresponding to the slave sound box is determined from the first audio file according to the configuration information of the main sound box and the configuration information of the slave sound box, and then the second audio file is transmitted from the main sound box to the slave sound box by using a near magnetic induction module. The audio file is transmitted through the near magnetic induction module, so that the transmission of audio data is more stable and the anti-interference capability is stronger, the audio data transmission effect is poor due to the fact that transmission is conducted through Bluetooth or WIFI and the like, the audio output effect is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a sound box system in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the audio data transmission method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an audio data transmission method according to the present invention;
fig. 4 is a flowchart illustrating an audio data transmission method according to a third embodiment of the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the invention is: when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes; determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box; and transmitting a second audio file from the main sound box to the auxiliary sound box by using the near magnetic induction module.
Communication between each audio amplifier among the present audio amplifier system is realized mostly through bluetooth or WIFI to the audio amplifier system, however, there is the consumption height through bluetooth or WIFI's communication mode, and the not good and relatively poor scheduling problem of interference killing feature of communication stability leads to audio output effect not good. Therefore, the invention provides an audio data transmission method, a sound box system and a computer readable storage medium, when an audio playing instruction is received, a first audio file corresponding to the audio playing instruction is obtained, configuration information of a master sound box and configuration information of slave sound boxes are obtained, then a second audio file corresponding to the slave sound box is determined from the first audio file according to the configuration information of the master sound box and the configuration information of the slave sound boxes, and then the second audio file is transmitted from the master sound box to the slave sound box by using a near magnetic induction module. The second audio file is transmitted from the main sound box to the auxiliary sound box through the near magnetic induction module, the audio output effect is prevented from being influenced due to the fact that the audio data transmission effect is poor due to the fact that Bluetooth or WIFI transmission is used, the audio transmission effect is improved, and the user experience is improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a sound box system in a hardware operating environment according to an embodiment of the present invention.
The sound box system comprises a main sound box and at least one slave sound box, wherein the main sound box is connected with the at least one slave sound box through a near magnetic induction module, so that the main sound box can transmit a second audio file from the main sound box to the slave sound box through a near magnetic field induction technology.
As shown in fig. 1, the enclosure system may include: a communication bus 1002, a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the enclosure system shown in FIG. 1 is not intended to be limiting of the enclosure system, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
In the sound box system shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the audio data transmission program stored in the memory 1005 and perform the following operations:
when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box;
and transmitting a second audio file from the main sound box to the auxiliary sound box by using the near magnetic induction module.
Alternatively, the processor 1001 may call the audio data transmission program stored in the memory 1005, and further perform the following operations:
the step of applying the near magnetic induction module to transmit a second audio file from a master loudspeaker box to the slave loudspeaker box comprises:
determining a transmission link for transmitting the second audio file;
and transmitting a second audio file from the main sound box to the slave sound box through the transmission link by using the near magnetic induction module.
Alternatively, when there are a plurality of slave speakers, the processor 1001 may call the audio data transmission program stored in the memory 1005, and further perform the following operations:
acquiring file information of a second audio file;
determining the file type of the second audio file according to the file information;
and determining a transmission link of the second audio file according to the file type.
Alternatively, when there are a plurality of slave speakers, the processor 1001 calls the audio data transmission program stored in the memory 1005, and performs the following operations:
acquiring position information of a plurality of slave loudspeaker boxes;
a transmission link for the second audio file is determined from the location information of the loudspeaker.
Alternatively, the processor 1001 may call the audio data transmission program stored in the memory 1005, and further perform the following operations:
decomposing the first audio file into at least two third audio files according to the configuration information of the master sound box and the configuration information of the slave sound boxes;
and determining a second audio file from the decomposed at least two third audio files.
Alternatively, the processor 1001 may call the audio data transmission program stored in the memory 1005, and further perform the following operations:
determining first sound channel information and first audio frequency information of a main sound box according to the configuration information of the main sound box;
determining second channel information and second audio frequency information of the slave loudspeaker box according to the slave loudspeaker box configuration information;
and decomposing the acquired first audio file into at least two third audio files according to the first sound channel information of the main sound box, the second sound channel information of the auxiliary sound box, the first audio frequency information of the main sound box and the second audio frequency information of the auxiliary sound box.
Optionally, before the step of obtaining the master speaker configuration information and the slave speaker configuration information, the processor 1001 may call the audio data transmission program stored in the memory 1005, and further perform the following operations:
acquiring position information and quantity information of a main sound box and a slave sound box in a sound box system and size information of an action space of the sound box system;
and performing parameter configuration on the main sound boxes according to the quantity information, the position information and the size information to generate main sound box configuration information, and performing parameter configuration on the auxiliary sound boxes to generate auxiliary sound box configuration information.
Optionally, after the step of determining the second audio file corresponding to the slave speaker from the first audio file according to the master speaker configuration information and the slave speaker configuration information, the processor 1001 may call an audio data transmission program stored in the memory 1005, and further perform the following operations:
determining a fourth audio file corresponding to the master loudspeaker box from the at least two third audio files, so that when the slave loudspeaker box receives a synchronous playing instruction, the master loudspeaker box and the slave loudspeaker box synchronously play corresponding audio files;
and the synchronous playing instruction is sent to the slave loudspeaker box from the master loudspeaker box through the near magnetic induction module.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an audio data transmission method according to the present invention, in this embodiment, the audio data transmission method includes the following steps:
step S10: when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
in this embodiment, the audio data transmission method is applied to a sound box system, where the sound box system may include a master sound box and at least one slave sound box, and the master sound box may be connected to the at least one slave sound box through a near magnetic induction module, and the sound box system may be a 2.1 channel system, a 5.1 channel system, a 7.1 channel system, or the like. The near magnetic induction module can lead a plurality of sound boxes to work coordinately through the near magnetic field induction technology, thereby constructing a stereo environment. The Near Field Magnetic Induction (NFMI) is a short-range wireless technology, and performs communication by coupling a close low-power-consumption and non-propagating Magnetic Field between devices, and has the advantages of low power consumption, stable communication, strong anti-interference capability and the like compared with communication modes such as WIFI or bluetooth. And, the main audio amplifier can be any audio amplifier appointed in advance in the audio amplifier system, can confirm according to the particular case. For example, a sound box with a voice module in a sound box system can be used as a main sound box, so as to issue control instructions such as music playing and the like to the main sound box through voice; or the sound box closest to the user can be used as the main sound box; the main Sound box may be connected to the playback device in a wireless manner, such as Radio Frequency/infrared/bluetooth/Sound wave/WiFi/ZigBee/RFID (Radio Frequency Identification), or may be connected to the playback device in a wired manner through interfaces, such as line out (audio output interface), usb (Universal Serial Bus), I2S (Inter-IC Sound Bus, also called an integrated circuit built-in audio Bus), and the like; the playing device can be an audio playing device which can be connected with the main sound box, such as a television, a computer or a mobile phone.
Therefore, when the main sound box receives an audio playing instruction, a first audio file corresponding to the audio playing instruction needs to be acquired first, the audio playing instruction may be a voice instruction sent by a user or a playing instruction sent by a playing device, the manner in which the main sound box acquires the first audio file may be wired or wireless, and the first audio file may also be an audio file pre-stored in the main sound box or an audio file acquired by the main sound box from the internet. After the first audio file corresponding to the audio playing instruction is obtained, in order to determine a second audio file corresponding to the slave loudspeaker according to the obtained first audio file and send the second audio file to the corresponding slave loudspeaker to construct a stereo sound effect, configuration information of the master loudspeaker and configuration information of the slave loudspeaker are also required to be obtained, so that the second audio file corresponding to the slave loudspeaker is determined from the first audio file according to the configuration information of the master loudspeaker and the configuration information of the slave loudspeaker. The master sound box configuration information may include characteristic parameter information such as sound channel information, audio frequency information, sensitivity information, signal-to-noise ratio information and the like corresponding to the master sound box, and similarly, the slave sound box configuration information may include characteristic parameter information such as sound channel information, audio frequency information, sensitivity information, signal-to-noise ratio information and the like corresponding to the slave sound box; the mode of acquiring the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker boxes can be acquired from a pre-stored database, namely, the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker boxes can be stored in the database of the master loudspeaker box or the server in advance, and when an audio playing instruction is received, the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker boxes can be directly acquired from the database of the master loudspeaker box or the server; the method may further include automatically detecting a slave speaker connected to the master speaker through the near magnetic induction module when receiving an audio playing instruction, and then sending a configuration information request to the slave speaker through the near magnetic induction module to obtain the slave speaker configuration information, where the master speaker may autonomously report the master speaker configuration information, and the like.
In an embodiment, before the configuration information of the master speaker and the configuration information of the slave speakers are obtained, the configuration information of the master speaker may be generated according to the position information and the number information of the master speaker and the slave speakers in the speaker system and the size information of the active space of the speakers, and the configuration information of the slave speakers may be stored in a database of the master speaker or the server, so that the master speaker may obtain the configuration information of the slave speakers when receiving the audio playing instruction. Specifically, the position information of each sound box in the sound box system (including the relative position information between each sound box and the user and the relative position information between each sound box), the number information of the sound boxes in the sound box system, and the size information of the sound box action space may be obtained first, and then the master sound box and the slave sound boxes may be configured with parameters according to the obtained number information, position information, and size information, so as to obtain configured master sound box configuration information and slave sound box configuration information, and store the configured master sound box configuration information and slave sound box configuration information in the database of the master sound box or the server. For example, the number of channels may be determined according to the number information, corresponding channel information may be configured for different sound boxes based on the position information of each sound box, and audio frequency information corresponding to different sound boxes may be determined according to the relative position information of each sound box and a user or by combining the size information of the action space of the sound boxes and the relative position information between the sound boxes.
Step S20: determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box;
after the first audio file corresponding to the audio playing instruction is obtained and the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box are obtained, in order to enable the specified loudspeaker box in the loudspeaker box system to play the audio file corresponding to the specified loudspeaker box to construct a stereo effect, a second audio file corresponding to the slave loudspeaker box is determined from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box, and the second audio file is transmitted to the slave loudspeaker box.
The manner of determining the second audio file corresponding to the slave loudspeaker from the first audio files according to the master loudspeaker configuration information and the slave loudspeaker configuration information may be: according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker boxes, decomposing the first audio file into third audio files corresponding to the master loudspeaker box and the slave loudspeaker boxes respectively, determining the third audio file corresponding to the slave loudspeaker boxes from the decomposed third audio files, and taking the third audio file as a second audio file corresponding to the slave loudspeaker boxes; the audio file of the master sound box and the audio file of the slave sound box can be distinguished from the first audio file according to the matching between the master sound box configuration information and the first audio file and the matching between the slave sound box configuration information and the first audio file, so that a second audio file and the like corresponding to the slave sound box are determined from the first audio file.
Step S30: transmitting a second audio file from the master sound box to the slave sound box by using the near magnetic induction module;
after determining a second audio file corresponding to the slave loudspeaker box from the first audio file, the second audio file needs to be transmitted to the slave loudspeaker box. The transmission mode can be wired mode or wireless mode, but wired mode is unfavorable for creating clean and tidy home environment, and wireless mode mostly adopts bluetooth or WIFI's form at present, and the audio file transmission through bluetooth or WIFI can have the problems such as the consumption height, communication stability is poor, interference killing feature is not strong, therefore, this embodiment provides a better implementation scheme, preferably transmits the second audio file through near magnetic induction module, with the second audio file from main audio amplifier to from the audio amplifier. Of course, when the near magnetic induction module is abnormal, the audio file of the sound box can be transmitted by switching to other communication modes according to the communication mode supported by the sound box system and the preset priority. If the sound box system supports near magnetic induction communication, WIFI, Bluetooth, wired communication and the like, according to a preset priority, if the near magnetic induction module is in the near magnetic induction, WIFI, Bluetooth and wired communication in sequence from high to low, the connection to the WIFI can be switched when the near magnetic induction module is abnormal. Wherein, different communication modes can correspond different communication modules, and different communication modules can exist alone, avoid mutual interference and be convenient for the fortune dimension, also can be integrated to same communication unit, reduce the volume of audio amplifier and reduce development cost.
In addition, in order to create a stereo effect, after the second audio file is transmitted from the master speaker to the slave speaker by using the near magnetic induction module, it is necessary to keep the master speaker and the slave speaker to play corresponding audio files synchronously. That is, according to the master speaker configuration information and the slave speaker configuration information, after determining the second audio file corresponding to the slave speaker from the first audio file, it also determines the fourth audio file corresponding to the master speaker from the first audio file, after the master speaker transmits the second audio file from the master speaker to the slave speaker through the near magnetic induction module, the slave speaker decodes the received second audio file and the master speaker also decodes the fourth audio file corresponding to the master speaker, after decoding, it can communicate through the near magnetic induction module to ensure that the master speaker and the slave speaker can synchronously play the corresponding audio files, so as to create a good stereo effect. Specifically, when receiving the second audio file from the sound box, the slave sound box sends feedback information to the master sound box, the master sound box sends a synchronous playing instruction to the slave sound box according to the received feedback information, and when receiving the synchronous playing instruction, the slave sound box synchronously plays the corresponding audio file with the master sound box; or after receiving the second audio file from the sound box, the slave sound box autonomously sends a synchronous playing request to the master sound box, when receiving the synchronous playing request, the master sound box sends a synchronous playing instruction to the slave sound box, and when receiving the synchronous playing instruction, the master sound box and the slave sound box simultaneously play the corresponding audio file. Considering the delay of information transmission, delay processing can be carried out according to the difference of transmission distance or transmission path and the like in the communication process so as to ensure that the slave loudspeaker box and the master loudspeaker box keep synchronous playing; or directly appointing the time of synchronous playing, and when the appointed time is reached, the master loudspeaker box and the slave loudspeaker boxes synchronously play corresponding audio files and the like.
In this embodiment, when an audio playing instruction is received, a first audio file corresponding to the audio playing instruction is acquired, configuration information of the master sound box and the slave sound box is acquired, the acquired first audio file is decomposed into at least two third audio files according to the configuration information of the master sound box and the slave sound box, a second audio file corresponding to the slave sound box is determined from the at least two third audio files, and then the second audio file is transmitted to the slave sound box by using the near magnetic induction module. Through nearly magnetic induction module with second audio file transmission extremely from the audio amplifier to guarantee the stability of transmission course and the reliability of transmission data, avoid the mode transmission through WIFI or bluetooth to lead to that the audio transmission effect is poor to cause the influence to output tone quality, improved audio transmission and tone quality effect.
Referring to fig. 3, fig. 3 is a flowchart illustrating an audio data transmission method according to a second embodiment of the present invention. A second embodiment of the audio data transmission method of the invention is proposed on the basis of the first embodiment. In this embodiment, the audio data transmission method includes the following steps:
step S11: when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
step S12: determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box;
step S13: determining a transmission link for transmitting the second audio file;
step S14: and transmitting a second audio file from the main sound box to the slave sound box through the transmission link by using the near magnetic induction module.
After determining the second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box, if the second audio file corresponding to the slave loudspeaker box is to be transmitted to the slave loudspeaker box by using the near magnetic induction module, a transmission link for transmitting the second audio file is also required to be determined, so that the near magnetic induction module can transmit the second audio file corresponding to the slave loudspeaker box through the transmission link, the stability of data transmission is improved, and when a plurality of slave loudspeaker boxes exist, the mutual interference in the transmission of the second audio files corresponding to different slave loudspeaker boxes can be avoided. The method for determining the transmission link may be that a corresponding transmission link is allocated to the slave loudspeaker box in advance, and then the transmission link of the second audio file corresponding to the slave loudspeaker box is determined according to the link information of the transmission link allocated in advance; the configuration of different transmission links may be based on the distance information required for transmitting the second audio file and the configuration information of the slave loudspeaker box.
Therefore, when only one slave loudspeaker box exists, at this time, the transmission link corresponding to the slave loudspeaker box may be one of the multiple links allocated in advance, or only one transmission link may be allocated in advance, and specifically, allocation may be performed according to application requirements, for example, a link with a high transmission speed may be allocated to the slave loudspeaker box in order to improve the transmission efficiency of the audio file; in order to ensure the reliability of audio file transmission, a plurality of links may be allocated to the slave loudspeaker box, so that when one of the links fails, the transmission of the audio file may be completed through the other links, and so on. However, when there are multiple slave speakers, if multiple second audio files are to be simultaneously transmitted to corresponding slave speakers, different transmission links need to be set for the second audio files corresponding to different slave speakers, so as to achieve synchronous transmission of different second audio files and avoid mutual interference between different second audio files, where different transmission links may correspond to different magnetic field bands. Specifically, the transmission link of the second audio file corresponding to the different slave speakers may be set according to a preset rule, where the preset rule may be a setting rule corresponding to file information (file type, file size, and the like) of the second audio file, or a setting rule corresponding to a transmission distance and/or a transmission direction.
In an embodiment, the preset rule may be a setting rule corresponding to a file type of the second audio file, that is, transmission links may be allocated to the different second audio files corresponding to the slave speakers according to the file types corresponding to the different second audio files, so that the different types of second audio files are transmitted through the different transmission links, and mutual interference between the different types of second audio files is avoided. If the second audio file is a left channel audio file, setting a left channel audio transmission link for the left channel audio file; if the second audio file is a right channel audio file, setting a right channel audio transmission link for the right channel audio file; if the second audio file is a high-frequency audio file, setting a corresponding high-frequency audio transmission link for the high-frequency audio file; if the second audio file is a low-frequency audio file, setting a corresponding low-frequency audio transmission link for the low-frequency audio file; if the second audio file is a left channel high-frequency file, setting a corresponding left channel high-frequency audio transmission link for the left channel high-frequency file, that is, different file types correspond to different transmission links, and different second audio files correspond to different file types.
In another embodiment, the preset rule may be a setting rule corresponding to the transmission distance and/or the transmission direction, that is, the transmission links may be set for different second audio files according to the position information of different slave speakers (which may include direction information and distance information with respect to the master speaker). Generally, different loudspeaker box systems can adopt different placement rules, such as a regular triangle placement method, an axis inner side placement method, a diamond placement method and the like, and the placement positions of the loudspeaker boxes in the different placement rules are different, so that transmission links can be set according to the position information of the slave loudspeaker boxes relative to the master loudspeaker box, the loudspeaker box system is suitable for different loudspeaker box systems and different placement rules, and the transmission links corresponding to different second audio files are ensured to be single. For example, the opposite direction of the master loudspeaker boxes may be used as a starting point, and the preset angle may be used as an interval to set corresponding transmission links for different slave loudspeaker boxes, where the preset angle may be set according to actual conditions (e.g., the number of slave loudspeaker boxes, the arrangement density of the slave loudspeaker boxes, etc.). If the preset angle is 30 degrees, the opposite direction of the main loudspeaker box is taken as a starting point, a first transmission link is arranged for the auxiliary loudspeaker boxes within the range of 30 degrees clockwise, a second transmission link is arranged for the auxiliary loudspeaker boxes within the range of 30 degrees to 60 degrees, a third transmission link is arranged for the auxiliary loudspeaker boxes within the range of 60 degrees to 90 degrees, and the like, wherein each transmission link only corresponds to one auxiliary loudspeaker box, namely the setting of the preset angle needs to ensure that only one auxiliary loudspeaker box exists within each angle range. Of course, the preset rule may also be that different transmission links are set according to the distance information of the slave loudspeaker box relative to the master loudspeaker box, or by combining the position information of the slave loudspeaker box and the distance information of the slave loudspeaker box relative to the master loudspeaker box, and the like, and the setting is not specifically limited herein.
In this way, different transmission links are set for different second audio files of the slave loudspeaker boxes in advance, and the transmission links of the second audio files corresponding to different slave loudspeaker boxes can be determined according to the file types of the corresponding second audio files or the position information of the slave loudspeaker boxes. If the file type of the second audio file is a left channel audio file, determining that a transmission link corresponding to the second audio file is a left channel audio transmission link according to a preset rule; or, when the slave loudspeaker box is in a range of 30 degrees to 60 degrees relative to the master loudspeaker box, determining that the transmission link of the second audio file corresponding to the slave loudspeaker box is a second transmission link according to a preset rule, and the like. After the transmission links of the second audio files corresponding to different slave loudspeaker boxes are determined, the second audio files corresponding to the slave loudspeaker boxes can be transmitted by using the near magnetic induction module, so that the second audio files corresponding to the slave loudspeaker boxes are transmitted to the corresponding slave loudspeaker boxes through the determined transmission links.
In this embodiment, when an audio playing instruction is received, a first audio file corresponding to the audio playing instruction is obtained, configuration information of a master sound box and configuration information of slave sound boxes are obtained, then a second audio file corresponding to a slave sound box is determined from the first audio file according to the configuration information of the master sound box and the configuration information of the slave sound boxes, a transmission link for transmitting the second audio file of the slave sound box is determined, and then the second audio file is transmitted from the master sound box to the slave sound box through the transmission link by using the near magnetic induction module. Through near magnetic induction module with the transmission link that confirms to follow audio data of audio data transmission from the audio amplifier, can guarantee audio file transmission's stability and transmission efficiency on the one hand, can also avoid producing the interference each other when having a plurality of from the audio amplifier when transmitting different audio files.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of the audio data transmission method according to the present invention, and the third embodiment of the audio data transmission method according to the present invention is provided based on the first embodiment. In this embodiment, the audio data transmission method includes the following steps:
step S21: when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
step S22: decomposing the first audio file into at least two third audio files according to the configuration information of the master sound box and the configuration information of the slave sound boxes;
step S23: determining a second audio file corresponding to the slave loudspeaker box from the at least two decomposed third audio files;
step S24: and transmitting a second audio file from the main sound box to the auxiliary sound box by using the near magnetic induction module.
In this embodiment, after the first audio file corresponding to the audio playing instruction is obtained, and the configuration information of the master speaker and the configuration information of the slave speaker are obtained, in order to enable each speaker in the speaker system to play the audio file corresponding to the speaker system to construct a stereo effect, the first audio file obtained by the master speaker needs to be decomposed into at least two third audio files, that is, into the audio files corresponding to the master speaker and the slave speaker respectively, so that the audio file corresponding to the master speaker is played through the master speaker, and the audio file corresponding to the slave speaker is played through the slave speaker. The specific decomposition method may be: the decomposition is performed according to at least one parameter information in the configuration information of the master speaker and the slave speaker, for example, the decomposition may be performed according to the sound channel information, the decomposition may be performed according to the audio frequency information, or the decomposition may be performed by combining the sound channel information and the audio frequency information. After the acquired first audio file is decomposed into at least two third audio files, the decomposed third audio files may be marked based on the decomposition basis, for example, if the decomposition is performed according to the channel information, the decomposed third audio files may be marked as a left channel or a right channel, and if the decomposition is performed according to the audio frequency information, the decomposed third audio files may be marked as a high frequency, a medium frequency, or a low frequency. Then, based on matching the mark information of the decomposed third audio files with the configuration information of the master loudspeaker box and the slave loudspeaker box, a second audio file corresponding to the slave loudspeaker box and a fourth audio file corresponding to the master loudspeaker box can be determined from the at least two third audio files.
In one embodiment, a better audio file decomposition method is provided, in which the acquired first audio file is decomposed according to the channel information and the audio frequency information. Specifically, the first channel information and the first audio frequency information of the master speaker may be determined according to the master speaker configuration information, the second channel information and the second audio frequency information of the slave speaker may be determined according to the slave speaker configuration information, and then the acquired first audio file may be decomposed into at least two third audio files according to the first channel information and the first audio information of the master speaker and the second channel information and the second audio information of the slave speaker. Here, the execution sequence of the step of determining the first channel information and the first audio frequency information corresponding to the master loudspeaker according to the configuration information of the master loudspeaker and the step of determining the second channel information and the second audio frequency information corresponding to the slave loudspeaker according to the configuration information of the slave loudspeaker is not limited, and may be executed sequentially in a preset sequence or simultaneously.
Taking a dual-channel as an example, according to the first channel information and the first audio frequency information corresponding to the main sound box and the second channel information and the second audio frequency information corresponding to the slave sound box, a manner of decomposing the first audio file acquired by the main sound box into at least two third audio files may specifically be: the method comprises the steps of decomposing a left channel audio file, a right channel audio file and a silent channel audio file (audio files without distinguishing channels) according to a left channel and a right channel of first channel information of a main sound box and second channel information of a slave sound box, and further decomposing the left channel audio file, the right channel audio file and the silent channel audio file into audio files with different audio frequencies according to the audio frequency according to the first audio frequency information of the main sound box and the second audio frequency information of the slave sound box. For example, for a 2.1 sound box system, assuming that the sound box in which the right channel is located is the master sound box a, the sound box in which the left channel is located is the slave sound box B, and the low-frequency BASS sound box is the slave sound box C, a first audio file acquired by the master sound box a may be decomposed into a plurality of third audio files, and a second audio file of a high-frequency signal in the left channel corresponding to the slave sound box B, a second audio file of a low-frequency signal in the indistinguishable channel corresponding to the slave sound box C, and a second audio file of a high-frequency signal in the right channel corresponding to the master sound box are determined according to the plurality of decomposed third audio files. Therefore, the decomposed second audio file of the high-frequency signal in the left sound channel is sent to the slave loudspeaker box B, the second audio file of the low-frequency signal of the sound channel is not distinguished is sent to the slave loudspeaker box C, then the fourth audio file of the high-frequency signal in the right sound channel is left in the local of the master loudspeaker box A, the master loudspeaker box A is controlled to synchronously output corresponding audio signals with the slave loudspeaker box B and the slave loudspeaker box C, a set of stereo loudspeaker box system can be constructed, and the audio output effect is improved.
In this embodiment, when an audio playing instruction is received, a first audio file corresponding to the audio playing instruction is acquired, configuration information of a master sound box and configuration information of a slave sound box are acquired, then the first audio file is decomposed into at least two third audio files according to the configuration information of the master sound box and the configuration information of the slave sound box, a second audio file corresponding to the slave sound box is determined from the decomposed at least two third audio files, and then the second audio file is transmitted from the master sound box to the slave sound box by using the near magnetic induction module. The first audio file is decomposed into at least two third audio files through the configuration information of the master sound box and the configuration information of the slave sound boxes, so that the decomposed third audio files correspond to the master sound box and the slave sound boxes respectively, the third audio files corresponding to the slave sound boxes can be rapidly determined and serve as second audio files corresponding to the slave sound boxes, the second audio files corresponding to the slave sound boxes are sent to the corresponding slave sound boxes through the near magnetic induction modules, a stereo environment is constructed, and the audio output effect can be improved.
In addition, an embodiment of the present invention further provides a sound box system, where the sound box system may include a master sound box and at least one slave sound box, the master sound box is connected to the at least one slave sound box through a near magnetic induction module, the sound box system includes a memory, a processor, and an audio data transmission program that is stored on the processor and is executable on the processor, and the processor implements the steps of the audio data transmission method when executing the audio data transmission program.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where an audio data transmission program is stored on the computer-readable storage medium, and when the audio data transmission program is executed by a processor, the audio data transmission program implements the steps of the audio data transmission method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An audio data transmission method is applied to a sound box system, the sound box system comprises a main sound box and at least one slave sound box, the main sound box is connected with the at least one slave sound box through a near magnetic induction module, and the audio data transmission method comprises the following steps:
when an audio playing instruction is received, acquiring a first audio file corresponding to the audio playing instruction, and acquiring configuration information of a master sound box and configuration information of slave sound boxes;
determining a second audio file corresponding to the slave loudspeaker box from the first audio file according to the configuration information of the master loudspeaker box and the configuration information of the slave loudspeaker box;
and transmitting the second audio file from the main sound box to the slave sound box by using the near magnetic induction module.
2. The method of claim 1, wherein the step of using the near magnetic induction module to transmit the second audio file from the master speaker to the slave speaker comprises:
determining a transmission link for transmitting the second audio file;
and transmitting the second audio file from the main sound box to the slave sound box by using the near magnetic induction module through the transmission link.
3. The audio data transmission method according to claim 2, wherein, when there are a plurality of slave speakers, the step of determining the transmission link of the second audio file includes:
acquiring file information of the second audio file;
determining the file type of the second audio file according to the file information;
and determining a transmission link of the second audio file according to the file type.
4. The audio data transmission method according to claim 2, wherein, when there are a plurality of slave speakers, the step of determining the transmission link of the second audio file includes:
acquiring position information of a plurality of slave loudspeaker boxes;
and determining a transmission link of the second audio file according to the position information of the slave loudspeaker box.
5. The audio data transmission method according to claim 1, wherein the step of determining a second audio file corresponding to the slave speaker from the first audio file according to the master speaker configuration information and the slave speaker configuration information comprises:
decomposing the first audio file into at least two third audio files according to the configuration information of the master sound box and the configuration information of the slave sound box;
and determining the second audio file corresponding to the slave loudspeaker box from at least two decomposed third audio files.
6. The audio data transmission method according to claim 5, wherein the step of splitting the first audio file into at least two third audio files according to the master speaker configuration information and the slave speaker configuration information comprises:
determining first sound channel information and first audio frequency information of a main sound box according to the configuration information of the main sound box;
determining second channel information and second audio frequency information of the slave loudspeaker box according to the slave loudspeaker box configuration information;
and decomposing the acquired first audio file into at least two third audio files according to the first sound channel information of the main sound box, the second sound channel information of the auxiliary sound box, the first audio frequency information of the main sound box and the second audio frequency information of the auxiliary sound box.
7. The audio data transmission method according to claim 1, wherein the step of obtaining the configuration information of the master speaker and the configuration information of the slave speaker is preceded by the steps of:
acquiring position information and quantity information of a main sound box and a slave sound box in a sound box system and size information of an action space of the sound box system;
and performing parameter configuration on the main sound box according to the quantity information, the position information and the size information to generate main sound box configuration information, and performing parameter configuration on the slave sound box to generate slave sound box configuration information.
8. The method according to any one of claims 1 to 7, wherein after the step of determining the second audio file corresponding to the slave speaker from the first audio file according to the configuration information of the master speaker and the configuration information of the slave speaker, the method further comprises:
determining a fourth audio file corresponding to the master loudspeaker box from the at least two third audio files, so that when the slave loudspeaker box receives a synchronous playing instruction, the master loudspeaker box and the slave loudspeaker box synchronously play corresponding audio files;
and the synchronous playing instruction is transmitted from the master sound box to the slave sound box through the near magnetic induction module.
9. A sound box system, comprising a memory, a processor and an audio data transmission program stored in the memory and executable on the processor, wherein the processor implements the steps of the audio data transmission method according to any one of claims 1 to 8 when executing the audio data transmission program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an audio data transmission program which, when executed by a processor, implements the steps of the audio data transmission method according to any one of claims 1 to 8.
CN202011015187.4A 2020-09-23 2020-09-23 Audio data transmission method, sound box system and computer readable storage medium Pending CN112188361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011015187.4A CN112188361A (en) 2020-09-23 2020-09-23 Audio data transmission method, sound box system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011015187.4A CN112188361A (en) 2020-09-23 2020-09-23 Audio data transmission method, sound box system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112188361A true CN112188361A (en) 2021-01-05

Family

ID=73956614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011015187.4A Pending CN112188361A (en) 2020-09-23 2020-09-23 Audio data transmission method, sound box system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112188361A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911496A (en) * 2021-03-26 2021-06-04 潍坊歌尔电子有限公司 Pairing method of sounding components, audio system and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465910A (en) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 Control method, terminal and system for playing stereo based on mobile terminal
CN107205192A (en) * 2017-07-28 2017-09-26 广州黑格智能科技有限公司 A kind of audio frequency playing method of ears wireless headset and ears wireless headset
US20180035246A1 (en) * 2016-08-01 2018-02-01 Bose Corporation Transmitting audio over a wireless link
CN108093359A (en) * 2017-11-30 2018-05-29 青岛海尔多媒体有限公司 Multichannel playback method and playback equipment and wireless sound box based on wireless transmission
CN109565773A (en) * 2018-11-05 2019-04-02 深圳市汇顶科技股份有限公司 Method of data synchronization, equipment and storage medium
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
US10432773B1 (en) * 2018-07-20 2019-10-01 Bestechnic (Shanghai) Co., Ltd. Wireless audio transceivers
US20200228901A1 (en) * 2015-09-09 2020-07-16 Inho BAEK Electronic device and method for controlling operation of electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465910A (en) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 Control method, terminal and system for playing stereo based on mobile terminal
US20200228901A1 (en) * 2015-09-09 2020-07-16 Inho BAEK Electronic device and method for controlling operation of electronic device
US20180035246A1 (en) * 2016-08-01 2018-02-01 Bose Corporation Transmitting audio over a wireless link
CN107205192A (en) * 2017-07-28 2017-09-26 广州黑格智能科技有限公司 A kind of audio frequency playing method of ears wireless headset and ears wireless headset
CN108093359A (en) * 2017-11-30 2018-05-29 青岛海尔多媒体有限公司 Multichannel playback method and playback equipment and wireless sound box based on wireless transmission
US10432773B1 (en) * 2018-07-20 2019-10-01 Bestechnic (Shanghai) Co., Ltd. Wireless audio transceivers
CN109565773A (en) * 2018-11-05 2019-04-02 深圳市汇顶科技股份有限公司 Method of data synchronization, equipment and storage medium
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭坡: "Dynaudio Contour S5.4、SC、S1.4环绕声音箱系统", 《音响技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911496A (en) * 2021-03-26 2021-06-04 潍坊歌尔电子有限公司 Pairing method of sounding components, audio system and readable storage medium

Similar Documents

Publication Publication Date Title
WO2020063761A1 (en) Data transmitting method and system
CN110830970B (en) Audio transmission method, device, equipment and storage medium between Bluetooth equipment
US10567900B2 (en) Audio system, audio device, and audio device setting method
CN110650408B (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN109450851B (en) Device connection method, electronic device, and computer-readable medium
US20150055781A1 (en) Wireless speaker device and wirelessly multi-channel audio system thereof
KR102393290B1 (en) Remote control, electronic apparatus and pairing method thereof
CN111199743A (en) Audio coding format determining method and device, storage medium and electronic equipment
CN110890094A (en) Voice control method of Internet of things equipment and voice server
CN110856086A (en) Method and device for controlling sound system and readable storage medium
CN112188361A (en) Audio data transmission method, sound box system and computer readable storage medium
US10817249B2 (en) Audio system control method, control terminal device, and information storage medium
CN112185394A (en) Playing method, device and playing system of equipment group
CN105703806A (en) Bluetooth module control method and apparatus of playing equipment, and audio-video playing system
CN105828253A (en) Wireless connection control method and device in audio playing system
CN113225716A (en) Vehicle-mounted karaoke realization method, system, equipment and storage medium
CN113518297A (en) Sound box interaction method, device and system and sound box
CN105656520A (en) Method and device for controlling bluetooth module of playing equipment and audio/video playing system
CN111145741B (en) Method and device for providing multimedia content, electronic equipment and storage medium
CN114520958B (en) Bluetooth communication method and system
CN111836090B (en) Control method, device, equipment and storage medium
CN113015106A (en) Stereo playing method and device for broadcast networking and electronic equipment
CN105812903A (en) Bluetooth module control method and device for playing device and audio-video playing system
CN105682010A (en) Bluetooth connection control method and device in audio playing system, and player
CN105828172B (en) Control method for playing back and device in audio-video frequency playing 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

Application publication date: 20210105

RJ01 Rejection of invention patent application after publication