A kind of anti-interference audio data transmission method and device
By using multiple synchronous broadcast streams in audio devices to retransmit audio data packets, the problem of data transmission failure caused by interference in wireless transmission is solved, the success rate and anti-interference performance of audio data transmission are improved, and user experience is improved. experience.
Patent Information
- Application Number
- CN202210911878.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Audio equipment is susceptible to environmental noise interference, co-channel signal interference and hostile interference during wireless transmission, resulting in audio data transmission failure and affecting the user's audio listening experience.
Use multiple synchronous broadcast streams to retransmit the same audio data packet, improve the success rate of audio data transmission through retransmission, and retransmit through multiple synchronous broadcast streams when the interference lasts for a long time To improve the anti-interference of audio data transmission.
It effectively improves the success rate and anti-interference performance of audio data transmission, ensures that audio data can be transmitted stably in interference environments, and improves the user's audio listening experience.
Smart Images

Figure CN115278857B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and more particularly to an interference-resistant audio data transmission method and device. Background Art
[0002] With the rapid development of audio devices, users have more and more functional requirements for audio devices. In order to facilitate users to listen to audio, wireless audio playback devices supporting Bluetooth protocol came into being.
[0003] In the related technology, low-power Bluetooth audio devices have added a new multi-stream audio function, which can realize multiple and independent data stream transmissions between a single audio source device and one or more audio receiving devices, thereby bringing a better experience to users.
[0004] However, there are many interference factors in the wireless transmission environment between the audio source device and the audio receiving device, such as environmental noise interference, co-frequency signal interference, hostile interference, etc., which may lead to failure of audio data transmission and affect the user's audio listening experience. Summary of the invention
[0005] The embodiments of the present application provide an interference-resistant audio data transmission method and device for improving the interference-resistant performance of audio transmission.
[0006] On the one hand, an embodiment of the present application provides an interference-resistant audio data transmission method, which is applied to an audio source device, and the method includes:
[0007] Obtain the target audio data packet to be transmitted;
[0008] Creating a Kth synchronized broadcast stream in a synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events in the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event in the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0009] N-1 different historical audio data packets and the target audio data packet are broadcasted via the Kth synchronous broadcast stream.
[0010] On the one hand, an embodiment of the present application provides an interference-resistant audio data transmission method, which is applied to each audio receiving device in a plurality of audio receiving devices, and the method includes:
[0011] Receive a target audio data packet broadcasted by an audio source device through a Kth synchronous broadcast stream in a synchronous broadcast group, wherein the Kth synchronous broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events of the Kth synchronous broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronous broadcast stream, and the last sub-event of the Kth synchronous broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0012] Parsing the target audio data packet to obtain target audio data;
[0013] The target audio data is converted into target audio, and the target audio is played.
[0014] On the one hand, an embodiment of the present application provides an interference-resistant audio data transmission method, which is applied to an audio source device, and the method includes:
[0015] Obtain the target audio data packet to be transmitted;
[0016] Creating a Kth synchronized broadcast stream in a synchronized broadcast group, the Kth synchronized broadcast stream comprising a plurality of sub-events for transmitting audio data packets, some of the sub-events in the Kth synchronized broadcast stream being used to retransmit historical audio data packets transmitted by some of the sub-events in the K-1th synchronized broadcast stream, and the remaining sub-events in the Kth synchronized broadcast stream being used to transmit the target audio data packets, where K is greater than 1;
[0017] The retransmitted historical audio data packet and the target audio data packet are broadcasted via the Kth synchronous broadcast stream.
[0018] On the one hand, an embodiment of the present application provides an anti-interference audio data transmission device, which is applied to an audio source device, and the device includes:
[0019] An acquisition module, used to acquire a target audio data packet to be transmitted;
[0020] A processing module, used for creating a Kth synchronized broadcast stream in a synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the audio data packets transmitted by the N sub-events are all different, the first N-1 sub-events in the Kth synchronized broadcast stream are used for retransmitting historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, the last sub-event in the Kth synchronized broadcast stream is used for transmitting the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0021] The broadcast module is used to broadcast N-1 different historical audio data packets and the target audio data packet through the Kth synchronous broadcast stream.
[0022] Optionally, it also includes a first playback module;
[0023] The first playback module is specifically used for:
[0024] After a preset delay time, the target audio data in the target audio data packet is converted into target audio, and the target audio is played.
[0025] Optionally, the target audio data packet further includes audio volume information, and the audio volume information is used to indicate that the audio source device and the plurality of audio receiving devices synchronize the volumes when playing the target audio.
[0026] On the one hand, an embodiment of the present application provides an anti-interference audio data transmission device, which is applied to each audio receiving device in a plurality of audio receiving devices, and the device includes:
[0027] A receiving module, configured to receive a target audio data packet broadcasted by an audio source device through a Kth synchronous broadcast stream in a synchronous broadcast group, wherein the Kth synchronous broadcast stream includes N sub-events for transmitting audio data packets, the audio data packets transmitted by the N sub-events are all different, the first N-1 sub-events of the Kth synchronous broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronous broadcast stream, and the last sub-event of the Kth synchronous broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0028] A parsing module, used for parsing the target audio data packet to obtain target audio data;
[0029] The second playing module is used to convert the target audio data into target audio and play the target audio.
[0030] Optionally, the receiving module is further used for:
[0031] Before receiving the target audio data packet broadcasted by the audio source device through the Kth simultaneous broadcast stream in the simultaneous broadcast group, obtaining the broadcast code broadcasted by the audio source device, or downloading the broadcast code uploaded by the audio source device from the cloud server;
[0032] The synchronized broadcast group is joined based on the broadcast code.
[0033] Optionally, the target audio data is dual-channel audio data;
[0034] The second playback module is specifically used for:
[0035] If the audio receiving device is a mono audio device, acquiring mono audio data corresponding to the mono audio device from the dual-channel audio data, converting the mono audio data into target audio, and playing the target audio;
[0036] If the audio receiving device is a two-channel audio device, the two-channel audio data is converted into target audio, and the target audio is played.
[0037] Optionally, the second playing module is specifically used for:
[0038] The target audio is played based on the audio volume information carried in the target audio data.
[0039] On the one hand, an embodiment of the present application provides an anti-interference audio data transmission device, which is applied to an audio source device, and the device includes:
[0040] An acquisition module, used to acquire a target audio data packet to be transmitted;
[0041] A processing module, configured to create a Kth synchronized broadcast stream in a synchronized broadcast group, wherein the Kth synchronized broadcast stream includes a plurality of sub-events for transmitting audio data packets, some of the sub-events in the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by some of the sub-events in the K-1th synchronized broadcast stream, and the remaining sub-events in the Kth synchronized broadcast stream are used to transmit the target audio data packets, where K is greater than 1;
[0042] The broadcast module is used to broadcast the retransmitted historical audio data packet and the target audio data packet through the Kth synchronous broadcast stream.
[0043] On the one hand, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned anti-interference audio data transmission method when executing the program.
[0044] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program is run on the computer device, the computer device executes the steps of the above-mentioned anti-interference audio data transmission method.
[0045] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a method for transmitting audio data with anti-interference according to an embodiment of the present invention Figure 1 ;
[0049] Figure 3A A schematic diagram of a method for transmitting audio data with anti-interference according to an embodiment of the present invention Figure 1 ;
[0050] Figure 3B A schematic diagram of a synchronous broadcast stream structure provided in an embodiment of the present application Figure 1 ;
[0051] Figure 4 A schematic diagram of a synchronous broadcast stream structure provided in an embodiment of the present application Figure 2 ;
[0052] Figure 5 A schematic diagram of a method for transmitting audio data with anti-interference according to an embodiment of the present invention Figure 2 ;
[0053] Figure 6 Schematic diagram 3 of a flow chart of an anti-interference audio data transmission method provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of the structure of an anti-interference audio data transmission device provided in an embodiment of the present application Figure 1 ;
[0055] Figure 8 A schematic diagram of the structure of an anti-interference audio data transmission device provided in an embodiment of the present application Figure 2 ;
[0056] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0058] For ease of understanding, the terms involved in the embodiments of the present invention are explained below.
[0059] MBRT: (Multi-stream Bluetooth Relay Technology), multiple audio stream Bluetooth forwarding technology, is an audio sharing mechanism based on Bluetooth Low Energy (BLE) audio broadcasting. In this mechanism, an audio source device can be connected to multiple audio receiving devices, thereby realizing multiple and independent data stream transmissions between an audio source device and multiple audio receiving devices. The technical solution in the embodiment of the present application is applicable to the MBRT scenario.
[0060] BIG: Broadcast Isochronous Group, synchronous broadcast group.
[0061] BIS: Broadcast Isochronous Stream, synchronous broadcast stream, this broadcast mode belongs to the non-connected mode, and multiple synchronous broadcast streams form a synchronous broadcast group. The synchronization of the broadcast mode is achieved through the periodic broadcast of the Protocol Data Unit (PDU), which contains a timestamp for the BIS. Once synchronized, the receiver can be called a synchronous receiver. In the embodiment of the present application, PDU refers to an audio data packet.
[0062] MBRT SRC: MBRT broadcast source, also known as audio source device, is used to create a synchronous broadcast group, broadcast the acquired audio data externally through a synchronous broadcast stream, and also play the audio data locally.
[0063] MBRT SINK: Broadcast receiver, also known as audio receiving device, is used to receive audio data packets, convert the audio data in the audio data into audio and play it.
[0064] refer to Figure 1, which is a schematic diagram of the architecture of a communication system applicable to an embodiment of the present application, the system architecture at least includes an audio source device 101, an audio receiving device 102~1, an audio receiving device 102~2, ..., an audio receiving device 102~X, wherein X is a positive integer greater than 1.
[0065] The audio source device 101 is a device with an audio source function and an audio playback function, such as a smart phone, a tablet computer, a laptop computer, a smart home appliance, a headset, a speaker, etc. The audio source device 101 can obtain audio data as an audio source through Bluetooth, the Internet, etc. The audio source device 101 can directly play the audio source locally. Each audio receiving device is a device with a data receiving function and an audio playback function, such as a headset, a speaker, etc.
[0066] The audio source device 101 creates a synchronous broadcast group and broadcasts the broadcast code corresponding to the synchronous broadcast group or uploads the broadcast code to the cloud server. After the audio source device 101 encapsulates the acquired audio data into an audio data packet, it broadcasts it externally through the synchronous broadcast stream. At the same time, the audio source device 101 can play the audio corresponding to the audio data locally.
[0067] All audio receiving devices within the coverage of the broadcast signal can receive the data broadcast by the audio source device 101. Taking the audio receiving device 102~1 as an example, the audio receiving device 102~1 receives the broadcast code broadcast by the audio source device 101, or downloads the broadcast code from the cloud server, and joins the synchronous broadcast group based on the broadcast code. Then, the audio data packet broadcast by the audio source device 101 through the synchronous broadcast stream is received, the audio data packet is obtained from the audio data packet, and the audio data is converted into audio for playback, so as to achieve synchronous playback of the audio on the audio source device 101 and the audio receiving device 102~1. It should be noted that if other audio receiving devices also receive the audio data packet broadcast by the audio source device 101, the audio can also be played synchronously.
[0068] The following is an example based on a specific application scenario. The audio source device 101 is set as a mobile phone, the audio receiving device 102~1 is a speaker, and the audio receiving device 102~2 is a headset. The mobile phone downloads the original audio data corresponding to song A from the Internet. Create a synchronous broadcast group, and broadcast the broadcast code corresponding to the synchronous broadcast group. Convert the obtained original audio data into multiple audio data packets in the synchronous broadcast stream format. Then broadcast the multiple audio data packets to the outside through the synchronous broadcast stream, and at the same time, the mobile phone can play song A locally.
[0069] After the speaker joins the synchronous broadcast group based on the obtained broadcast code, it synchronously receives the broadcast audio data packet, parses the audio data packet to obtain audio data, and then converts the audio data into the audio of song A and plays it. After the headset joins the synchronous broadcast group based on the obtained broadcast code, it synchronously receives the broadcast audio data packet, parses the audio data packet to obtain audio data, and then converts the audio data into the audio of song A and plays it. The above process can realize the synchronous playback of song A by the mobile phone, speaker and headset.
[0070] based on Figure 1 The system architecture diagram shown in the embodiment of the present application provides a process of an anti-interference audio data transmission method, such as Figure 2 As shown, the process of the method is executed by the audio source device, including the following steps:
[0071] Step S201, obtaining a target audio data packet to be transmitted.
[0072] Step S202: creating a Kth simultaneous broadcast stream in the simultaneous broadcast group.
[0073] Specifically, the Kth synchronized broadcast stream includes multiple sub-events for transmitting audio data packets. Some sub-events in the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by some sub-events in the K-1th synchronized broadcast stream. The remaining sub-events in the Kth synchronized broadcast stream are used to transmit target audio data packets, and K is greater than 1.
[0074] Step S203 , broadcasting the retransmitted historical audio data packet and the target audio data packet through the Kth synchronous broadcast stream.
[0075] In the embodiment of the present application, multiple synchronous broadcast streams are used to retransmit the same audio data packet. Therefore, in the event of transmission failure due to interference, the success rate of audio data transmission can be improved by retransmission, thereby improving the anti-interference ability of audio data transmission.
[0076] based on Figure 1 The system architecture diagram shown in the embodiment of the present application also provides a process of an anti-interference audio data transmission method, such as Figure 3A As shown, the process of the method is executed by the audio source device, including the following steps:
[0077] Step S301, obtaining a target audio data packet to be transmitted.
[0078] The target audio data packet is an audio data packet that has not been transmitted before and satisfies the synchronous broadcast stream format. The target audio data packet includes target audio data to be transmitted.
[0079] Step S302: creating a Kth simultaneous broadcast stream in the simultaneous broadcast group.
[0080] Specifically, the audio source device first creates a synchronous broadcast group, then broadcasts the broadcast code corresponding to the synchronous broadcast group, or uploads the broadcast code to the cloud server. The audio receiving device receives the broadcast code, or downloads the broadcast code from the cloud server, and can join the synchronous broadcast group based on the broadcast code.
[0081] The audio source device creates a synchronous broadcast stream at intervals of a preset duration, each synchronous broadcast stream includes the same number of sub-events, and each sub-event represents a time period during which the audio source device broadcasts a specific audio data packet.
[0082] For the Kth synchronized broadcast stream, the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, and the audio data packets transmitted by the N sub-events are all different. The first N-1 sub-events in the Kth synchronized broadcast stream are used to retransmit the historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event in the Kth synchronized broadcast stream is used to transmit the target audio data packet, so that each audio data packet can be retransmitted N times, and the retransmission is completed within the N synchronized broadcast streams, K is greater than 1, and N is greater than or equal to 2. It should be noted that the number of retransmissions of the audio data packet is set when the synchronized broadcast stream is created.
[0083] In some embodiments, in the Kth synchronized broadcast stream, the first sub-event among the N sub-events is used to transmit the audio data packet actually required to be transmitted by the Kth synchronized broadcast stream. The next N-1 sub-events among the N sub-events are respectively used to pre-transmit the audio data packets actually required to be transmitted by the next N-1 synchronized broadcast streams.
[0084] In some embodiments, in the Kth simultaneous broadcast stream, the last sub-event among the N sub-events is used to transmit the audio data packet actually to be transmitted by the Kth simultaneous broadcast stream. The first N-1 sub-events among the N sub-events are respectively used to retransmit the audio data packets actually to be transmitted by the previous N-1 simultaneous broadcast streams.
[0085] It should be noted that each synchronized broadcast stream corresponds to an audio data packet that actually needs to be transmitted, and each synchronized broadcast stream can also transmit the corresponding audio data packet that actually needs to be transmitted through other sub-events except the first sub-event and the last sub-event. This application does not make any specific limitations on this.
[0086] Step S303: broadcast N-1 different historical audio data packets and target audio data packets through the Kth synchronous broadcast stream.
[0087] For example, if Figure 3BAs shown, N=3 is set, and the fourth synchronous broadcast stream (BIS 4) includes three sub-events. The first sub-event is used to transmit the audio data packet F4 that BIS 4 actually needs to transmit, the second sub-event is used to pre-transmit the audio data packet F5 (the audio data packet that BIS 5 actually needs to transmit), and the third sub-event is used to pre-transmit the audio data packet F6 (the audio data packet that BIS6 actually needs to transmit). The audio data packet F4, the audio data packet F5, and the audio data packet F6 are broadcasted through the fourth synchronous broadcast stream.
[0088] The fifth synchronized broadcast stream (BIS 5) includes three sub-events, the first sub-event is used to transmit the audio data packet F5 that BIS 5 actually needs to transmit, the second sub-event is used to pre-transmit the audio data packet F6 (the audio data packet that BIS 6 actually needs to transmit), and the third sub-event is used to pre-transmit the audio data packet F7 (the audio data packet that BIS 7 actually needs to transmit). The audio data packets F5, F6, and F7 are broadcasted through the fifth synchronized broadcast stream.
[0089] Furthermore, for the 6th synchronized broadcast stream (BIS 6), the 6th synchronized broadcast stream includes 3 sub-events. The first sub-event is used to transmit the audio data packet F6 that BIS 6 actually needs to transmit, the second sub-event is used to pre-transmit the audio data packet F7 (the audio data packet that BIS 7 actually needs to transmit), and the third sub-event is used to pre-transmit the audio data packet F8 (the audio data packet that BIS 8 actually needs to transmit).
[0090] From the above content, it can be seen that the audio data packet F6 is transmitted in the 4th, 5th and 6th synchronized broadcast streams, that is, the audio data packet F6 is retransmitted three times through three synchronized broadcast streams. It should be noted that each other audio data packet can be retransmitted three times using the same transmission method, which will not be repeated here.
[0091] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission.
[0092] In some embodiments, after a preset delay time, the target audio data in the target audio data packet is converted into target audio, and the target audio is played.
[0093] Specifically, the preset duration can be set according to actual conditions to ensure that the target audio is played synchronously on the audio source device and the audio receiving device, giving the user a good experience.
[0094] After introducing the transmission method of audio data packets, the following takes the target audio data packet as an example to introduce the specific content contained in each audio data packet:
[0095] In some embodiments, since the audio source device transmits the audio data to the audio receiving device in a broadcasting form, there is no connection between the audio source device and the audio receiving device, and therefore, there is a problem of volume synchronization between the audio source device and the audio receiving device. In view of this, in an embodiment of the present application, the target audio data packet also includes audio volume information, wherein the audio volume information is used to indicate that the audio source device and multiple audio receiving devices synchronize the volumes when playing the target audio.
[0096] Specifically, the first two bytes of the target audio data packet are used to carry the audio volume information. In addition, the audio data in the target audio data packet may be dual-channel audio data.
[0097] For example, if Figure 4 As shown, the audio data packet F5 includes audio volume information, audio data corresponding to channel 1, and audio data corresponding to channel 2.
[0098] In the embodiment of the present application, the audio data packet carries audio volume information. Therefore, after receiving the audio data packet, the audio receiving device parses the audio data packet to obtain the audio volume information and plays the audio according to the audio volume information, thereby ensuring the volume synchronization between the audio source device and multiple audio receiving devices, thereby improving the audio playback effect.
[0099] based on Figure 1 The system architecture diagram shown in the embodiment of the present application also provides a process of an anti-interference audio data transmission method, such as Figure 5 As shown, the process of the method is executed by each audio receiving device in the plurality of audio receiving devices, and includes the following steps:
[0100] Step S501 , receiving a target audio data packet broadcasted by an audio source device through a Kth simultaneous broadcast stream in a simultaneous broadcast group.
[0101] Specifically, the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the audio data packets transmitted by the N sub-events are all different, the first N-1 sub-events of the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event of the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2.
[0102] Step S502: parse the target audio data packet to obtain target audio data.
[0103] Specifically, before receiving the audio data packets broadcast by the synchronous broadcast stream, the audio receiving device first obtains the broadcast code broadcast by the audio source device, or downloads the broadcast code uploaded by the audio source device from the cloud server, and then joins the synchronous broadcast group based on the broadcast code.
[0104] Step S503, converting the target audio data into target audio, and playing the target audio.
[0105] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission.
[0106] In some embodiments, the target audio data is dual-channel audio data. At this time, if the audio receiving device is a mono audio device, the mono audio data corresponding to the mono audio device is obtained from the dual-channel audio data, and the mono audio data is converted into the target audio, and the target audio is played.
[0107] If the audio receiving device is a two-channel audio device, the two-channel audio data is converted into target audio, and the target audio is played.
[0108] For example, if the audio receiving device is a left earphone, the left channel audio data is obtained from the two-channel audio data, and the left channel audio data is converted into the target audio, and the target audio is played. If the audio receiving device is a right earphone, the right channel audio data is obtained from the two-channel audio data, and the right channel audio data is converted into the target audio, and the target audio is played.
[0109] For example, if the audio receiving device is a two-channel speaker, the two-channel audio data is directly converted into target audio, and the target audio is played.
[0110] In an embodiment of the present application, the target audio data in the target audio data packet is dual-channel audio data, thereby achieving stereo playback of the audio, thereby improving the effect of the audio playback.
[0111] In some embodiments, the target audio data packet carries audio volume information. After receiving the target audio data packet, the audio receiving device parses the audio data packet to obtain the audio volume information, and plays the target audio based on the audio volume information carried in the target audio data packet.
[0112] In the embodiment of the present application, the audio data packet carries audio volume information. Therefore, after receiving the audio data packet, the audio receiving device parses the audio data packet to obtain the audio volume information and plays the audio according to the audio volume information, thereby ensuring the volume synchronization between the audio source device and multiple audio receiving devices, thereby improving the audio playback effect.
[0113] In order to better explain the embodiment of the present application, the following describes a process of an anti-interference audio data transmission method provided by the embodiment of the present application in combination with a specific implementation scenario. The process of the method can be Figure 1 The audio source device and the multiple audio receiving devices shown in the figure are interactively executed, wherein the multiple audio receiving devices include an audio receiving device 1 and an audio receiving device 2, including the following steps, such as Figure 6 As shown:
[0114] Step S601: the audio source device obtains an audio data packet F7 to be transmitted.
[0115] Step S602: the audio source device creates the fifth simultaneous broadcast stream in the simultaneous broadcast group.
[0116] Specifically, the audio data packets transmitted by the three sub-events in the fourth synchronized broadcast stream are respectively audio data packet F4, audio data packet F5 and audio data packet F6, and the audio data packets transmitted by the three sub-events in the fifth synchronized broadcast stream are respectively audio data packet F5, audio data packet F6 and audio data packet F7.
[0117] In step S603 , the audio source device broadcasts the audio data packet F5 , the audio data packet F6 , and the audio data packet F7 via the fifth synchronous broadcast stream.
[0118] In step S604 , the audio receiving device 1 sequentially receives the audio data packet F5 , the audio data packet F6 , and the audio data packet F7 broadcasted via the fifth simultaneous broadcast stream.
[0119] Step S605 , if the audio data packet F5 and the audio data packet F6 have been correctly received and parsed before, the audio receiving device 1 parses the audio data packet F7 to obtain the audio volume information and the two-channel audio data in the audio data packet F7 .
[0120] Step S606: the audio receiving device 1 converts the two-channel audio data into audio, and plays the audio according to the audio volume information.
[0121] In addition, if the audio data packet F5 has not been correctly received and parsed before, the audio data packet F5 is parsed to obtain the audio volume information and dual-channel audio data in the audio data packet F5, convert the dual-channel audio data into audio, and play the audio according to the audio volume information.
[0122] Similarly, if the audio data packet F6 is not correctly received and parsed before, the audio data packet F6 is parsed to obtain the audio volume information and dual-channel audio data in the audio data packet F6, convert the dual-channel audio data into audio, and play the audio according to the audio volume information.
[0123] It should be noted that the audio receiving device 2 also executes the above steps S604 to S606, which will not be described in detail here.
[0124] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission.
[0125] Based on the same technical concept, the embodiment of the present application provides a structural schematic diagram of an anti-interference audio data transmission device, which is applied to an audio source device, such as Figure 7 As shown, the device 700 includes:
[0126] An acquisition module 701 is used to acquire a target audio data packet to be transmitted;
[0127] The processing module 702 is used to create a K-th synchronized broadcast stream in the synchronized broadcast group, wherein the K-th synchronized broadcast stream includes N sub-events for transmitting audio data packets, the audio data packets transmitted by the N sub-events are all different, the first N-1 sub-events in the K-th synchronized broadcast stream are used to retransmit the historical audio data packets transmitted by the last N-1 sub-events in the K-1-th synchronized broadcast stream, and the last sub-event in the K-th synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0128] The broadcast module 703 is configured to broadcast N-1 different historical audio data packets and the target audio data packet through the Kth synchronous broadcast stream.
[0129] Optionally, it further includes a first playing module 704;
[0130] The first playing module 704 is specifically used for:
[0131] After a preset delay time, the target audio data in the target audio data packet is converted into target audio, and the target audio is played.
[0132] Optionally, the target audio data packet further includes audio volume information, and the audio volume information is used to indicate that the audio source device and the plurality of audio receiving devices synchronize the volumes when playing the target audio.
[0133] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission.
[0134] Based on the same technical concept, the embodiment of the present application provides a structural schematic diagram of an anti-interference audio data transmission device, which is applied to each audio receiving device in multiple audio receiving devices, such as Figure 8 As shown, the device 800 includes:
[0135] A receiving module 801 is used to receive a target audio data packet broadcasted by an audio source device through a Kth synchronous broadcast stream in a synchronous broadcast group, wherein the Kth synchronous broadcast stream includes N sub-events for transmitting audio data packets, the audio data packets transmitted by the N sub-events are all different, the first N-1 sub-events of the Kth synchronous broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronous broadcast stream, and the last sub-event of the Kth synchronous broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than or equal to 2;
[0136] The parsing module 802 is used to parse the target audio data packet to obtain target audio data;
[0137] The second playing module 803 is used to convert the target audio data into target audio and play the target audio.
[0138] Optionally, the receiving module 801 is further used for:
[0139] Before receiving the target audio data packet broadcasted by the audio source device through the Kth simultaneous broadcast stream in the simultaneous broadcast group, obtaining the broadcast code broadcasted by the audio source device, or downloading the broadcast code uploaded by the audio source device from the cloud server;
[0140] The synchronized broadcast group is joined based on the broadcast code.
[0141] Optionally, the target audio data is dual-channel audio data;
[0142] The second playing module 803 is specifically used for:
[0143] If the audio receiving device is a mono audio device, acquiring mono audio data corresponding to the mono audio device from the dual-channel audio data, converting the mono audio data into target audio, and playing the target audio;
[0144] If the audio receiving device is a two-channel audio device, the two-channel audio data is converted into target audio, and the target audio is played.
[0145] Optionally, the second playing module 803 is specifically used for:
[0146] The target audio is played based on the audio volume information carried in the target audio data.
[0147] In the embodiment of the present application, multiple simultaneous broadcast streams are used to retransmit the same audio data packet, so when the transmission fails due to interference, the success rate of audio data transmission can be improved by retransmission. Moreover, an audio data packet is retransmitted through multiple simultaneous broadcast streams, so when the interference lasts for a long time, the success rate of audio data transmission can also be effectively improved, thereby improving the anti-interference performance of audio data transmission.
[0148] Based on the same technical concept, the embodiment of the present application provides a computer device, which can be Figure 1 The terminal device and / or server shown, such as Fig. 9 As shown, it includes at least one processor 901 and a memory 902 connected to the at least one processor. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 For example, the processor 901 and the memory 902 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0149] In the embodiment of the present application, the memory 902 stores instructions that can be executed by at least one processor 901, and the at least one processor 901 can perform the steps of the above-mentioned anti-interference audio data transmission method by executing the instructions stored in the memory 902.
[0150] Among them, the processor 901 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, and realize audio data transmission by running or executing instructions stored in the memory 902 and calling data stored in the memory 902. Optionally, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0151] Processor 901 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0152] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer device, but is not limited thereto. The memory 902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0153] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned anti-interference audio data transmission method.
[0154] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0155] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer device or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer readable memory capable of directing a computer device or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer device or other programmable data processing device so that a series of operation steps are executed on the computer device or other programmable device to produce a process implemented by the computer device, thereby providing instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0159] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An anti-interference audio data transmission method, applied to an audio source device, characterized in that: include: Obtain the target audio data packet to be transmitted; Creating a Kth synchronized broadcast stream in a synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events in the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event in the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than 2; Broadcasting N-1 different historical audio data packets and the target audio data packet through the Kth synchronous broadcast stream; After a preset delay time, the target audio data in the target audio data packet is converted into target audio, and the target audio is played.
2. The method according to claim 1, characterized in that The target audio data packet also includes audio volume information, and the audio volume information is used to indicate that the audio source device and multiple audio receiving devices synchronize the volumes when playing the target audio.
3. An anti-interference audio data transmission method, applied to each audio receiving device in a plurality of audio receiving devices, characterized in that: include: Obtaining the broadcast code broadcast by the audio source device, or downloading the broadcast code uploaded by the audio source device from the cloud server; Joining a synchronous broadcast group based on the broadcast code; Receive a target audio data packet broadcasted by the audio source device through the Kth synchronized broadcast stream in the synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events of the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event of the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than 2; Parsing the target audio data packet to obtain target audio data; The target audio data is converted into target audio, and the target audio is played.
4. The method according to claim 3, characterized in that The target audio data is two-channel audio data; The converting the target audio data into target audio and playing the target audio includes: If the audio receiving device is a mono audio device, acquiring mono audio data corresponding to the mono audio device from the dual-channel audio data, converting the mono audio data into target audio, and playing the target audio; If the audio receiving device is a two-channel audio device, the two-channel audio data is converted into target audio, and the target audio is played.
5. The method according to any one of claims 3 to 4, characterized in that: The playing of the target audio includes: The target audio is played based on the audio volume information carried in the target audio data.
6. An anti-interference audio data transmission device, applied to an audio source device, characterized in that: include: An acquisition module, used to acquire a target audio data packet to be transmitted; A processing module, configured to create a Kth synchronized broadcast stream in a synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events in the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event in the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than 2; A broadcast module, configured to broadcast N-1 different historical audio data packets and the target audio data packet through the Kth synchronous broadcast stream; After a preset delay time, the target audio data in the target audio data packet is converted into target audio, and the target audio is played.
7. An anti-interference audio data transmission device, applied to each audio receiving device among a plurality of audio receiving devices, characterized in that: include: A receiving module, used to obtain the broadcast code broadcast by the audio source device, or download the broadcast code uploaded by the audio source device from the cloud server; Joining a synchronous broadcast group based on the broadcast code; Receive a target audio data packet broadcasted by the audio source device through the Kth synchronized broadcast stream in the synchronized broadcast group, wherein the Kth synchronized broadcast stream includes N sub-events for transmitting audio data packets, the first N-1 sub-events of the Kth synchronized broadcast stream are used to retransmit historical audio data packets transmitted by the last N-1 sub-events in the K-1th synchronized broadcast stream, and the last sub-event of the Kth synchronized broadcast stream is used to transmit the target audio data packet, K is greater than 1, and N is greater than 2; A parsing module, used for parsing the target audio data packet to obtain target audio data; The second playing module is used to convert the target audio data into target audio and play the target audio.
8. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computer device, and when the computer program is run on the computer device, the computer device executes the steps of any method described in claims 1 to 5.
Citation Information
Patent Citations
Bluetooth communication method and electronic device
CN112740728A
Audio data transmission method, device and system, storage medium and earphone
CN113347578A
Wireless communication method and wireless audio playing component
CN114760616A
Methods and arrangements for a broadcast audio receiver feedback channel
US20220116711A1
