CN112423197A - Method and device for realizing multipath Bluetooth audio output - Google Patents

Method and device for realizing multipath Bluetooth audio output Download PDF

Info

Publication number
CN112423197A
CN112423197A CN202011301975.XA CN202011301975A CN112423197A CN 112423197 A CN112423197 A CN 112423197A CN 202011301975 A CN202011301975 A CN 202011301975A CN 112423197 A CN112423197 A CN 112423197A
Authority
CN
China
Prior art keywords
audio
bluetooth
audio data
intelligent terminal
playing devices
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
CN202011301975.XA
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202011301975.XA priority Critical patent/CN112423197A/en
Publication of CN112423197A publication Critical patent/CN112423197A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Landscapes

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

Abstract

The invention relates to the technical field of audio playing, aims to solve the problem that the existing intelligent terminal cannot simultaneously output multiple paths of Bluetooth audio, and provides a method and a device for realizing the output of multiple paths of Bluetooth audio, wherein the main technical concept is as follows: determining the number N of paths needing to simultaneously output Bluetooth audio, wherein N is a natural number greater than 1; acquiring audio data sent by an intelligent terminal, and processing the audio data to enable the bandwidth occupied by audio data transmission to be less than 1/N of the maximum bandwidth of Bluetooth; the processed audio data are copied into N parts, and the copied audio data are correspondingly sent to N audio playing devices which are connected with the intelligent terminal in a Bluetooth mode; and the audio playing equipment synchronously plays the received audio data. The invention realizes the simultaneous output of multiple paths of Bluetooth audios and is suitable for the intelligent television.

Description

