WO2022218165A1 - Procédé et appareil pour recevoir un paquet de données audio, procédé et appareil pour envoyer un paquet de données audio et dispositif électronique - Google Patents

Procédé et appareil pour recevoir un paquet de données audio, procédé et appareil pour envoyer un paquet de données audio et dispositif électronique Download PDF

Info

Publication number
WO2022218165A1
WO2022218165A1 PCT/CN2022/084598 CN2022084598W WO2022218165A1 WO 2022218165 A1 WO2022218165 A1 WO 2022218165A1 CN 2022084598 W CN2022084598 W CN 2022084598W WO 2022218165 A1 WO2022218165 A1 WO 2022218165A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
data packet
audio data
buffer area
stored
Prior art date
Application number
PCT/CN2022/084598
Other languages
English (en)
Chinese (zh)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022218165A1 publication Critical patent/WO2022218165A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the field of data transmission, and in particular, to a method for receiving audio data packets, a method, apparatus, electronic device and storage medium for transmitting audio data packets.
  • the audio data in the device can be transmitted to the Bluetooth device for playback.
  • the transmission of the transmitted audio data packet may fail, or the Bluetooth device cannot.
  • the audio data packet is received in time, which reduces the transmission efficiency of the audio data packet and causes the audio playback on the Bluetooth device side to freeze.
  • the embodiments of the present application provide a method for receiving audio data packets, a method, apparatus, electronic device and storage medium for sending audio data packets.
  • the embodiment of the present application provides a method for receiving audio data packets in an audio receiving end, including:
  • the second audio data packet in the second buffer area is stored in the first buffer area based on the playing sequence of the audio data packets.
  • Embodiments of the present application also provide a method for sending audio data packets in an audio source, including:
  • the audio source data is encoded to obtain the first audio data packet, and the first audio data packet is stored in the third buffer area;
  • the first audio data packet is extracted from the third buffer area and sent to the audio receiving end.
  • the embodiment of the present application also provides an audio receiving device, including:
  • a first receiving unit configured to receive audio source data from an audio source through transparent transmission
  • a second receiving unit configured to receive a first audio data packet from the audio source, and store the first audio data packet in a first buffer area
  • a storage unit configured to encode the audio source data to obtain a second audio data packet, and store the second audio data packet in a second buffer area;
  • the playing unit is configured to store the second audio data packets in the second buffer area into the first buffer area based on the playing sequence of the audio data packets if a predetermined condition is satisfied.
  • the embodiment of the present application also provides another audio transmission device, including:
  • an encoding unit configured to encode the audio source data to obtain a first audio data packet, and store the first audio data packet in a third buffer area;
  • a first transmission unit configured to transparently transmit the audio source data to the audio receiving end
  • the second transmission unit is configured to extract the first audio data packet from the third buffer area and send it to the audio receiving end.
  • Embodiments of the present application also provide an electronic device, including: a processor and a memory configured to store a computer program that can be executed on the processor,
  • the processor is configured to execute the steps of any of the above methods when running the computer program.
  • Embodiments of the present application further provide a storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of any of the foregoing methods.
  • the audio source data is received from the audio source through transparent transmission; the first audio data packet is received from the audio source, and the first audio data packet is stored in the first buffer area; The source data is encoded to obtain the second audio data packet, and the second audio data packet is stored in the second buffer area; if the predetermined condition is met, based on the playback order of the audio data packets, the second audio data packet in the second buffer area is stored.
  • the audio data packet is stored in the first buffer area, and the audio source data and the audio data after the encoding process are simultaneously transmitted to the audio receiving end, so that the audio receiving end can pass the received audio when the playback is stuck. Extract the corresponding data from the source data and continue to play, thus avoiding the problem of audio playback being stuck.
  • FIG. 1 is a schematic flowchart of an implementation of an audio transmission method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an audio playback process of a second Bluetooth device provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of determining a first identifier according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an implementation flowchart of an audio transmission method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a sending process of audio data provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of sending a first audio data packet according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an audio transmission device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an audio transmission apparatus provided by another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a hardware composition of an electronic device according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for receiving an audio data packet in an audio receiving end according to an embodiment of the present application. As shown in Figure 1, the method includes:
  • S101 Receive audio source data from an audio source in a transparent transmission manner.
  • the received audio source data is transmitted from the audio source to the audio receiver through transparent transmission.
  • the audio source transmits the audio source data, it does not perform encoding and other processing on the audio source data, and directly transmits the audio source data to the audio receiver. so that the audio sink can obtain the audio source data.
  • the audio source and the audio receiving end may be connected by Bluetooth.
  • the audio source may be a mobile terminal, and the audio receiving end may be a Bluetooth headset.
  • S102 Receive a first audio data packet from the audio source, and store the first audio data packet in a first buffer area; the first audio data packet is obtained by encoding the audio source data by the audio source.
  • the audio receiving end may also receive the first audio data packet from the audio source, and store the first audio data packet in the first buffer area on the audio receiving end side.
  • the first audio data packet is the first audio data packet obtained by encoding the audio source data by the audio source.
  • the first audio data packet is transmitted from the audio source to the audio receiving end at a certain time, so the audio source data can be transmitted at a time other than the transmission of the first audio data packet, so that the first audio data packet will not be affected. The transmission efficiency of an audio data packet.
  • S103 Encode the audio source data to obtain a second audio data packet, and store the second audio data packet in a second buffer area.
  • the audio receiving end encodes the audio source data to obtain the second audio data packet, and stores the second audio data packet in the second buffer area, wherein the second buffer area is located in the audio receiving end.
  • the terminal side is responsible for storing the second audio data packet so that when the audio played at the audio receiving end is stuck, the corresponding second audio data packet can be extracted from the second audio buffer area to keep the audio playing.
  • the first audio data packet and the second audio data packet are both valid audio data, and the corresponding audio content can be played.
  • the transmission between the audio sink and the audio source is in good condition
  • the The corresponding first audio data packet is extracted from the buffer area for audio playback.
  • the second audio data packet in the second buffer area can be stored in the first buffer area for playback, wherein the predetermined condition can represent The playback of the first audio data packet is blocked or the audio playback is stuck.
  • the audio source encodes the audio source data to generate an audio data packet
  • the audio source data is encoded in sequence.
  • the first audio data packet received by the audio receiver and the second audio data generated by the encoding are both It is a part of the data in the audio source data.
  • a corresponding first audio data packet serial number may be attached to the first audio data packet, and the first audio data packet serial number may indicate the playback of the audio sequence, so that the corresponding first audio data packet can be extracted and played.
  • the sequence number of the first audio data packet corresponding to the currently playing audio is 3, then after the corresponding audio is played, the first audio data packet is extracted from the first buffer area.
  • the audio data packet whose sequence number is 4 of the first audio data packet is used for subsequent audio playback. As shown in FIG.
  • FIG. 2 shows a schematic diagram of an audio playing process of an audio receiving end.
  • the Bluetooth module of the audio receiving end receives the first audio data packet and audio source data, stores the first audio data packet received by the Bluetooth module in the first buffer area, and encodes the second audio based on the audio source data.
  • the data packets are stored in the second buffer area, and the audio playback unit extracts the corresponding first audio data packets from the first buffer area to realize audio playback.
  • the audio playback unit extracts the corresponding second audio data packets from the second buffer area and stores them in the first buffer area, which can also realize audio playback.
  • the audio source data is received from the audio source through transparent transmission; the first audio data packet is received from the audio source, and the first audio data packet is stored in the first buffer area; Data encoding obtains a second audio data packet, and the second audio data packet is stored in the second buffer area; if a predetermined condition is met, based on the playback order of the audio data packets, the second audio data packet in the second buffer area is stored.
  • the data packet is stored in the first buffer area, and the transmission audio data packet and audio source data can be transmitted to the audio receiving end, so that the audio receiving end encounters a jam during the playback of the audio data packet. Maintain the normal playback of audio according to the received audio source data to avoid the problem of audio playback being stuck or interrupted.
  • the second audio data packet in the second buffer area is stored in the first buffer area based on the playback order of the audio data packets, including:
  • the second audio data packets in the second buffer area are stored in the first buffer area.
  • the number of the first audio data packets stored in the first buffer area can be determined by the number of the first audio data packets stored in the first buffer area whether the audio playback will freeze. Under normal circumstances, the number of the first audio data packets stored in the first buffer area should be in a stable state. When the connection between the audio source and the audio receiver is unstable, and the number of the first audio data packets stored in the first buffer area is less than the set threshold, it can be determined that the audio receiver has not received audio.
  • the new first audio data packet from the source and in this case, in order to maintain the normal playback of the audio, the first audio data packet originally stored in the first buffer area is extracted and played, that is, the audio receiving end
  • the received first audio data packet is about to be exhausted, and the audio playback is about to freeze, then store the second audio data packet in the second buffer area into the first buffer area, and pass through the second buffer area.
  • the first audio data packet that cannot be successfully transmitted will be replaced, so that audio playback can be maintained according to the second audio data packet.
  • the second audio data packets in the second buffer area are stored in the A buffer area, which can predict the situation of audio playback by the data volume of the first audio data packet stored in the buffer area, so that the audio playback can be maintained through the second audio data packet in time when the audio playback freezes, so as to avoid the occurrence of Audio playback is stuttered or interrupted.
  • the method further includes:
  • the storing of the second audio data packet in the second buffer area into the first buffer area is stopped.
  • the first audio data packet stored in the first buffer area is greater than or equal to the set threshold, it means that the connection between the audio source and the audio receiving end is restored or the connection state is good, which can ensure the normal operation of the first audio packet. In this case, it is not necessary to perform audio playback through the second audio data packet, so that the extraction of the corresponding second audio data packet from the second buffer area and storing the corresponding second audio data packet in the first buffer area is stopped.
  • the storage of the second audio data packet in the second buffer area into the The first buffer area can determine the transmission status of the first audio data packet according to the number of the first audio data packets stored in the first buffer area.
  • the original playback can be maintained. mode, so as to ensure that the audio can be played normally and avoid the phenomenon that the audio playback is stuck or interrupted.
  • the encoding of the audio source data to obtain the second audio data packet includes:
  • the audio source data is encoded using the same encoding parameters as the encoding method of the audio source to obtain the second audio data packet.
  • the audio receiving end when it encodes the audio source data, it uses the same encoding parameters as the encoding method of the audio source to perform corresponding operations such as encoding and compressing the audio source data, so that the encoding of the generated second audio data packet is
  • the parameter is the same as the encoding parameter of the first audio data packet, wherein the encoding parameter may include the frame length of one audio data packet.
  • the audio data packet sequence number corresponding to each second audio data packet may also be determined when the second audio data packet is generated.
  • the first audio data packet with the same audio data packet serial number is the same as the second audio data packet, for example, the audio data
  • the audio content corresponding to the first audio data packet with the packet sequence number of 1 is the same as the audio content corresponding to the second audio data packet, so that when audio playback is performed based on the second audio data packet, the extracted second audio data packet is just for the subsequent needs.
  • the audio content to be played ensures the continuity of audio playback.
  • the audio source data is encoded using the same encoding parameters as the encoding method of the audio source to obtain the second audio data packet, which enables the generated first audio data packet and the second audio data to be generated.
  • the packets are the same, so that when the audio is played based on the playback of the second audio data packet, the continuity of the audio playback is ensured, and the disorder of the audio playback is avoided.
  • the method when the second audio data packet is stored in the second buffer area, the method further includes:
  • a first identifier is added to the second audio data packet, where the first identifier is used to mark whether the audio receiving end has played the audio corresponding to the second audio data packet.
  • a first identification can be added to the second audio data packet, and the first identification is used to mark whether the audio receiving end is The audio corresponding to the second audio data packet has been played.
  • the first identifier corresponding to the second audio data packet can be changed according to the currently playing audio data packet.
  • the first mark of the second audio data packet of the audio data packet serial number is determined to be in the played state.
  • the first flag is indicated by flag
  • the terminal has played the second audio data packet.
  • the flag value corresponding to the second audio data packet is shown in FIG. 3 , which shows a schematic flowchart of determining the first identifier.
  • the audio corresponding to the second audio data packet of 8 has been played by the audio playback terminal, so that the playback progress of the current audio can be determined according to the first identifier of the second audio data packet.
  • the storing of the second audio data packet in the second buffer area into the first buffer area includes:
  • the second audio data packet in the second buffer area is stored in the first buffer area.
  • a first identification is added to the second audio data packet, and the first identification is used to mark the audio receiving end Whether the audio corresponding to the second audio data packet has been played; based on the corresponding first identification and the current playback order, the second audio data packet in the second buffer area is stored in the first buffer area,
  • the playback progress of the current audio can be determined by the first identification, which is conducive to accurately extracting the audio data packets corresponding to the subsequent content of the current audio, and can accurately play the corresponding audio content while avoiding the audio playback jam, keeping the audio Continuity of playback.
  • storing the second audio data packet in the second buffer area into the first buffer area includes:
  • the second audio data packets in the second buffer area are sequentially stored in the first buffer area.
  • the corresponding second audio data packet is extracted from the second buffer area, it is not obtained continuously, but every first cycle, the corresponding second audio data packet is extracted from the second buffer area, wherein, The first period is determined based on the audio playback speed of the audio receiving end.
  • the first audio data packet that the audio receiving end can receive periodically indicates that the audio source can send the first audio data packet normally, thus ensuring that The audio playback at the audio receiving end is smooth. Therefore, extracting the second audio data packet from the second buffer area based on the first cycle of receiving the first audio data packet can maintain the audio playback speed and ensure smooth audio playback.
  • a first cycle is determined based on the audio playback speed of the audio receiving end; and every first cycle, the second audio data packets in the second buffer area are sequentially stored in the first cycle
  • the buffer area can maintain the audio playback speed by controlling the extraction time of the audio data packet, so that the effect of playing audio based on the second audio data packet is similar to or the same as the effect of playing audio based on the first audio data packet, thereby ensuring smooth audio playback.
  • the method further includes:
  • the second audio data packet in the second buffer area is stored in the first buffer area for playback.
  • the first audio data packet is realized by the Bluetooth connection between the audio source and the audio receiving end.
  • the Bluetooth connection between the audio source and the audio receiving end is disconnected, for example, the audio receiving end and the audio receiving end are disconnected.
  • the distance between the sources is outside the effective Bluetooth communication range, so the effective transmission of the first audio data packet cannot be achieved, resulting in the inability to realize audio playback according to the first audio data packet before the audio source and the audio receiving end are reconnected, and In the process of maintaining the Bluetooth connection between the audio source and the audio receiving end, the transmission of all audio source data can be realized, and the transmission of the audio source data does not take too long.
  • the second audio data package obtained by encoding the audio source data is used for audio playback, and the second audio data package is stored in the audio receiving device to realize offline local playback.
  • the second audio data packet in the second buffer area is stored in the first buffer area for playback, which can be played when the Bluetooth connection is disconnected.
  • offline local playback is implemented based on the audio data packets of the transmitted audio source data, so that the offline playback capability of the audio receiving end can be implemented.
  • the method further includes:
  • the corresponding audio is played.
  • the second audio data packet extracted from the second buffer area is stored in the first buffer area, and the first buffer area can play the corresponding audio according to the stored second audio data packet.
  • Both the audio data packet and the second audio data packet are valid audio data and can play the corresponding audio content
  • the second audio data packet in the first buffer area is the first audio data packet in the first buffer area that is about to be consumed. Therefore, when the corresponding audio is played according to the second audio data packet, the playback content corresponding to the first audio data packet can be followed, thereby ensuring smooth playback of the audio.
  • the transparently transmitted audio data can be used to maintain the audio playback when the transmission condition is not good, so as to avoid audio Playback freezes.
  • the embodiment of the present application also provides a method for sending audio data packets in an audio source, as shown in FIG. 4 , the method includes:
  • S401 Encode audio source data to obtain a first audio data packet, and store the first audio data packet in a third buffer area.
  • the audio source encodes the audio source data to generate the first audio data packet, and stores the generated first audio data packet into the third buffer area.
  • a corresponding audio data packet serial number can also be added to the first audio data packet when the first audio data packet is generated, and different first audio data packets can be played in the playback order through the audio data packet serial number. Sorting, so that the order in which the first audio data packets are sent to the audio receiving end can be determined.
  • S402 Transparently transmit the audio source data to the audio receiving end.
  • the audio source also transmits audio source data to the audio sink through transparent transmission.
  • the audio source data does not need to undergo data processing such as encoding, and the audio source data is directly transmitted to the audio receiving end.
  • S403 Extract the first audio data packet from the third buffer area and send it to the audio receiving end.
  • the first audio data packet is extracted from the third buffer area and sent to the receiving end.
  • the third buffer area on the audio source side can be used to encode the first audio data packet generated later.
  • the audio data packet is buffered first, and after the first audio data packet that needs to be retransmitted is successfully transmitted, the first audio data packet stored in the third buffer area can be transmitted immediately, so as to ensure that the connection is unstable or the transmission condition is insufficient.
  • the complete transmission of audio data packets can be achieved under optimal conditions.
  • Figure 5 shows a schematic diagram of the sending process of the first audio data packet and the audio source data.
  • the audio source will encode the audio source data to obtain the first audio data packet, and judge the previous first audio data. Whether the transmission of the packet is successful and whether there is no audio data packet in the buffer area, when the last first audio data packet is sent successfully, it means that the first audio data packet can be sent directly. If successful, the first audio data packet is stored in the buffer area, and when the previous first audio data packet is successfully sent, the first audio data packet in the buffer area is sent out.
  • the audio source data is encoded to obtain the first audio data packet, and the first audio data packet is stored in the third buffer area; the audio source data is transparently transmitted to the audio receiving end; The third buffer area extracts the first audio data packet and sends it to the audio receiving end, so that the audio source data and the corresponding audio data packet can be sent to the audio playing end, so that the audio receiving end can receive the audio in time.
  • the audio source data is used for subsequent audio playback to avoid abnormal disconnection between Bluetooth devices or the phenomenon that audio playback is stuck due to infinite interference.
  • the extracting the first audio data packet from the third buffer area and sending it to the audio receiving end includes:
  • the first audio data packet is extracted from the third buffer area and sent to the audio receiving end.
  • FIG. 6 shows a schematic diagram of sending a first audio data packet.
  • the sending time interval between two different first audio data packets is a first period.
  • the transparent transmission of the audio source data to the audio receiving end includes:
  • the audio source data is transparently transmitted to the audio receiving end in the transmission gap of the first audio data packet.
  • the audio source data is transparently transmitted to the audio receiving end during the transmission gap of the first audio data packet. Since the first audio data packet is sent every first cycle, the first audio data will not be processed in the first cycle. In the transmission of the packet, the transparent transmission of the audio source data at this time will not affect the transmission performance of the first audio data packet, so that the transmission of the audio source data can be achieved while ensuring the transmission efficiency of the first audio data packet.
  • the first cycle is determined based on the audio playback speed of the audio receiving end; and, every first cycle, the first audio data packet is extracted from the third buffer area and sent to the
  • the audio receiving end transparently transmits the audio source data to the audio receiving end in the transmission gap of the first audio data packet, so that the transmission of the audio data packet can be carried out without affecting the transmission of the audio data packet, and the audio data can be transmitted. transmission efficiency.
  • the embodiment of the present application further provides an audio receiving apparatus, as shown in FIG. 7 , the apparatus includes:
  • the first receiving unit 701 is configured to receive audio source data from the audio source through transparent transmission
  • the second receiving unit 702 is configured to receive a first audio data packet from the audio source, and store the first audio data packet in a first buffer area; the first audio data packet is stored by the audio source to the The audio source data is encoded and obtained;
  • Storage unit 703 configured to encode the audio source data to obtain a second audio data packet, and store the second audio data packet into a second buffer area;
  • the playback unit 704 is configured to extract the corresponding first audio data packets from the first buffer area and play them according to the playback sequence corresponding to the audio data packets, or, under predetermined conditions, place the second buffer area in the second buffer area.
  • the second audio data packet is stored in the first buffer area and played.
  • the playing unit 704 stores the second audio data packet in the second buffer area into the first buffer area under a predetermined condition and plays it, and is further configured to:
  • the second audio data packets in the second buffer area are stored in the first buffer area and played.
  • the playing unit 704 is further configured to:
  • the storing of the second audio data packet in the second buffer area into the first buffer area is stopped.
  • the storage unit 703 encodes the audio source data to obtain a second audio data packet, and is further configured to:
  • the audio source data is encoded using the same encoding parameters as the encoding method of the audio source to obtain the second audio data packet.
  • the storage unit 703, which stores the second audio data packet in the second buffer area is further configured to:
  • a first identification is added for the second audio data packet, and the first identification is used to mark whether the audio receiver has played the audio corresponding to the second audio packet;
  • the playing unit 704 stores the second audio data packet in the second buffer area into the first buffer area, and is further configured to:
  • the second audio data packet in the second buffer area is stored in the first buffer area.
  • the playing unit 704 stores the second audio data packet in the second buffer area into the first buffer area, and is further configured to:
  • the second audio data packets in the second buffer area are sequentially stored in the first buffer area.
  • the playback unit 704 is further configured to:
  • the second audio data packet in the second buffer area is stored in the first buffer area for playback.
  • the playback unit 704 is further configured to:
  • the corresponding audio is played.
  • the first receiving unit 701, the second receiving unit 702, the storage unit 703, and the playing unit 704 may be implemented by a processor in an audio receiving device.
  • the processor needs to run the program stored in the memory to realize the functions of the above program modules.
  • the audio receiving apparatus provided in the above embodiment of FIG. 7 performs audio transmission
  • only the division of the above program modules is used as an example for illustration.
  • the above processing may be allocated to different program modules as required. Completion means dividing the internal structure of the device into different program modules to complete all or part of the processing described above.
  • the audio receiving apparatus provided in the above embodiment and the method embodiment for receiving an audio data packet in an audio receiving end belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
  • the embodiment of the present application also provides another audio transmission device, as shown in FIG. 8 , the device includes:
  • the encoding unit 801 is configured to encode the audio source data to obtain the first audio data packet, and store the first audio data packet into the third buffer area;
  • a first transmission unit 802 configured to transparently transmit the audio source data to the audio receiving end
  • the second transmission unit 803 is configured to extract the first audio data packet from the third buffer area and send it to the audio receiving end.
  • the second transmission unit 803 extracts the first audio data packet from the third buffer area and sends it to the audio receiving end, and is further configured to:
  • the first transmission unit 802 transparently transmits the audio source data to the audio receiving end, and is further configured to:
  • the audio source data is transparently transmitted to the audio receiving end in the transmission gap of the first audio data packet.
  • the encoding unit 801, the first transmission unit 802, and the second transmission unit 803 may be implemented by a processor in the audio transmission apparatus.
  • the processor needs to run the program stored in the memory to realize the functions of the above program modules.
  • the audio transmission device provided in the above-mentioned embodiment of FIG. 8 performs audio transmission
  • only the division of the above-mentioned program modules is used for illustration.
  • the above-mentioned processing may be allocated to different program modules as required. Completion means dividing the internal structure of the device into different program modules to complete all or part of the processing described above.
  • the audio sending device provided in the above embodiment and the method embodiment for sending audio data packets in an audio source belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
  • FIG. 9 is a schematic diagram of the hardware composition of the electronic device according to the embodiment of the present application, as shown in FIG. 9 .
  • electronic equipment including:
  • Communication interface 1 which can exchange information with other devices such as network devices;
  • the processor 2 is connected to the communication interface 1 to realize information interaction with other devices, and is configured to execute the audio transmission method provided by one or more of the above technical solutions when running a computer program.
  • the computer program is instead stored on the memory 3 .
  • bus system 4 is configured to enable connection communication between these components.
  • bus system 4 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 4 in FIG. 9 .
  • the memory 3 in the embodiment of the present application is configured to store various types of data to support the operation of the electronic device.
  • Examples of such data include: any computer program configured to operate on an electronic device.
  • the memory may be either volatile memory or non-volatile memory, and may include both volatile and non-volatile memory.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-only memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be disk memory or tape memory.
  • RAM Random Access Memory
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Type Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Link Dynamic Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • a processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the above-mentioned processors may be general-purpose processors, DSPs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, the storage medium is located in a memory, and the processor reads the program in the memory, and completes the steps of the foregoing method in combination with its hardware.
  • an embodiment of the present application further provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory for storing a computer program, and the above-mentioned computer program can be executed by a processor to complete the steps described in the preceding method.
  • the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the disclosed apparatus, electronic device and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
  • the unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may all be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
  • the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.
  • the above-mentioned integrated units of the present application are implemented in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions for An electronic device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other mediums that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Les modes de réalisation de la présente demande divulguent un procédé et un appareil pour recevoir un paquet de données audio, un procédé et un appareil pour envoyer un paquet de données audio, ainsi qu'un dispositif électronique et un support de stockage. Le procédé de réception d'un paquet de données audio consiste à : recevoir des données de source audio provenant d'une source audio au moyen d'une transmission transparente ; recevoir un premier paquet de données audio à partir de la source audio et stocker le premier paquet de données audio dans une première zone de mémoire cache ; encoder les données de source audio pour obtenir un second paquet de données audio et stocker le second paquet de données audio dans une seconde zone de mémoire cache ; et, si une condition prédéterminée est satisfaite, stocker le second paquet de données audio de la seconde zone de mémoire cache dans la première zone de mémoire cache sur la base d'un ordre de lecture du paquet de données audio.
