Audio data packet transmission method and device, equipment, medium and program product
By splitting PCM data into non-low bit and low bit data parts, and generating audio data packets to transmit non-low bit data, the problem of audio data packet transmission failure in Bluetooth headsets is solved, improving transmission efficiency and reliability.
Patent Information
- Application Number
- CN202310349512.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing Bluetooth headsets are prone to failure or retransmission during audio data packet transmission, resulting in audio stuttering or no sound, which fails to meet user needs.
The raw PCM data is split into at least two data parts in the bit width dimension, including a non-low bit data part and a low bit data part. The non-low bit data part is transmitted by generating audio data packets, while the low bit data part can be optionally encoded or discarded to reduce the amount of data transmitted.
It improves the transmission efficiency of audio data packets, reduces the amount of data transmitted, reduces the risk of packet loss caused by environmental interference, and enhances transmission reliability and audio quality.
Smart Images

Figure CN118740274A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to a method, apparatus, device, medium and program product for transmitting an audio data packet. Background Art
[0002] Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks.
[0003] In the related technology, true wireless Bluetooth headsets (True Wireless Studio, TWS) are gradually becoming popular in daily life and work, but at the same time, due to the limitation of device performance or the undesirable environment in which the device is located, audio data packet transmission failure or audio data packet retransmission may occur, resulting in audio freeze or even silence.
[0004] The current audio data packet transmission scheme is difficult to meet the needs of users. Summary of the invention
[0005] The present application provides a method, apparatus, device, medium and program product for transmitting an audio data packet. The technical solution at least includes:
[0006] According to one aspect of an embodiment of the present application, a method for transmitting an audio data packet is provided. The method is performed by a first device, and the method includes:
[0007] Get raw PCM data;
[0008] Splitting the original PCM data into at least two data parts in a bit width dimension, wherein the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0009] generating at least one audio data packet, the at least one audio data packet being used to transmit at least a non-low-order data portion;
[0010] sending at least one audio data packet to a second device;
[0011] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0012] According to another aspect of an embodiment of the present application, a method for transmitting an audio data packet is provided, the method being performed by a second device, the method comprising:
[0013] Receive at least one audio data packet sent by the first device, where the at least one audio data packet is used to transmit at least a non-low-bit data portion; wherein the first device splits the original PCM data into at least two data portions in a bit width dimension, and the at least two data portions include at least one non-low-bit data portion and at least one low-bit data portion;
[0014] Reconstructing the recovered PCM data based on at least the non-low-order data portion;
[0015] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0016] According to another aspect of an embodiment of the present application, a device for transmitting an audio data packet is provided, the device comprising:
[0017] Acquisition module, used to obtain original PCM data;
[0018] A splitting module, used for splitting the original PCM data into at least two data parts in a bit width dimension, wherein the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0019] A processing module, configured to generate at least one audio data packet, wherein the at least one audio data packet is configured to transmit at least a non-low-bit data portion;
[0020] A sending module, configured to send at least one audio data packet to a second device;
[0021] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0022] According to another aspect of an embodiment of the present application, a device for transmitting an audio data packet is provided, the device comprising:
[0023] A receiving module, configured to receive at least one audio data packet sent by a first device, wherein the at least one audio data packet is used to transmit at least a non-low-bit data portion; wherein the first device splits the original PCM data into at least two data portions in a bit width dimension, wherein the at least two data portions include at least one non-low-bit data portion and at least one low-bit data portion;
[0024] A processing module, configured to reconstruct the recovered PCM data based on at least the non-low-order data portion;
[0025] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0026] According to another aspect of an embodiment of the present application, a first device is provided, and the first device includes:
[0027] processor;
[0028] a transceiver coupled to the processor;
[0029] a memory for storing executable instructions for the processor;
[0030] The processor is configured to load and execute executable instructions to implement the audio data packet transmission method as described in the above aspects.
[0031] According to another aspect of an embodiment of the present application, a second device is provided, and the second device includes:
[0032] processor;
[0033] a transceiver coupled to the processor;
[0034] a memory for storing executable instructions for the processor;
[0035] The processor is configured to load and execute executable instructions to implement the audio data packet transmission method as described in the above aspects.
[0036] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement a method for transmitting an audio data packet as described in the above aspects.
[0037] According to another aspect of an embodiment of the present application, a computer program product (or computer program) is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that a terminal device or a network device executes the method for transmitting audio data packets as described in the above aspects.
[0038] According to another aspect of an embodiment of the present application, a chip is provided. The chip includes a programmable logic circuit and / or program instructions. When the chip is running, it is used to implement the audio data packet transmission method as described in the above aspects.
[0039] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0040] By splitting the acquired original PCM data into at least two data parts in the bit width dimension, the at least two data parts include at least one non-low-order data part and at least one low-order data part. When transmitting data through the generated audio data packet, the non-low-order data part and the low-order data part can be transmitted, or only the non-low-order data part can be transmitted, thereby reducing the amount of transmitted data and improving transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A schematic diagram of a communication system provided by an exemplary embodiment of the present application is shown;
[0043] Figure 2 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0044] Figure 3 A flowchart of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0045] Figure 4 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0046] Figure 5 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0047] Figure 6 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0048] Figure 7 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0049] Figure 8 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0050] Fig. 9 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0051] Fig.10 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0052] Fig.11 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0053] Fig.12 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0054] Fig.13A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0055] Fig.14 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0056] Fig.15 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0057] Fig.16 A schematic diagram showing a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0058] Fig.17 A schematic diagram showing the structure of an audio data packet provided by an exemplary embodiment of the present application is shown;
[0059] Fig.18 A flowchart of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown;
[0060] Fig.19 A block diagram of a transmission device for an audio data packet provided by an exemplary embodiment of the present application is shown;
[0061] Fig. 20 A block diagram of a transmission device for an audio data packet provided by an exemplary embodiment of the present application is shown;
[0062] Fig.21 A schematic structural diagram of a first device or a second device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0063] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0065] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0066] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0067] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0068] Some key terms in this application are briefly introduced as follows:
[0069] Pulse Code Modulation: A digital signal generated by sampling, quantizing and encoding a continuously changing analog signal.
[0070] Sampling rate: The number of samples extracted from a continuous signal to form a discrete signal per unit time, usually expressed in Hertz (Hz).
[0071] Sampling depth: refers to the degree of detail in recording the sound intensity during sampling. The larger this value is, the more realistic the recorded and played back sound will be. Sampling depth can also be understood as the bit width mentioned below.
[0072] Transmission bandwidth: refers to the number of bits transmitted per unit time, measured in bits per second (bps) or megabits per second (Mbps).
[0073] Figure 1 A schematic diagram of a communication system 10 provided by an exemplary embodiment of the present application is shown. The communication system 10 includes: a first device 11 and a second device 12.
[0074] The first device 11 and the second device 12 can transmit data to each other, and the first device 11 is used as a transmitting device and the second device 12 is used as a receiving device. The first device 11 can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, etc.; the second device 12 can be a wireless Bluetooth headset, a mobile phone, a tablet computer, a laptop computer, a desktop computer, a wired headset, a Bluetooth speaker, a car Bluetooth playback device, etc.
[0075] The data transmission method between the first device 11 and the second device 12 includes: at least one of Bluetooth (BlueTooth, BT) transmission, Wireless Fidelity (Wireless Fidelity, Wi-Fi) transmission, and wireless modem (cellular modem) transmission. The embodiment of the present application is not limited to this, and the Bluetooth transmission method between the first device 11 and the second device 12 is used as an example for explanation.
[0076] Exemplarily, the first device 11 transmits an audio data packet to the second device 12 based on a Bluetooth transmission mode. The first device 11 includes at least one of the following: a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless transmission module 140; the second device 12 includes at least one of the following: a wireless receiving module 150, a second PCM decoder 160, a reassembly module 170, a digital to analog converter (DAC) 181, a power amplifier (PA) 182, and a speaker 190.
[0077] In some embodiments, the splitting module 120 can be independently configured, or can be configured in the first PCM decoder 110, or can be configured in the encoder 130, or can be configured in the processor ( Figure 1 (not shown in the figure), this embodiment of the present application is not limited to this.
[0078] In some embodiments, the reassembly module 170 can be independently configured, or can be configured in the second PCM decoder 160, or can be configured in the DAC 181, or can be configured in the processor ( Figure 1 (not shown in the figure), this embodiment of the present application is not limited to this.
[0079] Bluetooth is a wireless technology standard that enables short-distance data exchange between fixed devices, mobile devices, and building personal area networks. In the related art, Bluetooth headsets are gradually becoming popular in daily life and work, but at the same time, due to the limitations of device performance or the unsatisfactory environment in which the device is located, for example, the distance of the audio transmission link between the mobile phone and the Bluetooth headset changes or is blocked by a wall, or due to interference from other frequency bands or other devices, the Bluetooth transmission rate decreases, resulting in failure to transmit audio data packets or retransmission of audio data packets, and then audio freezes or even silence. For example, the mainstream DAC performance signal-to-noise ratio (SNR) is 108 decibels. Since Y=20lg(2^X), Y is the value of SNR, and X is the size of the data in bits, the DAC can only process 18 bits of data. For 24 bits of data, the DAC can only effectively process the upper 18 bits of data, and cannot effectively process the lower 6 bits of data.
[0080] Figure 2 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11 and a second device 12 .
[0081] Step 210: The first device 11 obtains original PCM data;
[0082] In some embodiments, the original PCM data bit width is N, where N is a positive integer.
[0083] In some embodiments, taking the music playing scenario as an example, the first device 11 is provided with a first PCM decoder, and the first PCM decoder is used to perform Bluetooth decoding on the sound source file to obtain the original PCM data, and the Bluetooth decoding can be referred to as decoding;
[0084] In some embodiments, taking the call answering scenario as an example, the first device 11 obtains the original PCM data of the other party through the communication chip;
[0085] In some embodiments, taking a live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through a microphone.
[0086] Step 220: The first device 11 splits the original PCM data into at least two data parts in the bit width dimension;
[0087] In some embodiments, the splitting module in the first device 11 splits the original PCM data into at least two data parts in the bit width dimension;
[0088] In some embodiments, the at least two data portions include at least one non-low-order data portion and at least one low-order data portion, the bit width of each of the at least two data portions is less than N, and the total bit width of the at least two data portions is N;
[0089] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension. In other words, the low-order data portion is data at a low position relative to the non-low-order data portion in the bit width dimension.
[0090] In some embodiments, the non-low-order data portion includes: at least one high-order data portion and at least one middle-order data portion, and the high-order data portion is high-order data relative to the middle-order data portion in the bit width dimension.
[0091] Exemplarily, ALL=H+M+L, where ALL is original PCM data including bit widths of 24 bits, 32 bits, 16 bits, etc.
[0092] H is the high-order data part. The bit width of H ranges from 1 to ALL. H can be further divided into H1+H2+H3+…;
[0093] M is the median data part, the bit width of M ranges from 0 to ALL-H, and M can be further split into M1+M2+M3+…;
[0094] L is the low-order data part, and the bit width of L ranges from 0 to ALL-HM. L can be further split into L1+L2+L3+…
[0095] L can be set according to the performance parameters of the second device 12. For example, the SNR performance of the DAC of the second device 12 is 108 decibels, and it can only process a maximum of 18 bits of original PCM data. Then, the lower 6 bits of the 24 bits cannot be processed, and the value of L can be 6. The value of L can also be 5, 4, 3, 2, or 1, but the performance may not be as good as 6.
[0096] Exemplarily, the splitting method of 32-bit PCM data includes at least one of the following:
[0097] (1) 24 bits + 8 bits;
[0098] (2) 24 bits + 4 bits + 4 bits;
[0099] (3) 16 bits + 16 bits;
[0100] (4) 16 bits + 8 bits + 8 bits;
[0101] (5) 16 bits + 8 bits + 4 bits + 4 bits;
[0102] (6) 16 bits + 4 bits + 4 bits + 4 bits + 4 bits;
[0103] …
[0104] The 24-bit PCM data may be split in at least one of the following ways:
[0105] (1) 16 bits + 8 bits;
[0106] (2) 16 bits + 4 bits + 4 bits;
[0107] (3) 18 bits + 6 bits;
[0108] (4) 20 bits + 4 bits;
[0109] (5) 16 bits + 2 bits + 6 bits;
[0110] …
[0111] Step 230: The first device 11 generates at least one audio data packet;
[0112] In some embodiments, the wireless transmission module in the first device 11 generates at least one audio data packet.
[0113] At least one audio data packet is used to transmit at least a non-low-order data portion.
[0114] In some embodiments, at least one audio data packet is used to transmit a non-low-order data portion and a low-order data portion. In some embodiments, at least one audio data packet is used to transmit a non-low-order data portion and a low-order data portion, and retransmission is supported for the non-low-order data portion, but retransmission is not supported for the low-order data portion.
[0115] In some embodiments, at least one audio data packet transmits only a non-low-order data portion.
[0116] Step 240: The first device 11 sends at least one audio data packet to the second device 12;
[0117] In some embodiments, the first device 11 sends at least one audio data packet to the second device 12 in a wired manner; or, the first device 11 sends at least one audio data packet to the second device 12 in a wireless manner. In this application, wireless transmission is used as an example for description.
[0118] In some embodiments, the first device 11 sends at least one audio data packet to the wireless receiving module of the second device 12 in a wireless form through a wireless sending module, and the wireless form includes at least one of BT transmission, Wi-Fi transmission, and wireless modem transmission.
[0119] Step 250: The second device 12 receives at least one audio data packet sent by the first device 11;
[0120] In some embodiments, the second device 12 receives at least one audio data packet sent by the first device 11 in a wired manner; or, the second device 12 receives at least one audio data packet sent by the first device 11 in a wireless manner. In this application, wireless reception is used as an example for description.
[0121] In some embodiments, the second device 12 receives at least one audio data packet sent by the wireless sending module of the first device 11 in a wireless form through a wireless receiving module, and the wireless form includes at least one of BT transmission, Wi-Fi transmission, and wireless modem transmission.
[0122] Step 260: The second device 12 reconstructs the restored PCM data;
[0123] In some embodiments, the second device 12 reconstructs the restored PCM data through the wireless receiving module, and the restored PCM data has a bit width of N and at least includes a non-low-bit data portion of the original PCM data.
[0124] In some embodiments, the restored PCM data includes a non-low-order data portion of the original PCM data and a low-order data portion of the original PCM data. In some embodiments, the restored PCM data includes a non-low-order data portion of the original PCM data and a low-order data portion set to a predetermined value, the predetermined value being 0 or 1. In some embodiments, the restored PCM data includes a non-low-order data portion of the original PCM data.
[0125] In summary, the method provided in this embodiment splits the acquired original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-order data part and at least one low-order data part. When transmitting data through the generated audio data packet, both the non-low-order data part and the low-order data part can be transmitted, or only the non-low-order data part can be transmitted, thereby reducing the amount of transmitted data and improving transmission efficiency.
[0126] Figure 3 A flowchart of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device, and the method includes:
[0127] Step 310: Obtain original PCM data;
[0128] In some embodiments, the original PCM data bit width is N, where N is a positive integer.
[0129] In some embodiments, taking the music playing scenario as an example, the first device is provided with a first PCM decoder, and the first PCM decoder is used to perform Bluetooth decoding on the sound source file to obtain the original PCM data, and the Bluetooth decoding may be referred to as decoding;
[0130] In some embodiments, taking the call answering scenario as an example, the first device obtains the original PCM data of the other party through the communication chip;
[0131] In some embodiments, taking a live broadcast scenario as an example, the first device obtains the original PCM data of the host speaking through a microphone.
[0132] Step 320: Split the original PCM data into at least two data parts in the bit width dimension;
[0133] In some embodiments, the encoder in the first device splits the original PCM data into at least two data parts in a bit width dimension;
[0134] In some embodiments, the at least two data portions include at least one non-low-order data portion and at least one low-order data portion, the bit width of each of the at least two data portions is less than N, and the total bit width of the at least two data portions is N;
[0135] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension. In other words, the low-order data portion is data at a low position relative to the non-low-order data portion in the bit width dimension.
[0136] In some embodiments, the non-low-order data portion includes: at least one high-order data portion and at least one middle-order data portion, and the high-order data portion is high-order data relative to the middle-order data portion in the bit width dimension.
[0137] Exemplarily, ALL=H+M+L, where ALL is original PCM data including bit widths of 24 bits, 32 bits, 16 bits, etc.
[0138] H is the high-order data part. The bit width of H ranges from 1 to ALL. H can be further divided into H1+H2+H3+…;
[0139] M is the median data part, the bit width of M ranges from 0 to ALL-H, and M can be further split into M1+M2+M3+…;
[0140] L is the low-order data part, and the bit width of L ranges from 0 to ALL-HM. L can be further split into L1+L2+L3+…
[0141] L can be set according to the performance parameters of the second device 12. For example, the SNR performance of the DAC of the second device 12 is 108 decibels, and it can only process a maximum of 18 bits of original PCM data. Then, the lower 6 bits of the 24 bits cannot be processed, and the value of L can be 6. The value of L can also be 5, 4, 3, 2, or 1, but the performance may not be as good as 6.
[0142] Exemplarily, the splitting method of 32-bit PCM data includes at least one of the following:
[0143] (1) 24 bits + 8 bits;
[0144] (2) 24 bits + 4 bits + 4 bits;
[0145] (3) 16 bits + 16 bits;
[0146] (4) 16 bits + 8 bits + 8 bits;
[0147] (5) 16 bits + 8 bits + 4 bits + 4 bits;
[0148] (6) 16 bits + 4 bits + 4 bits + 4 bits + 4 bits; ...
[0149] The 24-bit PCM data may be split in at least one of the following ways:
[0150] (1) 16 bits + 8 bits;
[0151] (2) 16 bits + 4 bits + 4 bits;
[0152] (3) 18 bits + 6 bits;
[0153] (4) 20 bits + 4 bits;
[0154] (5) 16 bits + 2 bits + 6 bits; ...
[0155] In some embodiments, the at least two split data parts may be encoded or not, or may be lossy encoded at a coding rate in the range of 0%-100%, or lossless encoded. Among them, 100% corresponds to all encoding, and 0% corresponds to no encoding at all. In the case of all encoding, each data part may be encoded independently. That is, the encoding method and / or encoding rate may be different.
[0156] Exemplarily, the processing method of the low-order data portion includes at least one of the following:
[0157] 1) The low-order data part is sent normally;
[0158] Taking 24 bits being divided into 16 bits, 2 bits and 6 bits as an example, 16 bits, 2 bits and 6 bits are respectively encoded and sent as three groups of data packets, or are directly sent, or are sent with a coding rate of 0%-100%.
[0159] 2) The low-order data is supplemented with 0 or 1 and sent;
[0160] Taking 24 bits being split into 18 bits and 6 bits as an example, the 6 bits are set to 0 and the 18 bits are encoded and sent as a group of 24-bit data packets or directly sent or sent with a coding rate of 0%-100%.
[0161] 3) The low-order data is partially discarded;
[0162] For example, 24 bits are split into 16 bits, 2 bits and 6 bits. 6 bits are discarded, and 16 bits and 2 bits are independently encoded and sent as two groups of data packets, or sent directly or with a coding rate of 0%-100%.
[0163] Step 330: Generate at least one audio data packet;
[0164] In some embodiments, a wireless transmission module in the first device generates at least one audio data packet.
[0165] At least one audio data packet is used to transmit at least a non-low-bit data portion. In some embodiments, at least one audio data packet includes a non-low-bit data portion and a low-bit data portion.
[0166] In some embodiments, at least one audio data packet transmits only a non-low-order data portion.
[0167] Step 340: Send at least one audio data packet to the second device;
[0168] In some embodiments, the first device sends at least one audio data packet to the second device in a wired form; or, the first device sends at least one audio data packet to the second device in a wireless form.
[0169] In some embodiments, the first device sends at least one audio data packet to the wireless receiving module of the second device in a wireless form through a wireless sending module, and the wireless form includes at least one of BT transmission, Wi-Fi transmission, and wireless modem transmission.
[0170] In summary, the method provided in this embodiment splits the acquired original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-order data part and at least one low-order data part. When transmitting data through the generated audio data packet, both the non-low-order data part and the low-order data part can be transmitted, or only the non-low-order data part can be transmitted, thereby reducing the amount of transmitted data and improving transmission efficiency.
[0171] This embodiment also reduces the amount of transmitted data and improves transmission efficiency by not sending the low-order data part, or setting the low-order data part to 0, or filling the non-low-order data part and the low-order data part.
[0172] Based on Figure 3 In the optional embodiment, there are multiple splitting and combining methods (in no particular order):
[0173] Method 1: non-low-order data part (PCM), and low-order data part (PCM).
[0174] Figure 4 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0175] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0176] At least one audio data packet is generated based on the at least one non-lower data portion and the at least one lower data portion.
[0177] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0178] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0179] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0180] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0181] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the wireless sending module 140. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0182] The wireless transmission module 140 generates at least one audio data packet based on at least one non-low-order data portion and at least one low-order data portion. For example, the non-low-order data portion and the low-order data portion are split and packaged into multiple audio data packets according to a fixed data packet size or a dynamically determined data packet size.
[0183] Exemplarily, taking the 24-bit original PCM data 1111111100000000011110000 as an example, it is split into a 16-bit non-low-order data part 1111111100000000 and an 8-bit low-order data part 11110000, and at least one audio data packet is generated based on the non-low-order data part and the low-order data part.
[0184] Each audio data packet in at least one audio data packet is used to transmit a small piece of data (less than or equal to the audio data packet size), and the small piece of data belongs to the non-low-order data part, or the low-order data part, or the non-low-order data part and the low-order data part. The small piece of data can be sent in a fixed order, for example, the non-low-order data part is sent first and then the low-order data part; or the non-low-order data part and the low-order data part are sent alternately; or when the transmission conditions are ideal, the non-low-order data part is sent, and when the transmission conditions are not ideal, the low-order data part is sent.
[0185] In some embodiments, when an audio data packet used to transmit the low-bit data portion is lost, retransmission is not required or retransmission is not supported. For the lost audio data packet, a bit of a predetermined value may be used to replace it.
[0186] In summary, the method provided in this embodiment transmits at least one audio data packet generated based on at least one non-low-order data portion and at least one low-order data portion by splitting the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension. If the audio data packet corresponding to the low-order data portion is lost, it can be selected not to be retransmitted, thereby reducing environmental interference and reducing the amount of transmitted data.
[0187] Mode 2: non-low-order data part (PCM), and the second coded data part (low-order data part coding).
[0188] Figure 5A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0189] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0190] Encoding each low-order data part of at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part;
[0191] At least one audio data packet is generated based on the second encoded data portion and the at least one non-lower bit data portion.
[0192] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0193] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0194] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0195] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0196] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, sends at least one non-low-order data portion to the wireless transmission module 140, and sends at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0197] The encoder 130 encodes each low-order data part of the at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part, and sends the second encoded data part to the wireless sending module 140 .
[0198] In some embodiments, the low-order data portion may be lossy coded or lossless coded at a coding rate in the range of 0%-100%, wherein 100% corresponds to full coding and 0% corresponds to no coding at all.
[0199] The wireless sending module 140 generates at least one audio data packet based on the second encoded data portion and the at least one non-low-order data portion.
[0200] Exemplarily, taking the 24-bit original PCM data 1111111100000000011110000 as an example, it is split into a 16-bit non-low-bit data part 1111111100000000 and an 8-bit low-bit data part 11110000, and the low-bit data part is encoded to obtain a second encoded data part. Based on the second encoded data part and the non-low-bit data part, at least one audio data packet is generated.
[0201] Each audio data packet in at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the non-low-order data portion, or the second coded data portion, or the non-low-order data portion and the second coded data portion. The small block of data can be sent in a fixed order, for example, the non-low-order data portion is sent first and then the second coded data portion; or the non-low-order data portion and the second coded data portion are sent alternately; or when the transmission conditions are ideal, the non-low-order data portion is sent, and when the transmission conditions are not ideal, the second coded data portion is sent.
[0202] In summary, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, encodes the low-order data part to obtain a second encoded data part, transmits at least one audio data packet generated based on the at least one non-low-order data part and the second encoded data part, compresses the low-order data part, and thus reduces the amount of transmitted data.
[0203] Mode 3: The first coded data part (non-low-order data part coding), and the second coded data part (low-order data part coding).
[0204] Figure 6 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0205] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0206] Encoding each non-low-bit data portion in at least one non-low-bit data portion to obtain a first encoded data portion corresponding to each non-low-bit data portion;
[0207] Encoding each low-order data part of at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part;
[0208] generating at least one audio data packet based on the first encoded data portion and the second encoded data portion;
[0209] The audio data packet corresponding to the second encoded data portion does not support retransmission.
[0210] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0211] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0212] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0213] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0214] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0215] The encoder 130 encodes each non-low-bit data part in the at least one non-low-bit data part to obtain a first encoded data part corresponding to each non-low-bit data part, and sends the first encoded data part to the wireless sending module 140 .
[0216] The encoder 130 encodes each low-order data part of the at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part, and sends the second encoded data part to the wireless sending module 140 .
[0217] In some embodiments, the non-low-order data portion and the low-order data portion can be lossy encoded at a coding rate in the range of 0%-100%, or lossless encoded. Among them, 100% corresponds to all encoding, and 0% corresponds to no encoding at all. In the case of all encoding, each data portion can be encoded independently. That is, the encoding method and / or encoding rate can be different.
[0218] In some embodiments, the encoding rate of the non-low-order data portion is relatively low, and the encoding rate of the low-order data portion is relatively high.
[0219] The wireless transmission module 140 generates at least one audio data packet based on the first encoded data portion and the second encoded data portion;
[0220] The audio data packet corresponding to the second encoded data portion does not support retransmission.
[0221] Exemplarily, taking the 24-bit original PCM data 1111111100000000011110000 as an example, it is split into a 16-bit non-low-bit data part 1111111100000000 and an 8-bit low-bit data part 11110000, the non-low-bit data part is encoded to obtain a first encoded data part; the low-bit data part is encoded to obtain a second encoded data part. Based on the first encoded data part and the second encoded data part, at least one audio data packet is generated.
[0222] Each audio data packet in at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the first coded data part, or the second coded data part, or the first coded data part and the second coded data part. The small block of data can be sent in a fixed order, for example, the first coded data part is sent first and then the second coded data part; or the first coded data part and the second coded data part are sent alternately; or when the transmission conditions are ideal, the first coded data part is sent, and when the transmission conditions are not ideal, the second coded data part is sent.
[0223] In summary, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, encodes the non-low-order data part to obtain a first encoded data part, encodes the low-order data part to obtain a second encoded data part, transmits at least one audio data packet generated based on the first encoded data part and the second encoded data part, compresses the non-low-order data part and the low-order data part, thereby reducing the amount of transmitted data.
[0224] Mode 4: the first coded data part (non-low-order data part coding), and the low-order data part (PCM).
[0225] Figure 7 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0226] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0227] Encoding each non-low-bit data portion in at least one non-low-bit data portion to obtain a first encoded data portion corresponding to each non-low-bit data portion;
[0228] At least one audio data packet is generated based on the first encoded data portion and the at least one lower data portion.
[0229] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0230] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0231] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0232] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0233] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, sends at least one non-low-order data portion to the encoder 130, and sends at least one low-order data portion to the wireless transmission module 140. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0234] The encoder 130 encodes each non-low-bit data part in the at least one non-low-bit data part to obtain a first encoded data part corresponding to each non-low-bit data part, and sends the first encoded data part to the wireless sending module 140 .
[0235] In some embodiments, the non-low-order data portion may be lossy coded or lossless coded at a coding rate in the range of 0%-100%, wherein 100% corresponds to all coding and 0% corresponds to no coding at all.
[0236] The wireless transmission module 140 generates at least one audio data packet based on the first encoded data portion and the at least one lower-order data portion.
[0237] Exemplarily, taking the 24-bit original PCM data 1111111100000000011110000 as an example, it is split into a 16-bit non-low-bit data part 1111111100000000 and an 8-bit low-bit data part 11110000, and the non-low-bit data part is encoded to obtain a first encoded data part. Based on the first encoded data part and the low-bit data part, at least one audio data packet is generated.
[0238] Each audio data packet in at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the first coded data portion, or the low-order data portion, or the first coded data portion and the low-order data portion. The small block of data can be sent in a fixed order, for example, the first coded data portion is sent first and then the low-order data portion; or the first coded data portion and the low-order data portion are sent alternately; or the first coded data portion is sent when the transmission conditions are ideal, and the low-order data portion is sent when the transmission conditions are not ideal.
[0239] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, encodes the non-low-order data part to obtain a first encoded data part, transmits at least one audio data packet generated based on the first encoded data part and at least one low-order data part, and compresses the non-low-order data part, thereby reducing the amount of transmitted data.
[0240] Mode 5: Non-low-order data part (PCM), and not sending the low-order data part.
[0241] Figure 8 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0242] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0243] At least one audio data packet is generated based on each non-lower-order data portion of the at least one non-lower-order data portion.
[0244] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0245] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0246] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0247] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0248] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, sends at least one non-low-order data portion to the wireless transmission module 140, and sends at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0249] The encoder 130 discards at least one low-order data portion.
[0250] The wireless transmission module 140 generates at least one audio data packet based on each non-lower-bit data portion in the at least one non-lower-bit data portion.
[0251] Exemplarily, taking the 24-bit original PCM data 1111111100000000011110000 as an example, it is split into a 16-bit non-low-order data part 1111111100000000 and an 8-bit low-order data part 11110000, the low-order data part is discarded, and at least one audio data packet is generated based on the non-low-order data part.
[0252] Each audio data packet in the at least one audio data packet is used to transmit a small block of data (smaller than or equal to the audio data packet size), and the small block of data belongs to the non-low-order data part.
[0253] To summarize, the method provided in this embodiment reduces the amount of transmitted data by splitting the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, discarding the low-order data part, transmitting at least one audio data packet generated based on at least one non-low-order data part, and not transmitting the low-order data part.
[0254] Mode six: the first coded data part (non-low-order data part coding) and the low-order data part is not sent.
[0255] Fig. 9 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0256] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0257] Each non-low-bit data portion in at least one non-low-bit data portion is encoded to obtain a first encoded data portion corresponding to each non-low-bit data portion, and at least one audio data packet is generated based on the first encoded data portion.
[0258] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0259] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0260] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0261] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0262] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0263] The encoder 130 discards at least one low-order data portion.
[0264] The encoder 130 encodes each non-low-bit data part in the at least one non-low-bit data part to obtain a first encoded data part corresponding to each non-low-bit data part, and sends the first encoded data part to the wireless sending module 140 .
[0265] The wireless transmission module 140 generates at least one audio data packet based on the first encoded data portion.
[0266] In some embodiments, the non-low-order data portion may be lossy coded or lossless coded at a coding rate in the range of 0%-100%, wherein 100% corresponds to all coding and 0% corresponds to no coding at all.
[0267] Exemplarily, taking the 24-bit original PCM data 11111111100000000011110000 as an example, it is split into a 16-bit non-low-order data part 1111111100000000 and an 8-bit low-order data part 11110000, the low-order data part is discarded, the non-low-order data part is encoded to obtain a first encoded data part, and at least one audio data packet is generated based on the first encoded data part.
[0268] Each audio data packet in the at least one audio data packet is used to transmit a small block of data (smaller than or equal to the audio data packet size), and the small block of data belongs to the first encoded data part.
[0269] To summarize, the method provided in this embodiment reduces the amount of transmitted data by splitting the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, encoding the non-low-order data part to obtain a first encoded data part, discarding the low-order data part, transmitting at least one audio data packet generated based on the first encoded data part, compressing the non-low-order data part, and not transmitting the low-order data part.
[0270] Method seven: first PCM data (non-low-order data part is supplemented to 24 bits), and second PCM data (low-order data part is supplemented to 24 bits).
[0271] Fig.10 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0272] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0273] Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data;
[0274] generating at least one audio data packet based on the first PCM data and the second PCM data;
[0275] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0276] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0277] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0278] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0279] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0280] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0281] The encoder 130 supplements bits with predetermined values based on the non-low-order data part to obtain first PCM data with a bit width of N; and supplements bits with predetermined values based on the low-order data part to obtain second PCM data with a bit width of N, and sends the first PCM data and the second PCM data to the wireless sending module 140.
[0282] The wireless transmission module 140 generates at least one audio data packet based on the first PCM data and the second PCM data;
[0283] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0284] Exemplarily, N is 24, and the 24-bit original PCM data 111111110000000011110000 is taken as an example, and is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000, and the 16-bit non-low-order data part and the 8-bit low-order data part are supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is taken as an example for explanation, the 16-bit non-low-order data part is supplemented to the 24-bit first PCM data 1111111100000000000000000, and the 8-bit low-order data part is supplemented to the 24-bit second PCM data 000000000000000011110000;
[0285] At least one audio data packet is generated based on the first PCM data and the second PCM data. Each audio data packet in the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the first PCM data, or the second PCM data, or the first PCM data and the second PCM data. The small block of data can be sent in a fixed order, for example, the first PCM data is sent first and then the second PCM data; or the first PCM data and the second PCM data are sent alternately; or when the transmission conditions are ideal, the first PCM data is sent, and when the transmission conditions are not ideal, the second PCM data is sent.
[0286] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, supplements the non-low-order data part to obtain the first PCM data, supplements the low-order data part to obtain the second PCM data, and transmits at least one audio data packet generated based on the first PCM data and the second PCM data. There is no need to improve the encoder, the encoder in the related technology can be used, and the amount of transmitted data is reduced.
[0287] Mode eight: the first PCM data (the non-low-order data part is supplemented to 24 bits), and the fourth encoded data part (the low-order data part is supplemented to 24 bits and encoded).
[0288] Fig.11 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0289] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0290] Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data;
[0291] encoding the second PCM data to obtain a fourth encoded data portion;
[0292] generating at least one audio data packet based on the fourth encoded data portion and the first PCM data;
[0293] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0294] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0295] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0296] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0297] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0298] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0299] The encoder 130 supplements bits with predetermined values based on the non-low-order data part to obtain first PCM data with a bit width of N; and supplements bits with predetermined values based on the low-order data part to obtain second PCM data with a bit width of N, and sends the first PCM data to the wireless sending module 140.
[0300] The encoder 130 encodes the second PCM data to obtain a fourth encoded data portion, and sends the fourth encoded data portion to the wireless sending module 140 .
[0301] In some embodiments, the second PCM data may be lossy encoded or losslessly encoded at a coding rate in the range of 0%-100%, wherein 100% corresponds to full encoding and 0% corresponds to no encoding at all.
[0302] The wireless transmission module 140 generates at least one audio data packet based on the fourth encoded data portion and the first PCM data;
[0303] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0304] Exemplarily, N is 24, and the 24-bit original PCM data 111111110000000011110000 is taken as an example, and is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000, and the 16-bit non-low-order data part and the 8-bit low-order data part are supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is taken as an example for explanation, the 16-bit non-low-order data part is supplemented to the 24-bit first PCM data 1111111100000000000000000, and the 8-bit low-order data part is supplemented to the 24-bit second PCM data 000000000000000011110000;
[0305] encoding the second PCM data to obtain a fourth encoded data portion;
[0306] At least one audio data packet is generated based on the fourth coded data portion and the first PCM data. Each audio data packet in the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the first PCM data, or the fourth coded data portion, or the first PCM data and the fourth coded data portion. The small block of data can be sent in a fixed order, for example, the first PCM data is sent first and then the fourth coded data portion; or the first PCM data and the fourth coded data portion are sent alternately; or when the transmission conditions are ideal, the first PCM data is sent, and when the transmission conditions are not ideal, the fourth coded data portion is sent.
[0307] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, supplements the non-low-order data part to obtain the first PCM data, supplements the low-order data part to obtain the second PCM data, encodes the second PCM data to obtain the fourth encoded data part, and transmits at least one audio data packet generated based on the first PCM data and the fourth encoded data part. There is no need to improve the encoder, and the encoder in the related technology can be used. The second PCM data is compressed, thereby reducing the amount of transmitted data.
[0308] Mode nine: the third coded data part (the non-low-order data part is supplemented to 24 bits and encoded), and the fourth coded data part (the low-order data part is supplemented to 24 bits and encoded).
[0309] Fig.12 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0310] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0311] Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data;
[0312] encoding the first PCM data to obtain a third coded data portion; and encoding the second PCM data to obtain a fourth coded data portion;
[0313] generating at least one audio data packet based on the third encoded data portion and the fourth encoded data portion;
[0314] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0315] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0316] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0317] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0318] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0319] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0320] The encoder 130 supplements bits of predetermined values based on the non-low-order data part to obtain first PCM data with a bit width of N; and supplements bits of predetermined values based on the low-order data part to obtain second PCM data with a bit width of N.
[0321] The encoder 130 encodes the first PCM data to obtain a third encoded data portion; and encodes the second PCM data to obtain a fourth encoded data portion, and sends the third encoded data portion and the fourth encoded data portion to the wireless sending module 140 .
[0322] In some embodiments, the first PCM data and the second PCM data may be lossy encoded at a coding rate in the range of 0%-100%, or lossless encoded. 100% corresponds to full encoding, and 0% corresponds to no encoding at all. In the case of full encoding, the first PCM data and the second PCM data may be encoded independently. That is, the encoding method and / or encoding rate may be different.
[0323] The wireless transmission module 140 generates at least one audio data packet based on the third encoded data portion and the fourth encoded data portion;
[0324] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0325] Exemplarily, N is 24, and the 24-bit original PCM data 111111110000000011110000 is taken as an example, and is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000, and the 16-bit non-low-order data part and the 8-bit low-order data part are supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is taken as an example for explanation, the 16-bit non-low-order data part is supplemented to the 24-bit first PCM data 1111111100000000000000000, and the 8-bit low-order data part is supplemented to the 24-bit second PCM data 000000000000000011110000;
[0326] encoding the first PCM data to obtain a third coded data portion; and encoding the second PCM data to obtain a fourth coded data portion;
[0327] At least one audio data packet is generated based on the third coded data portion and the fourth coded data portion. Each audio data packet in the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the third coded data portion, or the fourth coded data portion, or the third coded data portion and the fourth coded data portion. The small block of data can be sent in a fixed order, for example, the third coded data portion is sent first and then the fourth coded data portion; or the third coded data portion and the fourth coded data portion are sent alternately; or when the transmission conditions are ideal, the third coded data portion is sent, and when the transmission conditions are not ideal, the fourth coded data portion is sent.
[0328] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, and supplements the non-low-order data part to obtain the first PCM data, encodes the first PCM data to obtain the third encoded data part, supplements the low-order data part to obtain the second PCM data, encodes the second PCM data to obtain the fourth encoded data part, and transmits at least one audio data packet generated based on the third encoded data part and the fourth encoded data part. There is no need to improve the encoder, and the encoder in the related technology can be used. The first PCM data and the second PCM data are compressed, thereby reducing the amount of transmitted data.
[0329] Method 10: The third coded data part (the non-low-order data part is supplemented to 24 bits and encoded), and the second PCM data (the low-order data part is supplemented to 24 bits).
[0330] Fig.13 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0331] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0332] Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data;
[0333] encoding the first PCM data to obtain a third encoded data portion;
[0334] generating at least one audio data packet based on the second PCM data and the third encoded data portion;
[0335] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0336] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0337] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0338] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0339] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0340] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0341] The encoder 130 supplements bits with predetermined values based on the non-low-order data part to obtain first PCM data with a bit width of N; and supplements bits with predetermined values based on the low-order data part to obtain second PCM data with a bit width of N, and sends the second PCM data to the wireless sending module 140.
[0342] The encoder 130 encodes the first PCM data to obtain a third encoded data portion, and sends the third encoded data portion to the wireless sending module 140 .
[0343] In some embodiments, the first PCM data may be lossy encoded or losslessly encoded at a coding rate in the range of 0%-100%, wherein 100% corresponds to full encoding and 0% corresponds to no encoding at all.
[0344] The wireless transmission module 140 generates at least one audio data packet based on the second PCM data and the third encoded data portion;
[0345] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0346] Exemplarily, N is 24, and the 24-bit original PCM data 111111110000000011110000 is taken as an example, and is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000, and the 16-bit non-low-order data part and the 8-bit low-order data part are supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is taken as an example for explanation, the 16-bit non-low-order data part is supplemented to the 24-bit first PCM data 1111111100000000000000000, and the 8-bit low-order data part is supplemented to the 24-bit second PCM data 000000000000000011110000;
[0347] encoding the first PCM data to obtain a third encoded data portion;
[0348] At least one audio data packet is generated based on the second PCM data and the third coded data portion. Each audio data packet in the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the third coded data portion, or the second PCM data, or the third coded data portion and the second PCM data. The small block of data can be sent in a fixed order, for example, the third coded data portion is sent first and then the second PCM data; or the third coded data portion and the second PCM data are sent alternately; or when the transmission conditions are ideal, the third coded data portion is sent, and when the transmission conditions are not ideal, the second PCM data is sent.
[0349] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, and supplements the non-low-order data part to obtain the first PCM data, encodes the first PCM data to obtain the third encoded data part, supplements the low-order data part to obtain the second PCM data, and transmits at least one audio data packet generated based on the third encoded data part and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The first PCM data is compressed, reducing the amount of transmitted data.
[0350] Mode 11: The first PCM data (the non-low-order data part is supplemented to 24 bits) and the low-order data part is not sent.
[0351] Fig.14 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0352] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0353] Supplementing bits of predetermined values based on the non-low-order data portion to obtain first PCM data;
[0354] generating at least one audio data packet based on the first PCM data;
[0355] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0356] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0357] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0358] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0359] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0360] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0361] The encoder 130 supplements bits of predetermined values based on the non-low-bit data portion to obtain first PCM data with a bit width of N, and sends the first PCM data to the wireless sending module 140 .
[0362] The encoder 130 discards the lower-order data portion.
[0363] The wireless transmission module 140 generates at least one audio data packet based on the first PCM data;
[0364] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0365] Exemplarily, N is 24, and the 24-bit original PCM data 111111110000000011110000 is taken as an example, and is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000, and the 16-bit non-low-order data part is supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is taken as an example for explanation, and the 16-bit non-low-order data part is supplemented to the 24-bit first PCM data 1111111100000000000000000;
[0366] Discarding the low-order data portion, this step may be performed before the step of supplementing the bits with the predetermined values, or after the step of supplementing the bits with the predetermined values, or may be performed simultaneously with the step of supplementing the bits with the predetermined values;
[0367] At least one audio data packet is generated based on the first PCM data. Each of the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the first PCM data.
[0368] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, supplements the non-low-order data part to obtain the first PCM data, encodes the first PCM data to obtain the third encoded data part, discards the low-order data part, and transmits at least one audio data packet generated based on the first PCM. There is no need to improve the encoder, and the encoder in the related technology can be used. The low-order data part is not transmitted, thereby reducing the amount of transmitted data.
[0369] Mode 12: The third coded data part (the non-low-order data part is supplemented to 24 bits and encoded), and the low-order data part is not sent.
[0370] Fig.15 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0371] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0372] Supplementing bits of predetermined values based on the non-low-order data portion to obtain first PCM data, and encoding the first PCM data to obtain a third encoded data portion;
[0373] generating at least one audio data packet based on the third encoded data portion;
[0374] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0375] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0376] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0377] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0378] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0379] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0380] The encoder 130 supplements the bits with predetermined values based on the non-low-order data part to obtain the first PCM data with a bit width of N, and encodes the first PCM data to obtain the third encoded data part, and sends the third encoded data part to the wireless sending module 140.
[0381] In some embodiments, the first PCM data may be lossy encoded or losslessly encoded at a coding rate in the range of 0%-100%, wherein 100% corresponds to full encoding and 0% corresponds to no encoding at all.
[0382] The encoder 130 discards the lower-order data portion.
[0383] The wireless transmission module 140 generates at least one audio data packet based on the third encoded data portion;
[0384] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0385] Exemplarily, N is 24. Taking the 24-bit original PCM data 111111110000000011110000 as an example, it is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000. The 16-bit non-low-order data part is supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is used as an example for explanation. The 16-bit non-low-order data part is supplemented with the 24-bit first PCM data 1111111100000000000000000, and the first PCM data is encoded to obtain a third encoded data part.
[0386] Discarding the low-order data portion, this step may be performed before the step of supplementing the bits with the predetermined values, or after the step of supplementing the bits with the predetermined values, or may be performed simultaneously with the step of supplementing the bits with the predetermined values;
[0387] At least one audio data packet is generated based on the third encoded data portion. Each of the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), the small block of data belonging to the third encoded data portion.
[0388] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, and supplements the non-low-order data part to obtain the first PCM data, encodes the first PCM data to obtain the third encoded data part, discards the low-order data part, and transmits at least one audio data packet generated based on the third encoded data part and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The first PCM data is compressed, and the low-order data part is not transmitted, thereby reducing the amount of transmitted data.
[0389] Method thirteen: the third coded data part (the non-low-order data part is supplemented to 24 bits and encoded), and the sending part of the low-order data part.
[0390] Fig.16 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a first device 11, and the method includes:
[0391] In some embodiments, the first device 11 splits the original PCM data into at least two data parts in the bit width dimension, and the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0392] Supplementing bits of predetermined values based on the non-low-order data portion to obtain first PCM data, and encoding the first PCM data to obtain a third encoded data portion;
[0393] Selecting a data portion with a bit width of S in the low-bit data portion in order from high to low to obtain third PCM data;
[0394] generating at least one audio data packet based on the third encoded data portion and the third PCM data;
[0395] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data part and S is a positive integer.
[0396] In some embodiments, the first device 11 determines the value of S based on the current transmission bandwidth. Optionally, the current transmission bandwidth is a transmission bandwidth of wireless transmission; optionally, the current transmission bandwidth is a transmission bandwidth of Bluetooth transmission.
[0397] In some embodiments, the first device 11 determines the value of S based on a quotient of the first difference and the first bandwidth or a rounded-down value of the quotient;
[0398] Among them, the first difference is the difference between the current transmission bandwidth and the second bandwidth. The first bandwidth is the bandwidth required for transmitting the data amount corresponding to one bit in the PCM data of unit frame length, and the second bandwidth is the bandwidth required for transmitting the third encoded data part.
[0399] In some embodiments, reference Figure 1 The first device 11 includes at least one of a first PCM decoder or microphone 110, a splitting module 120, an encoder 130, and a wireless sending module 140.
[0400] Taking the music playback scenario as an example, the first device 11 obtains the original PCM data by Bluetooth decoding the sound source file through the first PCM decoder 110; taking the live broadcast scenario as an example, the first device 11 obtains the original PCM data of the host speaking through the microphone 110.
[0401] In some embodiments, after the first PCM decoder or the microphone 110 obtains the original PCM data, it sends it to the memory, and the splitting module 120 reads the original PCM data in the memory.
[0402] In some embodiments, the first PCM decoder or the microphone 110 obtains the original PCM data and sends it to the splitting module 120 .
[0403] The splitting module 120 splits the original PCM data into at least one non-low-order data portion and at least one low-order data portion in the bit width dimension, and sends the at least one non-low-order data portion and the at least one low-order data portion to the encoder 130. The splitting method can be preset or dynamically determined based on the performance parameters of the second device 12.
[0404] The encoder 130 supplements the bits with predetermined values based on the non-low-order data part to obtain the first PCM data with a bit width of N, and encodes the first PCM data to obtain the third encoded data part, and sends the third encoded data part to the wireless sending module 140.
[0405] In some embodiments, the first PCM data may be lossy encoded or losslessly encoded at a coding rate in the range of 0%-100%, wherein 100% corresponds to full encoding and 0% corresponds to no encoding at all.
[0406] The encoder 130 selects the data portion with a bit width of S in the low-bit data portion in order from high to low, obtains the third PCM data, and sends the third PCM data to the wireless sending module 140 .
[0407] The wireless transmission module 140 generates at least one audio data packet based on the third encoded data portion and the third PCM data;
[0408] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data part and S is a positive integer.
[0409] In some embodiments, the encoder 130 determines the value of S based on the current transmission bandwidth. The transmission bandwidth generally refers to the transmission rate, which refers to the number of bits transmitted per unit time, and the unit is bps or Mbps.
[0410] In some embodiments, the encoder 130 determines the value of S based on a quotient of the first difference and the first bandwidth or a rounded-down value of the quotient;
[0411] The first difference is the difference between the current transmission bandwidth and the second bandwidth, the first bandwidth is the bandwidth required for transmitting the amount of data corresponding to one bit in the PCM data of the unit frame length, and the second bandwidth is the bandwidth required for transmitting the third encoded data part. The unit frame length can be 10 milliseconds.
[0412] Exemplarily, N is 24. Taking the 24-bit original PCM data 111111110000000011110000 as an example, it is split into a 16-bit non-low-order data part 11111111000000000 and an 8-bit low-order data part 11110000. The 16-bit non-low-order data part is supplemented with bits of a predetermined value, the predetermined value is 0 or 1, and supplementing 0 is used as an example for explanation. The 16-bit non-low-order data part is supplemented with the 24-bit first PCM data 1111111100000000000000000, and the first PCM data is encoded to obtain a third encoded data part.
[0413] Selecting a data portion with a bit width of S in the low-order data portion in order from high to low, this step may be performed before the step of supplementing the bits with predetermined values, or after the step of supplementing the bits with predetermined values, or simultaneously with the step of supplementing the bits with predetermined values;
[0414] Taking the current transmission bandwidth as 4Mbps, the third encoded data part as 2Mbps, the sampling rate as 192k, and the number of channels as dual channels as an example, the first bandwidth is 192000*1*2=384000=0.384Mbps, and the bit width S=(current transmission bandwidth-second bandwidth) / first bandwidth=(4-2) / 0.384=5.2, which is rounded down to 5, that is, the high 5-bit PCM data of the third encoded data part and the low-bit data part are transmitted.
[0415] At least one audio data packet is generated based on the third coded data portion and the third PCM data. Each audio data packet in the at least one audio data packet is used to transmit a small block of data (less than or equal to the audio data packet size), and the small block of data belongs to the third coded data portion, or the third PCM data, or the third coded data portion and the third PCM data. The small block of data can be sent in a fixed order, for example, the third coded data portion is sent first and then the third PCM data; or the third coded data portion and the third PCM data are sent alternately; or when the transmission conditions are ideal, the third coded data portion and the third PCM data are sent, and when the transmission conditions are not ideal, after the third PCM data and the third PCM data fail to be sent, only the third coded data portion is retransmitted.
[0416] To summarize, the method provided in this embodiment splits the original PCM data into at least one non-low-order data part and at least one low-order data part in the bit width dimension, and supplements the non-low-order data part to obtain the first PCM data, encodes the first PCM data to obtain the third encoded data part, selects the data part with a bit width of S in the low-order data part in order from high to low to obtain the third PCM data, transmits at least one audio data packet generated based on the third encoded data part and the third PCM data, compresses the first PCM data, and does not need to improve the encoder. The encoder in the related technology can be used, and the amount of transmitted data is dynamically adjusted according to the transmission bandwidth, thereby reducing the probability of retransmission.
[0417] The method provided in this embodiment also dynamically determines the value of S according to the current transmission bandwidth, thereby greatly reducing the probability of retransmission. While ensuring transmission reliability, as much valid information as possible is transmitted to the decoding end, thereby providing high-quality audio.
[0418] For the above embodiments, the encoding method of each data part is independent of each other, that is, it can be the same or different. The encoding methods include but are not limited to: no encoding, lossless encoding, and lossy encoding. Among them, lossy encoding can be divided into one or more types according to different compression rates. In some embodiments, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossless encoding;
[0419] Or, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossy encoding;
[0420] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossless encoding;
[0421] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossy encoding.
[0422] In some embodiments, the non-low-order data portion includes: at least one high-order data portion and at least one middle-order data portion, the high-order data portion is high-order data relative to the middle-order data portion in the bit width dimension. The encoding method of the high-order data portion and the middle-order data portion includes: the encoding method of the high-order data portion is lossless encoding, and the encoding method of the middle-order data portion is lossless encoding;
[0423] Or, the encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossy encoding;
[0424] Or, the encoding method of the high-order data part is lossy encoding, and the encoding method of the middle-order data part is lossless encoding;
[0425] Alternatively, the encoding method of the high-order data portion is lossy encoding, and the encoding method of the middle-order data portion is lossy encoding.
[0426] The lossless coding includes at least one of Ultra-Resolution Lossless Codec (URLC), Apple Lossless Audio Codec (ALAC), and Free Lossless Audio Codec (FLAC);
[0427] Lossy coding includes at least one of Low-latency Hi-Definition audioCodec (LHDC), aptX lossless transmission technology (audio coding technology superior to AAC, no full name, proposed by Qualcomm), Moving Picture experts group audio layer 3 (MP3), Advanced Audio Coding (AAC), Low Complexity Communications Codec (LC3) / LC3+ (LC3 plus), Sub-Band Coding (SBC), and LDAC (certified codec for "Hi-Res Audio Wireless", no full name, produced by Sony).
[0428] In some embodiments, the first device determines how to split the original PCM data in a bit width dimension based on performance parameters of the second device.
[0429] When the performance parameter of the second device is greater than or equal to the bit width of the transmitted data, the first device may choose not to split the original PCM data or to split the original PCM data;
[0430] When the performance parameter of the second device is less than the bit width of the transmitted data, the first device selects to split the original PCM data;
[0431] Exemplarily, when the transmitted PCM data is 24 bits and the performance parameter is 24 bits, the splitting mode is determined to be 24 bits, 18 bits and 6 bits, or 16 bits and 8 bits, or 16 bits and 4 bits and 4 bits;
[0432] When the transmitted PCM data is 24 bits and the performance parameter is 18 bits, the splitting mode is determined to be 18 bits and 6 bits, or 16 bits and 8 bits, or 16 bits and 4 bits and 4 bits.
[0433] In some embodiments, the first device determines the bit width occupied by the low-order data portion in the bit width dimension based on performance parameters of the second device.
[0434] When the performance parameter of the second device is greater than or equal to the bit width of the transmitted data, the first device may select the bit width occupied by the low-order data part in the bit width dimension to be 0 or the bit width occupied by the low-order data part in the bit width dimension to be greater than 0;
[0435] When the performance parameter of the second device is less than the bit width of the transmitted data, the first device selects to split the original PCM data;
[0436] When the transmitted PCM data is 24 bits and the performance parameter is 24 bits, it is determined that the low-order data portion occupies a bit width of 0 bits, 6 bits, 8 bits, or 4 bits;
[0437] When the transmitted PCM data is 24 bits and the performance parameter is 18 bits, it is determined that the low-order data portion occupies a bit width of 6 bits, or 8 bits, or 4 bits.
[0438] In some embodiments, the first device determines a processing method for the low-order data portion before encoding based on performance parameters of the second device, and the processing method includes: discarding, setting to a predetermined value, and not processing.
[0439] Exemplarily, the first device determines, according to the performance parameters such as the model and software version number of the second device, a splitting method of the original PCM data in the bit width dimension, a bit width occupied by the low-order data part in the bit width dimension, and a processing method of the low-order data part before encoding;
[0440] In some embodiments, the first device dynamically determines how to split the original PCM data in the bit width dimension, the bit width occupied by the low-order data part in the bit width dimension, and how to process the low-order data part before encoding during use based on factors such as transmission link distance, wall blocking conditions, environmental radio frequency interference, Bluetooth received signal strength indicator (RSSI), and data retransmission rate.
[0441] In some embodiments, the processing method of the low-order data portion before encoding includes at least one of the following:
[0442] The low-order data is sent normally;
[0443] The low-order data is supplemented with 0 or 1 and sent;
[0444] The lower-order data is partially discarded.
[0445] Take the PCM data as 24 bits, the second device as headphones, and the DAC performance parameter as 18 bits as an example:
[0446] (1) The low-order data is sent normally;
[0447] 24 bits are split into 18 bits and 6 bits. The headset side can choose not to receive the data packet with the lower 6 bits and directly perform 0 or 1 processing, or not to retransmit after failing to receive the data packet with the lower 6 bits and directly perform 0 or 1 processing.
[0448] (2) The low-order data is supplemented with 0 or 1 and sent;
[0449] Filling 0 or 1 means replacing all the original values of the low-order data with 0 or 1;
[0450] 24 bits are split into 18 bits and 6 bits, with the lower 6 bits set to zero;
[0451] Or 24 bits are split into 16 bits, 2 bits, and 6 bits, with the lower 6 bits set to zero.
[0452] (3) The low-order data is partially discarded;
[0453] The 24 bits are split into 18 bits, the lower 6 bits are discarded, and the headset side receives 18 bits and then fills them with 0 or 1.
[0454] The 24 bits are split into 16 bits and 2 bits, the lower 6 bits are discarded, and the headset side receives 18 bits and then fills them with 0 or 1.
[0455] The 24 bits are split into 8 bits, 8 bits, and 2 bits, and the lower 6 bits are discarded. After the headset side receives 18 bits, it is padded with 0 or 1.
[0456] In some embodiments, the first device receives the performance parameter of the second device sent by the second device, including at least one of the following:
[0457] (1) when the first device and the second device establish a wireless link, receiving a performance parameter of the second device sent by the second device;
[0458] Taking the first device as a mobile phone and the second device as a headset as an example, after the mobile phone and the headset establish a handshake protocol, the mobile phone receives the performance parameters of the headset sent by the headset.
[0459] (2) receiving an audio data packet sent simultaneously by a second device and a performance parameter of the second device;
[0460] For example, the first device is a mobile phone and the second device is a headset. When the headset sends an audio data packet, the performance parameters of the headset are simultaneously sent to the mobile phone with the audio frame as the granularity.
[0461] (3) After the first device and the second device establish a wireless link, receive the performance parameters of the second device sent periodically or aperiodically by the second device.
[0462] For example, the first device is a mobile phone and the second device is a headset. After the mobile phone and the headset establish a handshake protocol, the mobile phone receives the performance parameters of the headset sent regularly or irregularly (ie, periodically or non-periodically) by the headset.
[0463] In some embodiments, the performance parameter of the second device includes at least one of the following:
[0464] DAC performance parameters;
[0465] The signal quality of the wireless link;
[0466] The number of retransmissions of an audio data packet within a unit time.
[0467] Fig.17 The schematic diagram of the structure of an audio data packet provided by an exemplary embodiment of the present application is shown. The audio data packet includes: a header part and a data part, and the header part is used to dynamically adjust the splitting method of PCM data based on changes in environmental factors.
[0468] The header part includes at least one of the following: issuing company ID, encoding method ID, encoding parameters, adaptive dynamic range method (Adaptive Dynamic Range, ADR) parameters, data packet length, time sequence code, header check code.
[0469] The encoding parameters include at least one of the following: number of channels, channel identifier, data packet ID, sampling rate, sampling depth, and frame length.
[0470] Wherein, issuing company ID represents the code name of the issuing company;
[0471] The encoding method ID indicates the code of the encoding method and the type of encapsulated data, such as PCM, FLAC, ALAC, URLC, etc.
[0472] The encoding parameters represent the parameters of the audio, which are used for encoding and decoding. The encoding parameters of the music source are the encoding parameters of the native sound source. The Bluetooth audio encoding of non-music real-time sound sources can customize the encoding parameters or use the encoding parameters set by the system, which does not require to be consistent with the encoding parameters of the music source;
[0473] The number of channels refers to the number of speakers that can produce different sounds;
[0474] Channel flags are flags used to indicate different channels, such as left channel, right channel, etc. In the case of two channels, the channel flags are channel flag 1 and channel flag 2;
[0475] The data packet ID refers to the sequence mark of each audio data packet, ensuring that the received audio data packets can be decoded by Bluetooth in sequence;
[0476] Sampling rate refers to the number of samples extracted from a continuous signal and composed into a discrete signal per unit time, such as 192k, 96k, 48k;
[0477] Sampling depth refers to the degree of detail in recording the sound intensity during sampling. The larger the value, the more realistic the recorded and played back sound, for example, 24 bits, 16 bits, and 8 bits.
[0478] The frame length is the length of the data frame, which is determined by the user, for example, 10 milliseconds, 5 milliseconds;
[0479] The ADR parameter includes at least one of the following: the total number of splits, the number of bits in the first group to the number of bits in the nth group, the group flag, the number of low-order groups, and the low-order group processing method.
[0480] The total number of splits indicates the number of groups into which the PCM data is split, for example, 24=16+2+6, which is split into 3 groups in total, and the total number of splits n is 3, and then there will be n groups indicating the number of bits in each group.
[0481] The number of bits in the first group, for example 24=16+2+6, is divided into 3 groups in total, and the number of bits in the first group is 16;
[0482] The number of bits in the nth group, for example, 24=16+2+6, is divided into 3 groups in total, n is 3, and the number of bits in the third group is 6;
[0483] Group flag, for example, 24=16+2+6, which is divided into 3 groups in total. The current group to be transmitted is the first group, and the group flag is 1;
[0484] The number of low-order groups, for example, 24=16+2+6, is divided into 3 groups in total. The low-order group, i.e., the low-order data part, is the third group and includes 6 bits. The significance of this field is to consider that the low-order group is set to 0 and then encoded and transmitted together with the high-order group.
[0485] The low-order group processing method, that is, the low-order data part processing method, includes at least one of the following: the low-order data part is set to 0 for transmission; the low-order data part is discarded; the low-order data part is transmitted normally.
[0486] When 24=16+8, and the lower 8 bits are 0, the total number of splits is 2; the number of bits in the first group is 16 bits, and the number of bits in the second group is 8 bits; the group flag is 1; the number of low-order groups is 8 bits; the processing method is to set it to 0 and merge it into the first group for packet processing.
[0487] When 24=16+8, and the lower 8 bits are discarded, the total number of splits is 2; the number of bits in the first group is 16 bits, and the number of bits in the second group is 8 bits; the group flag is 1; the number of low-order groups is 8 bits; the processing method is discarding, and only the first group of data will be processed and transmitted.
[0488] Data packet length, data length of the data packet, in bytes;
[0489] Time sequence code: Time-stamp each audio data packet to be sent on the first device side so that the audio data packets received on the second device side can be grouped in time sequence to ensure the correct order of the original bit stream. The time sequence code of the same ADR parameter is the same.
[0490] Implementation evidence of time series code (including but not limited to this evidence):
[0491] A long integer variable with a value range of 0 to 2 to the power of 64 - 1 is encoded into each audio data packet on the first device side. For example, if the value of the time series code at the current moment is 100, then the value of the time series code corresponding to the next audio data packet is 101. When the variable increases to 2 to the power of 64 - 1, the next value is 0.
[0492] The packet header check code is check information used to ensure the integrity of the audio data packet information. If the check fails, the first device is requested to retransmit the packet header part and the data part.
[0493] The data part at least includes: a data segment. The data segment is a data group of an audio data packet, which is data corresponding to a channel mark, and has a length equal to the length of the audio data packet of the channel mark.
[0494] In the case of two data segments, the data portion includes: data segment 1 and data segment 2. Data segment 1 is the data segment corresponding to channel marker 1, and its length is the length of the audio data packet of channel marker 1. Data segment 2 is the data segment corresponding to channel marker 2, and its length is the length of the audio data packet of channel marker 2.
[0495] Fig.18 A flowchart of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is executed by a second device, and the method includes:
[0496] Step 1810: receiving at least one audio data packet sent by the first device, where the at least one audio data packet is used to transmit at least a non-low-bit data portion;
[0497] In some embodiments, the first device splits the original PCM data into at least two data parts in the bit width dimension, the at least two data parts include at least one non-low-order data part and at least one low-order data part, the bit width of each of the at least two data parts is less than N, and the total bit width of the at least two data parts is N, and the low-order data part is low-order data relative to the non-low-order data part in the bit width dimension.
[0498] In some embodiments, the second device receives at least one audio data packet sent by the first device in a wired form; or, the second device receives at least one audio data packet sent by the first device in a wireless form.
[0499] In some embodiments, the second device receives at least one audio data packet sent by the wireless sending module in the first device in a wireless form through the wireless receiving module, and the wireless form includes at least one of BT transmission, Wi-Fi transmission, and wireless modem transmission.
[0500] Step 1820: reconstructing the restored PCM data based on at least the non-low-order data portion;
[0501] In some embodiments, the second device reconstructs the restored PCM data through the wireless receiving module, and the restored PCM data has a bit width of N and at least includes a non-low-bit data portion of the original PCM data.
[0502] In some embodiments, the restored PCM data includes a non-low-order data portion of the original PCM data and a low-order data portion of the original PCM data. In some embodiments, the restored PCM data includes a non-low-order data portion of the original PCM data and a low-order data portion set to a predetermined value, the predetermined value being 0 or 1.
[0503] To sum up, the method provided in this embodiment receives at least one audio data packet sent by the first device, and the at least one audio data packet is used to transmit at least a non-low-order data portion. When the audio data packet transmits data, the non-low-order data portion and the low-order data portion can be transmitted, or only the non-low-order data portion can be transmitted, thereby reducing the amount of transmitted data and improving transmission efficiency.
[0504] Based on Fig.18 In the optional embodiment, there are multiple reorganization methods (in no particular order):
[0505] Method 1: non-low-order data part (PCM), and low-order data part (PCM).
[0506] Figure 4 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0507] In some embodiments, the second device 12 obtains at least one non-low-order data portion from at least one audio data packet;
[0508] Acquire at least one low-order data portion from at least one audio data packet;
[0509] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0510] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0511] The wireless receiving module 150 obtains at least one non-low-order data portion from at least one audio data packet, and sends the at least one non-low-order data portion to the reassembly module 170 .
[0512] The wireless receiving module 150 obtains at least one low-order data portion from at least one audio data packet, and sends the at least one low-order data portion to the reassembly module 170 .
[0513] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0514] Exemplarily, from at least one audio data packet, a 16-bit non-low-bit data portion 1111111100000000 and an 8-bit low-bit data portion 11110000 are obtained;
[0515] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 1111111100000000 is used as the first 16 bits of the restored PCM data, and 11110000 is used as the last 8 bits of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reconstructed.
[0516] To sum up, the method provided in this embodiment reconstructs and recovers PCM data by receiving the non-low-order data part and the low-order data part included in the audio data packet. If the audio data packet corresponding to the low-order data part is lost, the first device chooses not to retransmit, and the second device can also reconstruct and recover the PCM data, thereby reducing environmental interference and reducing the amount of transmitted data.
[0517] Mode 2: non-low-order data part (PCM), and low-order data part (decoding of the second encoded data part).
[0518] Figure 5 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0519] In some embodiments, the second device 12 obtains at least one second encoded data portion and at least one non-low-order data portion from at least one audio data packet;
[0520] Decoding at least one low-order data portion corresponding to at least one second encoded data portion;
[0521] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0522] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0523] The wireless receiving module 150 obtains at least one second encoded data portion and at least one non-low-order data portion from at least one audio data packet, sends at least one second encoded data portion to the second PCM decoder 160 , and sends at least one non-low-order data portion to the reassembly module 170 .
[0524] The second PCM decoder 160 decodes at least one low-order data portion corresponding to the at least one second encoded data portion, and sends the at least one low-order data portion to the reassembly module 170 .
[0525] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0526] Exemplarily, from at least one audio data packet, a 16-bit non-low-order data portion 1111111100000000 and a second coded data portion are obtained, and an 8-bit low-order data portion 11110000 corresponding to the second coded data portion is decoded;
[0527] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 1111111100000000 is used as the first 16 bits of the restored PCM data, and 11110000 is used as the last 8 bits of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reconstructed.
[0528] To summarize, the method provided in this embodiment receives the non-low-order data part and the second encoded data part included in the audio data packet, decodes the low-order data part corresponding to the second encoded data part, reconstructs the recovered PCM data based on the non-low-order data part and the low-order data part, and the second encoded data part compresses the low-order data part, thereby reducing the amount of transmitted data.
[0529] Method three: non-low-order data part (decoding of the first encoded data part), and low-order data part (decoding of the second encoded data part).
[0530] Figure 6 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0531] In some embodiments, the second device 12 obtains at least one first encoded data portion and at least one second encoded data portion from at least one audio data packet;
[0532] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0533] Decoding at least one low-order data portion corresponding to at least one second encoded data portion;
[0534] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0535] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0536] The wireless receiving module 150 obtains at least one first coded data portion and at least one second coded data portion from at least one audio data packet, and sends the at least one first coded data portion and the at least one second coded data portion to the second PCM decoder 160 .
[0537] The second PCM decoder 160 decodes at least one non-low-order data portion corresponding to at least one first encoded data portion, and sends the at least one non-low-order data portion to the reassembly module 170 .
[0538] The second PCM decoder 160 decodes at least one low-order data portion corresponding to the at least one second encoded data portion, and sends the at least one low-order data portion to the reassembly module 170 .
[0539] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0540] Exemplarily, from at least one audio data packet, a first coded data portion and a second coded data portion are obtained, and a 16-bit non-low-order data portion 1111111100000000 corresponding to the first coded data portion and an 8-bit low-order data portion 11110000 corresponding to the second coded data portion are decoded;
[0541] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 1111111100000000 is used as the first 16 bits of the restored PCM data, and 11110000 is used as the last 8 bits of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reconstructed.
[0542] To summarize, the method provided in this embodiment receives the first encoded data part and the second encoded data part included in the audio data packet, decodes the non-low-order data part corresponding to the first encoded data part and the low-order data part corresponding to the second encoded data part, and reconstructs the recovered PCM data based on the non-low-order data part and the low-order data part. The first encoded data part compresses the non-low-order data part, and the second encoded data part compresses the low-order data part, thereby reducing the amount of transmitted data.
[0543] Mode 4: non-low-order data part (decoding of the first encoded data part), and low-order data part (PCM).
[0544] Figure 7 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0545] In some embodiments, the second device 12 obtains at least one first encoded data portion and at least one low-order data portion from at least one audio data packet;
[0546] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0547] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0548] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0549] The wireless receiving module 150 obtains at least one first coded data portion and at least one low-order data portion from at least one audio data packet, sends at least one first coded data portion to the second PCM decoder 160 , and sends at least one low-order data portion to the reassembly module 170 .
[0550] The second PCM decoder 160 decodes at least one non-low-order data portion corresponding to at least one first encoded data portion, and sends the at least one non-low-order data portion to the reassembly module 170 .
[0551] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0552] Exemplarily, from at least one audio data packet, a first coded data portion and an 8-bit low-order data portion 11110000 are obtained, and a 16-bit non-low-order data portion 1111111100000000 corresponding to the first coded data portion is decoded;
[0553] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 1111111100000000 is used as the first 16 bits of the restored PCM data, and 11110000 is used as the last 8 bits of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reconstructed.
[0554] To summarize, the method provided in this embodiment receives the first encoded data part and the low-order data part included in the audio data packet, decodes the non-low-order data part corresponding to the first encoded data part, reorganizes the recovered PCM data based on the non-low-order data part and the low-order data part, and the first encoded data part compresses the non-low-order data part, thereby reducing the amount of transmitted data.
[0555] Mode 5: non-low-order data part (PCM), and low-order data part (set to a predetermined value).
[0556] Figure 8 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0557] In some embodiments, the second device 12 obtains at least one non-low-order data portion from at least one audio data packet;
[0558] setting at least one low-order data portion to a predetermined value;
[0559] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0560] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0561] The wireless receiving module 150 obtains at least one non-low-order data portion from at least one audio data packet, and sends the at least one non-low-order data portion to the reassembly module 170 .
[0562] The wireless receiving module 150 sets at least one low-order data portion to a predetermined value, and sends at least one low-order data portion to the reassembly module 170 , where the predetermined value is 0 or 1.
[0563] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0564] Exemplarily, a 16-bit non-low-order data portion 1111111100000000 is obtained from at least one audio data packet, and the low-order data portion is set to a predetermined value, where each bit of the predetermined value is 0 or 1, and the low-order data portion is set to 00000000 as an example for description;
[0565] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 11111111000000000 is used as the first 16 bits of the recovered PCM data, and 11110000 is used as the last 8 bits of the recovered PCM data, and the 24-bit recovered PCM data 111111110000000000000000 is reconstructed.
[0566] In summary, the method provided in this embodiment receives the non-low-order data part included in the audio data packet, sets the low-order data part to a predetermined value, and reconstructs the recovered PCM data based on the non-low-order data part and the low-order data part, thereby reducing the amount of transmitted data.
[0567] Mode six: non-low-order data part (decoding of the first encoded data part), and low-order data part (set to a predetermined value).
[0568] Fig. 9 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0569] In some embodiments, the second device 12 obtains at least one first encoded data portion from at least one audio data packet;
[0570] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0571] setting at least one low-order data portion to a predetermined value;
[0572] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0573] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0574] The wireless receiving module 150 obtains at least one first encoded data portion from at least one audio data packet, and sends the first encoded data portion to the second PCM decoder 160 .
[0575] The second PCM decoder 160 decodes at least one non-low-order data portion corresponding to at least one first encoded data portion, and sends the at least one non-low-order data portion to the reassembly module 170 .
[0576] The wireless receiving module 150 sets at least one low-order data portion to a predetermined value, and sends at least one low-order data portion to the reassembly module 170 , where the predetermined value is 0 or 1.
[0577] The reassembly module 170 uses the non-low-order data portion as the non-low-order data portion of the restored PCM data and the low-order data portion as the low-order data portion of the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion to reassemble the restored PCM data.
[0578] Exemplarily, a first encoded data portion is obtained from at least one audio data packet, and a 16-bit non-low-order data portion 1111111100000000 corresponding to the first encoded data portion is decoded, and the low-order data portion is set to a predetermined value, where each bit of the predetermined value is 0 or 1, and the low-order data portion is set to 00000000 as an example for description;
[0579] Based on the 16-bit non-low-order data part and the 8-bit low-order data part, 11111111000000000 is used as the first 16 bits of the recovered PCM data, and 11110000 is used as the last 8 bits of the recovered PCM data, and the 24-bit recovered PCM data 111111110000000000000000 is reconstructed.
[0580] To summarize, the method provided in this embodiment receives the first encoded data part included in the audio data packet, decodes the non-low-order data part corresponding to the first encoded data part, sets the low-order data part to a predetermined value, and reorganizes the recovered PCM data based on the non-low-order data part and the low-order data part. The first encoded data part compresses the non-low-order data part, thereby reducing the amount of transmitted data.
[0581] Mode seven: first PCM data (PCM), and second PCM data (PCM).
[0582] Fig.10 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0583] In some embodiments, the second device 12 obtains the first PCM data from at least one audio data packet;
[0584] Acquire second PCM data from at least one audio data packet;
[0585] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0586] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0587] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0588] The wireless receiving module 150 obtains first PCM data from at least one audio data packet, and sends the first PCM data to the reassembly module 170 .
[0589] The wireless receiving module 150 obtains the second PCM data from at least one audio data packet, and sends the second PCM data to the reassembly module 170 .
[0590] The reorganization module 170 removes the supplemented predetermined values in the first PCM data and the second PCM data based on the first PCM data and the second PCM data, uses the non-low-order data part of the first PCM data as the non-low-order data part of the restored PCM data, and uses the low-order data part of the second PCM data as the low-order data part of the restored PCM data, to reorganize the restored PCM data;
[0591] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0592] Exemplarily, N is 24, and first PCM data 1111111100000000000000000 and second PCM data 000000000000000011110000 with a bit width of N are obtained from at least one audio data packet;
[0593] Based on the first PCM data and the second PCM data, the predetermined value 000000000 supplemented in the first PCM data is removed, and the predetermined value 00000000000000000 is removed, and the non-low-order data part 1111111100000000 is used as the non-low-order data part of the restored PCM data, and the low-order data part 11110000 is used as the low-order data part of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reorganized.
[0594] To sum up, the method provided in this embodiment receives the first PCM data and the second PCM data included in the audio data packet, and reconstructs the recovered PCM data based on the first PCM data and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used, thereby reducing the amount of transmitted data.
[0595] Mode eight: first PCM data (PCM), and second PCM data (partial decoding of the fourth encoded data).
[0596] Fig.11A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0597] In some embodiments, the second device 12 obtains the fourth encoded data portion and the first PCM data from at least one audio data packet;
[0598] Decoding the second PCM data corresponding to the fourth coded data portion;
[0599] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0600] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0601] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0602] The wireless receiving module 150 obtains the fourth coded data portion and the first PCM data with a bit width of N from at least one audio data packet, sends the fourth coded data portion to the second PCM decoder 160 , and sends the first PCM data to the reassembly module 170 .
[0603] The second PCM decoder 160 decodes the second PCM data with a bit width of N corresponding to the fourth encoded data portion, and sends the second PCM data to the reassembly module 170 .
[0604] The reorganization module 170 removes the supplemented predetermined values in the first PCM data and the second PCM data based on the first PCM data and the second PCM data, uses the non-low-order data part of the first PCM data as the non-low-order data part of the restored PCM data, and uses the low-order data part of the second PCM data as the low-order data part of the restored PCM data, to reorganize the restored PCM data;
[0605] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0606] Exemplarily, N is 24, and a fourth coded data portion and first PCM data 1111111100000000000000000 are obtained from at least one audio data packet; and second PCM data 0000000000000000011110000 with a bit width of N corresponding to the fourth coded data portion are decoded;
[0607] Based on the first PCM data and the second PCM data, the predetermined value 000000000 supplemented in the first PCM data is removed, and the predetermined value 00000000000000000 is removed, and the non-low-order data part 1111111100000000 is used as the non-low-order data part of the restored PCM data, and the low-order data part 11110000 is used as the low-order data part of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reorganized.
[0608] To sum up, the method provided in this embodiment receives the first PCM data with a bit width of N and the fourth encoded data part included in the audio data packet, decodes the second PCM data corresponding to the fourth encoded data part, and reconstructs the recovered PCM data based on the first PCM data and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The fourth encoded data part compresses the second PCM data, reducing the amount of transmitted data.
[0609] Mode nine: first PCM data (partial decoding of the third encoded data), and second PCM data (partial decoding of the fourth encoded data).
[0610] Fig.12 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0611] In some embodiments, the second device 12 obtains the third encoded data portion and the fourth encoded data portion from at least one audio data packet;
[0612] Decoding the first PCM data corresponding to the third coded data portion;
[0613] Decoding the second PCM data corresponding to the fourth coded data portion;
[0614] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0615] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0616] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0617] The wireless receiving module 150 obtains the third coded data portion and the fourth coded data portion from at least one audio data packet, and sends the third coded data portion and the fourth coded data portion to the second PCM decoder 160 .
[0618] The second PCM decoder 160 decodes the first PCM data with a bit width of N corresponding to the third encoded data portion, and sends the first PCM data to the reassembly module 170 .
[0619] The second PCM decoder 160 decodes the second PCM data with a bit width of N corresponding to the fourth encoded data portion, and sends the second PCM data to the reassembly module 170 .
[0620] The reorganization module 170 removes the supplemented predetermined values in the first PCM data and the second PCM data based on the first PCM data and the second PCM data, uses the non-low-order data part of the first PCM data as the non-low-order data part of the restored PCM data, and uses the low-order data part of the second PCM data as the low-order data part of the restored PCM data, to reorganize the restored PCM data;
[0621] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0622] Exemplarily, N is 24, and a third encoded data portion and a fourth encoded data portion are obtained from at least one audio data packet, and first PCM data 1111111100000000000000000 having a bit width of N corresponding to the third encoded data portion and second PCM data 000000000000000011110000 having a bit width of N corresponding to the fourth encoded data portion are decoded;
[0623] Based on the first PCM data and the second PCM data, the predetermined value 000000000 supplemented in the first PCM data is removed, and the predetermined value 00000000000000000 is removed, and the non-low-order data part 1111111100000000 is used as the non-low-order data part of the restored PCM data, and the low-order data part 11110000 is used as the low-order data part of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reorganized.
[0624] To summarize, the method provided in this embodiment receives the third encoded data part and the fourth encoded data part included in the audio data packet, decodes the first PCM data corresponding to the third encoded data part and the second PCM data corresponding to the fourth encoded data part, and reconstructs the recovered PCM data based on the first PCM data and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The third encoded data part compresses the first PCM data, and the fourth encoded data part compresses the second PCM data, thereby reducing the amount of transmitted data.
[0625] Mode 10: first PCM data (partial decoding of the third encoded data), and second PCM data (PCM).
[0626] Fig.13 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0627] In some embodiments, the second device 12 obtains the third encoded data portion and the second PCM data from at least one audio data packet;
[0628] Decoding the first PCM data corresponding to the third coded data portion;
[0629] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0630] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0631] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0632] The wireless receiving module 150 obtains the third coded data portion and the second PCM data with a bit width of N from at least one audio data packet, sends the third coded data portion to the second PCM decoder 160 , and sends the second PCM data to the reassembly module 170 .
[0633] The second PCM decoder 160 decodes the first PCM data with a bit width of N corresponding to the third encoded data portion, and sends the first PCM data to the reassembly module 170 .
[0634] The reorganization module 170 removes the supplemented predetermined values in the first PCM data and the second PCM data based on the first PCM data and the second PCM data, uses the non-low-order data part of the first PCM data as the non-low-order data part of the restored PCM data, and uses the low-order data part of the second PCM data as the low-order data part of the restored PCM data, to reorganize the restored PCM data;
[0635] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0636] Exemplarily, N is 24, and a third coded data portion and second PCM data 000000000000000011110000 with a bit width of N are obtained from at least one audio data packet, and first PCM data 111111110000000000000000 with a bit width of N corresponding to the third coded data portion are decoded;
[0637] Based on the first PCM data and the second PCM data, the predetermined value 000000000 supplemented in the first PCM data is removed, and the predetermined value 00000000000000000 is removed, and the non-low-order data part 1111111100000000 is used as the non-low-order data part of the restored PCM data, and the low-order data part 11110000 is used as the low-order data part of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reorganized.
[0638] To sum up, the method provided in this embodiment receives the third encoded data part and the second PCM data included in the audio data packet, decodes the first PCM data corresponding to the third encoded data part, and reconstructs the recovered PCM data based on the first PCM data and the second PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The third encoded data part compresses the first PCM data, reducing the amount of transmitted data.
[0639] Mode 11: First PCM data (PCM).
[0640] Fig.14 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0641] In some embodiments, the second device 12 obtains the first PCM data from at least one audio data packet;
[0642] determining the first PCM data as restored PCM data;
[0643] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0644] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0645] The wireless receiving module 150 obtains first PCM data with a bit width of N from at least one audio data packet, and sends the first PCM data to the reassembly module 170 .
[0646] The reassembly module 170 determines the first PCM data as restored PCM data;
[0647] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0648] Exemplarily, N is 24, and first PCM data 11111111100000000000000000 is obtained from at least one audio data packet, with a bit width of N;
[0649] The first PCM data is determined to be 24-bit restored PCM data 111111110000000011110000.
[0650] To sum up, the method provided in this embodiment receives the first PCM data included in the audio data packet and determines the first PCM data as the recovered PCM data. There is no need to improve the encoder and the encoder in the related technology can be used. The low-order data part is not transmitted, thereby reducing the amount of transmitted data.
[0651] Mode 12: First PCM data (partial decoding of the third encoded data).
[0652] Fig.15A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0653] In some embodiments, the second device 12 obtains a third encoded data portion from at least one audio data packet;
[0654] Decoding the first PCM data corresponding to the third coded data portion;
[0655] determining the first PCM data as restored PCM data;
[0656] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0657] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0658] The wireless receiving module 150 obtains the third encoded data portion from at least one audio data packet, and sends the third encoded data portion to the second PCM decoder 160 .
[0659] The second PCM decoder 160 decodes the first PCM data with a bit width of N corresponding to the third encoded data portion, and sends the first PCM data to the reassembly module 170 .
[0660] The reassembly module 170 determines the first PCM data as restored PCM data;
[0661] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0662] Exemplarily, N is 24, and a third encoded data portion is obtained from at least one audio data packet, and first PCM data 1111111100000000000000000 corresponding to the third encoded data portion and having a bit width of N is decoded;
[0663] The first PCM data is determined to be 24-bit restored PCM data 111111110000000011110000.
[0664] To sum up, the method provided in this embodiment receives the third encoded data part included in the audio data packet, decodes the first PCM data corresponding to the third encoded data part, and determines the first PCM data as recovered PCM data. There is no need to improve the encoder, and the encoder in the related technology can be used. The third encoded data part compresses the first PCM data, and does not transmit the low-order data part, thereby reducing the amount of transmitted data.
[0665] Mode thirteen: first PCM data (partial decoding of the third encoded data), and fourth PCM data (supplementing the third PCM data).
[0666] Fig.16 A schematic diagram of a method for transmitting an audio data packet provided by an exemplary embodiment of the present application is shown. The method is performed by the second device 12, and the method includes:
[0667] In some embodiments, the second device 12 obtains a third encoded data portion and third PCM data having a bit width of S from at least one audio data packet;
[0668] Decoding the first PCM data corresponding to the third coded data portion;
[0669] Supplementing bits of predetermined values on the basis of the third PCM data to obtain fourth PCM data with a bit width of L;
[0670] reconstructing the restored PCM data based on the first PCM data and the fourth PCM data;
[0671] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data part and S is a positive integer, and L is a positive integer.
[0672] In some embodiments, reference Figure 1 The second device 12 includes at least one of a wireless receiving module 150 , a second PCM decoder 160 , a reassembly module 170 , a DAC 181 , a PA 182 , and a speaker 190 .
[0673] The wireless receiving module 150 obtains the third coded data portion and the third PCM data with a bit width of S from at least one audio data packet, and sends the third coded data portion to the second PCM decoder 160 .
[0674] The wireless receiving module 150 supplements the tail of the third PCM data with bits of a predetermined value to obtain fourth PCM data with a bit width of L, and sends the fourth PCM data to the reassembly module 170 , where the predetermined value is 0 or 1.
[0675] The second PCM decoder 160 decodes the first PCM data with a bit width of N corresponding to the third encoded data portion, and sends the first PCM data to the reassembly module 170 .
[0676] The reassembly module 170 removes the last L bits of the first PCM data to obtain the non-low-bit data part based on the first PCM data and the fourth PCM data, and uses the fourth PCM data as the low-bit data part of the restored PCM data to reassemble the restored PCM data;
[0677] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0678] Exemplarily, N is 24, and a third encoded data portion and third PCM data 11110 with a bit width of S are obtained from at least one audio data packet, where S is 5.
[0679] The third PCM data is supplemented with bits of a predetermined value, and the predetermined value is taken as 0 for illustration, to obtain fourth PCM data 11110000 with a bit width of N.
[0680] The first PCM data 11111111100000000000000000 is decoded and the bit width N corresponds to the third encoded data part.
[0681] Based on the first PCM data and the fourth PCM data, the predetermined value 00000000 supplemented in the first PCM data is removed, and the non-low-order data part 1111111100000000 is used as the non-low-order data part of the restored PCM data, and the fourth PCM data 11110000 is used as the low-order data part of the restored PCM data, and the 24-bit restored PCM data 111111110000000011110000 is reorganized.
[0682] To sum up, the method provided in this embodiment receives the third encoded data part and the third PCM data included in the audio data packet, decodes the first PCM data corresponding to the third encoded data part, supplements the bits with predetermined values on the basis of the third PCM data to obtain the fourth PCM data, and reconstructs the recovered PCM data based on the first PCM data and the fourth PCM data. There is no need to improve the decoder, and the decoder in the related technology can be used. The third encoded data part compresses the first PCM data and reduces the amount of transmitted data.
[0683] Compared with the original solution in the related art, the beneficial effects of this solution are as follows, which are described by splitting 24 bits of data into 16 bits of data (high-order data part) and 8 bits of data (low-order data part):
[0684] Case 1: Send at low bit, can be retransmitted or not.
[0685] During the 24-bit data transmission process, if data transmission fails, there are three scenarios:
[0686] (1) In this scheme, the transmission of 16 bits of the high-order data part fails, and the transmission of 8 bits of the low-order data part fails;
[0687] In the original scheme, the transmission of 24 bits failed.
[0688] The corresponding processing method is that this solution needs to retransmit 16 bits; the original solution needs to retransmit 24 bits;
[0689] Compared with the original solution, this solution reduces the amount of retransmitted data by (24-16) / 24*100%=33%.
[0690] (2) In this scheme, the transmission of the 16 bits of the high-order data part fails, and the transmission of the 8 bits of the low-order data part succeeds;
[0691] In the original scheme, the transmission of 24 bits failed.
[0692] The corresponding processing method is that this solution needs to retransmit 16 bits; the original solution needs to retransmit 24 bits;
[0693] Compared with the original solution, this solution reduces the amount of retransmitted data by (24-16) / 24*100%=33%.
[0694] (3) In this scheme, the transmission of the 16 bits of the high-order data portion is successful, and the transmission of the 8 bits of the low-order data portion fails;
[0695] In the original scheme, the transmission of 24 bits failed.
[0696] The corresponding processing method is that this scheme can retransmit the 8 bits of the low-order data part, or it can not retransmit the 8 bits of the low-order data part; the original scheme needs to retransmit 24 bits;
[0697] Compared with the original solution, this solution reduces the amount of retransmitted data by (24-8) / 24*100%=67% or (24-0) / 24*100%=100%.
[0698] In an undesirable data transmission environment, the solution of splitting 24 bits into 16 bits and 8 bits can reduce the amount of retransmitted data, reduce transmission delay and improve transmission efficiency while ensuring user experience.
[0699] The basic transmission principle of splitting 24 bits into 16 bits, 4 bits, and 4 bits is the same as that of splitting 24 bits into 16 bits and 8 bits.
[0700] The principle of the 32-bit data packet unpacking scheme is the same as that of the 24-bit data packet unpacking scheme.
[0701] Case 2: The low bits are supplemented with 0 or 1 and sent. The advantage is that the codec (COder-DECoder, CODEC) parameters do not need to be modified, thus reducing the amount of data transmitted.
[0702] Case 3: Low-bit discard. The advantage is that less data is sent, thus reducing the amount of data transmitted.
[0703] For case 2 and case 3, 24 bits of data are split into 16 bits of data (high-order data part) and 8 bits of data (low-order data part) for explanation:
[0704] (1) The amount of encoded data is reduced by 40%, which means that the Bluetooth bandwidth requirement for lossless encoding is reduced by 40%;
[0705] (2) The data for native PCM transmission is reduced by 25%, that is, the demand for Bluetooth bandwidth for PCM data transmission is reduced by 25%.
[0706] In general, compared with the original solution, this solution takes into account the headphone DAC performance, the hardware (chip, antenna, RF, etc.) performance of the headphone and mobile phone, and environmental factors such as transmission link distance, wall blocking, environmental RF interference, etc., which are specifically reflected in Bluetooth RSSI, retransmission rate and other factors. Under the premise of ensuring the user experience, this solution can achieve the purpose of reducing the amount of retransmitted data, reducing transmission delay and improving transmission efficiency.
[0707] Specific benefits:
[0708] Reduced the number of retransmissions of audio packets;
[0709] Reduced the number of bits required to retransmit audio packets;
[0710] Reduced bandwidth requirements for transmitting audio packets;
[0711] Reduced error probability and improved transmission efficiency;
[0712] Reduced transmission delay.
[0713] Fig.19 A block diagram of an audio data packet transmission device provided by an exemplary embodiment of the present application is shown, and the device includes an acquisition module 1910, a splitting module 1920, a processing module 1930, a sending module 1940, a determination module 1950, and a receiving module 1960.
[0714] An acquisition module 1910 is used to acquire original PCM data;
[0715] A splitting module 1920, configured to split the original PCM data into at least two data parts in a bit width dimension, wherein the at least two data parts include at least one non-low-bit data part and at least one low-bit data part;
[0716] The processing module 1930 is used to generate at least one audio data packet, wherein the at least one audio data packet is used to transmit at least a non-low-bit data portion;
[0717] The sending module 1940 is used to send at least one audio data packet to the second device;
[0718] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0719] In a possible design of this embodiment, the processing module 1930 is used to generate at least one audio data packet based on at least one non-low-bit data portion and at least one low-bit data portion.
[0720] In a possible design of this embodiment, the processing module 1930 is used to encode each low-order data part of the at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part;
[0721] At least one audio data packet is generated based on the second encoded data portion and the at least one non-lower bit data portion.
[0722] In a possible design of this embodiment, the processing module 1930 is used to encode each non-low-bit data part in the at least one non-low-bit data part to obtain a first encoded data part corresponding to each non-low-bit data part;
[0723] Encoding each low-order data part of at least one low-order data part to obtain a second encoded data part corresponding to each low-order data part;
[0724] generating at least one audio data packet based on the first encoded data portion and the second encoded data portion;
[0725] The audio data packet corresponding to the second encoded data portion does not support retransmission.
[0726] In a possible design of this embodiment, the processing module 1930 is used to encode each non-low-bit data part in the at least one non-low-bit data part to obtain a first encoded data part corresponding to each non-low-bit data part;
[0727] At least one audio data packet is generated based on the first encoded data portion and the at least one lower data portion.
[0728] In a possible design of this embodiment, the processing module 1930 is used to generate at least one audio data packet based on each non-low-bit data portion in at least one non-low-bit data portion.
[0729] In a possible design of this embodiment, the processing module 1930 is used to encode each non-low-order data part in at least one non-low-order data part to obtain a first encoded data part corresponding to each non-low-order data part, and generate at least one audio data packet based on the first encoded data part.
[0730] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data portion to obtain the first PCM data; and supplement the bits with predetermined values based on the low-order data portion to obtain the second PCM data;
[0731] generating at least one audio data packet based on the first PCM data and the second PCM data;
[0732] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0733] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data portion to obtain the first PCM data; and supplement the bits with predetermined values based on the low-order data portion to obtain the second PCM data;
[0734] encoding the second PCM data to obtain a fourth encoded data portion;
[0735] generating at least one audio data packet based on the fourth encoded data portion and the first PCM data;
[0736] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0737] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data part to obtain the first PCM data; and supplement the bits with predetermined values based on the low-order data part to obtain the second PCM data;
[0738] encoding the first PCM data to obtain a third coded data portion; and encoding the second PCM data to obtain a fourth coded data portion;
[0739] generating at least one audio data packet based on the third encoded data portion and the fourth encoded data portion;
[0740] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0741] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data part to obtain the first PCM data; and supplement the bits with predetermined values based on the low-order data part to obtain the second PCM data;
[0742] encoding the first PCM data to obtain a third encoded data portion;
[0743] generating at least one audio data packet based on the second PCM data and the third encoded data portion;
[0744] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the original PCM data and the second PCM data remain unchanged.
[0745] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data portion to obtain the first PCM data;
[0746] generating at least one audio data packet based on the first PCM data;
[0747] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0748] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data portion to obtain the first PCM data, and encode the first PCM data to obtain the third encoded data portion;
[0749] generating at least one audio data packet based on the third encoded data portion;
[0750] The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
[0751] In a possible design of this embodiment, the processing module 1930 is used to supplement the bits with predetermined values based on the non-low-order data portion to obtain the first PCM data, and encode the first PCM data to obtain the third encoded data portion;
[0752] Selecting a data portion with a bit width of S in the low-bit data portion in order from high to low to obtain third PCM data;
[0753] generating at least one audio data packet based on the third encoded data portion and the third PCM data;
[0754] The position and value of the non-low-order data part in the original PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data part and S is a positive integer.
[0755] In a possible design of this embodiment, the processing module 1930 is further used to determine the value of S based on the current transmission bandwidth.
[0756] In a possible design of this embodiment, the processing module 1930 is used to determine the value of S based on the quotient of the first difference and the first bandwidth;
[0757] Among them, the first difference is the difference between the current transmission bandwidth and the second bandwidth. The first bandwidth is the bandwidth required for transmitting the data amount corresponding to one bit in the PCM data of unit frame length, and the second bandwidth is the bandwidth required for transmitting the third encoded data part.
[0758] In a possible design of this embodiment, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossless encoding;
[0759] Or, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossy encoding;
[0760] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossless encoding;
[0761] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossy encoding.
[0762] In a possible design of this embodiment, at least one non-low-order data portion includes: a high-order data portion and a middle-order data portion, wherein the high-order data portion is high-order data relative to the middle-order data portion in a bit width dimension;
[0763] The encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossless encoding;
[0764] Or, the encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossy encoding;
[0765] Or, the encoding method of the high-order data part is lossy encoding, and the encoding method of the middle-order data part is lossless encoding;
[0766] Alternatively, the encoding method of the high-order data portion is lossy encoding, and the encoding method of the middle-order data portion is lossy encoding.
[0767] In a possible design of this embodiment, the determination module 1950 is used to determine the splitting method of the original PCM data in the bit width dimension based on the performance parameters of the second device.
[0768] In a possible design of this embodiment, the determination module 1950 is used to determine the bit width occupied by the low-bit data portion in the bit width dimension based on the performance parameters of the second device.
[0769] In a possible design of this embodiment, the performance parameter of the second device includes at least one of the following:
[0770] DAC performance parameters;
[0771] Signal quality of wireless link;
[0772] The number of retransmissions of an audio data packet within a unit time.
[0773] Fig. 20 A block diagram of an audio data packet transmission device provided by an exemplary embodiment of the present application is shown. The device includes a receiving module 2010, a processing module 2020, a determining module 2030, and a sending module 2040.
[0774] The receiving module 2010 is used to receive at least one audio data packet sent by the first device, wherein the at least one audio data packet is used to transmit at least a non-low-bit data portion; wherein the first device splits the original PCM data into at least two data portions in a bit width dimension, wherein the at least two data portions include at least one non-low-bit data portion and at least one low-bit data portion;
[0775] A processing module 220, configured to reconstruct the restored PCM data based on at least the non-low-order data portion;
[0776] The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
[0777] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one non-low-order data portion from at least one audio data packet;
[0778] Acquire at least one low-order data portion from at least one audio data packet;
[0779] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0780] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one second encoded data portion and at least one non-low-bit data portion from at least one audio data packet;
[0781] Decoding at least one low-order data portion corresponding to at least one second encoded data portion;
[0782] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0783] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one first encoded data portion and at least one second encoded data portion from at least one audio data packet;
[0784] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0785] Decoding at least one low-order data portion corresponding to at least one second encoded data portion;
[0786] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0787] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one first encoded data portion and at least one low-bit data portion from at least one audio data packet;
[0788] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0789] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0790] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one non-low-order data portion from at least one audio data packet;
[0791] setting at least one low-order data portion to a predetermined value;
[0792] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0793] In a possible design of this embodiment, the processing module 2020 is used to obtain at least one first encoded data portion from at least one audio data packet;
[0794] Decoding at least one non-low-order data portion corresponding to at least one first encoded data portion;
[0795] setting at least one low-order data portion to a predetermined value;
[0796] Reconstructing the restored PCM data based on at least one non-low-order data portion and at least one low-order data portion.
[0797] In a possible design of this embodiment, the processing module 2020 is used to obtain first PCM data from at least one audio data packet;
[0798] Acquire second PCM data from at least one audio data packet;
[0799] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0800] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0801] In a possible design of this embodiment, the processing module 2020 is used to obtain the fourth encoded data portion and the first PCM data from at least one audio data packet;
[0802] Decoding the second PCM data corresponding to the fourth coded data portion;
[0803] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0804] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0805] In a possible design of this embodiment, the processing module 2020 is used to obtain the third encoded data portion and the fourth encoded data portion from at least one audio data packet;
[0806] Decoding the first PCM data corresponding to the third coded data portion;
[0807] Decoding the second PCM data corresponding to the fourth coded data portion;
[0808] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0809] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0810] In a possible design of this embodiment, the processing module 2020 is used to obtain the third encoded data portion and the second PCM data from at least one audio data packet;
[0811] Decoding the first PCM data corresponding to the third coded data portion;
[0812] reconstructing the restored PCM data based on the first PCM data and the second PCM data;
[0813] The position and value of the non-low-order data part in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data part in the restored PCM data and the second PCM data remain unchanged.
[0814] In a possible design of this embodiment, the processing module 2020 is used to obtain first PCM data from at least one audio data packet;
[0815] determining the first PCM data as restored PCM data;
[0816] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0817] In a possible design of this embodiment, the processing module 2020 is used to obtain a third encoded data portion from at least one audio data packet;
[0818] Decoding the first PCM data corresponding to the third coded data portion;
[0819] determining the first PCM data as restored PCM data;
[0820] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0821] In a possible design of this embodiment, the processing module 2020 is used to obtain a third encoded data portion and third PCM data from at least one audio data packet;
[0822] Decoding the first PCM data corresponding to the third coded data portion;
[0823] Supplementing bits with predetermined values on the basis of the third PCM data to obtain fourth PCM data;
[0824] reconstructing the restored PCM data based on the first PCM data and the fourth PCM data;
[0825] The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
[0826] In a possible design of this embodiment, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossless encoding;
[0827] Or, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossy encoding;
[0828] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossless encoding;
[0829] Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossy encoding.
[0830] In a possible design of this embodiment, at least one non-low-order data portion includes: a high-order data portion and a middle-order data portion, wherein the high-order data portion is high-order data relative to the middle-order data portion in a bit width dimension;
[0831] The encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossless encoding;
[0832] Or, the encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossy encoding;
[0833] Or, the encoding method of the high-order data part is lossy encoding, and the encoding method of the middle-order data part is lossless encoding;
[0834] Alternatively, the encoding method of the high-order data portion is lossy encoding, and the encoding method of the middle-order data portion is lossy encoding.
[0835] In a possible design of this embodiment, the determination module 2030 is used to determine the splitting method of the original PCM data in the bit width dimension based on the performance parameters of the second device.
[0836] In a possible design of this embodiment, the determination module 2030 is used to determine the bit width occupied by the low-bit data portion in the bit width dimension based on the performance parameters of the second device.
[0837] In a possible design of this embodiment, the performance parameter of the second device includes at least one of the following:
[0838] DAC performance parameters;
[0839] Signal quality of wireless link;
[0840] The number of retransmissions of an audio data packet within a unit time.
[0841] Fig.21A schematic diagram of the structure of a terminal device or a network device 2100 provided by an exemplary embodiment of the present application is shown, including: a processor 2101, a receiver 2102, a transmitter 2103, a memory 2104 and a bus 2105.
[0842] The processor 2101 includes one or more processing cores, and the processor 2101 executes various functional applications and information processing by running software programs and modules. In some embodiments, the processor 2101 can be used to implement the functions and steps of the acquisition module 1910, the splitting module 1920, the processing module 1930, the determination module 1950, the processing module 2020 and the determination module 2030.
[0843] The receiver 2102 and the transmitter 2103 may be implemented as a communication component, which may be a communication chip, and the communication component may be referred to as a transceiver. In some embodiments, the transceiver may be used to implement the functions and steps of the above-mentioned sending module 1940, receiving module 1960, receiving module 2010, and sending module 2040.
[0844] The memory 2104 is connected to the processor 2101 via a bus 2105 .
[0845] The memory 2104 may be used to store at least one instruction, and the processor 2101 may be used to execute the at least one instruction to implement each step in the above method embodiment.
[0846] In addition, the memory 2104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a static random access memory (SRAM), a read-only memory (ROM), a magnetic memory, a flash memory, and a programmable read-only memory (PROM).
[0847] In some embodiments, the receiver 2102 receives signals / data independently, or the processor 2101 controls the receiver 2102 to receive signals / data, or the processor 2101 requests the receiver 2102 to receive signals / data, or the processor 2101 cooperates with the receiver 2102 to receive signals / data.
[0848] In some embodiments, the transmitter 2103 independently sends signals / data, or the processor 2101 controls the transmitter 2103 to send signals / data, or the processor 2101 requests the transmitter 2103 to send signals / data, or the processor 2101 cooperates with the transmitter 2103 to send signals / data.
[0849] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the audio data packet transmission method provided by the above-mentioned various method embodiments.
[0850] In an exemplary embodiment, a computer program product or a computer program is further provided. When the computer program product or the computer program is executed on a processor, the first device or the second device executes the audio data packet transmission method provided by the above-mentioned various method embodiments.
[0851] In an exemplary embodiment, a chip is also provided. The chip includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the audio data packet transmission method provided by the above-mentioned various method embodiments.
[0852] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0853] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for transmitting an audio data packet, characterized in that: The method is performed by a first device, and includes: Get the original pulse code modulation PCM data; Splitting the original PCM data into at least two data parts in a bit width dimension, wherein the at least two data parts include at least one non-low-bit data part and at least one low-bit data part; generating at least one audio data packet, wherein the at least one audio data packet is used to transmit at least the non-low-bit data portion; sending the at least one audio data packet to a second device; The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
2. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: The at least one audio data packet is generated based on the at least one non-lower-order data portion and the at least one lower-order data portion.
3. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Encoding each of the at least one low-order data portion to obtain a second encoded data portion corresponding to each of the low-order data portions; The at least one audio data packet is generated based on the second encoded data portion and the at least one non-lower bit data portion.
4. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Encoding each of the at least one non-low-bit data portion to obtain a first encoded data portion corresponding to each of the non-low-bit data portions; Encoding each of the at least one low-order data portion to obtain a second encoded data portion corresponding to each of the low-order data portions; generating the at least one audio data packet based on the first encoded data portion and the second encoded data portion; The audio data packet corresponding to the second encoded data portion does not support retransmission.
5. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Encoding each of the at least one non-low-bit data portion to obtain a first encoded data portion corresponding to each of the non-low-bit data portions; The at least one audio data packet is generated based on the first encoded data portion and the at least one lower data portion.
6. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: The at least one audio data packet is generated based on each of the at least one non-lower-bit data portion.
7. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Each of the at least one non-low-bit data portion is encoded to obtain a first encoded data portion corresponding to each of the non-low-bit data portions, and the at least one audio data packet is generated based on the first encoded data portion.
8. The method according to claim 1, characterized in that: The generating of at least one audio data packet comprises: Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data; generating the at least one audio data packet based on the first PCM data and the second PCM data; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the original PCM data and the second PCM data remain unchanged.
9. The method according to claim 1, characterized in that: The generating of at least one audio data packet comprises: Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data; encoding the second PCM data to obtain a fourth encoded data portion; generating said at least one audio data packet based on said fourth encoded data portion and said first PCM data; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the original PCM data and the second PCM data remain unchanged.
10. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data; encoding the first PCM data to obtain a third coded data portion; and encoding the second PCM data to obtain a fourth coded data portion; generating the at least one audio data packet based on the third encoded data portion and the fourth encoded data portion; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the original PCM data and the second PCM data remain unchanged.
11. The method according to claim 1, characterized in that: The generating of at least one audio data packet comprises: Supplementing bits with predetermined values based on the non-low-order data portion to obtain first PCM data; and supplementing bits with predetermined values based on the low-order data portion to obtain second PCM data; Encoding the first PCM data to obtain a third encoded data portion; generating said at least one audio data packet based on said second PCM data and said third encoded data portion; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the original PCM data and the second PCM data remain unchanged.
12. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Supplementing bits of predetermined values based on the non-low-order data portion to obtain first PCM data; generating the at least one audio data packet based on the first PCM data; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
13. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Supplementing bits of predetermined values on the basis of the non-low-order data portion to obtain first PCM data, and encoding the first PCM data to obtain a third encoded data portion; generating said at least one audio data packet based on said third encoded data portion; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged.
14. The method according to claim 1, characterized in that The generating of at least one audio data packet comprises: Supplementing bits of predetermined values on the basis of the non-low-order data portion to obtain first PCM data, and encoding the first PCM data to obtain a third encoded data portion; Selecting a data portion with a bit width of S in the low-bit data portion in order from high to low to obtain third PCM data; generating said at least one audio data packet based on said third encoded data portion and said third PCM data; The position and value of the non-low-order data portion in the original PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data portion and S is a positive integer.
15. The method according to claim 14, characterized in that The method further comprises: The value of S is determined based on the current transmission bandwidth.
16. The method according to claim 15, characterized in that The determining of the value of S based on the current transmission bandwidth includes: Determining a value of S based on a quotient of the first difference and the first bandwidth; Among them, the first difference is the difference between the current transmission bandwidth and the second bandwidth, the first bandwidth is the bandwidth required for transmitting the amount of data corresponding to one bit in the PCM data of a unit frame length, and the second bandwidth is the bandwidth required for transmitting the third encoded data part.
17. The method according to any one of claims 2 to 16, characterized in that: The encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossless encoding; Or, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossy encoding; Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossless encoding; Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossy encoding.
18. The method according to any one of claims 2 to 16, characterized in that: The at least one non-low-order data portion includes: a high-order data portion and a middle-order data portion, wherein the high-order data portion is high-order data relative to the middle-order data portion in the bit width dimension; The encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossless encoding; Or, the encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossy encoding; Or, the encoding method of the high-order data part is lossy encoding, and the encoding method of the middle-order data part is lossless encoding; Alternatively, the encoding method of the high-order data portion is lossy encoding, and the encoding method of the middle-order data portion is lossy encoding.
19. The method according to any one of claims 2 to 16, characterized in that: The method further comprises: Based on the performance parameters of the second device, a splitting method of the original PCM data in the bit width dimension is determined.
20. The method according to any one of claims 2 to 16, characterized in that: The method further comprises: Based on the performance parameters of the second device, the bit width occupied by the low-order data portion in the bit width dimension is determined.
21. The method according to claim 1, characterized in that The performance parameters of the second device include at least one of the following: Performance parameters of digital-to-analog converter DAC; Signal quality of wireless link; The number of retransmissions of the audio data packet within a unit time.
22. A method for transmitting an audio data packet, characterized in that: The method is performed by a second device, and includes: Receive at least one audio data packet sent by a first device, wherein the at least one audio data packet is used to transmit at least a non-low-bit data portion; wherein the first device splits the original pulse code modulation PCM data into at least two data portions in a bit width dimension, wherein the at least two data portions include at least one non-low-bit data portion and at least one low-bit data portion; Reconstructing the restored PCM data based at least on the non-low-order data portion; The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
23. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Acquire the at least one non-low-order data portion from the at least one audio data packet; Acquire the at least one low-order data portion from the at least one audio data packet; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
24. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: From the at least one audio data packet, obtaining at least one second encoded data portion and the at least one non-low-order data portion; Decoding the at least one low-order data portion corresponding to the at least one second encoded data portion; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
25. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Retrieving at least one first encoded data portion and at least one second encoded data portion from the at least one audio data packet; Decoding the at least one non-low-order data portion corresponding to the at least one first encoded data portion; Decoding the at least one low-order data portion corresponding to the at least one second encoded data portion; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
26. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: From the at least one audio data packet, obtaining at least one first encoded data portion and the at least one low-order data portion; Decoding the at least one non-low-order data portion corresponding to the at least one first encoded data portion; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
27. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Acquire the at least one non-low-order data portion from the at least one audio data packet; setting the at least one lower data portion to a predetermined value; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
28. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Retrieving at least one first encoded data portion from the at least one audio data packet; Decoding the at least one non-low-order data portion corresponding to the at least one first encoded data portion; setting the at least one lower data portion to a predetermined value; The restored PCM data is reassembled based on the at least one non-low-order data portion and the at least one low-order data portion.
29. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Acquire first PCM data from the at least one audio data packet; Acquire second PCM data from the at least one audio data packet; reconstructing the restored PCM data based on the first PCM data and the second PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the restored PCM data and the second PCM data remain unchanged.
30. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: From the at least one audio data packet, obtaining a fourth encoded data portion and the first PCM data; Decoding the second PCM data corresponding to the fourth coded data portion; reconstructing the restored PCM data based on the first PCM data and the second PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the restored PCM data and the second PCM data remain unchanged.
31. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Retrieving a third encoded data portion and a fourth encoded data portion from the at least one audio data packet; Decoding the first PCM data corresponding to the third coded data portion; Decoding the second PCM data corresponding to the fourth coded data portion; reconstructing the restored PCM data based on the first PCM data and the second PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the restored PCM data and the second PCM data remain unchanged.
32. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: From the at least one audio data packet, obtaining a third encoded data portion and a second PCM data; Decoding the first PCM data corresponding to the third coded data portion; reconstructing the restored PCM data based on the first PCM data and the second PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged, and the position and value of the low-order data portion in the restored PCM data and the second PCM data remain unchanged.
33. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Acquire first PCM data from the at least one audio data packet; Determining the first PCM data as the restored PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
34. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: Retrieving a third encoded data portion from the at least one audio data packet; Decoding the first PCM data corresponding to the third coded data portion; Determining the first PCM data as the restored PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged.
35. The method according to claim 22, characterized in that The step of reorganizing the restored PCM data based at least on the non-low-order data portion includes: From the at least one audio data packet, obtain a third encoded data portion and third PCM data with a bit width of S; Decoding the first PCM data corresponding to the third coded data portion; Supplementing bits of predetermined values on the basis of the third PCM data to obtain fourth PCM data with a bit width of L; reconstructing the restored PCM data based on the first PCM data and the fourth PCM data; The position and value of the non-low-order data portion in the restored PCM data and the first PCM data remain unchanged, S is less than the bit width L of the low-order data portion and S is a positive integer.
36. The method according to any one of claims 23 to 35, characterized in that The encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossless encoding; Or, the encoding method of the non-low-order data part is lossless encoding, and the encoding method of the low-order data part is lossy encoding; Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossless encoding; Or, the encoding method of the non-low-order data part is lossy encoding, and the encoding method of the low-order data part is lossy encoding.
37. The method according to any one of claims 23 to 35, characterized in that The at least one non-low-order data portion includes: a high-order data portion and a middle-order data portion, wherein the high-order data portion is high-order data relative to the middle-order data portion in the bit width dimension; The encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossless encoding; Or, the encoding method of the high-order data part is lossless encoding, and the encoding method of the middle-order data part is lossy encoding; Or, the encoding method of the high-order data part is lossy encoding, and the encoding method of the middle-order data part is lossless encoding; Alternatively, the encoding method of the high-order data portion is lossy encoding, and the encoding method of the middle-order data portion is lossy encoding.
38. The method according to any one of claims 23 to 37, characterized in that The method further comprises: Based on the performance parameters of the second device, a splitting method of the original PCM data in the bit width dimension is determined.
39. The method according to any one of claims 23 to 37, characterized in that The method further comprises: Based on the performance parameters of the second device, the bit width occupied by the low-order data portion in the bit width dimension is determined.
40. The method according to claim 22, characterized in that The performance parameters of the second device include at least one of the following: Performance parameters of digital-to-analog converter DAC; Signal quality of wireless link; The number of retransmissions of the audio data packet within a unit time.
41. A transmission device for an audio data packet, characterized in that: The device comprises: An acquisition module, used for acquiring original pulse code modulation PCM data; A splitting module, used for splitting the original PCM data into at least two data parts in a bit width dimension, wherein the at least two data parts include at least one non-low-bit data part and at least one low-bit data part; A processing module, configured to generate at least one audio data packet, wherein the at least one audio data packet is configured to transmit at least the non-low-bit data portion; A sending module, configured to send the at least one audio data packet to a second device; The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
42. A transmission device for an audio data packet, characterized in that: The device comprises: A receiving module, configured to receive at least one audio data packet sent by a first device, wherein the at least one audio data packet is used to transmit at least a non-low-bit data portion; wherein the first device splits the original pulse code modulation PCM data into at least two data portions in a bit width dimension, wherein the at least two data portions include at least one non-low-bit data portion and at least one low-bit data portion; A processing module, configured to reconstruct the restored PCM data based at least on the non-low-order data portion; The low-order data portion is low-order data relative to the non-low-order data portion in the bit width dimension.
43. A first device, characterized in that: The first device comprises: processor; a transceiver connected to the processor; a memory for storing executable instructions for the processor; The processor is configured to load and execute the executable instructions to implement the method for transmitting an audio data packet as described in any one of claims 1 to 21.
44. A second device, characterized in that: The second device comprises: processor; a transceiver connected to the processor; a memory for storing executable instructions for the processor; The processor is configured to load and execute the executable instructions to implement the audio data packet transmission method as described in any one of claims 22 to 40.
45. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for transmitting an audio data packet as described in any one of claims 1 to 40.
46. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the method for transmitting an audio data packet as described in any one of claims 1 to 40.
47. A chip, characterized in that: The chip comprises a programmable logic circuit and / or program instructions, and when the chip is running, it is used to implement the method for transmitting the audio data packet as described in any one of claims 1 to 40.