Method and device for realizing multipath Bluetooth audio output
Technical Field
The invention relates to the technical field of audio playing, in particular to a method and a device for realizing multi-channel Bluetooth audio output.
Background
The current wireless connection's bluetooth speaker uses and constantly popularizes owing to do not have the restriction of connecting wire and convenient to use's advantage. However, in the prior art, although the intelligent terminal can be connected to a plurality of bluetooth devices simultaneously, according to the standard classic bluetooth protocol, only one path of bluetooth audio can be output due to the limitation of bluetooth bandwidth. This makes the user experience poor, for example, the home theater system with smart tv as the center in the user's home, because two bluetooth speakers cannot be connected at the same time to output audio, the home theater sound effect is greatly reduced.
Disclosure of Invention
The invention aims to solve the problem that the existing intelligent terminal cannot simultaneously output multiple paths of Bluetooth audios, and provides a method and a device for realizing the multiple paths of Bluetooth audio outputs.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for realizing multi-channel Bluetooth audio output is applied to an intelligent terminal and comprises the following steps:
step 1, determining the number N of paths needing to simultaneously output Bluetooth audios, wherein N is a natural number greater than 1;
step 2, acquiring audio data sent by the intelligent terminal, and processing the audio data to enable the bandwidth occupied by audio data transmission to be smaller than 1/N of the maximum bandwidth of the Bluetooth;
step 3, copying the processed audio data into N parts, and correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth;
and 4, synchronously playing the received audio data by the audio playing equipment.
Further, in step 2, the processing the audio data includes:
and carrying out coding compression on the audio data, and reducing the coding rate during the coding compression so that the bandwidth occupied by the audio data transmission after the coding compression is less than 1/N of the maximum bandwidth of the Bluetooth.
Further, in step 1, the method for determining the number of channels N for which bluetooth audio output is required to be performed simultaneously includes:
and determining the number of audio playing devices which establish Bluetooth connection with the intelligent terminal at the same time, and taking the number of the audio playing devices as the number N of paths needing to output Bluetooth audio at the same time.
Further, the method also comprises the following steps: when the number of the audio playing devices which establish the Bluetooth connection with the intelligent terminal is larger than 2, the Bluetooth connection between all the audio playing devices except the two audio playing devices which are connected latest and the mobile terminal is automatically disconnected according to the connection sequence.
Further, in step 1, the method for determining the number of channels N for which bluetooth audio output needs to be performed simultaneously further includes:
and receiving the path number N sent by the intelligent terminal, and taking the path number N as the path number N needing to simultaneously output the Bluetooth audio.
The invention also provides a device for realizing multi-channel Bluetooth audio output, which is applied to an intelligent terminal and comprises: a determination unit, a processing unit and a copying unit;
the determining unit is used for determining the number N of paths needing to simultaneously output the Bluetooth audio, wherein N is a natural number greater than 1;
the processing unit is used for acquiring audio data sent by the intelligent terminal and processing the audio data, so that the bandwidth occupied by audio data transmission is less than 1/N of the maximum bandwidth of the Bluetooth;
the copying unit is used for copying the processed audio data into N parts, correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth, and synchronously playing the received audio data by the audio playing devices.
Further, the processing unit is further configured to:
and carrying out coding compression on the audio data, and reducing the coding rate during the coding compression so that the bandwidth occupied by the audio data transmission after the coding compression is less than 1/N of the maximum bandwidth of the Bluetooth.
Further, the determining unit is further configured to:
and determining the number of audio playing devices which establish Bluetooth connection with the intelligent terminal at the same time, and taking the number of the audio playing devices as the number N of paths needing to output Bluetooth audio at the same time.
Further, the method also comprises the following steps: a connection unit;
the connection unit is used for automatically disconnecting the Bluetooth connection between all the audio playing devices except the two audio playing devices which are newly connected and the mobile terminal according to the connection sequence when the number of the audio playing devices which establish the Bluetooth connection with the intelligent terminal is larger than 2.
Further, in step 1, the determining unit is further configured to:
and receiving the path number N sent by the intelligent terminal, and taking the path number N as the path number N needing to simultaneously output the Bluetooth audio.
The invention has the beneficial effects that: according to the method and the device for realizing the output of the multi-channel Bluetooth audio, the audio signal sent by the intelligent terminal is processed, so that the bandwidth required by the transmission of the audio signal is reduced, the simultaneous output of the multi-channel Bluetooth audio is realized, the stereo effect is simulated, and the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for implementing multiple bluetooth audio outputs according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for implementing multiple bluetooth audio outputs according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The invention aims to solve the problem that in the prior art, due to the limitation of Bluetooth bandwidth, multi-channel Bluetooth audio signal transmission cannot be carried out simultaneously, and provides a method and a device for realizing multi-channel Bluetooth audio output, wherein the main technical concept is as follows: determining the number N of paths needing to simultaneously output Bluetooth audio, wherein N is a natural number greater than 1; acquiring audio data sent by an intelligent terminal, and processing the audio data to enable the bandwidth occupied by audio data transmission to be less than 1/N of the maximum bandwidth of Bluetooth; the processed audio data are copied into N parts, and the copied audio data are correspondingly sent to N audio playing devices which are connected with the intelligent terminal in a Bluetooth mode; and the audio playing equipment synchronously plays the received audio data.
Firstly, establishing Bluetooth connection between an intelligent terminal and a plurality of audio playing devices, and determining the number of paths of Bluetooth audio output required to be performed simultaneously, namely determining that a user needs to perform output of a plurality of paths of Bluetooth audio simultaneously; after the intelligent terminal sends the audio data, the audio data sent by the intelligent terminal is processed, the bandwidth occupied by the transmission of the audio data is reduced, and the reduction degree determines the number of paths of Bluetooth audio output according to the requirement; then copying the processed audio data, wherein the number of copies corresponds to the number of paths needing to simultaneously output the Bluetooth audio; and finally, correspondingly sending the copied audio data to corresponding audio playing equipment, and after receiving the audio data, the audio playing equipment decodes and synchronously plays the audio data to simulate the stereo effect.
Examples
The method for realizing the multi-channel Bluetooth audio output is applied to an intelligent terminal, wherein the intelligent terminal can be an intelligent terminal with a Bluetooth communication module and an audio playing function, such as an intelligent mobile phone, an intelligent television, a tablet personal computer and the like, the intelligent terminal establishes Bluetooth communication with a plurality of audio playing devices through the Bluetooth communication module, and the audio playing devices can be Bluetooth sound boxes. As shown in fig. 1, the method comprises the steps of:
step S1, determining the number N of paths needing to simultaneously output Bluetooth audio, wherein N is a natural number greater than 1;
the method for determining the number N of the paths needing to simultaneously output the Bluetooth audio comprises the following steps: and determining the number of audio playing devices which establish Bluetooth connection with the intelligent terminal at the same time, and taking the number of the audio playing devices as the number N of paths needing to output Bluetooth audio at the same time.
Specifically, the number of audio playing devices which are connected with the intelligent terminal through the Bluetooth can be detected, and the number N of paths which need to output the Bluetooth audio at the same time is determined according to the detected number of the audio playing devices.
In this embodiment, the method for determining the number of channels N requiring simultaneous bluetooth audio output may further include: and receiving the path number N sent by the intelligent terminal, and taking the path number N as the path number N needing to simultaneously output the Bluetooth audio.
Specifically, the multi-channel Bluetooth audio output can be performed according to the number of channels set on the intelligent terminal by the user.
Step S2, audio data sent by the intelligent terminal are obtained and processed, so that the bandwidth occupied by audio data transmission is smaller than 1/N of the maximum bandwidth of Bluetooth;
wherein processing the audio data may include: and carrying out coding compression on the audio data, and reducing the coding rate during the coding compression so that the bandwidth occupied by the audio data transmission after the coding compression is less than 1/N of the maximum bandwidth of the Bluetooth.
And after receiving the Audio data sent by the Audio, the Bluetooth protocol stack performs coding compression, and reduces the coding rate during coding compression, thereby reducing the default tone quality effect. The code rate of the audio stream compressed by the coding is low, and the bandwidth occupied by the transmission is smaller than 1/N of the maximum bandwidth of the Bluetooth. For example, assuming that the number N of paths that need to perform bluetooth audio output at the same time is 2, the coding rate is reduced during coding compression, the bluetooth protocol stack is modified, and the value of bitpool encoded in the bluetooth a2dp protocol is changed from 53 to 33 by default, so as to reduce the coding rate, and make the bandwidth occupied by transmission less than 50% of the maximum bandwidth of bluetooth.
S3, copying the processed audio data into N parts, and correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth;
specifically, the data audio data buffer encoded and compressed by the bluetooth protocol stack may be copied to be multiple copies, and the multiple audio data obtained by copying may be correspondingly sent to multiple connected audio playing devices through the bluetooth protocol stack interface.
Step S4, the audio playing device synchronously plays the received audio data. And after receiving the sent audio data, the audio playing equipment decodes the audio data and synchronously plays the corresponding audio data.
In order to improve the sound quality and the stereo effect of the audio, in this embodiment, the number N of channels that need to simultaneously output the bluetooth audio is preferably 2. When the number of the audio playing devices which establish Bluetooth connection with the intelligent terminal is 1, entering a common mode to play audio data, and when the number of the audio playing devices which establish Bluetooth connection with the intelligent terminal is 2, entering a double-sound mode to play audio data through two audio playing devices; when the number of the audio playing devices which establish the Bluetooth connection with the intelligent terminal is larger than 2, the Bluetooth connection between all the audio playing devices except the two audio playing devices which are connected latest and the mobile terminal is automatically disconnected according to the connection sequence, and the two audio playing devices which are connected latest are used for playing the audio data.
Based on the above technical solution, this embodiment further provides a device for implementing multi-channel bluetooth audio output, which is applied to an intelligent terminal, as shown in fig. 2, and includes: a determination unit, a processing unit and a copying unit;
the determining unit is used for determining the number N of paths needing to simultaneously output the Bluetooth audio, wherein N is a natural number greater than 1;
the processing unit is used for acquiring audio data sent by the intelligent terminal and processing the audio data, so that the bandwidth occupied by audio data transmission is less than 1/N of the maximum bandwidth of the Bluetooth;
the copying unit is used for copying the processed audio data into N parts, correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth, and synchronously playing the received audio data by the audio playing devices.
It can be understood that, since the apparatus for implementing multiple bluetooth audio outputs according to the embodiment of the present invention is an apparatus for implementing the method for implementing multiple bluetooth audio outputs according to the embodiment, the apparatus disclosed in the embodiment is relatively simple in description since it corresponds to the method disclosed in the embodiment, and reference may be made to part of the description of the method for the relevant point.

