Bluetooth multi-channel audio playing method, device and system

文档序号:73324 发布日期:2021-10-01 浏览:34次 中文

阅读说明:本技术 一种蓝牙多声道音频的播放方法、装置及系统 (Bluetooth multi-channel audio playing method, device and system ) 是由 侍业 范泳文 刘方明 管华亮 于 2021-07-14 设计创作,主要内容包括:本发明提供一种蓝牙多声道音频的播放方法,应用于由第一电子设备和至少一个第二电子设备组成的系统,包括:所述第一电子设备接收多声道音频数据;所述第一电子设备将所述多声道音频数据拆分为多个单声道音频数据,并保留所述多个单声道音频数据中的一个所述单声道音频数据,将其他所述单声道音频数据分别传输至所述第二电子设备;所述第一电子设备控制所述第二电子设备同步播放各自存储的所述单声道音频数据。本发明实施例通过智能音箱将多声道音频数据拆分为单声道音频数据并分别同时播放,从而实现了多声道音频在空间中的立体播放,有效提高了用户体验。(The invention provides a playing method of Bluetooth multi-channel audio, which is applied to a system consisting of first electronic equipment and at least one second electronic equipment and comprises the following steps: the first electronic device receiving multi-channel audio data; the first electronic device splits the multi-channel audio data into a plurality of pieces of mono audio data, reserves one piece of mono audio data in the plurality of pieces of mono audio data, and respectively transmits the other pieces of mono audio data to the second electronic device; and the first electronic equipment controls the second electronic equipment to synchronously play the respectively stored single-channel audio data. According to the embodiment of the invention, the multi-channel audio data is split into the single-channel audio data through the intelligent sound box and is respectively and simultaneously played, so that the three-dimensional playing of the multi-channel audio in the space is realized, and the user experience is effectively improved.)

1. A playing method of Bluetooth multi-channel audio is applied to a system composed of a first electronic device and at least one second electronic device, and is characterized by comprising the following steps:

the first electronic device receiving multi-channel audio data;

the first electronic device splits the multi-channel audio data into a plurality of pieces of mono audio data, reserves one piece of mono audio data in the plurality of pieces of mono audio data, and respectively transmits the other pieces of mono audio data to the second electronic device;

and the first electronic equipment controls the second electronic equipment to synchronously play the respectively stored single-channel audio data.

2. The method of claim 1, wherein the first electronic device splits the multi-channel audio data into a plurality of mono audio data, comprising:

and the first electronic equipment analyzes the multi-channel audio data to obtain the number of channels of the multi-channel audio data, and splits the multi-channel audio data into single-channel audio data corresponding to the number of channels according to the number of channels.

3. The method of claim 2, wherein the first electronic device controls the second electronic device to synchronously play the stored mono audio data, comprising:

and the first electronic equipment analyzes the multi-channel audio data, acquires audio information and sends the audio information to each second electronic equipment so that the second electronic equipment plays the acquired single-channel audio data according to the audio information.

4. The method of claim 2, wherein the audio information comprises one or more of a sampling rate, a sampling precision, and a number of sampling bits.

5. The method of claim 2, wherein when the amount of the mono audio data is greater than the amount of the first electronic device and the second electronic device, the first electronic device selects one of the second electronic devices for transmission after mixing the excess mono audio data according to the audio capability of the second electronic device.

6. The method of claim 5, wherein the audio capability comprises one or both of a location, a preset volume of the second electronic device.

7. The method of claim 1, wherein the first electronic device and the second electronic device synchronously play the stored mono audio data, comprising:

the first electronic equipment calibrates the network delay of the single-channel audio data transmitted to the second electronic equipment;

the first electronic device postpones the reserved playing time of the single-channel audio data according to network delay time, so that the second electronic device and the second electronic device simultaneously play the single-channel audio data stored in the first electronic device and the second electronic device after receiving other single-channel audio data.

8. An electronic device configured to connect with other electronic devices, comprising:

