CN109461450A - Transmission method, system, storage medium and the bluetooth headset of audio data - Google Patents
Transmission method, system, storage medium and the bluetooth headset of audio data Download PDFInfo
- Publication number
- CN109461450A CN109461450A CN201811296001.XA CN201811296001A CN109461450A CN 109461450 A CN109461450 A CN 109461450A CN 201811296001 A CN201811296001 A CN 201811296001A CN 109461450 A CN109461450 A CN 109461450A
- Authority
- CN
- China
- Prior art keywords
- audio data
- earphone
- bitpool value
- bitpool
- transmission
- 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.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 189
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000001514 detection method Methods 0.000 claims abstract description 23
- 238000004590 computer program Methods 0.000 claims description 13
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000006835 compression Effects 0.000 abstract description 18
- 238000007906 compression Methods 0.000 abstract description 18
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000007423 decrease Effects 0.000 description 6
- 230000007613 environmental effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/008—Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0015—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of transmission method of audio data, system, storage medium and bluetooth headsets, method includes: whether the stored audio data of detection meets the first predetermined storage condition, wherein, the first predetermined storage condition is used to indicate the reliability of current Bluetooth transmission environment;In the case where not meeting the first predetermined storage condition, the first predictive encoding compression ratio for transmitting audio data is adjusted to the second predictive encoding compression ratio, wherein the second predictive encoding compression ratio is greater than the first predictive encoding compression ratio;Audio data is transmitted according to the second predictive encoding compression ratio.The present invention dynamically adjusts the bitpool value of SBC according to the state of stored audio data, and then it realizes and still is able to stablize when Bluetooth transmission environment is unreliable, continuously transmit audio data, guarantee the phenomenon that user will not experience sound Caton, the performance of bluetooth equipment is improved, preferable user experience has also been obtained.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a system, a storage medium, and a bluetooth headset for transmitting audio data.
Background
The existing TWS earphone is a common working mode that a main earphone is connected with an intelligent device and a slave earphone simultaneously through a Bluetooth 1-to-2 technology, the intelligent device sends audio data of left and right sound channels to the main earphone simultaneously, the main earphone keeps the audio data of one sound channel, sends the audio data of two sound channels or the other sound channel to the slave earphone, and then controls the two sound channels to be played simultaneously through a synchronization mechanism.
In order to maintain the audio quality as much as possible, the compression rate of the audio data transmitted between the smart device and the master and slave earphones is lower. However, in order to achieve a lower audio encoding compression rate, more bluetooth data needs to be transmitted between the handset and the master and slave earphones. Under the condition of a severe transmission environment, for example, when the air interference is large, the devices are far away or the shielding is serious, the bluetooth transmission between the intelligent device and the main earphone and between the intelligent device and the main earphone are prone to error and need to be retransmitted for many times, so that the rate of the bluetooth transmission between the intelligent device and the main earphone and between the.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a storage medium, and a bluetooth headset for transmitting audio data, so as to solve the following problems in the prior art: under the condition of a severe transmission environment, audio transmission between a master earphone and a slave earphone is easy to interrupt, people can easily feel the problems of jamming, interruption and the like when listening to music through the TWS earphone, and the user experience is poor.
On one hand, the embodiment of the invention provides an audio data transmission method, which is applied to a wireless Bluetooth headset and comprises the following steps: the method comprises the steps that a main earphone detects whether stored audio data meet a first preset storage condition or not, wherein the preset storage condition is used for indicating the reliability of the current Bluetooth transmission environment; under the condition that the first preset storage condition is not met, the main earphone and the intelligent equipment negotiate to reduce the bitpool value of the sub-band code SBC, and decode the received audio data according to the bitpool value negotiated with the intelligent equipment; or, under the condition that the first preset storage condition is not met, the master earphone reduces the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to the second bitpool value, encodes the audio data according to the second bitpool value, and sends the encoded audio data to the slave earphone.
In some embodiments, the master earpiece and the smart device negotiate to reduce the bitpool value of the SBC, including: the main earphone reduces the bitpool value of audio data transmitted by the intelligent equipment from the third bitpool value to a fourth bitpool value, and sends the fourth bitpool value to the intelligent equipment; or the main earphone sends an instruction of reducing the bitpool value of the transmitted audio data to the intelligent equipment.
In some embodiments, further comprising: detecting whether the stored audio data meets a second predetermined storage condition from the headset; and under the condition that the second preset storage condition is not met, the slave earphone and the master earphone negotiate to reduce the bitpool value of the SBC, and the received audio data is decoded according to the bitpool value negotiated with the master earphone.
In some embodiments, after the master earphone detects whether the stored audio data meets the first predetermined storage condition, the method further includes: under the condition of meeting the first preset storage condition, the master earphone encodes the audio data according to the first bitpool value and sends the encoded audio data to the slave earphone; the main earphone detects whether the stored audio data meets a third preset storage condition or not; under the condition that the third preset storage condition is met, the main earphone increases the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a third bitpool value; and the master earphone encodes the audio data according to the third bitpool value and sends the encoded audio data to the slave earphone.
In some embodiments, transmitting the encoded audio data to the slave headphones comprises: under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the master earphone and the intelligent equipment negotiate to reduce the bitpool value of an SBC (session initiation protocol) for compressing audio data so as to reduce transmission time slots used when the intelligent equipment and the master earphone transmit the audio data; and the main earphone transmits the coded audio data through the unused residual transmission time slot when the intelligent equipment transmits the audio data.
In some embodiments, the master earpiece detects whether the stored audio data complies with a first predetermined storage condition, including at least one of: the main earphone detects whether the data volume of the stored and unplayed audio data reaches a preset storage threshold value; the method comprises the steps that a main earphone detects whether the playing time length of stored and unplayed audio data reaches a preset playing time length; the main earphone detects whether the data volume of the audio data which are stored and not played in the current statistical period is increased relative to the data volume of the audio data stored in the previous statistical period; the master earphone determines the data amount of the audio data successfully transmitted to the slave earphone according to the playing amount of the stored audio data, and detects whether the data amount of the audio data successfully transmitted to the slave earphone and not played reaches a preset transmission threshold value.
On the other hand, an embodiment of the present invention provides an audio data transmission system, which is applied to a wireless bluetooth headset, and includes: the transmission device of the first audio data arranged on the master earphone and the transmission device of the second audio data arranged on the slave earphone; wherein, the transmission device of the first audio data comprises: the device comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether the stored audio data meets a first preset storage condition or not, and the preset storage condition is used for indicating the reliability of the current Bluetooth transmission environment; the first execution module is used for negotiating with the intelligent equipment to reduce the bitpool value of the SBC under the condition that the first preset storage condition is not met, and decoding the received audio data according to the bitpool value negotiated with the intelligent equipment; and the second execution module is used for reducing the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a second bitpool value under the condition that the first predetermined storage condition is not met, encoding the audio data according to the second bitpool value, and sending the encoded audio data to the slave earphone.
In some embodiments, the first execution module is specifically configured to: reducing the bitpool value of audio data transmitted by the intelligent equipment from a third bitpool value to a fourth bitpool value, and sending the fourth bitpool value to the intelligent equipment; or sending an instruction for reducing the bitpool value of the transmitted audio data to the intelligent equipment.
In some embodiments, the apparatus for transmitting the second audio data includes: the second detection module is used for detecting whether the stored audio data meets a second preset storage condition or not; and the third execution module is used for negotiating with the main earphone to reduce the bitpool value of the SBC under the condition that the second preset storage condition is not met, and decoding the received audio data according to the bitpool value negotiated with the main earphone.
In some embodiments, the transmitting means of the first audio data further comprises: the encoding module is used for encoding the audio data according to the first bitpool value by the master earphone under the condition that the first preset storage condition is met, and sending the encoded audio data to the slave earphone; the first detection module is further used for detecting whether the stored audio data meets a third preset storage condition; the second execution module is further configured to increase the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a third bitpool value under the condition that the third predetermined storage condition is met, encode the audio data according to the third bitpool value, and send the encoded audio data to the slave earphone.
In some embodiments, the second execution module is specifically configured to: under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the bitpool value of an SBC (session initiation protocol) for compressing audio data is reduced by negotiation with the intelligent equipment, so that the transmission time slot used when the intelligent equipment and the master earphone transmit the audio data is reduced, and the encoded audio data is transmitted through the unused residual transmission time slot when the intelligent equipment transmits the audio data.
In another aspect, an embodiment of the present invention provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the steps of the method.
In another aspect, an embodiment of the present invention provides a bluetooth headset, which at least includes a memory and a processor, where the memory stores a computer program thereon, and the processor implements the steps of the method when executing the computer program on the memory.
According to the embodiment of the invention, the coding compression rate is dynamically adjusted according to the state of the stored audio data, so that the stable and continuous transmission of the audio data can be realized when the Bluetooth transmission environment is unreliable, the phenomenon that a user feels sound blockage can not occur, the performance of the Bluetooth equipment is improved, and better user experience is obtained.
Drawings
Fig. 1 is a flowchart of a transmission method of audio data according to a first embodiment of the present invention;
fig. 2 is a first schematic structural diagram of an apparatus for transmitting audio data according to a second embodiment of the present invention;
fig. 3 is a second schematic structural diagram of an audio data transmission apparatus according to a second embodiment of the present invention;
fig. 4 is a block diagram of a transmission system of audio data according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of audio data transmission between a smart device and a host earphone via an SBC according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of audio data transmission between a master earphone and a slave earphone according to a third embodiment of the present invention by SBC encoding.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
To maintain the following description of the embodiments of the present invention clear and concise, a detailed description of known functions and known components of the invention have been omitted.
A first embodiment of the present invention provides a method for transmitting audio data, where the flow of the method is shown in fig. 1, and the method includes steps S101 to S103:
s101, the main earphone detects whether the stored audio data meets a first preset storage condition, wherein the preset storage condition is used for indicating the reliability of the current Bluetooth transmission environment.
For a bluetooth headset, there is usually a memory for storing the received audio data, e.g. a buffer with a certain capacity.
The detection process may be real-time or at a predetermined period, and the transmission of audio data is typically started before the detection is performed. If the bluetooth transmission environment is reliable, more data may be transmitted, and therefore, the data amount of the stored audio data may indicate the reliability of the current bluetooth transmission environment, of course, the first predetermined storage condition may also be another parameter as long as the reliability of the current bluetooth transmission environment can be indicated, for example, the playing duration of the stored audio data.
The first predetermined storage condition is not limited herein, and any parameter that can indicate the reliability of the current bluetooth transmission environment may be set as the first predetermined storage condition.
The operation of the master earphone for detecting whether the stored audio data meets the first predetermined storage condition is different for the first predetermined storage condition, for example, at least one of the following is included: (1) the main earphone detects whether the data volume of the stored and unplayed audio data reaches a preset storage threshold value; (2) the method comprises the steps that a main earphone detects whether the playing time length of stored and unplayed audio data reaches a preset playing time length; (3) the main earphone detects whether the data volume of the audio data which are stored and not played in the current statistical period is increased relative to the data volume of the audio data stored in the previous statistical period; (4) the master earphone determines the data amount of the audio data successfully transmitted to the slave earphone according to the play amount of the stored audio data, and detects whether the data amount of the audio data successfully transmitted to the slave earphone and not played reaches a predetermined transmission threshold.
S102, under the condition that the first preset storage condition is not met, the main earphone and the intelligent equipment negotiate to reduce the bitpool value of the SBC, and the received audio data are decoded according to the bitpool value negotiated with the intelligent equipment.
If the stored audio data detected by the main earphone is the audio data received from the intelligent device, the main earphone can negotiate with the intelligent device to reduce the bitpool value of the SBC after determining that the Bluetooth transmission environment between the current main earphone and the intelligent device is unreliable, and the smaller the bitpool value is, the larger the encoding compression ratio is, so that the intelligent device can encode the audio data according to the negotiated bitpool value, and the main earphone can decode the received audio data according to the bitpool value negotiated with the intelligent device. Of course, the transmission quality will also decrease as the bitpool value decreases, but the normal listening of the user will not be affected.
Specifically, the process of negotiating and reducing the bitpool value of the SBC by the main earphone and the smart device may include: the main earphone reduces the bitpool value of the audio data transmitted by the intelligent equipment from the third bitpool value to a fourth bitpool value, and sends the fourth bitpool value to the intelligent equipment; or the main earphone sends an instruction of reducing the bitpool value of the transmitted audio data to the intelligent equipment.
S103, under the condition that the first preset storage condition is not met, the main earphone reduces the bitpool value of the audio data SBC sent to the auxiliary earphone from the first bitpool value to the second bitpool value, encodes the audio data according to the second bitpool value, and sends the encoded audio data to the auxiliary earphone.
If the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the master earphone can directly reduce the bitpool value after determining that the Bluetooth transmission environment between the current master earphone and the current slave earphone is unreliable, the audio data is encoded according to the reduced bitpool value, and the slave earphone can decode the received audio data according to the bitpool value of the audio data sent by the master earphone.
The first predetermined storage condition may be set to different values according to different situations, for example, when the stored audio data detected by the master earphone is the audio data received from the smart device, the first predetermined storage condition may be set to be higher, and when the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the first predetermined storage condition may be set to be lower, and those skilled in the art may set the first predetermined storage condition according to actual requirements.
After the compression rate of the code is increased, the quality of the transmitted audio data is reduced, so that continuous audio data can be transmitted, and a user cannot feel the phenomenon of jamming.
According to the embodiment of the invention, the bitpool value of the SBC is dynamically obtained according to the state of the stored audio data, so that the audio data can be stably and continuously transmitted when the Bluetooth transmission environment is unreliable, the situation that a user feels no sound blockage is ensured, the performance of the Bluetooth equipment is improved, and better user experience is obtained.
For the slave earphone, there is also a storage space, so it can also dynamically adjust the bitpool value of SBC according to the state of the stored audio data like the master earphone, but since it only has the operation of receiving the audio data and does not send the audio data, the slave earphone detects whether the stored audio data meets the second predetermined storage condition. In a specific setting, the second predetermined storage condition may be whether the data amount of the stored and unplayed audio data reaches a predetermined storage threshold, or whether the playing time length of the stored and unplayed audio data reaches a predetermined playing time length, and the like, and specifically, the first predetermined storage condition of the main earphone may be referred to.
And under the condition that the second preset storage condition is not met, the slave earphone and the master earphone negotiate to reduce the bitpool value of the SBC, and the received audio data is decoded according to the bitpool value negotiated with the master earphone. The specific negotiation process is similar to the negotiation process of the master earphone and the smart device, and those skilled in the art can set the negotiation process with reference to the negotiation process of the master earphone and the smart device.
The transmission mode of the Bluetooth is different for different Bluetooth devices. Some bluetooth devices are internally provided with two sets of parallel bluetooth transceiving systems, and some bluetooth devices adopt a multiplexing transmission mode to avoid the arrangement of two sets of parallel bluetooth transceiving systems so as to reduce the cost during bluetooth transmission. Under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, if the master earphone and the slave earphone are known to be unreliable in transmission according to the storage condition, the master earphone and the intelligent equipment can negotiate to reduce the bitpool value of the SBC for compressing the audio data so as to reduce the transmission time slot used when the intelligent equipment and the master earphone transmit the audio data; and the master earphone transmits the coded audio data to the slave earphone through the unused residual transmission time slot when the intelligent equipment transmits the audio data. After further adjustment is carried out in the mode, more transmission time slots can be reserved for transmission between the master earphone and the slave earphone, and the pause feeling of the user can be reduced.
If the stored audio data meet the first preset storage condition, the current Bluetooth transmission environment is reliable, the master earphone encodes the audio data according to the first bitpool value, and sends the encoded audio data to the slave earphone; the main earphone detects whether the stored audio data meets a third preset storage condition or not; under the condition that the third preset storage condition is met, the bitpool value of the audio data SBC sent to the slave earphone is increased to a third bitpool value from the first bitpool value by the master earphone; and the master earphone encodes the audio data according to the third bitpool value and sends the encoded audio data to the slave earphone. The third predetermined storage condition and the first predetermined storage condition may be set to be the same, and are not limited herein. Through the adjustment in the mode, the audio data with higher quality can be transmitted in a more excellent state in the Bluetooth transmission environment, and the user can feel pleased in hearing.
A second embodiment of the present invention provides an audio data transmission system applied to a wireless bluetooth headset, where the structure of the system is schematically shown in fig. 2, and the system includes:
a transmission device 1 of first audio data arranged at the master earphone and a transmission device 2 of second audio data arranged at the slave earphone; the transmission device 1 for the first audio data comprises: a first detecting module 10, configured to detect whether stored audio data meets a first predetermined storage condition, where the predetermined storage condition is used to indicate reliability of a current bluetooth transmission environment; the first execution module 11 is coupled to the first detection module 10, and configured to negotiate with the intelligent device to reduce a bitpool value of the sub-band code SBC under the condition that the first predetermined storage condition is not met, and decode the received audio data according to the bitpool value negotiated with the intelligent device; and the second execution module 12 is coupled to the first detection module 10, and configured to reduce the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a second bitpool value under the condition that the first predetermined storage condition is not met, encode the audio data according to the second bitpool value, and send the encoded audio data to the slave earphone.
For a bluetooth headset, there is usually a memory for storing the received audio data, e.g. a buffer with a certain capacity.
The detection process may be real-time or at a predetermined period, and the transmission of audio data is typically started before the detection is performed. If the bluetooth transmission environment is reliable, more data may be transmitted, and therefore, the data amount of the stored audio data may indicate the reliability of the current bluetooth transmission environment, of course, the first predetermined storage condition may also be another parameter as long as the reliability of the current bluetooth transmission environment can be indicated, for example, the playing duration of the stored audio data.
The first predetermined storage condition is not limited herein, and any parameter that can indicate the reliability of the current bluetooth transmission environment may be set as the first predetermined storage condition.
For the difference of the first predetermined storage condition, the operation of the master earphone detecting whether the stored audio data meets the first predetermined storage condition is also different, and the first detecting module 10 is specifically configured to perform any one of the following operations: (1) detecting whether the data volume of the stored and unplayed audio data reaches a preset storage threshold value; (2) detecting whether the playing time length of the stored and unplayed audio data reaches a preset playing time length; (3) detecting whether the data volume of the audio data which are stored and not played in the current statistical period is increased relative to the data volume of the audio data stored in the previous statistical period; (4) the data amount of the audio data successfully transferred to the slave earphone is determined according to the play amount of the stored audio data, and it is detected whether the data amount of the audio data successfully transferred to the slave earphone and not played reaches a predetermined transmission threshold.
If the stored audio data detected by the main earphone is the audio data received from the intelligent device, the main earphone can negotiate with the intelligent device to reduce the bitpool value of the SBC after determining that the current bluetooth transmission environment is unreliable, and the smaller the bitpool value is, the larger the encoding compression ratio is, so that the intelligent device can encode the audio data according to the negotiated bitpool value, and the main earphone can decode the received audio data according to the bitpool value negotiated with the intelligent device. Of course, the transmission quality will also decrease as the bitpool value decreases, but the normal listening of the user will not be affected.
In implementation, the first execution module 11 is specifically configured to: reducing the bitpool value of the audio data transmitted by the intelligent equipment from the third bitpool value to a fourth bitpool value, and sending the fourth bitpool value to the intelligent equipment; or sending an instruction for reducing the bitpool value of the transmitted audio data to the intelligent equipment.
If the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the master earphone can directly reduce the bitpool value after determining that the current Bluetooth transmission environment is unreliable, the audio data is encoded according to the reduced bitpool value, and the slave earphone can decode the received audio data according to the bitpool value of the audio data sent by the master earphone.
The first predetermined storage condition may be set to different values according to different situations, for example, when the stored audio data detected by the master earphone is the audio data received from the smart device, the first predetermined storage condition may be set to be higher, and when the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the first predetermined storage condition may be set to be lower, and those skilled in the art may set the first predetermined storage condition according to actual requirements.
After the compression rate of the code is increased, the quality of the transmitted audio data is reduced, so that continuous audio data can be transmitted, and a user cannot feel the phenomenon of jamming.
As shown in fig. 3, the transmission device 2 for the second audio data includes: a second detecting module 20, configured to detect whether the stored audio data meets a second predetermined storage condition; and a third executing module 21, coupled to the second detecting module 20, configured to negotiate with the main earphone to reduce a bitpool value of the SBC under the condition that the second predetermined storage condition is not met, and decode the received audio data according to the bitpool value negotiated with the main earphone.
For the slave earphone, there is a storage space, so it may also dynamically set the bitpool value of the SBC according to the state of the stored audio data like the master earphone, but since it only has an operation of receiving the audio data and does not send the audio data, when specifically setting, the second predetermined storage condition may be whether the data amount of the stored and unplayed audio data reaches a predetermined storage threshold, or whether the playing duration of the stored and unplayed audio data reaches a predetermined playing duration, and specifically, the first predetermined storage condition of the master earphone may be referred to. The above specific negotiation process is similar to the negotiation process between the master earphone and the smart device, and those skilled in the art may also refer to the negotiation process between the master earphone and the smart device for setting.
The transmission apparatus 1 of the first audio data further includes: the encoding module 14 is coupled with the first detection module 10, and is configured to, under the condition that the first predetermined storage condition is met, encode the audio data according to a first bitpool value by the master earphone, and send the encoded audio data to the slave earphone; the first detection module 10 is further configured to detect whether the stored audio data meets a third predetermined storage condition; the second executing module 12 is further configured to, in a case that a third predetermined storage condition is met, increase the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a third bitpool value, encode the audio data according to the third bitpool value, and send the encoded audio data to the slave earphone. The third predetermined storage condition and the first predetermined storage condition may be set to be the same, and are not limited herein. Through the adjustment in the mode, the audio data with higher quality can be transmitted in a more excellent state in the Bluetooth transmission environment, and the user can feel pleased in hearing.
The transmission mode of the Bluetooth is different for different Bluetooth devices. Some bluetooth devices are internally provided with two sets of parallel bluetooth transceiving systems, and some bluetooth devices adopt a multiplexing transmission mode to avoid the arrangement of two sets of parallel bluetooth transceiving systems so as to reduce the cost during bluetooth transmission. Therefore, the second execution module 12 is specifically configured to: under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the bitpool value of an SBC (session initiation protocol) for compressing audio data is reduced by negotiation with the intelligent equipment, so that the transmission time slot used when the intelligent equipment and the master earphone transmit the audio data is reduced, and the encoded audio data is transmitted through the unused residual transmission time slot when the intelligent equipment transmits the audio data. After further adjustment is carried out in the mode, more transmission time slots can be reserved for transmission from the earphone, and the method is more favorable for reducing the pause feeling of the card used by a user.
A third embodiment of the present invention provides an audio data transmission system including a handset and a pair of bluetooth headsets (a master headset and a slave headset). In this embodiment, bluetooth transmission is performed between the mobile phone and the master earphone and between the master earphone and the slave earphone. The audio coding format between the handset and the main earphone, and between the main and the Sub-earphones is SBC (Sub-band coding), and the coding compression ratio is dynamically variable. And dynamically adjusting the audio coding compression ratio according to the reliability of the Bluetooth transmission between the mobile phone and the main earphone and between the main earphone and the auxiliary earphone. When the environmental conditions are good and the Bluetooth transmission between the mobile phone and the main earphone and between the main earphone and the auxiliary earphone is reliable, the coding compression rate can be reduced and the audio quality can be improved; when the environmental condition is poor and the Bluetooth transmission between the mobile phone and the main earphone and between the main earphone and the auxiliary earphone is not reliable, the coding compression ratio can be improved, and the blocking and the interruption of audio signals can be reduced.
Fig. 4 is a block diagram of the transmission system of bluetooth 1-2 according to this embodiment. The main earphone and the intelligent equipment establish Bluetooth connection, and the intelligent equipment simultaneously sends left and right channel audio data to the main earphone. The master earphone and the slave earphone are still connected in a Bluetooth connection mode, the master earphone keeps audio data of one sound channel, and the audio data of two sound channels or the audio data of the other sound channel are sent to the slave earphone.
Fig. 5 is a schematic diagram of audio data transmission between the smart device and the host earphone via the SBC. And the intelligent equipment carries out SBC coding on the audio data according to the bitpool value appointed with the main earphone. The SBC coding quality is set by the bitpool value, and approximately 1bitpool is 6-7 kbit/s. And after receiving the audio from the intelligent equipment through the Bluetooth, the main earphone performs audio SBC decoding.
Fig. 6 is a schematic diagram of audio data transmission between a master earphone and a slave earphone by SBC coding. And the main earphone carries out SBC coding on the audio data according to the bitpool value appointed by the auxiliary earphone. And after receiving the audio from the main earphone through Bluetooth, the audio SBC is decoded.
In order to deal with environmental changes and time difference of Bluetooth transmission reliability so as to prevent the earphone from playing card pause and intermittence, in the embodiment of the invention, an audio data buffer with a slightly larger capacity is arranged at the position of a master earphone and the slave earphone, and can store audio data of dozens of ms to hundreds of ms. Therefore, when the Bluetooth transmission condition is good, the audio data can be transmitted as much as possible, the audio data buffer is filled with the audio data as much as possible, and therefore when the Bluetooth transmission condition is poor, the audio playing equipment can obtain the audio data from the audio data buffer, and therefore the audio playing cannot be blocked or disconnected before the audio data in the audio data buffer is exhausted.
At the main earphone end, if the Bluetooth transmission condition between the main earphone and the intelligent equipment is poor, the main earphone can negotiate with the intelligent equipment, so that bitpool of SBC coding audio data transmitted by Bluetooth between the intelligent equipment and the main earphone is reduced, the main earphone receives the same amount of Bluetooth data corresponding to the audio data of a longer time, and the possibility that the audio playing card of the earphone is on or off is reduced. The audio data buffer can be used for representing the bluetooth transmission condition between the main earphone and the intelligent device, and when the audio data buffered in the audio data buffer is less (less than a certain threshold, such as 1/3 of the whole audio data buffer) or less for a long time, the bitpool of the audio data SBC coding can be reduced through negotiation; when the audio data buffered in the audio data buffer is more (greater than a certain threshold, such as 7/8 of the entire audio data buffer) or is more for a long time, bitpool of the audio data SBC coding can be increased through negotiation.
At the slave earphone end, if the Bluetooth transmission condition between the master earphone and the slave earphone is found to be poor, the slave earphone can negotiate with the master earphone, so that bitpool of SBC encoded audio data transmitted by the Bluetooth between the master earphone and the slave earphone is reduced, the slave earphone receives the same Bluetooth data corresponding to the audio data of a longer time, and the possibility that the audio playing of the earphone is blocked or disconnected is reduced. The audio data buffer can be used for representing the bluetooth transmission condition between the master earphone and the slave earphone, and when the audio data buffered in the audio data buffer is less (less than a certain threshold, such as 1/3 of the whole audio data buffer) or less for a long time, the bitpool of the SBC code of the audio data can be reduced through negotiation; when the audio data buffered in the audio data buffer is more (greater than a certain threshold, such as 7/8 of the entire audio data buffer) or is more for a long time, bitpool of the audio data SBC coding can be increased through negotiation.
At the master earphone end, because the left earphone and the right earphone play synchronously, and the master earphone knows the total amount of audio data which is successfully transmitted to the slave earphone, the master earphone side can also know the Bluetooth transmission condition between the master earphone and the slave earphone. If the master earphone finds that the Bluetooth transmission condition between the master earphone and the slave earphone is poor, the master earphone can reduce bitpool of SBC encoded audio data transmitted between the master earphone and the slave earphone through Bluetooth, so that the slave earphone receives the same Bluetooth data corresponding to the audio data for a longer time, and the possibility that the audio playing of the earphone is blocked or disconnected is reduced. Otherwise, bitpool of audio data SBC coding can be improved, and audio quality from the earphone side is improved. The Bluetooth transmission condition between the master earphone and the slave earphone is determined by utilizing the audio data buffer at the master earphone side, so that the slave earphone does not need to tell the master earphone to change the bitpool setting of the audio coding through Bluetooth transmission.
In the embodiment of the invention, the master earphone forwards the audio data of the intelligent equipment to the slave earphone. Sometimes, btipool of audio transmission between the intelligent device and the master earphone is inconsistent with bitpoool of audio transmission between the master earphone and the slave earphone. The audio data forwarded by the master earphone is decoded by the SBC, encoded by the SBC of different bitpools, and forwarded to the slave earphone.
In the system, two paths of Bluetooth transmission are time division multiplexing between the intelligent equipment and the main earphone and the auxiliary earphone. Between the intelligent device and the main earphone and between the main earphone and the main earphone, the bitpool of the SBC coding audio between the intelligent device and the main earphone and between the main earphone and the main earphone can be reduced at the same time as long as the Bluetooth transmission condition at any position of the two paths of audio transmission is poor.
For example, when the bluetooth transmission status between the master and slave earphones is poor, the bitpool of the bluetooth transmission between the intelligent device and the master earphone is reduced, and the bluetooth transmission data volume between the intelligent device and the master earphone is reduced, so that more transmission time slots are reserved for the data transmission between the master and slave earphones, and the audio transmission quality between the master and slave earphones is improved. Certainly, when the bluetooth transmission state between the master and slave earphones is poor, the bitpool of the bluetooth transmission between the master and slave earphones is also reduced. For another example, when the bluetooth transmission condition between the intelligent device and the main earphone is poor, the bitpool of the bluetooth transmission between the main earphone and the slave earphone is reduced, and the bluetooth transmission data volume between the main earphone and the slave earphone is reduced, so that more transmission time slots are reserved for the data transmission between the intelligent device and the main earphone, and the audio transmission quality of the intelligent device and the main earphone is improved.
Certainly, when the bluetooth transmission situation is worse between smart machine and main earphone, also need to reduce the bitpool of bluetooth transmission between smart machine and main earphone simultaneously. In this embodiment, the amount of audio data in the audio data buffer in the master and slave earphones can be used to characterize the bluetooth transmission condition between the master earphone and the smart device and the bluetooth transmission condition between the master and slave earphones.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention relates to a Bluetooth true wireless earphone system, wherein intelligent equipment sends SBC audio data to a master earphone, and the master earphone forwards the SBC audio data to a slave earphone. SBC audio transmission through Bluetooth connection between the master earphone and the slave earphone is determined according to Bluetooth transmission conditions, when the Bluetooth transmission conditions are poor, the bitpool of SBC coding audio data through Bluetooth transmission between the master earphone and the slave earphone is reduced, otherwise, the bitpool is improved. SBC audio transmission through bluetooth connection between intelligent device and the main earphone, its bitpool decides according to the bluetooth transmission situation, and when the bluetooth transmission situation is worse, reduces the bitpool of SBC code audio data through bluetooth transmission between intelligent device and the main earphone, otherwise, improves bitpool.
The Bluetooth transmission condition between the intelligent device and the main earphone is characterized according to the amount of audio data in an audio buffer of the main earphone (less than a certain threshold value and more than a certain threshold value). More audio data indicates that the Bluetooth transmission condition is better, and the other way round indicates that the transmission condition is worse. Master-slave headset bluetooth transmission conditions are characterized according to how much audio data is in the slave headset's audio buffer (less than a certain threshold and more than a certain threshold). More audio data indicates that the Bluetooth transmission condition is better, and the other way round indicates that the transmission condition is worse.
And characterizing the Bluetooth transmission condition of the master earphone and the slave earphone according to the time that the Bluetooth audio data successfully sent from the master earphone to the slave earphone is ahead of the time that the master earphone and the slave earphone play the audio data. The more time that the audio data is successfully transmitted before the audio data is being played indicates that the bluetooth transmission condition is better, otherwise, the bluetooth transmission condition is worse.
Between intelligent equipment and main earphone, principal and subordinate earphone, two way bluetooth audio transmission arbitrary departments, bluetooth transmission situation is relatively poor, can reduce intelligent equipment and main earphone simultaneously, the bitpool of the SBC code audio between the principal and subordinate earphone.
The embodiment of the invention determines the bitpool of the SBC code of the audio data according to the Bluetooth transmission condition, thus reducing pause and interruption of audio playing and simultaneously ensuring the audio playing quality when the Bluetooth transmission condition is good; according to the representation of the Bluetooth transmission condition between the main earphone and the intelligent equipment and the Bluetooth transmission condition between the main earphone and the auxiliary earphone, the audio data in the audio buffer of the main earphone and the auxiliary earphone; this is advantageous for adjusting the bitpool according to the bluetooth transmission condition for a long time (e.g., several tens of ms), and also prevents frequent adjustments of the bitpool.
A fourth embodiment of the present invention provides a storage medium storing a computer program that when executed by a processor implements steps S1 to S3 as follows:
s1, the master earphone detects whether the stored audio data meets a first predetermined storage condition, wherein the predetermined storage condition is used to indicate the reliability of the current bluetooth transmission environment.
For a bluetooth headset, there is usually a memory for storing the received audio data, e.g. a buffer with a certain capacity.
The detection process may be real-time or at a predetermined period, and the transmission of audio data is typically started before the detection is performed. If the bluetooth transmission environment is reliable, more data may be transmitted, and therefore, the data amount of the stored audio data may indicate the reliability of the current bluetooth transmission environment, of course, the first predetermined storage condition may also be another parameter as long as the reliability of the current bluetooth transmission environment can be indicated, for example, the playing duration of the stored audio data.
The first predetermined storage condition is not limited herein, and any parameter that can indicate the reliability of the current bluetooth transmission environment may be set as the first predetermined storage condition.
The operation of the master earphone for detecting whether the stored audio data meets the first predetermined storage condition is different for the first predetermined storage condition, for example, at least one of the following is included: (1) the main earphone detects whether the data volume of the stored and unplayed audio data reaches a preset storage threshold value; (2) the method comprises the steps that a main earphone detects whether the playing time length of stored and unplayed audio data reaches a preset playing time length; (3) the main earphone detects whether the data volume of the audio data which are stored and not played in the current statistical period is increased relative to the data volume of the audio data stored in the previous statistical period; (4) the master earphone determines the data amount of the audio data successfully transmitted to the slave earphone according to the play amount of the stored audio data, and detects whether the data amount of the audio data successfully transmitted to the slave earphone and not played reaches a predetermined transmission threshold.
S2, under the condition that the first preset storage condition is not met, the main earphone and the intelligent device negotiate to reduce the bitpool value of the SBC, and the received audio data is decoded according to the bitpool value negotiated with the intelligent device.
If the stored audio data detected by the main earphone is the audio data received from the intelligent device, the main earphone can negotiate with the intelligent device to reduce the bitpool value of the SBC after determining that the current bluetooth transmission environment is unreliable, and the smaller the bitpool value is, the larger the encoding compression ratio is, so that the intelligent device can encode the audio data according to the negotiated bitpool value, and the main earphone can decode the received audio data according to the bitpool value negotiated with the intelligent device. Of course, the transmission quality will also decrease as the bitpool value decreases, but the normal listening of the user will not be affected.
Specifically, when the computer program is executed by the processor to perform the step of negotiating with the host earphone and the smart device to reduce the bitpool value of the SBC, the processor specifically executes the following steps: the main earphone reduces the bitpool value of the audio data transmitted by the intelligent equipment from the third bitpool value to a fourth bitpool value, and sends the fourth bitpool value to the intelligent equipment; or sending an instruction for reducing the bitpool value of the transmitted audio data to the intelligent equipment.
S3, under the condition that the first preset storage condition is not met, the main earphone reduces the bitpool value of the audio data SBC sent to the auxiliary earphone from the first bitpool value to the second bitpool value, encodes the audio data according to the second bitpool value, and sends the encoded audio data to the auxiliary earphone.
If the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the master earphone can directly reduce the bitpool value after determining that the current Bluetooth transmission environment is unreliable, the audio data is encoded according to the reduced bitpool value, and the slave earphone can decode the received audio data according to the bitpool value of the audio data sent by the master earphone.
The first predetermined storage condition may be set to different values according to different situations, for example, when the stored audio data detected by the master earphone is the audio data received from the smart device, the first predetermined storage condition may be set to be higher, and when the stored audio data detected by the master earphone is the related audio data sent to the slave earphone, the first predetermined storage condition may be set to be lower, and those skilled in the art may set the first predetermined storage condition according to actual requirements.
After the compression rate of the code is increased, the quality of the transmitted audio data is reduced, so that continuous audio data can be transmitted, and a user cannot feel the phenomenon of jamming.
After the step of the computer program being executed by the processor to detect whether the stored audio data complies with the first predetermined storage condition, the computer program may further be executed by the processor to: under the condition of meeting a first preset storage condition, the master earphone encodes the audio data according to a first bitpool value and sends the encoded audio data to the slave earphone; the main earphone detects whether the stored audio data meets a third preset storage condition or not; under the condition that the third preset storage condition is met, the bitpool value of the audio data SBC sent to the slave earphone is increased to a third bitpool value from the first bitpool value by the master earphone; and the master earphone encodes the audio data according to the third bitpool value and sends the encoded audio data to the slave earphone.
When the computer program is executed by the processor to transmit the encoded audio data to the slave ear speaker, the processor specifically executes the following steps: under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the master earphone and the intelligent equipment negotiate to reduce the bitpool value of an SBC (session initiation protocol) for compressing audio data so as to reduce transmission time slots used when the intelligent equipment and the master earphone transmit the audio data; and the main earphone transmits the coded audio data through the unused residual transmission time slots when the intelligent equipment transmits the audio data.
In a specific implementation, the storage medium may be disposed in a bluetooth headset at least including a memory and a processor, and exists in the form of a memory, and details thereof are not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present invention with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above-described embodiments, various features may be grouped together to streamline the disclosure. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
While the embodiments of the present invention have been described in detail, the present invention is not limited to these specific embodiments, and those skilled in the art can make various modifications and modifications of the embodiments based on the concept of the present invention, which fall within the scope of the present invention as claimed.
Claims (13)
1. A transmission method of audio data is applied to a wireless Bluetooth headset, and is characterized by comprising the following steps:
the method comprises the steps that a main earphone detects whether stored audio data meet a first preset storage condition or not, wherein the preset storage condition is used for indicating the reliability of the current Bluetooth transmission environment;
under the condition that the first preset storage condition is not met, the main earphone and the intelligent equipment negotiate to reduce the bitpool value of the sub-band code SBC, and decode the received audio data according to the bitpool value negotiated with the intelligent equipment; or,
and under the condition that the first preset storage condition is not met, the master earphone reduces the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a second bitpool value, encodes the audio data according to the second bitpool value, and sends the encoded audio data to the slave earphone.
2. The transmission method of claim 1, wherein the negotiating by the master earphone and the smart device to reduce the bitpool value of the SBC comprises:
the main earphone reduces the bitpool value of audio data transmitted by the intelligent equipment from the third bitpool value to a fourth bitpool value, and sends the fourth bitpool value to the intelligent equipment;
or the main earphone sends an instruction of reducing the bitpool value of the transmitted audio data to the intelligent equipment.
3. The transmission method of claim 1, further comprising:
detecting whether the stored audio data meets a second predetermined storage condition from the headset;
and under the condition that the second preset storage condition is not met, the slave earphone and the master earphone negotiate to reduce the bitpool value of the SBC, and the received audio data is decoded according to the bitpool value negotiated with the master earphone.
4. The transmission method according to claim 1, wherein after the master earphone detecting whether the stored audio data meets the first predetermined storage condition, further comprising:
under the condition of meeting the first preset storage condition, the master earphone encodes the audio data according to the first bitpool value and sends the encoded audio data to the slave earphone;
the main earphone detects whether the stored audio data meets a third preset storage condition or not;
under the condition that the third preset storage condition is met, the main earphone increases the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a third bitpool value;
and the master earphone encodes the audio data according to the third bitpool value and sends the encoded audio data to the slave earphone.
5. The transmission method of claim 1, wherein transmitting the encoded audio data to a slave headset comprises:
under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the master earphone and the intelligent equipment negotiate to reduce the bitpool value of an SBC (session initiation protocol) for compressing audio data so as to reduce transmission time slots used when the intelligent equipment and the master earphone transmit the audio data;
and the main earphone transmits the coded audio data through the unused residual transmission time slot when the intelligent equipment transmits the audio data.
6. The transmission method according to any one of claims 1 to 5, wherein the master earphone detecting whether the stored audio data complies with a first predetermined storage condition comprises at least one of:
the main earphone detects whether the data volume of the stored and unplayed audio data reaches a preset storage threshold value;
the method comprises the steps that a main earphone detects whether the playing time length of stored and unplayed audio data reaches a preset playing time length;
the main earphone detects whether the data volume of the audio data which are stored and not played in the current statistical period is increased relative to the data volume of the audio data stored in the previous statistical period;
the master earphone determines the data amount of the audio data successfully transmitted to the slave earphone according to the playing amount of the stored audio data, and detects whether the data amount of the audio data successfully transmitted to the slave earphone and not played reaches a preset transmission threshold value.
7. A transmission system of audio data is applied to a wireless Bluetooth headset, and is characterized by comprising:
the transmission device of the first audio data arranged on the master earphone and the transmission device of the second audio data arranged on the slave earphone;
wherein, the transmission device of the first audio data comprises:
the device comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether the stored audio data meets a first preset storage condition or not, and the preset storage condition is used for indicating the reliability of the current Bluetooth transmission environment;
the first execution module is used for negotiating with the intelligent equipment to reduce the bitpool value of the SBC under the condition that the first preset storage condition is not met, and decoding the received audio data according to the bitpool value negotiated with the intelligent equipment;
and the second execution module is used for reducing the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a second bitpool value under the condition that the first predetermined storage condition is not met, encoding the audio data according to the second bitpool value, and sending the encoded audio data to the slave earphone.
8. Transmission system according to claim 7,
the first execution module is specifically configured to: reducing the bitpool value of audio data transmitted by the intelligent equipment from a third bitpool value to a fourth bitpool value, and sending the fourth bitpool value to the intelligent equipment; or sending an instruction for reducing the bitpool value of the transmitted audio data to the intelligent equipment.
9. The transmission apparatus according to claim 7, wherein the transmission apparatus of the second audio data comprises:
the second detection module is used for detecting whether the stored audio data meets a second preset storage condition or not;
and the third execution module is used for negotiating with the main earphone to reduce the bitpool value of the SBC under the condition that the second preset storage condition is not met, and decoding the received audio data according to the bitpool value negotiated with the main earphone.
10. The transmission system according to claim 7, wherein the transmission means of the first audio data further comprises:
the encoding module is used for encoding the audio data according to the first bitpool value by the master earphone under the condition that the first preset storage condition is met, and sending the encoded audio data to the slave earphone;
the first detection module is further used for detecting whether the stored audio data meets a third preset storage condition;
the second execution module is further configured to increase the bitpool value of the audio data SBC sent to the slave earphone from the first bitpool value to a third bitpool value under the condition that the third predetermined storage condition is met, encode the audio data according to the third bitpool value, and send the encoded audio data to the slave earphone.
11. Transmission system according to one of the claims 7 to 10,
the second execution module is specifically configured to: under the condition that the Bluetooth transmission among the master earphone, the slave earphone and the intelligent equipment adopts a time division multiplexing transmission mode, the bitpool value of an SBC (session initiation protocol) for compressing audio data is reduced by negotiation with the intelligent equipment, so that the transmission time slot used when the intelligent equipment and the master earphone transmit the audio data is reduced, and the encoded audio data is transmitted through the unused residual transmission time slot when the intelligent equipment transmits the audio data.
12. A storage medium storing a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
13. A Bluetooth headset comprising at least a memory, a processor, the memory having a computer program stored thereon, characterized in that the processor, when executing the computer program on the memory, carries out the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811296001.XA CN109461450B (en) | 2018-11-01 | 2018-11-01 | Audio data transmission method, system, storage medium and Bluetooth headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811296001.XA CN109461450B (en) | 2018-11-01 | 2018-11-01 | Audio data transmission method, system, storage medium and Bluetooth headset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109461450A true CN109461450A (en) | 2019-03-12 |
CN109461450B CN109461450B (en) | 2022-04-08 |
Family
ID=65609130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811296001.XA Active CN109461450B (en) | 2018-11-01 | 2018-11-01 | Audio data transmission method, system, storage medium and Bluetooth headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109461450B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110265043A (en) * | 2019-06-03 | 2019-09-20 | 同响科技股份有限公司 | Adaptively damage or lossless message compression and decompression calculation method |
CN111132112A (en) * | 2019-12-30 | 2020-05-08 | 深圳Tcl数字技术有限公司 | Bluetooth audio transmission adjusting method, smart television and readable storage medium |
CN112073878A (en) * | 2020-09-15 | 2020-12-11 | 北京字节跳动网络技术有限公司 | Control method and device of audio equipment, audio equipment and storage medium |
CN112788494A (en) * | 2021-02-09 | 2021-05-11 | 维沃移动通信有限公司 | Earphone control method, device, equipment and medium |
CN113128692A (en) * | 2019-12-31 | 2021-07-16 | 北京超星未来科技有限公司 | Method, device and system for acquiring and processing data in wireless distributed machine learning |
CN114650523A (en) * | 2020-12-18 | 2022-06-21 | 合肥炬芯智能科技有限公司 | Bluetooth communication method and device |
CN115174538A (en) * | 2022-06-30 | 2022-10-11 | Oppo广东移动通信有限公司 | Data transmission method and device, electronic equipment and computer readable medium |
WO2024139851A1 (en) * | 2022-12-30 | 2024-07-04 | 华为技术有限公司 | Audio stream transmission method and apparatus, and terminal device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090298431A1 (en) * | 2008-05-30 | 2009-12-03 | Rasmussen Crilles Bak | Low latency, high quality link for audio transmission |
US20140270235A1 (en) * | 2013-03-13 | 2014-09-18 | Leviton Manufacturing Co., Inc. | Universal in-wall multi-room wireless audio and multi-room wireless communication system |
CN107170460A (en) * | 2017-06-30 | 2017-09-15 | 深圳Tcl新技术有限公司 | Sound quality adjusting method, system, host side and storage medium |
US20180035246A1 (en) * | 2016-08-01 | 2018-02-01 | Bose Corporation | Transmitting audio over a wireless link |
CN108389583A (en) * | 2018-07-04 | 2018-08-10 | 恒玄科技(上海)有限公司 | A kind of coding/decoding method and system of wireless Bluetooth headsets communication audio |
-
2018
- 2018-11-01 CN CN201811296001.XA patent/CN109461450B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090298431A1 (en) * | 2008-05-30 | 2009-12-03 | Rasmussen Crilles Bak | Low latency, high quality link for audio transmission |
US20140270235A1 (en) * | 2013-03-13 | 2014-09-18 | Leviton Manufacturing Co., Inc. | Universal in-wall multi-room wireless audio and multi-room wireless communication system |
US20180035246A1 (en) * | 2016-08-01 | 2018-02-01 | Bose Corporation | Transmitting audio over a wireless link |
CN107170460A (en) * | 2017-06-30 | 2017-09-15 | 深圳Tcl新技术有限公司 | Sound quality adjusting method, system, host side and storage medium |
CN108389583A (en) * | 2018-07-04 | 2018-08-10 | 恒玄科技(上海)有限公司 | A kind of coding/decoding method and system of wireless Bluetooth headsets communication audio |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110265043A (en) * | 2019-06-03 | 2019-09-20 | 同响科技股份有限公司 | Adaptively damage or lossless message compression and decompression calculation method |
CN110265043B (en) * | 2019-06-03 | 2021-06-01 | 同响科技股份有限公司 | Adaptive lossy or lossless audio compression and decompression calculation method |
CN111132112A (en) * | 2019-12-30 | 2020-05-08 | 深圳Tcl数字技术有限公司 | Bluetooth audio transmission adjusting method, smart television and readable storage medium |
CN111132112B (en) * | 2019-12-30 | 2024-08-20 | 深圳Tcl数字技术有限公司 | Bluetooth audio transmission adjustment method, intelligent television and readable storage medium |
CN113128692A (en) * | 2019-12-31 | 2021-07-16 | 北京超星未来科技有限公司 | Method, device and system for acquiring and processing data in wireless distributed machine learning |
CN113128692B (en) * | 2019-12-31 | 2024-04-09 | 北京超星未来科技有限公司 | Method, device and system for data acquisition processing in wireless distributed machine learning |
CN112073878A (en) * | 2020-09-15 | 2020-12-11 | 北京字节跳动网络技术有限公司 | Control method and device of audio equipment, audio equipment and storage medium |
CN112073878B (en) * | 2020-09-15 | 2022-02-22 | 北京字节跳动网络技术有限公司 | Control method and device of audio equipment, audio equipment and storage medium |
CN114650523B (en) * | 2020-12-18 | 2023-04-07 | 合肥炬芯智能科技有限公司 | Bluetooth communication method and device |
CN114650523A (en) * | 2020-12-18 | 2022-06-21 | 合肥炬芯智能科技有限公司 | Bluetooth communication method and device |
CN112788494A (en) * | 2021-02-09 | 2021-05-11 | 维沃移动通信有限公司 | Earphone control method, device, equipment and medium |
CN115174538A (en) * | 2022-06-30 | 2022-10-11 | Oppo广东移动通信有限公司 | Data transmission method and device, electronic equipment and computer readable medium |
CN115174538B (en) * | 2022-06-30 | 2024-08-13 | Oppo广东移动通信有限公司 | Data transmission method, device, electronic equipment and computer readable medium |
WO2024139851A1 (en) * | 2022-12-30 | 2024-07-04 | 华为技术有限公司 | Audio stream transmission method and apparatus, and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN109461450B (en) | 2022-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109461450B (en) | Audio data transmission method, system, storage medium and Bluetooth headset | |
CN111869142B (en) | Data transmission method, device, equipment, system and medium | |
CN108718467B (en) | Voice data transmission method, wireless headset and TWS headset | |
CN110913375B (en) | Wireless communication system and equipment | |
US10007479B2 (en) | User terminal, method for playing audio data via bluetooth, and digital signal processor | |
CN114026896B (en) | Method for managing a plurality of multimedia communication links in a point-to-multipoint bluetooth network | |
CN111343526B (en) | Wireless communication method of sound box assembly and sound box assembly for wireless communication | |
CN110460931A (en) | Method, bluetooth headset and the storage medium of call are realized based on bluetooth headset | |
EP3273705B1 (en) | Controlling bluetooth multimedia devices | |
US20180035246A1 (en) | Transmitting audio over a wireless link | |
US20140376754A1 (en) | Method, apparatus, and manufacture for wireless immersive audio transmission | |
US11568882B2 (en) | Inter-channel phase difference parameter encoding method and apparatus | |
US20220007201A1 (en) | Communication device using two wireless protocols | |
CN113453114B (en) | Encoding control method, encoding control device, wireless headset and storage medium | |
EP4086899A1 (en) | Audio transmission method and electronic device | |
CN111436046A (en) | Bluetooth-based audio data providing method and device, charging equipment and system | |
CN112530444A (en) | Audio encoding method and apparatus | |
CN115174538A (en) | Data transmission method and device, electronic equipment and computer readable medium | |
CN110366752B (en) | Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit | |
EP2869663B1 (en) | Apparatus and method for improving communication quality of radio | |
JP2007096982A (en) | Information transmitting apparatus, transmission condition control method and recording medium | |
EP2424159A1 (en) | Information transmission apparatus, information transmission method, and computer readable medium | |
CN110989966B (en) | Audio data processing method and device and electronic device | |
US20240155711A1 (en) | Link margin improvements using a variable physical layer symbol rate | |
CN116887408A (en) | Audio transmission method, system and related equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 201306 room 904, No. 800, Huanhu West 2nd Road, Lingang New Area, free trade Experimental Zone, Pudong New Area, Shanghai Applicant after: Hengxuan Technology (Shanghai) Co., Ltd Address before: 201203 Shanghai Pudong New Area Jinke Road 2889 Lane Changtai Plaza B Block 201 Applicant before: Heng Xuan Technology (Shanghai) Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |