Audio data transmission methods, devices, chips, electronic devices and storage media
By encapsulating audio data to generate target audio data packets that conform to the communication protocol, and directly transmitting them to the audio output device, the problem of audio quality loss caused by encoding and decoding is solved, and lossless audio transmission and low-latency, high-efficiency transmission are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NOKIA TECHNOLOGIES OY
- Filing Date
- 2022-07-20
- Publication Date
- 2026-04-21
AI Technical Summary
When transmitting audio data from the sending device to the receiving device, existing technologies require a series of encoding and decoding processes on the audio source data, which leads to loss of audio quality and affects the playback effect.
By encapsulating the original audio bitstream data, a target audio data packet conforming to the communication protocol is generated and directly transmitted to the audio output device, avoiding the encoding and decoding process and achieving lossless transmission with zero compression and zero decompression.
It achieves lossless transmission of audio data, improves playback quality, reduces transmission latency and power consumption, and enhances audio transmission capabilities.
Smart Images

Figure CN115273869B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio processing technology, specifically to an audio data transmission method, apparatus, chip, electronic device, and storage medium. Background Technology
[0002] Currently, when a sending device transmits audio data to a receiving device for playback, the sending device typically needs to perform a series of encoding and decoding processes on the audio source data before transmitting the processed audio data to the receiving device. This results in a loss of audio quality in the audio source data, affecting the audio playback effect. Summary of the Invention
[0003] This application discloses an audio data transmission method, apparatus, chip, electronic device, and storage medium, which can realize lossless transmission of audio data, avoid audio quality loss, and improve the audio playback effect.
[0004] This application discloses an audio data transmission method applied to an electronic device, the method comprising:
[0005] The original audio bitstream data is encapsulated to obtain a target audio data packet, which includes an instruction section of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data.
[0006] The target audio data packet is sent to the audio output device via a wireless communication channel;
[0007] The communication protocol instruction section is used to indicate that the data format of the target audio data packet conforms to the communication protocol.
[0008] This application discloses an audio data transmission method applied to an audio output device, the method comprising:
[0009] A target audio data packet is received via a wireless communication channel. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data. The communication protocol indicator is used to indicate that the data format of the target audio data packet conforms to the communication protocol.
[0010] The target audio data packet is unpacked.
[0011] This application discloses an audio data transmission device applied to an electronic device, the device comprising:
[0012] The encapsulation module is used to encapsulate the original audio bitstream data to obtain a target audio data packet, wherein the target audio data packet includes an indicator section of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data;
[0013] The transmitting module is used to transmit the target audio data packet to the audio output device via a wireless communication channel;
[0014] The communication protocol instruction section is used to indicate that the data format of the target audio data packet conforms to the communication protocol.
[0015] This application discloses an audio data transmission device applied to an audio output device, the device comprising:
[0016] A receiving module is configured to receive a target audio data packet via a wireless communication channel. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and raw audio bitstream data. The communication protocol indicator is configured to indicate that the data format of the target audio data packet conforms to the communication protocol.
[0017] The unpacking module is used to unpack the target audio data packet.
[0018] This application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to implement the method described in any of the above embodiments.
[0019] This application discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in any of the above embodiments.
[0020] This application discloses an audio data transmission method, apparatus, chip, electronic device, and storage medium. The electronic device encapsulates raw audio bitstream data to obtain a target audio data packet. This target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and the raw audio bitstream data. The target audio data packet is then transmitted to an audio output device via a wireless communication channel. The communication protocol indicator indicates that the data format of the target audio data packet conforms to the communication protocol. In this application embodiment, the electronic device directly encapsulates the raw audio bitstream data in the audio source data to obtain a target audio data packet with a data format conforming to the communication protocol and transmits it to the audio output device. This eliminates the need for a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding. It achieves zero-compression, zero-decompression lossless transmission of audio data, improving audio playback quality. Furthermore, since the electronic device does not need to perform a series of encoding and decoding processes on the audio source data, transmission latency is reduced, improving audio transmission capability. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1A This is a schematic diagram of audio data transmission in related technologies;
[0023] Figure 1B This is an application scenario diagram of an audio data transmission method in one embodiment;
[0024] Figure 2 This is a flowchart of an audio data transmission method in one embodiment;
[0025] Figure 3 This is a flowchart illustrating an audio transmission method in one embodiment;
[0026] Figure 4A This is a schematic diagram of the data format of a target audio data packet in one embodiment;
[0027] Figure 4B This is a schematic diagram of the data format of the target audio data packet in another embodiment;
[0028] Figure 4C This is a schematic diagram of the data format of the target audio data packet in another embodiment;
[0029] Figure 5A This is a schematic diagram of the data format of the target audio data packet in another embodiment;
[0030] Figure 5B This is a schematic diagram of the data format of the target audio data packet in another embodiment;
[0031] Figure 5C This is a schematic diagram of the data format of a target audio data packet in one embodiment;
[0032] Figure 6 A flowchart of an audio data transmission method in another embodiment;
[0033] Figure 7 This is a block diagram of an audio data transmission device in one embodiment;
[0034] Figure 8 This is a block diagram of an audio data transmission device in another embodiment;
[0035] Figure 9 This is a structural block diagram of an electronic device in one embodiment. Detailed Implementation
[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0038] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, first simulation data may be referred to as second simulation data, and similarly, second simulation data may be referred to as first simulation data. Both first simulation data and second simulation data are simulation data, but they are not the same simulation data. The term "multiple" as used in this application refers to two or more. The term "and / or" as used in this application refers to one of the schemes, or any combination of multiple schemes.
[0039] In related technologies, when electronic devices transmit audio data to audio output devices for playback by receiving devices, the electronic devices typically need to perform a series of encoding and decoding processes on the audio source data first. For example, Figure 1A This is a schematic diagram of audio data transmission in related technologies. For example... Figure 1A As shown, taking the transmission of audio data from an electronic device to an audio output device via Bluetooth wireless communication as an example, the electronic device acquires the audio source data. First, it performs PCM (Pulse Code Modulation) decoding on the audio source data to obtain PCM data. Then, it performs Bluetooth audio encoding processing such as SBC (Subband Coding) and AAC (Advanced Audio Coding) on the PCM data to obtain Bluetooth audio encoded data in SBC, AAC, or other encoding formats. The electronic device can then transmit the Bluetooth audio encoded data in SBC, AAC, or other encoding formats to the audio output device via Bluetooth wireless communication. The audio output device performs PCM decoding on the Bluetooth audio encoded data in SBC, AAC, or other encoding formats to obtain PCM data. Then, it uses a DAC (Digital to Analog converter) and an AMP (Amplifier for Power) to perform digital-to-analog conversion and power amplification to obtain analog data, which is then played back.
[0040] Because electronic devices first decode the audio source data into PCM data, and then perform encoding processing such as SBC and AAC, which are lossy audio encoding technologies, the audio quality of the audio source data will be lost, which will seriously affect the audio playback effect and prevent users from successfully experiencing the lossless playback effect of the audio source data.
[0041] This application provides an audio data transmission method, apparatus, chip, electronic device, and storage medium, which can achieve lossless transmission of audio data, avoid audio quality loss, and improve audio playback effect.
[0042] Figure 1B This is a diagram illustrating an application scenario of an audio data transmission method in one embodiment. For example... Figure 1BAs shown, electronic device 110 and audio output device 120 can establish a communication connection. Electronic device 110 may include, but is not limited to, mobile phones, smart wearable devices, in-vehicle terminals, tablets, PCs (Personal Computers), PDAs (Personal Digital Assistants), etc. Audio output device 120 may include, but is not limited to, headphones, speaker devices, in-vehicle terminals, etc., and further, the audio output device 120 may be TWS (True Wireless Stereo) headphones.
[0043] The electronic device 110 and the audio output device 120 can establish wireless communication connections such as Bluetooth and WiFi, or wired communication connections can be established through the USB (Universal Serial Bus) interface. This application embodiment does not specifically limit the communication connection method between the electronic device 110 and the audio output device 120.
[0044] During the transmission of audio data from electronic device 110 to audio output device 120 for audio playback, electronic device 110 can acquire the original audio bitstream data from the audio source data and encapsulate it to obtain a target audio data packet. This target audio data packet includes an instruction section of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data. Electronic device 110 can send the target audio data packet to audio output device 120. After receiving the target audio data packet from electronic device 110, audio output device 120 can unpack the target audio data packet and process the obtained original audio bitstream data to achieve audio playback. Electronic device 110 does not need to perform a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding processes. This achieves zero-compression, zero-decompression lossless transmission of audio data, improving the audio playback effect.
[0045] In some embodiments of this application, "communication protocol" includes public communication protocols, which can be adopted by standards organizations or promoted in the industry, and "communication protocol" can also be a proprietary communication protocol, which can be used between devices and systems manufactured by the same manufacturer, and can also be used by other manufacturers with a license. In this application, the nature and use of "communication protocol" are not limited.
[0046] like Figure 2 As shown, in one embodiment, an audio data transmission method is provided, which can be applied to the above-described electronic device. The audio data transmission method may include the following steps:
[0047] Step 210: Encapsulate the original audio bitstream data to obtain the target audio data packet. The target audio data packet includes the communication protocol indicator, the header information corresponding to the audio source data, and the original audio bitstream data.
[0048] Electronic devices can play audio through audio output devices. They can obtain raw audio stream data from audio source data, which can refer to audio data to be played or currently being played. Audio source data can be any type of audio data, such as music, video sound, background noise from applications running on the electronic device, call audio, or notification sounds, but is not limited to these.
[0049] In some embodiments, the audio source data may be audio data that directly stores the original audio bitstream data, and this audio data may carry the original audio bitstream data. The audio format corresponding to the audio source data may include, but is not limited to, formats such as WAV. Optionally, the original audio bitstream data may be a lossless digital audio signal. Further, the original audio bitstream data carried by the audio source data may be an uncompressed audio format, for example, the original audio bitstream data may include, but is not limited to, PCM audio data.
[0050] Audio source data may include a header file and data blocks. The header file stores header information corresponding to the audio source data, and the data blocks store the raw audio bitstream data. The header information corresponding to the audio source data may include, but is not limited to, one or more of the following: audio format, alignment, sampling rate, sampling depth, and number of channels. The alignment refers to the alignment unit of the data blocks in the audio source data, which can be the number of bytes required for each sample; the sampling rate, or sampling frequency, refers to the number of times the analog signal is sampled per unit time; the sampling depth refers to the number of bits in the binary encoded stream after the analog signal is sampled at the sampling rate and quantized into a binary encoded stream; the number of channels can refer to the number of channels, which may include 1 or 2.
[0051] The electronic device can obtain the header information corresponding to the audio source data and sequentially read the original audio bitstream data carried by the audio source data. Based on the communication protocol, the read original audio bitstream data can be packetized to obtain multiple target audio data packets, each containing at least the header information and original audio bitstream data corresponding to the audio source data. These packetized target audio data packets are then sequentially sent to the audio output device. In this embodiment, the electronic device can transmit the target audio data packets to the audio output device frame by frame, achieving a simultaneous transmission and playback effect. This ensures real-time audio playback and can be applied to scenarios with high real-time audio playback requirements, such as notification tone playback, call voice playback, and background music playback during application use. It can meet users' needs for lossless audio playback quality in various scenarios.
[0052] In some embodiments, a communication protocol can be configured to achieve lossless transmission of audio data with zero compression and zero decompression. The communication protocol can specify the data format of the target audio data packet. By encapsulating the original audio bitstream data in the audio source data into a target audio data packet that conforms to the data format, lossless transmission of audio data with zero compression and zero decompression can be achieved.
[0053] The target audio data packet may include header information corresponding to the audio data, original audio bitstream data, and one or more setting fields. The storage location of each setting field in the target audio data packet can be adjusted according to actual needs. In this embodiment, the target audio data packet may include a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data. The communication protocol indicator is used to indicate that the data format of the target audio data packet conforms to the communication protocol. For example, in the data format of the target audio data packet, the communication protocol indicator may be located before or after the header information corresponding to the audio source data, but is not limited to this.
[0054] Electronic devices can encapsulate raw audio stream data based on the data format specified in the communication protocol to obtain a target audio data packet containing an indicator of the communication protocol, header information corresponding to the audio source data, and the raw audio stream data. The indicator of the communication protocol may include at least a vendor identifier and an encoder identifier, etc., of the communication protocol. The encoder identifier can be used to identify the encoding format corresponding to the raw audio stream data in the target audio data packet. Further, the encoder identifier can be used to indicate that the target audio data packet is an audio data packet carrying raw audio stream data in an uncompressed audio format. Optionally, the indicator of the communication protocol may also include information such as a version number of the communication protocol, but is not limited thereto. The vendor identifier, encoder identifier, version number, etc., can all be composed of one or more of numbers, characters, and symbols, etc., and are not limited here.
[0055] Optionally, the setting fields included in the target audio data packet may include, but are not limited to, fields such as frame length information. Optionally, the frame length information may include the frame transmission duration corresponding to the original audio bitstream data contained in the target audio data packet, such as 10ms (milliseconds), 5 milliseconds, etc.
[0056] In this embodiment, the electronic device directly encapsulates the original audio bitstream data in the audio source data to obtain a target audio data packet whose data format conforms to the communication protocol, without needing to perform PCM decoding and SBC, AAC, or other encoding processing on the audio source data. This avoids music quality loss during the encoding and decoding process of the audio source data, saves processing time and power consumption, and the encapsulation process is simple, saving the computing power and memory resources consumed by the electronic device. This achieves lossless audio transmission with zero compression, low power consumption, and low latency.
[0057] Step 220: Send the target audio data packet to the audio output device via a wireless communication channel.
[0058] An electronic device can send a packaged target audio data packet to an audio output device. Upon receiving the target audio data packet, the audio output device can unpack it to obtain the original audio bitstream data contained within it, and then process this original audio bitstream data to achieve audio playback. In some embodiments, the audio output device can first extract a communication protocol indicator from the target audio data packet. Based on this indicator, the device can identify that the target audio data packet conforms to the communication protocol. The audio output device can then extract the header information corresponding to the audio source data and the original audio bitstream data from the target audio data packet based on the communication protocol. Since the original audio bitstream data does not undergo lossy compression encoding during the entire transmission process, the audio output device can play lossless audio data, improving the audio playback effect.
[0059] In some embodiments, the audio output device may perform digital-to-analog conversion on the raw audio bitstream data extracted from the target audio data packet to obtain first analog data, and then amplify the first analog data to obtain second analog data. The audio output device may output the second analog data to achieve audio playback.
[0060] The audio output device unpacks the target audio data packet to obtain the raw audio bitstream data in uncompressed audio format. Then, it converts the raw audio bitstream data from a digital signal to an analog signal using a digital-to-analog converter to obtain first analog data. This first analog data is then amplified by a power amplifier to obtain second analog data. The power amplifier transmits the second analog data to the playback unit, and the audio output device outputs the second analog data through the playback unit to achieve audio playback. In this embodiment, the audio output device can directly obtain the raw audio bitstream data by unpacking the target audio data packet, eliminating the need for further audio data decompression. This further reduces processing latency and power consumption, improves the real-time performance of audio playback, and achieves lossless audio transmission with zero decompression, low power consumption, and low latency.
[0061] In some embodiments, the wireless communication channel may include a Bluetooth communication channel, which includes a broadcast channel and / or a data channel. Optionally, after receiving the target audio data packet, the electronic device may send the target audio data packet to the audio output device via the broadcast channel or the data channel. If the electronic device receives a retransmission request from the audio output device, it may retransmit the target audio data packet indicated by the retransmission request to the audio output device via the data channel.
[0062] A Bluetooth connection can be established between electronic devices and audio output devices. This Bluetooth connection can include classic Bluetooth connections, BLE (Bluetooth Low Energy) connections, etc. A classic Bluetooth connection is a Bluetooth communication connection based on the classic Bluetooth protocol, while a BLE connection is a Bluetooth communication connection based on the BLE protocol. Classic Bluetooth protocol generally refers to Bluetooth protocols below version 4.0, while BLE protocol generally refers to Bluetooth protocols above version 4.0. Furthermore, this Bluetooth connection can be a Bluetooth Audio connection based on a BLE connection, capable of supporting audio data transmission.
[0063] Electronic devices can send target audio data packets to audio output devices via the audio service transmission channel of a Bluetooth connection. If the Bluetooth connection is a classic Bluetooth connection, the audio service transmission channel can be a transmission channel established based on the A2DP (Advanced Audio Distribution Profile) protocol or the HFP (Hands-free Profile) protocol, etc. If the Bluetooth connection is an LE Audio Bluetooth connection, the audio service transmission channel can be a transmission channel such as CIS (Connected Isochronous Streams), but is not limited to these. It should be noted that the embodiments of this application do not limit the specific Bluetooth connection method and communication channel between the electronic device and the audio output device, and can change according to the development of Bluetooth standard protocols. Since the target audio data packet is generated based on communication protocol encapsulation, it can be guaranteed that the audio transmission is not limited to the data format specified by the communication standard protocol in related technologies. The audio transmission method provided in the embodiments of this application is applicable to various different Bluetooth wireless communication transmissions, has strong adaptability, can meet the needs of different transmission scenarios, and improves the audio transmission capability between electronic devices and audio output devices.
[0064] For example, Figure 3 This is a flowchart illustrating an audio transmission method in one embodiment. Figure 3As shown, the electronic device can obtain raw audio bitstream data from the audio source data, and encapsulate the obtained raw audio bitstream data according to the communication protocol to obtain the corresponding target audio data packet. Then, it sends the target audio data packet to the audio output device via Bluetooth wireless transmission. After receiving the target audio data packet, the audio output device can unpack the target audio data packet to obtain the raw audio bitstream data. The raw audio bitstream data can then undergo digital-to-analog conversion and power amplification processing via a DAC and AMP respectively to obtain analog data. Finally, the analog data is output through the playback unit. Compared to... Figure 1A The audio transmission method shown in this application eliminates the need for PCM decoding and Bluetooth audio encoding such as SBC and AAC in the electronic device, thus avoiding music quality loss in the played audio data. Furthermore, the audio output device also eliminates the need for PCM decoding, resulting in shorter overall processing time and reduced transmission latency (for example, using a 10-millisecond frame in Bluetooth transmission, this reduces the latency by more than 30 milliseconds by eliminating the PMC decoding, Bluetooth encoding, and PCM decoding processes in the audio output device). This improves the real-time performance of audio transmission, reduces power consumption and memory usage in both the electronic device and the audio output device, and enhances the lossless audio transmission capability between the electronic device and the audio output device, as it is independent of the Bluetooth audio encoding capabilities of the electronic device.
[0065] In this embodiment, the electronic device directly encodes the original audio bitstream data in the audio source data to obtain target audio data packets with a data format conforming to the communication protocol, and transmits them to the audio output device. This eliminates the need for a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding. This achieves lossless transmission of audio data with zero compression and zero decompression, improving audio playback quality. Furthermore, since the electronic device does not need to perform a series of encoding and decoding processes on the audio source data, transmission latency is reduced, and audio transmission capability is improved.
[0066] The following describes several data formats for target audio data packets:
[0067] (1) The target audio data packet includes the instruction part of the communication protocol, the header information corresponding to the audio source data, and the original audio bitstream data.
[0068] In some embodiments, the target audio data packet may include a packet header and a data section. The packet header may include an indication section of the communication protocol and header information corresponding to the audio source data. The data section may be used to store the original audio bitstream data.
[0069] The instruction section of the communication protocol may include at least a vendor identifier and an encoder identifier. The encoder identifier can be used to identify the encoding format corresponding to the original audio bitstream data in the target audio data packet. Further, the encoder identifier can be used to indicate that the target audio data packet is an audio data packet carrying uncompressed audio bitstream data. Optionally, the instruction section of the communication protocol may also include information such as the version number of the communication protocol, but is not limited thereto. The vendor identifier, encoder identifier, version number, etc., mentioned above can all be composed of one or more of numbers, characters, and symbols, etc., and are not limited here.
[0070] The header information corresponding to the audio source data may include, but is not limited to, one or more of the following: audio format, alignment, sampling rate, sampling depth, and number of channels.
[0071] When an electronic device encapsulates the original audio stream data, the instruction part of the communication protocol and the header information corresponding to the audio source data can be stored in the header of the target audio data packet, and the original audio stream data can be stored in the data part of the target audio data packet.
[0072] In one implementation, the instruction portion of the communication protocol can be stored in the first data segment of the packet header of the target audio data packet, and the header information corresponding to the audio source data can be stored in the second data segment of the packet header. After the electronic device reads the original audio bitstream data from the audio source data, it can store the instruction portion of the communication protocol in the first data segment of the packet header of the target audio data packet, store the header information corresponding to the audio source data in the second data segment of the packet header, and store the read original audio bitstream data in the data section of the target audio data packet.
[0073] Furthermore, the target audio data packet can be configured as follows:
[0074] The first data segment precedes the second data segment; or,
[0075] The first data segment follows the second data segment.
[0076] For example, Figure 4A This is a schematic diagram illustrating the data format of a target audio data packet in one embodiment. For example... Figure 4A As shown, the target audio data packet may include a packet header and a data section. The data section is used to store the original bitstream data, and the packet header may be located before the data section. The packet header includes an indication section of the communication protocol stored in the first data segment and header information corresponding to the audio source data stored in the second data segment. Specifically, the indication section of the communication protocol may be located before the header information corresponding to the audio source data; that is, the header information corresponding to the audio source data may be located between the indication section of the communication protocol and the data section.
[0077] For example, Figure 4BThis is a schematic diagram of the data format of the target audio data packet in another embodiment. For example... Figure 4B As shown, the target audio data packet may include a packet header and a data section. The data section is used to store the original bitstream data, and the packet header may be located before the data section. The packet header includes an indication of the communication protocol stored in the first data segment and header information corresponding to the audio source data stored in the second data segment. The indication of the communication protocol may be located after the header information corresponding to the audio source data; that is, the indication of the communication protocol may be located between the header information corresponding to the audio source data and the data section.
[0078] For example, Figure 4C This is a schematic diagram of the data format of the target audio data packet in another embodiment. For example... Figure 4C As shown, the target audio data packet may include a packet header and a data section. The data section is used to store the raw bitstream data, and the packet header may be located before the data section. The packet header includes an indication section of the communication protocol stored in the first data segment and header information corresponding to the audio source data stored in the second data segment. The indication section of the communication protocol may include a vendor identifier and an encoder identifier, and the header information corresponding to the audio source data may include alignment, sampling rate, sampling depth, number of channels, etc.
[0079] In one embodiment, after receiving a target audio data packet, the audio output device can unpack the target audio data packet and extract the communication protocol indication section from the packet header. Further, the communication protocol indication section can be extracted from the first data segment of the packet header. Then, the header information corresponding to the audio source data is extracted from the packet header, and the data section of the target audio data packet is extracted to obtain the original audio bitstream data stored in that data section. Further, the audio output device can extract the header information corresponding to the audio source data from the second data segment of the packet header.
[0080] The audio output device can first determine whether the target audio data packet supports the communication protocol based on the extracted communication protocol indication section, then extract the header information and raw audio bitstream data corresponding to the audio source data, and then process the raw audio bitstream data to achieve audio playback. This can further improve the data processing efficiency of the audio output device.
[0081] (2) The target audio data packet includes the instruction part of the communication protocol, the header information corresponding to the audio source data, the frame length information and the original audio bitstream data.
[0082] In some embodiments, the target audio data packet may include a packet header and a data section. The packet header may include an indication section of the communication protocol, header information corresponding to the audio source data, and frame length information. The data section may be used to store the original audio bitstream data.
[0083] The frame length information can be used to indicate the frame transmission duration corresponding to each frame of the target audio data packet, such as 10ms, 5ms, etc. Optionally, the frame length information field can directly store the specific frame transmission duration, or it can store a duration identifier corresponding to the frame transmission duration. Different frame transmission durations correspond to different duration identifiers; for example, duration identifier "01" represents 5ms, duration identifier "10" represents 10ms, etc., but it is not limited to these. This can save space occupied by the frame length information field in the target audio data packet.
[0084] As one implementation, frame length information can be stored in the third data segment of the header of the target audio data packet. This third data segment can be after the first data segment and the second data segment of the header, between the first data segment and the second data segment, or before the first data segment and the second data segment. This application embodiment does not limit the specific positional relationship of the first data segment, the second data segment and the third data segment of the header.
[0085] For example, Figure 5A This is a schematic diagram of the data format of the target audio data packet in another embodiment. For example... Figure 5A As shown, the target audio data packet may include a packet header and a data section. The data section is used to store the original bitstream data, and the packet header may be located before the data section. The packet header includes a communication protocol indication section stored in the first data segment, header information corresponding to the audio source data stored in the second data segment, and frame length information stored in the third data segment. The frame length information is located after the communication protocol indication section and the header information corresponding to the audio source data; that is, the header information corresponding to the audio source data may be located between the communication protocol indication section and the frame length information.
[0086] For example, Figure 5B This is a schematic diagram of the data format of the target audio data packet in another embodiment. For example... Figure 5B As shown, the target audio data packet may include a packet header and a data section. The data section is used to store the original bitstream data, and the packet header may be located before the data section. The packet header includes a communication protocol indication section stored in the first data segment, header information corresponding to the audio source data stored in the second data segment, and frame length information stored in the third data segment. The frame length information is located between the communication protocol indication section and the header information corresponding to the audio source data.
[0087] For example, Figure 5C This is a schematic diagram of the data format of the target audio data packet in another embodiment. For example... Figure 5CAs shown, the target audio data packet may include a packet header and a data section. The data section is used to store the raw bitstream data, and the packet header may be located before the data section. The packet header includes an indication of the communication protocol stored in the first data segment, header information corresponding to the audio source data stored in the second data segment, and frame length information stored in the third data segment. The indication of the communication protocol may include a vendor identifier and an encoder identifier, and the header information corresponding to the audio source data may include alignment, sampling rate, sampling depth, number of channels, etc.
[0088] In some embodiments, the electronic device may read raw audio bitstream data of a target data length from the audio source data each time, and encapsulate the read raw audio bitstream data. The raw audio bitstream data contained in the encapsulated target audio data packet corresponds to the target data length. The target data length may be determined based on at least one of the following: the sampling rate of the audio source data, the sampling depth of the audio source data, the number of channels of the audio source data, and the frame transmission duration mentioned above. Specifically, the target data length = sampling rate * sampling depth * number of channels * frame transmission duration / 8. For example, if the sampling rate is 192kHz, the sampling depth is 24bit, the number of channels is 2, and the frame transmission duration is 10ms, then the target data length may be 192k * 24 * 2 * 0.01s / 8 = 1152 bytes. The electronic device may read 1152 bytes of raw audio bitstream data from the audio source data each time and encapsulate the 1152 bytes of raw audio bitstream data.
[0089] As another implementation, the frame length information can be used to indicate the target data length corresponding to the original audio bitstream data contained in each frame of the target audio data packet. Optionally, the frame length information field can directly store the target data length. For example, if the target data length corresponding to the original audio bitstream data contained in each frame of the target audio data packet is 1152 bytes, then the frame length information field can store 1152 bytes, or it can store the binary representation corresponding to 1152 bytes.
[0090] In this embodiment of the application, the header of the target audio data packet may include frame length information. When the audio output device unpacks the target audio data packet, it can accurately extract the original audio bitstream data based on the information contained in the header of the target audio data packet, thereby improving the accuracy and efficiency of unpacking.
[0091] It should be noted that the data format of the target audio data packet is not limited to the above-mentioned data formats. The target audio data packet may also include other field information besides the communication protocol indication, the header information corresponding to the audio source data, the frame length information, and the original audio bitstream data, and can be adjusted according to actual needs.
[0092] In one implementation, the target audio data packet may also include a time series value and / or a checksum. The time series value can be used to characterize the transmission order of the target audio data packet, and the checksum is used to verify the integrity of the target audio data packet.
[0093] The electronic device can sequentially generate time-series values for each target audio data packet according to the transmission order of each generated target audio data packet. Following the transmission order from first to last, the time-series values for each target audio data packet can be accumulated sequentially. The time-series values for target audio data packets can be generated according to a preset sequence generation method. The difference between the time-series value of a later-transmitted target audio data packet and the time-series value of a earlier-transmitted target audio data packet can be a fixed difference. For example, this fixed difference can be 1. If the time-series value of the previously generated target audio data packet was 100, then the time-series value of the currently generated target audio data packet can be 101, but it is not limited to this; the fixed difference can also be 2, 3, etc.
[0094] Optionally, a numerical range corresponding to the time series values can be set. When the time series value corresponding to a certain target audio data packet reaches the maximum value of this range, the time series value corresponding to the next target audio data packet can start from the minimum value of this range and begin a new round of time series accumulation. For example, if the numerical range corresponding to the time series values is 0 to 264, and the time series value corresponding to a certain target audio data packet reaches 264, then the time series value corresponding to the next target audio data packet will be 0, which can avoid the problem of excessive computational resource consumption caused by the infinite accumulation of time series values.
[0095] The time-series value can be stored in the fourth data segment of the target audio data packet. The position of the fourth data segment in the target audio data packet can be pre-configured. For example, the fourth data segment can be placed between the header and the data section, or the fourth data segment can be placed after the data section, etc. There is no limitation here.
[0096] The audio output device can reassemble the raw audio bitstream data contained in each target audio data packet according to the time sequence values in the received target audio data packets, thereby enabling audio processing and playback according to the correct frame order. After receiving the target audio data packets sent by the electronic device, the audio output device can extract the time sequence value from the fourth data segment of the target audio data packet, reassemble the raw audio bitstream data contained in the target audio data packet according to the time sequence value extracted from the target audio data packet, and perform digital-to-analog conversion and power amplification on the reassembled raw audio bitstream data.
[0097] In some embodiments, the audio output device may also determine whether there are any missed target audio data packets based on the time-series values in each target audio data packet. If a missed time-series value is detected, a retransmission request may be sent to the electronic device, which may carry the missed time-series value. After receiving the retransmission request, the electronic device may retransmit the target audio data packet corresponding to the missed time-series value to the audio output device based on the missed time-series value carried in the retransmission request. Optionally, the electronic device may store target audio data packets within a fixed time range, for example, only storing the 20 most recently generated target audio data packets, which can ensure that retransmission can be performed according to the needs of the audio output device without occupying too much storage space.
[0098] After reading the raw audio stream data from the audio source data, the electronic device can calculate the checksum according to a preset calculation method. As one implementation, the read raw audio stream data can be divided into multiple groups of bit data. Each group of bit data can contain N bit values, where N can be a positive integer, such as 1, 4, 8, etc., but is not limited to these. Starting from the first group of bit data read from the raw audio stream data, the current group of bit data is XORed with the next group of bit data until the next group of bit data is the last group of bit data, thus obtaining the checksum. It should be noted that other methods can also be used to calculate the checksum. For example, a segment of bit data can be selected from the read raw audio stream data, and starting from the first bit value of the selected segment, each bit value can be reversed to obtain the checksum, etc., but this is not limited to these methods. The specific checksum calculation method can be set according to actual needs.
[0099] The checksum can be stored in the fifth data segment of the target audio data packet. The position of the fifth data segment in the target audio data packet can be pre-configured. For example, the fifth data segment can be placed between the header and the data section, or the fifth data segment can be placed after the data section, etc. There is no limitation here.
[0100] After receiving a target audio data packet from an electronic device, the audio output device can extract a checksum from the fifth data segment of the target audio data packet. Based on the extracted checksum, the integrity of the target audio data packet is verified. The original audio bitstream data and checksum can be extracted from the target audio data packet according to the communication protocol. The extracted original audio bitstream data can be calculated according to a preset calculation method, and the calculation result is compared with the checksum to determine if they match. If they match, the verification passes, indicating that the target audio data packet is complete; if they do not match, the verification fails, indicating that the target audio data packet is incomplete. If the audio output device detects that the target audio data packet is incomplete, it can send a retransmission request to the electronic device, instructing the electronic device to retransmit the target audio data packet.
[0101] Furthermore, if the audio output device detects that the target audio data packet is incomplete based on the checksum in the target audio data packet, it can use the time series value in the target audio data packet as a packet identifier and send a retransmission request carrying the time series value to the electronic device. After receiving the retransmission request, the electronic device can retransmit the target audio data packet corresponding to the time series value carried in the retransmission request to the audio output device.
[0102] In this embodiment of the application, the electronic device can encode the original audio bitstream data according to the data format specified by the communication protocol, obtain the target audio data packet, and transmit it to the audio output device. It does not require a series of encoding and decoding processes on the audio source data. The encode method is simple, does not depend on the encoding capability of the electronic device, reduces power consumption and resource consumption, and can reduce transmission latency. It realizes lossless transmission of audio data with zero compression and zero decompression, and improves the audio playback effect.
[0103] In one embodiment, a chip is provided, configured to perform the steps of the audio data transmission method for an electronic device as described in the above embodiments. The chip may include a processor and a communication module. The processor is configured to encapsulate raw audio bitstream data to obtain a target audio data packet, and the communication module is configured to transmit the target audio data packet to an audio output device via a wireless communication channel. The chip may be installed in an electronic device, such as a mobile phone, wearable device, in-vehicle terminal, or tablet computer.
[0104] like Figure 6 As shown, in one embodiment, an audio data transmission method is provided, which can be applied to the aforementioned audio output device. The method may include the following steps:
[0105] Step 610: Receive a target audio data packet via a wireless communication channel. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data. The communication protocol indicator indicates that the data format of the target audio data packet conforms to the communication protocol.
[0106] In one embodiment, the wireless communication channel includes a Bluetooth communication channel, which includes a broadcast channel and / or a data channel.
[0107] Step 620: Unpack the target audio data packet.
[0108] In one embodiment, step 620 includes: extracting header information corresponding to the audio source data from the packet header of the target audio data packet; extracting the data portion of the target audio data packet to obtain the original audio bitstream data stored in the data portion.
[0109] In one embodiment, the method further includes: performing digital-to-analog conversion on the raw audio bitstream data extracted from the target audio data packet to obtain first analog data; and amplifying the first analog data to obtain second analog data.
[0110] It should be noted that the specific description of the audio data transmission method applied to the audio output device provided in the embodiments of this application can be referred to the description of the audio data transmission method applied to the electronic device provided in the above embodiments, and will not be repeated here.
[0111] In this embodiment, the electronic device directly encodes the original audio bitstream data in the audio source data to obtain a target audio data packet whose data format conforms to the communication protocol and transmits it to the audio output device. This eliminates the need for a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding. This achieves lossless transmission of audio data with zero compression and zero decompression, improving audio playback quality. Furthermore, since the electronic device does not need to perform a series of encoding and decoding processes on the audio source data, transmission latency is reduced, improving audio transmission capabilities. In addition, the audio output device does not need to perform decoding or other processing, further reducing processing latency, improving processing efficiency, and saving power consumption and resources.
[0112] In one embodiment, a chip is provided, configured to perform the steps of the audio data transmission method for an audio output device as described in the above embodiments. The chip may include a processor and a communication module. The communication module is configured to perform the step of receiving a target audio data packet via a wireless communication channel, and the processor is configured to perform steps such as unpacking the target audio data packet. The chip can be installed in an audio output device, such as headphones, speakers, or car audio players.
[0113] like Figure 7As shown, in one embodiment, an audio data transmission device 700 is provided, which can be applied to the above-mentioned electronic device. The audio data transmission device 700 may include an encapsulation module 710 and a transmission module 720.
[0114] The encapsulation module 710 is used to encapsulate the original audio bitstream data to obtain a target audio data packet. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and the original audio bitstream data. The communication protocol indicator indicates that the data format of the target audio data packet conforms to the communication protocol.
[0115] In one embodiment, the raw audio stream data is in an uncompressed audio format.
[0116] In one embodiment, the uncompressed audio format includes the WAV format.
[0117] In one embodiment, the raw audio stream data includes PCM audio data.
[0118] The transmitting module 720 is used to transmit the target audio data packet to the audio output device via a wireless communication channel.
[0119] In one embodiment, the wireless communication channel includes a Bluetooth communication channel, which includes a broadcast channel and / or a data channel.
[0120] In this embodiment, the electronic device directly encodes the original audio bitstream data in the audio source data to obtain target audio data packets with a data format conforming to the communication protocol, and transmits them to the audio output device. This eliminates the need for a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding. This achieves lossless transmission of audio data with zero compression and zero decompression, improving audio playback quality. Furthermore, since the electronic device does not need to perform a series of encoding and decoding processes on the audio source data, transmission latency is reduced, and audio transmission capability is improved.
[0121] In one embodiment, the encapsulation module 710 is further configured to store the instruction part of the communication protocol and the header information corresponding to the audio source data into the packet header of the target audio data packet; and to store the original audio bitstream data into the data part of the target audio data packet.
[0122] In one embodiment, the instruction part of the communication protocol is stored in the first data segment of the packet header, and the header information corresponding to the audio source data is stored in the second data segment of the packet header, with the first data segment preceding the second data segment.
[0123] In one embodiment, the instruction section of the communication protocol includes:
[0124] The vendor identifier of the communication protocol;
[0125] The encoder identifier of the communication protocol.
[0126] In one embodiment, the target audio data packet further includes frame length information, which is used to indicate the frame transmission duration corresponding to each frame of the target audio data packet.
[0127] In one embodiment, the encapsulation module 710 is further configured to read raw audio bitstream data of a target data length from the audio source data and encapsulate the read raw audio bitstream data; the target data length is determined based on at least one of the following: the sampling rate of the audio source data, the sampling depth of the audio source data, the number of channels of the audio source data, and the frame transmission duration.
[0128] In this embodiment of the application, the electronic device can encode the original audio bitstream data according to the data format specified by the communication protocol, obtain the target audio data packet, and transmit it to the audio output device. It does not require a series of encoding and decoding processes on the audio source data. The encode method is simple, does not depend on the encoding capability of the electronic device, reduces power consumption and resource consumption, and can reduce transmission latency. It realizes lossless transmission of audio data with zero compression and zero decompression, and improves the audio playback effect.
[0129] like Figure 8 As shown, in one embodiment, an audio data transmission device 800 is provided, which can be applied to the above-mentioned audio output device. The audio data transmission device 800 may include a receiving module 810 and an unpacking module 820.
[0130] In one embodiment, the wireless communication channel includes a Bluetooth communication channel, which includes a broadcast channel and / or a data channel.
[0131] The receiving module 810 is used to receive target audio data packets via a wireless communication channel. The target audio data packets include a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data. The communication protocol indicator is used to indicate that the data format of the target audio data packets conforms to the communication protocol.
[0132] The unpacking module 820 is used to unpack the target audio data packets.
[0133] In one embodiment, the unpacking module 820 is further configured to extract header information corresponding to the audio source data from the packet header of the target audio data packet; extract the data portion of the target audio data packet to obtain the original audio bitstream data stored in the data portion.
[0134] In one embodiment, the audio data transmission device 800 includes a receiving module 810 and an unpacking module 820, as well as a processing module.
[0135] The processing module is used to perform digital-to-analog conversion on the raw audio bitstream data extracted from the target audio data packet to obtain the first analog data; and to amplify the power of the first analog data to obtain the second analog data.
[0136] In this embodiment, the electronic device directly encodes the original audio bitstream data in the audio source data to obtain a target audio data packet whose data format conforms to the communication protocol and transmits it to the audio output device. This eliminates the need for a series of encoding and decoding processes on the audio source data, avoiding audio data loss caused by encoding and decoding. This achieves lossless transmission of audio data with zero compression and zero decompression, improving audio playback quality. Furthermore, since the electronic device does not need to perform a series of encoding and decoding processes on the audio source data, transmission latency is reduced, improving audio transmission capabilities. In addition, the audio output device does not need to perform decoding or other processing, further reducing processing latency, improving processing efficiency, and saving power consumption and resources.
[0137] Figure 9 This is a structural block diagram of an electronic device in one embodiment. For example... Figure 9 As shown, the electronic device 900 may include one or more of the following components: a processor 910 and a memory 920 coupled to the processor 910, wherein the memory 920 may store one or more computer programs, which may be configured to implement the audio data transmission method for the electronic device as described in the above embodiments when executed by one or more processors 910.
[0138] Processor 910 may include one or more processing cores. Processor 910 connects to various parts within the electronic device 900 using various interfaces and lines, and performs various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets, or instruction sets stored in memory 920, and by calling data stored in memory 920. Optionally, processor 910 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 910 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 910 and may be implemented separately through a communication chip.
[0139] The memory 920 may include random access memory (RAM) or read-only memory (ROM). The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the electronic device 900 during use.
[0140] Electronic device 900 may also include a Bluetooth module, which can be used to provide Bluetooth communication functionality, establish a Bluetooth connection with a second electronic device, and perform Bluetooth data transmission. The Bluetooth module may support one or more Bluetooth protocols (such as Classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to these, and may change as Bluetooth protocols evolve.
[0141] This application also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor enables the processor to implement the audio data transmission method applied to an audio output device as described in the above embodiments.
[0142] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the audio data transmission method for electronic devices as described in the above embodiments.
[0143] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the audio data transmission method applied to an audio output device as described in the above embodiments.
[0144] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the audio data transmission method for electronic devices as described in the above embodiments.
[0145] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the audio data transmission method applied to an audio output device as described in the above embodiments.
[0146] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, ROM, etc.
[0147] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
[0148] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application. It should be noted that "multiple" in this application includes "two or more".
[0149] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0150] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0151] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0152] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The foregoing has provided a detailed description of an audio data transmission method, apparatus, chip, electronic device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An audio data transmission method, characterized in that, Applied to electronic devices, the method includes: The original audio bitstream data is encapsulated to obtain a target audio data packet, wherein the target audio data packet includes an indicator of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data; The target audio data packet is sent to the audio output device via a wireless communication channel; The communication protocol indication section is used to indicate that the data format of the target audio data packet conforms to the communication protocol; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
2. The method according to claim 1, characterized in that, The uncompressed audio format includes WAV format.
3. The method according to claim 1, characterized in that, The original audio stream data includes PCM audio data.
4. The method according to claim 1, characterized in that, The encapsulation of the original audio bitstream data includes: The instruction section of the communication protocol and the header information corresponding to the audio source data are stored in the header of the target audio data packet; The original audio stream data is stored in the data section of the target audio data packet.
5. The method according to claim 4, characterized in that, The instruction section of the communication protocol is stored in the first data segment of the packet header, and the header information corresponding to the audio source data is stored in the second data segment of the packet header. The first data segment is located before the second data segment.
6. The method according to any one of claims 1 to 5, characterized in that, The instruction section of the communication protocol further includes: The vendor identifier of the communication protocol.
7. The method according to any one of claims 1 to 5, characterized in that, The target audio data packet also includes frame length information, which is used to indicate the frame transmission duration corresponding to each frame of the target audio data packet.
8. The method according to claim 7, characterized in that, The encapsulation of the original audio bitstream data includes: Read the raw audio bitstream data of the target data length from the audio source data, and encapsulate the read raw audio bitstream data; The target data length is determined based on at least one of the following: The sampling rate of the audio source data; The sampling depth of the sound source data; The number of channels in the audio source data; and The frame transmission duration.
9. The method according to any one of claims 1 to 5, characterized in that, The wireless communication channel includes a Bluetooth communication channel, which includes a broadcast channel and / or a data channel.
10. A chip, characterized in that, Includes processor and communication module; The processor is configured to encapsulate the original audio bitstream data to obtain a target audio data packet, wherein the target audio data packet includes an indicator of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data; The communication module is configured to send the target audio data packet to the audio output device via a wireless communication channel; The communication protocol indication section is used to indicate that the data format of the target audio data packet conforms to the communication protocol; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
11. An audio data transmission method, characterized in that, Applied to an audio output device, the method includes: A target audio data packet is received via a wireless communication channel. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data. The communication protocol indicator is used to indicate that the data format of the target audio data packet conforms to the communication protocol. Unpack the target audio data packet; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
12. The method according to claim 11, characterized in that, The unpacking of the target audio data packet also includes: Extract the header information corresponding to the sound source data from the packet header of the target audio data packet; Extract the data portion of the target audio data packet to obtain the original audio bitstream data stored in the data portion.
13. The method according to claim 11 or 12, characterized in that, The method further includes: The raw audio bitstream data extracted from the target audio data packet is subjected to digital-to-analog conversion to obtain the first analog data; The first simulation data is amplified to obtain the second simulation data.
14. The method according to claim 11 or 12, characterized in that, The wireless communication channel includes a Bluetooth communication channel, which includes a broadcast channel and / or a data channel.
15. A chip, characterized in that, Includes processor and communication module; The communication module is configured to receive a target audio data packet via a wireless communication channel; the target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and original audio bitstream data; wherein, the communication protocol indicator is used to indicate that the data format of the target audio data packet conforms to the communication protocol; The processor is configured to: unpack the target audio data packet; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
16. An audio data transmission device, characterized in that, Applied to electronic devices, the device includes: The encapsulation module is used to encapsulate the original audio bitstream data to obtain a target audio data packet. The target audio data packet includes an indicator section of the communication protocol, header information corresponding to the audio source data, and the original audio bitstream data. The transmitting module is used to transmit the target audio data packet to the audio output device via a wireless communication channel; The communication protocol indication section is used to indicate that the data format of the target audio data packet conforms to the communication protocol; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
17. An audio data transmission device, characterized in that, Applied to an audio output device, the device includes: A receiving module is configured to receive a target audio data packet via a wireless communication channel. The target audio data packet includes a communication protocol indicator, header information corresponding to the audio source data, and raw audio bitstream data. The communication protocol indicator is configured to indicate that the data format of the target audio data packet conforms to the communication protocol. The unpacking module is used to unpack the target audio data packet; The communication protocol instruction section includes an encoder identifier for the communication protocol, which indicates that the target audio data packet is an audio data packet carrying the original audio bitstream data in an uncompressed audio format.
18. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the method as described in any one of claims 1 to 9 or 11 to 14.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 9 or 11 to 14.
Citation Information
Patent Citations
Audio data mixing method and device
CN108877820A
Method and device for controlling media resources by vehicle-mounted equipment and storage medium
CN113163263A
Audio data transmission method, electronic equipment and storage medium
CN114765761A