the Bluetooth module is used for receiving multi-channel audio data;

the multichannel audio splitting module is used for splitting the multichannel audio data into a plurality of pieces of single-channel audio data and reserving one piece of single-channel audio data in the plurality of pieces of single-channel audio data;

a WiFi module, configured to connect to a plurality of other electronic devices to transmit other mono audio data;

the synchronous playing module is used for controlling the synchronous playing module to synchronously play the single-channel audio data stored in the synchronous playing module and the other electronic equipment;

and the delay calibration module is used for calibrating the network delay time by the other electronic equipment.

9. The electronic device of claim 8, wherein the bluetooth module is further configured to: and analyzing the multi-channel audio data to acquire audio information of the multi-channel audio data and sending the audio information to each electronic device.

10. The electronic device of claim 9, wherein the audio information comprises one or more of a number of channels, a sampling rate, and the like.

11. The electronic device of claim 8, wherein the multi-channel audio splitting module is configured to: and when the number of the single-channel audio data is more than that of the electronic equipment, mixing the excessive single-channel audio data according to the audio capacity of the electronic equipment, and then selecting one of the electronic equipment for transmission.

12. The electronic device of claim 8, wherein the delay calibration module is configured to: and delaying the reserved playing time of the single-channel audio data according to the network delay time, so that the single-channel audio data stored in the electronic equipment and other electronic equipment are played simultaneously after the other electronic equipment receives other single-channel audio data.

13. A system for playing bluetooth multi-channel audio, comprising:

an electronic device, the electronic device being the electronic device of claims 8-12;

and the audio equipment is connected with the electronic equipment and is used for transmitting multi-channel audio data.

Technical Field

The invention relates to the technical field of Bluetooth, in particular to a method, a device and a system for playing Bluetooth multichannel audio.

Background

Bluetooth is a standard wireless communication protocol, and plays an important role in the fields of vehicle-mounted systems and intelligent home. However, limited by the transmission rate of bluetooth, most of current mobile phones can only output one path of audio data, and correspondingly can only play audio at one terminal, and cannot realize a stereo multi-channel playing effect, and LE audio supported by the current bluetooth latest protocol 5.2 can realize multi-channel playing, but also needs the support of the latest chip and bluetooth protocol stack, and needs a period of time for commercialization.

Disclosure of Invention

In view of this, the present invention provides a method, an apparatus, and a system for playing a bluetooth multi-channel audio, which can play the multi-channel audio in a space through a bluetooth device to achieve a stereo sound effect.

In order to solve the technical problems, the invention adopts the following technical scheme:

the playing method of the Bluetooth multi-channel audio is applied to a system consisting of a first electronic device and at least one second electronic device, and comprises the following steps:

a first electronic device receives multi-channel audio data;

the first electronic equipment splits the multi-channel audio data into a plurality of pieces of single-channel audio data, reserves one piece of single-channel audio data in the plurality of pieces of single-channel audio data, and respectively transmits other pieces of single-channel audio data to the second electronic equipment;

the first electronic equipment controls the second electronic equipment to synchronously play the respectively stored single-channel audio data.

Further, the first electronic device splits the multi-channel audio data into a plurality of mono audio data, including:

the first electronic equipment analyzes the multi-channel audio data to obtain the number of channels of the multi-channel audio data, and splits the multi-channel audio data into single-channel audio data corresponding to the number of the channels according to the number of the channels.

Furthermore, the first electronic device controls the second electronic device to synchronously play the respectively stored mono audio data, including:

the first electronic equipment analyzes the multi-channel audio data, acquires audio information and sends the audio information to each second electronic equipment, so that the second electronic equipment plays the acquired single-channel audio data according to the audio information.

Still further, the audio information includes one or more of a sampling rate, a sampling precision, and a number of sampling bits.