PCT/CN2022/084598 2021-04-13 2022-03-31 Procédé et appareil pour recevoir un paquet de données audio, procédé et appareil pour envoyer un paquet de données audio et dispositif électronique WO2022218165A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110395397.9A CN113131972B (zh) 2021-04-13 2021-04-13 接收和发送音频数据包的方法、装置、电子设备及存储介质
CN202110395397.9 2021-04-13

Publications (1)

Publication Number Publication Date
WO2022218165A1 true WO2022218165A1 (fr) 2022-10-20

Family

ID=76776105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/084598 WO2022218165A1 (fr) 2021-04-13 2022-03-31 Procédé et appareil pour recevoir un paquet de données audio, procédé et appareil pour envoyer un paquet de données audio et dispositif électronique

Country Status (2)

Country Link
CN (1) CN113131972B (fr)
WO (1) WO2022218165A1 (fr)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113131972B (zh) * 2021-04-13 2022-04-15 Oppo广东移动通信有限公司 接收和发送音频数据包的方法、装置、电子设备及存储介质
CN114173426B (zh) * 2021-11-30 2023-09-29 广州番禺巨大汽车音响设备有限公司 基于无线音频传输的无线音箱播放控制方法、装置及系统
CN118282969B (zh) * 2024-03-28 2024-09-20 广东保伦电子股份有限公司 一种网络音频传输方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333752A (zh) * 2014-11-25 2015-02-04 杭州海康威视数字技术股份有限公司 进行音频质量诊断的方法及装置
CN105429983A (zh) * 2015-11-27 2016-03-23 刘军 采集媒体数据的方法、媒体终端及音乐教学系统
CN105611317A (zh) * 2016-01-18 2016-05-25 北京流金岁月文化传播股份有限公司 一种支持音频透传的视音频转码的装置和方法
US20190373032A1 (en) * 2018-06-01 2019-12-05 Apple Inc. Adaptive and seamless playback buffer adjustment for streaming content
CN110661992A (zh) * 2018-06-29 2020-01-07 视联动力信息技术股份有限公司 数据处理方法和装置
CN111385780A (zh) * 2020-01-17 2020-07-07 北京塞宾科技有限公司 一种蓝牙音频信号传输方法和装置
CN113131972A (zh) * 2021-04-13 2021-07-16 Oppo广东移动通信有限公司 接收和发送音频数据包的方法、装置、电子设备

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001043603A (ja) * 1999-07-29 2001-02-16 Pioneer Electronic Corp 音楽機器
CN103747317B (zh) * 2013-12-27 2017-03-15 高新兴科技集团股份有限公司 一种播放库在不稳定网络下的流畅播放控制方法
CN105635804B (zh) * 2014-11-04 2019-08-16 深圳Tcl新技术有限公司 一种无线音频传输方法及系统
CN105791961B (zh) * 2014-12-23 2018-12-07 深圳Tcl数字技术有限公司 终端与环绕音响之间音频数据的无线传输方法及系统
CN107911729A (zh) * 2017-10-23 2018-04-13 广州市百果园网络科技有限公司 网络视频播放方法及终端
CN108495177B (zh) * 2018-03-30 2021-07-13 北京世纪好未来教育科技有限公司 一种音频变速处理方法及装置
CN109981590A (zh) * 2019-02-28 2019-07-05 浙江工业大学 一种基于b/s架构的流媒体音视频同步播放方法
CN110503935B (zh) * 2019-07-16 2020-11-06 北京达佳互联信息技术有限公司 音频数据处理方法、装置、电子设备及存储介质
CN113900619A (zh) * 2019-09-27 2022-01-07 北京西山居互动娱乐科技有限公司 一种音频数据处理方法及装置
CN112105006A (zh) * 2019-12-12 2020-12-18 炬力(珠海)微电子有限公司 一种蓝牙设备播放方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333752A (zh) * 2014-11-25 2015-02-04 杭州海康威视数字技术股份有限公司 进行音频质量诊断的方法及装置
CN105429983A (zh) * 2015-11-27 2016-03-23 刘军 采集媒体数据的方法、媒体终端及音乐教学系统
CN105611317A (zh) * 2016-01-18 2016-05-25 北京流金岁月文化传播股份有限公司 一种支持音频透传的视音频转码的装置和方法
US20190373032A1 (en) * 2018-06-01 2019-12-05 Apple Inc. Adaptive and seamless playback buffer adjustment for streaming content
CN110661992A (zh) * 2018-06-29 2020-01-07 视联动力信息技术股份有限公司 数据处理方法和装置
CN111385780A (zh) * 2020-01-17 2020-07-07 北京塞宾科技有限公司 一种蓝牙音频信号传输方法和装置
CN113131972A (zh) * 2021-04-13 2021-07-16 Oppo广东移动通信有限公司 接收和发送音频数据包的方法、装置、电子设备