Claims (10)

1. A method for realizing multi-channel Bluetooth audio output is applied to an intelligent terminal and is characterized by comprising the following steps:
step 1, determining the number N of paths needing to simultaneously output Bluetooth audios, wherein N is a natural number greater than 1;
step 2, acquiring audio data sent by the intelligent terminal, and processing the audio data to enable the bandwidth occupied by audio data transmission to be smaller than 1/N of the maximum bandwidth of the Bluetooth;
step 3, copying the processed audio data into N parts, and correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth;
and 4, synchronously playing the received audio data by the audio playing equipment.
2. The method as claimed in claim 1, wherein the step 2 of processing the audio data comprises:
and carrying out coding compression on the audio data, and reducing the coding rate during the coding compression so that the bandwidth occupied by the audio data transmission after the coding compression is less than 1/N of the maximum bandwidth of the Bluetooth.
3. The method according to claim 1, wherein the step 1 of determining the number N of the channels requiring simultaneous bluetooth audio output comprises:
and determining the number of audio playing devices which establish Bluetooth connection with the intelligent terminal at the same time, and taking the number of the audio playing devices as the number N of paths needing to output Bluetooth audio at the same time.
4. The method for implementing multiple bluetooth audio outputs according to claim 3, further comprising: when the number of the audio playing devices which establish the Bluetooth connection with the intelligent terminal is larger than 2, the Bluetooth connection between all the audio playing devices except the two audio playing devices which are connected latest and the mobile terminal is automatically disconnected according to the connection sequence.
5. The method according to claim 1, wherein the step 1 of determining the number N of the bluetooth audio outputs to be performed simultaneously further comprises:
and receiving the path number N sent by the intelligent terminal, and taking the path number N as the path number N needing to simultaneously output the Bluetooth audio.
6. A device for realizing multichannel bluetooth audio output is applied to intelligent terminal, its characterized in that includes: a determination unit, a processing unit and a copying unit;
the determining unit is used for determining the number N of paths needing to simultaneously output the Bluetooth audio, wherein N is a natural number greater than 1;
the processing unit is used for acquiring audio data sent by the intelligent terminal and processing the audio data, so that the bandwidth occupied by audio data transmission is less than 1/N of the maximum bandwidth of the Bluetooth;
the copying unit is used for copying the processed audio data into N parts, correspondingly sending the copied audio data into N audio playing devices which are connected with the intelligent terminal through Bluetooth, and synchronously playing the received audio data by the audio playing devices.
7. The apparatus for implementing multiple bluetooth audio outputs according to claim 6, wherein the processing unit is further configured to:
and carrying out coding compression on the audio data, and reducing the coding rate during the coding compression so that the bandwidth occupied by the audio data transmission after the coding compression is less than 1/N of the maximum bandwidth of the Bluetooth.
8. The apparatus for implementing multiple bluetooth audio outputs according to claim 6, wherein the determining unit is further configured to:
and determining the number of audio playing devices which establish Bluetooth connection with the intelligent terminal at the same time, and taking the number of the audio playing devices as the number N of paths needing to output Bluetooth audio at the same time.
9. The apparatus for implementing multiple bluetooth audio outputs according to claim 8, further comprising: a connection unit;
the connection unit is used for automatically disconnecting the Bluetooth connection between all the audio playing devices except the two audio playing devices which are newly connected and the mobile terminal according to the connection sequence when the number of the audio playing devices which establish the Bluetooth connection with the intelligent terminal is larger than 2.
10. The apparatus for implementing multiple bluetooth audio outputs according to claim 6, wherein in step 1, the determining unit is further configured to:
and receiving the path number N sent by the intelligent terminal, and taking the path number N as the path number N needing to simultaneously output the Bluetooth audio.
CN202011301975.XA 2020-11-19 2020-11-19 Method and device for realizing multipath Bluetooth audio output Pending CN112423197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011301975.XA CN112423197A (en) 2020-11-19 2020-11-19 Method and device for realizing multipath Bluetooth audio output

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011301975.XA CN112423197A (en) 2020-11-19 2020-11-19 Method and device for realizing multipath Bluetooth audio output