Further, when the number of the monaural audio data is more than the number of the first electronic device and the second electronic device, the first electronic device mixes the excessive monaural audio data according to the audio capability of the second electronic device and then selects one of the second electronic devices for transmission.

Further, the audio capability includes one or both of a location of the second electronic device, a preset volume.

Further, the first electronic device and the second electronic device synchronously play the respectively stored single-channel audio data, including:

the method comprises the steps that a first electronic device calibrates network delay of single-channel audio data transmitted to a second electronic device;

the first electronic device postpones the playing time of the reserved single-channel audio data according to the network delay time, so that the second electronic device and the second electronic device can simultaneously play the stored single-channel audio data after receiving other single-channel audio data.

An embodiment of the present invention further provides an electronic device, configured to connect with other electronic devices, including:

the Bluetooth module is used for receiving multi-channel audio data;

the multichannel audio splitting module is used for splitting the multichannel audio data into a plurality of pieces of single-channel audio data and reserving one piece of single-channel audio data in the plurality of pieces of single-channel audio data;

the WiFi module is used for being connected with a plurality of other electronic devices so as to transmit other single-channel audio data;

the synchronous playing module is used for controlling the synchronous playing of the single-channel audio data stored in the synchronous playing module and other electronic equipment;

and the delay calibration module is used for calibrating the network delay time by other electronic equipment.

Further, the bluetooth module is also used for: and analyzing the multi-channel audio data to acquire audio information of the multi-channel audio data and sending the audio information to each electronic device.

Further, the audio information includes one or more of a number of channels, a sampling rate, and the like.

Further, the multi-channel audio splitting module is to: and when the number of the single-channel audio data is more than that of the electronic equipment, mixing the excessive single-channel audio data according to the audio capacity of the electronic equipment, and then selecting one of the electronic equipment for transmission.

Further, the delay calibration module is configured to: and delaying the playing time of the reserved single-channel audio data according to the network delay time, so that after other electronic equipment receives other single-channel audio data, the electronic equipment and other electronic equipment simultaneously play the respectively stored single-channel audio data.

The embodiment of the invention also provides a playing system of the Bluetooth multi-channel audio, which comprises:

the electronic equipment is the electronic equipment;

and the audio equipment is connected with the electronic equipment and is used for transmitting the multi-channel audio data.

The technical scheme of the invention at least has one of the following beneficial effects:

1. according to the method provided by the embodiment of the invention, when the multi-channel audio data is split into the plurality of pieces of single-channel audio data and is synchronously played in the electronic equipment at different positions, the stereo effect is realized, and the user experience is effectively improved;

2. the method provided by the embodiment of the invention is realized only by software, does not increase the hardware cost, is suitable for various vehicle-mounted entertainment systems and intelligent home systems, and is convenient to popularize.

Drawings

Fig. 1 is a schematic structural diagram of a bluetooth multi-channel audio playing system according to an embodiment of the present invention;

FIG. 2 is a flowchart of a method for playing Bluetooth multi-channel audio according to an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the invention;

FIG. 4 is a schematic diagram of another embodiment of a Bluetooth multi-channel audio playing system;

fig. 5 is a block diagram of an SoC for improving sound quality by connecting multiple terminals with bluetooth of a vehicle machine according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Limited by the transmission rate of bluetooth, most of the current mobile phones can only output one path of audio data, and correspondingly can only play audio at one terminal, and cannot realize the effect of stereo multi-channel playing. The invention adopts a playing method of Bluetooth multi-channel audio, divides multi-channel audio data into a plurality of pieces of single-channel audio data and plays the single-channel audio data in different electronic equipment, forms stereo multi-channel sound effect and effectively improves the listening experience of users.

Referring to fig. 1, fig. 1 is an architecture diagram of a bluetooth multi-channel audio playing system, as shown in fig. 1, the architecture diagram includes a master smart speaker 110 (as a first electronic device), a slave smart speaker (as a second electronic device), and a mobile phone 130 (as an audio device).