Also Published As

Publication number Publication date
CN113131972B (zh) 2022-04-15
CN113131972A (zh) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2022218165A1 (fr) Procédé et appareil pour recevoir un paquet de données audio, procédé et appareil pour envoyer un paquet de données audio et dispositif électronique
US11681452B2 (en) Memory access technology and computer system
WO2019148563A1 (fr) Procédé et appareil d'envoi de données, et procédé et appareil de réception de données
KR102173089B1 (ko) 인터페이스 회로 및 그것의 패킷 전송 방법
US11784756B2 (en) Memory access technology and computer system
CN111314217B (zh) 一种多链路传输系统
US20120158988A1 (en) Media Requests to Counter Latency and Minimize Network Bursts
US11563992B2 (en) Video playback quality detection method and apparatus
US10862767B2 (en) Data packet prediction
CN111352889A (zh) 一种基于mctp协议的设备管理方法、设备、装置和介质
WO2018041074A1 (fr) Procédé, appareil et système d'accès à un dispositif de mémoire
WO2019057005A1 (fr) Procédé de vérification de données, dispositif et carte réseau
JP2010537309A (ja) ハードディスクドライブ・ファイルシステムのデータ破損を防止する方法及びシステム
EP3995961A1 (fr) Système de stockage et son procédé de fonctionnement
CN110830460A (zh) 一种连接建立方法、装置、电子设备及存储介质
WO2019134499A1 (fr) Procédé et dispositif d'étiquetage en temps réel de trames vidéo
WO2024061005A1 (fr) Procédé et appareil de traitement de lecture pour tampon audio et vidéo
US20190020847A1 (en) Method and system for pushing audio data
CN112270919A (zh) 视频会议自动补音的方法、系统、存储介质及电子设备
CN114780465A (zh) 可共享远程直接数据存取链接的创建方法及装置
CN112286454B (zh) 一种位图同步方法、装置及电子设备和存储介质
WO2021226881A1 (fr) Procédé et appareil de transmission de données, puce, dispositif électronique et support de stockage
CN108093258A (zh) 码流数据的解码方法、计算机装置及计算机可读存储介质
CN112449208A (zh) 语音处理方法及其装置
CN110798366A (zh) 任务逻辑的处理方法、装置及设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22787392

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22787392

Country of ref document: EP

Kind code of ref document: A1