Publications (1)

Publication Number Publication Date
CN112423197A true CN112423197A (en) 2021-02-26

Family

ID=74773938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011301975.XA Pending CN112423197A (en) 2020-11-19 2020-11-19 Method and device for realizing multipath Bluetooth audio output

Country Status (1)

Country Link
CN (1) CN112423197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231692A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Video processing method and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873983A (en) * 2012-12-14 2014-06-18 上海赤炫信息科技有限公司 Design method for novel vehicle-mounted audio frequency system
JP2017188868A (en) * 2016-04-04 2017-10-12 Smc株式会社 Industrial radio communication system
CN108389583A (en) * 2018-07-04 2018-08-10 恒玄科技(上海)有限公司 A kind of coding/decoding method and system of wireless Bluetooth headsets communication audio
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN111294777A (en) * 2018-12-06 2020-06-16 海能达通信股份有限公司 Control method and communication method of Bluetooth audio transmitter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873983A (en) * 2012-12-14 2014-06-18 上海赤炫信息科技有限公司 Design method for novel vehicle-mounted audio frequency system
JP2017188868A (en) * 2016-04-04 2017-10-12 Smc株式会社 Industrial radio communication system
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN108389583A (en) * 2018-07-04 2018-08-10 恒玄科技(上海)有限公司 A kind of coding/decoding method and system of wireless Bluetooth headsets communication audio
CN111294777A (en) * 2018-12-06 2020-06-16 海能达通信股份有限公司 Control method and communication method of Bluetooth audio transmitter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231692A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Video processing method and terminal