The mobile phone 130 is independently connected to the master smart speaker 110 through the bluetooth module, and transmits multi-channel audio data to the master smart speaker 110, and the master smart speaker 110 is connected to the slave smart speaker 121, the slave smart speaker 122, and the slave smart speaker 123. Main smart sound box 110 splits received multi-channel audio data into a plurality of pieces of mono audio data, for example, 4-channel audio data are split into 4 pieces of mono audio data, main smart sound box 110 retains one piece of mono audio data, and transmits the other 3 pieces of mono audio data to slave smart sound box 121, slave smart sound box 122, and slave smart sound box 123, and main smart sound box 110 controls slave smart sound box 121, slave smart sound box 122, and slave smart sound box 123 to play the stored mono audio data simultaneously therewith. Therefore, through disassembling the multi-channel audio data to each intelligent sound box for playing, the multi-channel stereo sound effect is realized, and the user experience is improved.

A method for playing bluetooth multi-channel audio according to an embodiment of the present invention is described in detail below with reference to fig. 2.

The method for playing the Bluetooth multi-channel audio is applied to a system consisting of first electronic equipment and at least one second electronic equipment.

Referring to fig. 2, a flowchart of a method for playing bluetooth multi-channel audio includes steps S210-S240, and a detailed description is given below with a master smart box as a first electronic device, a slave smart box as a second electronic device, and a mobile phone as a third electronic device. In other embodiments of the present application, the first electronic device, the second electronic device, and the third electronic device may also be a tablet computer, a personal computer, or an electronic device such as a watch and a bracelet wearing the device, which are only used for exemplary illustration and are not used as limitations of the present application. The method comprises the following steps:

and S210, receiving the multi-channel audio data by the main intelligent sound box.

Specifically, the master smart speaker establishes a bluetooth Audio transmission connection and a play Control connection with the mobile phone through the bluetooth module to receive the multi-channel Audio data, for example, the master smart speaker may establish an A2DP (Advanced Audio Distribution Profile) connection with the mobile phone to transmit Audio, and may establish an AVRCP (Audio/Video Remote Control Profile) protocol connection, where the AVRCP protocol is an Audio/Video Remote Control specification and may Control operations such as Audio play and pause.

More specifically, before receiving the multi-channel audio data, the first device receives multi-channel audio information that is analyzed and sent by the mobile phone through an A2DP Protocol, where the audio information may include a sampling rate and a sampling precision, and establishes User Datagram Protocol (UDP) network communication through WiFi to transmit the multi-channel audio information to the slave smart speaker, where the multi-channel audio information includes information such as the number of channels, the sampling rate, and the number of sampling bits.

And S220, the main intelligent sound box splits the multi-channel audio data into a plurality of single-channel audio data.

Specifically, after acquiring the multi-channel audio data, the main smart speaker decodes the multi-channel audio data according to a decoding method negotiated during connection and splits the multi-channel audio data into mono audio data, for example, the decoding method of the main smart speaker may be one of SBC, AAC, LDAC, and the like, and the main smart speaker may perform channel stripping according to each sampling point after decoding the multi-channel audio data into multi-channel PCM (pulse Code modulation) audio data, and split the multi-channel PCM audio data into mono PCM audio data.

And S230, the master intelligent sound box distributes the single-channel audio data to the slave intelligent sound boxes.

Specifically, after obtaining the monaural PCM audio data, the master smart speaker may retain one of the monaural PCM audio data, compress the other monaural PCM audio data, and transmit the compressed monaural PCM audio data to each of the slave smart speakers through user datagram protocol network communication.

According to another embodiment of the present invention, when the number of the monaural audio data is greater than the number of the master smart speakers and the number of the slave smart speakers, one of the plurality of the monaural audio data can be dynamically mixed according to the audio capability of the slave smart speakers to be transmitted by selecting the slave smart speakers, where the audio capability may include one or more of the position of the slave smart speakers, a preset volume, and the like. Therefore, the spatial stereoscopy of the multi-channel audio is ensured, and the user experience is improved.