Similar Documents

Publication Publication Date Title
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
EP3629561B1 (en) Data transmission method and system, and bluetooth headphone
CN105161121B (en) To the control method and audio transfer control of audio peripheral hardware transmission audio
CN107749299B (en) Multi-audio output method and device
CN112135285B (en) Real-time audio interaction method for multi-Bluetooth audio equipment
CN104301782A (en) Method and device for outputting audios and terminal
US20230069653A1 (en) Audio Transmission Method and Electronic Device
TW202215863A (en) Audio signal rendering method, apparatus, device and computer readable storage medium
US20220351737A1 (en) Using Non-Audio Data Embedded in an Audio Signal
CN105392032A (en) Method and apparatus for controlling multimedia playing
US11210058B2 (en) Systems and methods for providing independently variable audio outputs
CN112423197A (en) Method and device for realizing multipath Bluetooth audio output
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN110366752B (en) Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit
CN104066033A (en) Bluetooth sound box system and using method thereof
CN110662207B (en) High-quality music and voice transmission operation method based on Bluetooth
CN110891216A (en) Earphone device
US8526589B2 (en) Multi-channel telephony
CN106603855B (en) Method and system for realizing FM (frequency modulation) music transmission of mobile terminal
CN104283697A (en) Communication device and method capable of acquiring sound field information
CN111556406B (en) Audio processing method, audio processing device and earphone
CN110856068B (en) Communication method of earphone device
CN111782176A (en) Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment
CN204795592U (en) Audiphone communication system
CN116801420A (en) System for intelligent device and multichannel wireless audio playing component

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226