And S240, synchronously playing the stored single-track audio data by the master intelligent sound box and the slave intelligent sound boxes.

Specifically, the slave smart speaker may decode the received monaural audio data into PCM data and then play the stored monaural audio data in synchronization with the master smart speaker.

Furthermore, since the device needs to be used in a wireless network, when an audio control command sent by the mobile phone is forwarded to other second electronic devices by the first electronic device, it is inevitable that network transmission delay occurs to cause asynchronous playing of the master and slave smart speakers. Therefore, the master smart speaker can calibrate the network delay for transmitting the monaural audio data to the slave smart speaker, and delay the playing time of the reserved monaural audio data according to the network delay time, so that after the slave smart speaker receives other monaural audio data, the slave smart speaker simultaneously plays the stored monaural audio data. Therefore, the master intelligent sound box and the slave intelligent sound boxes can be played synchronously, and the listening experience of a user is ensured.

In addition, the present application also discloses an electronic device, which is used for connecting with other electronic devices, as shown in fig. 3, and includes:

a bluetooth module 310 for receiving multi-channel audio data;

a multi-channel audio splitting module 320, configured to split the multi-channel audio data into multiple pieces of mono audio data, and reserve one piece of mono audio data in the multiple pieces of mono audio data;

a WiFi module 330 for connecting with a plurality of other electronic devices to transmit other mono audio data;

the synchronous playing module 340 is configured to control the electronic device to synchronously play the stored monaural audio data with other electronic devices;

and a delay calibration module 350, configured to calibrate the network delay time by the other electronic device.

In one embodiment of the present invention, the bluetooth module 310 is further configured to: and analyzing the multi-channel audio data to acquire audio information of the multi-channel audio data and sending the audio information to each electronic device.

Further, the audio information includes one or more of a number of channels, a sampling rate, and the like.

Further, the multi-channel audio splitting module 320 is configured to: and when the number of the single-channel audio data is more than that of the electronic equipment, mixing the excessive single-channel audio data according to the audio capacity of the electronic equipment, and then selecting one of the electronic equipment for transmission.

Further, the delay calibration module 350 is configured to: and delaying the playing time of the reserved single-channel audio data according to the network delay time, so that after other electronic equipment receives other single-channel audio data, the electronic equipment and other electronic equipment simultaneously play the respectively stored single-channel audio data.

The work flow and the function of each device in the electronic device according to the embodiment of the present invention have been described in detail in the above embodiments, and specifically refer to the description in the method in fig. 2 of the above embodiments, which is not described herein again.

In addition, the present application also discloses a bluetooth multi-channel audio playing system, as shown in fig. 4, including:

the electronic device 410 is the above-mentioned electronic device, and may be a sound box, a personal computer, or an electronic device such as a watch and a bracelet wearing the device, which is only used as an exemplary illustration here and is not used as a limitation of the present application;

and the audio equipment 420 is connected with the electronic equipment and used for transmitting multi-channel audio data.

The work flow and the function of each device in the electronic apparatus according to the embodiment of the present invention have been described in detail in the above embodiment, and specifically refer to the description in the method in fig. 2 of the above embodiment, which is not described herein again.

Referring now to fig. 5, shown is a block diagram of a SoC (System on Chip) 1300 in accordance with an embodiment of the present application. In fig. 5, similar components have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. In fig. 5, SoC1300 includes: an interconnect unit 1350 coupled to the application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a set or one or more coprocessors 1320 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a Static Random Access Memory (SRAM) unit 1330; a Direct Memory Access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like.

Included in Static Random Access Memory (SRAM) unit 1330 may be one or more computer-readable media for storing data and/or instructions. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, the Soc1300 may execute the calculation method according to the foregoing embodiment, which specifically refers to the method shown in fig. 2 in the foregoing embodiment, and is not described herein again.

While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种扬声器振膜和扬声器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!