Method and system for reducing transmission delay of Bluetooth headset
By using a software protector to encode and compress the digital audio signal in Bluetooth headsets, the problem of audio and video out-synchronization caused by high transmission delay of traditional Bluetooth headsets is solved, and the synchronization of audio and video is achieved and the user experience is improved.
Patent Information
- Application Number
- CN202311625632.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-11-28
AI Technical Summary
The transmission delay of traditional Bluetooth headphones is high, resulting in out-of-synchronization of audio and video, reducing the user's audio-visual experience, especially in game and movie scenes.
The digital audio signal is encoded and compressed through a software protector, and a RF signal data packet is generated, and transmitted to the Bluetooth headset through the RF module. After receiving, it is decoded to generate an audio waveform, and a private Bluetooth transmission protocol is used to reduce delay.
It effectively reduces the audio transmission delay of Bluetooth headsets, realizes audio and video synchronization, and improves the user's audio-visual experience.
Smart Images

Figure CN117459510B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Bluetooth headsets, and in particular to a method and system for reducing transmission delay of Bluetooth headsets. Background Art
[0002] Traditional Bluetooth headsets use the Bluetooth standard transmission protocol, and the minimum delay is about 70 milliseconds, which cannot meet the application needs of some scenarios, such as gaming scenes, movie scenes, etc.
[0003] In these application scenarios, traditional Bluetooth headsets will have audio and video image asynchrony. For example, the eyes can see that the person in the video is talking, but the sound from the headset has not yet come out, resulting in audio delay, which reduces the user's audio-visual experience. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a method and system for reducing the transmission delay of Bluetooth headsets, which is used to solve the technical problem that the high transmission delay of traditional Bluetooth headsets causes asynchrony between audio and video.
[0005] In a first aspect, the present application provides a method for reducing the transmission delay of a Bluetooth headset, using the following technical solution:
[0006] When the software protector is connected to the user terminal device, obtaining a first digital audio signal of the user terminal device;
[0007] Encoding the first digital audio signal through the software protector, compressing the encoded information to generate a first radio frequency signal data packet, and converting the first radio frequency signal data packet into an electrical signal through a first radio frequency module and outputting it to the Bluetooth headset;
[0008] Receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal into a second radio frequency signal data packet;
[0009] Decoding the second radio frequency signal data packet into a second digital audio signal through the Bluetooth headset;
[0010] An audio waveform is generated based on the second digital audio signal through the Bluetooth headset, and audio is output according to the audio waveform.
[0011] In an optional implementation, encoding the first digital audio signal by the software protector and compressing the encoded information to generate a first radio frequency signal data packet includes:
[0012] Performing spectrum analysis on the first digital audio signal through the audio encoder of the dongle to obtain a spectrum analysis result, wherein the spectrum analysis result includes first control information, first frame synchronization information and first audio information;
[0013] Encoding the first control information to obtain control coded information, and converting the control coded information into first compressed coded information;
[0014] Encoding the first frame synchronization information to obtain frame coding information, and converting the frame coding information into second compressed coding information;
[0015] Encode the first audio information to obtain audio encoding information, and convert the audio encoding information into third compressed encoding information;
[0016] The first compression coding information, the second compression coding information and the third compression coding information are integrated and compressed to generate the first radio frequency signal data packet.
[0017] In an optional implementation, converting the first radio frequency signal data packet into an electrical signal by the first radio frequency module and outputting the electrical signal to the Bluetooth headset includes:
[0018] converting the first radio frequency signal data packets into first radio wave signals in sequence;
[0019] The first radio wave signal is output to the Bluetooth headset through the first radio frequency module.
[0020] In an optional implementation, the receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal to a second radio frequency signal data packet includes:
[0021] Receiving the first radio wave signal through the second radio frequency module of the Bluetooth headset;
[0022] The first radio wave signal is restored to the second radio frequency signal data packet through the second radio frequency module.
[0023] In an optional implementation, decoding the second radio frequency signal data packet into a second digital audio signal by the Bluetooth headset includes:
[0024] Parsing the second radio frequency signal data packet to obtain second control information, second frame synchronization information and second audio information through the Bluetooth headset;
[0025] Mapping the second control information, the second frame synchronization information and the audio data to corresponding audio frames to obtain audio data within a short period of time contained in each audio frame;
[0026] Each audio frame is decoded according to a coding algorithm to obtain the second digital audio signal.
[0027] In an optional implementation, generating an audio waveform based on the second digital audio signal by the Bluetooth headset includes:
[0028] The second digital audio signal is reconstructed in the time domain and the frequency domain through the Bluetooth headset to generate an audio waveform.
[0029] In an optional embodiment, the method further comprises:
[0030] Acquire a first target audio signal through the second radio frequency module of the Bluetooth headset, and generate a third radio frequency signal data packet according to the target audio signal and output it to the software protector;
[0031] receiving the third RF signal data packet through the first RF module of the software protector, and decoding the third RF signal data packet to obtain a second target audio signal;
[0032] The second target audio signal is output to the user terminal device through the software protector.
[0033] In a second aspect, the present application provides a method system for reducing the transmission delay of a Bluetooth headset, the system comprising:
[0034] The software protector is used to obtain a first digital audio signal played by the user terminal device when the user terminal device is connected;
[0035] The software protector is further used to encode the first digital audio signal, compress the encoded information obtained by encoding to generate a first radio frequency signal data packet, and convert the first radio frequency signal data packet into an electrical signal through a first radio frequency module and output it to the Bluetooth headset;
[0036] The Bluetooth headset is used to receive the electrical signal through the second radio frequency module and restore the electrical signal to a second radio frequency signal data packet;
[0037] The Bluetooth headset is further used to decode the second radio frequency signal data packet into a second digital audio signal;
[0038] The Bluetooth headset is further configured to generate an audio waveform based on the second digital audio signal, and output audio according to the audio waveform.
[0039] In an optional implementation, the software protector encodes the first digital audio signal, and compresses the encoded information obtained by encoding to generate a first radio frequency signal data packet, including:
[0040] Performing spectrum analysis on the first digital audio signal through the audio encoder of the dongle to obtain a spectrum analysis result, wherein the spectrum analysis result includes first control information, first frame synchronization information and first audio information;
[0041] Encoding the first control information to obtain control coded information, and converting the control coded information into first compressed coded information;
[0042] Encoding the first frame synchronization information to obtain frame coding information, and converting the frame coding information into second compressed coding information;
[0043] Encode the first audio information to obtain audio encoding information, and convert the audio encoding information into third compressed encoding information;
[0044] The first compression coding information, the second compression coding information and the third compression coding information are integrated and compressed to generate the first radio frequency signal data packet.
[0045] In an optional implementation, the Bluetooth headset is further used to obtain a first target audio signal through the second radio frequency module, and generate a third radio frequency signal data packet according to the target audio signal and output it to the software protector;
[0046] The software protector is further used to receive the third radio frequency signal data packet through the first radio frequency module, and decode the third radio frequency signal data packet to obtain a second target audio signal;
[0047] The software protector is further used to output the second target audio signal to the user terminal device.
[0048] After the software protector obtains the first digital audio signal of the user-end device, the application encodes the first digital audio signal, compresses the encoded information to generate a first radio frequency signal data packet, and converts the first radio frequency signal data packet into an electrical signal for output through the first radio frequency module; receives the electrical signal through the second radio frequency module of the Bluetooth headset and restores the electrical signal to a second radio frequency signal data packet; and decodes the second radio frequency signal data packet into a second digital audio signal, and then generates an audio waveform based on the second digital audio signal, thereby outputting audio according to the audio waveform. The application encodes and compresses the digital audio signal and transmits it through the radio frequency module, thereby speeding up the data transmission rate and effectively reducing the delay of the Bluetooth headset audio transmission, thereby achieving synchronization between audio and video and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1is an application environment diagram of a method for reducing transmission delay of a Bluetooth headset shown in an embodiment of the present application;
[0050] Figure 2 is an internal structure diagram of a software protector shown in an embodiment of the present application;
[0051] Figure 3 is an internal structure diagram of a Bluetooth headset shown in an embodiment of the present application;
[0052] Figure 4 is a flow chart of a method for reducing transmission delay of a Bluetooth headset shown in an embodiment of the present application;
[0053] Figure 5 It is a schematic diagram of an audio waveform shown in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.
[0055] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0056] In virtual reality (VR) games, e-sports games, and other scenarios that require real-time response, the delay between audio and video becomes a significant challenge. This delay may cause the sense of audio and video being out of sync, reducing the user's perceived consistency in the immersive experience. In these scenarios, timely audio feedback is critical to the user's reaction speed, and traditional Bluetooth standard transmission protocols usually have relatively high latency and are not suitable for these applications that require high real-time performance.
[0057] In order to solve the technical problems existing in the above-mentioned, the embodiments of the present application provide a Bluetooth headset transmission method, device, Bluetooth headset and storage medium, which have ultra-low latency transmission, improve the transmission speed, ensure audio-visual synchronization, and improve the user's audio-visual experience.
[0058] See also Figure 1, which is an application environment diagram of the method for reducing the transmission delay of Bluetooth headsets shown in an embodiment of the present application.
[0059] The present application connects the user terminal device 101 and the Bluetooth headset 103 through the software protector 102. The software protector 102 and the Bluetooth headset 103 use a private Bluetooth transmission protocol to achieve audio transmission after pairing, which can reduce transmission delay.
[0060] The user terminal device 101 may be a personal computer, a smart phone, etc., and is used to output an audio digital signal to a Bluetooth headset or receive an audio digital signal output by a Bluetooth headset.
[0061] The software protector 102 is a small plug-in that can be attached to a parallel port, serial port or USB port of a computer, and includes a customized memory and a dedicated integrated circuit, and can be a USB Dongle adapter. The software protector 102 can include a USB audio signal interface (USB audio), an audio encoder (Encoder), an audio decoder (Decoder), and a first radio frequency module (BT, Bluetooth).
[0062] The USB audio signal interface (USB audio) is used to implement communication between the software protector 102 and the user terminal device 101, and can obtain the digital audio signal output by the user terminal device 101, and can also transmit the digital audio signal to the user terminal device 101. In some embodiments, the USB audio signal interface can also be used to establish a secure encrypted communication channel to ensure that the communication between the software protector and the user terminal device 101 is secure and prevent hacker attacks or malicious tampering.
[0063] In the embodiment of the present application, the audio encoder and audio decoder are both LC3 audio codecs. The audio decoder is used to encode the digital audio signal to obtain audio encoding information; the audio decoder is used to decode the audio encoding information to obtain a digital audio signal.
[0064] The first radio frequency module (BT, Bluetooth) is a Bluetooth wireless communication technology used for data connection or data exchange within a short distance (usually within ten meters). In this application, the Bluetooth connection between the headset and the software protector is realized through the Bluetooth wireless communication module.
[0065] See also Figure 2 , which is a diagram of the internal structure of the software protector shown in an embodiment of the present application.
[0066] The first microprocessor control unit (KH9210 chip) is used to obtain external audio data and control commands, send audio through the I2S interface, send control command information through the UART, and transmit data through the GPIO port.
[0067] The second microprocessor control unit (WQ7033AD chip) is used for processing and receiving audio signals. It contains VBAT, RF, LED, GPIOS, XTAL, I2S, and UART interfaces. VBAT represents the power supply voltage module, which is used to receive the power supply voltage provided by the external power supply. RF is the radio frequency module, which is used to send electrical signals. Figure 3 The RF module in the Bluetooth headset structure diagram sends and receives electrical signals to each other, the LED is used to display the connection status, GPIOS is the WQ7033AD data interaction interface, XTAL is a crystal oscillator used to provide an accurate clock signal, and I2S is a digital audio interface standard, which is usually used to transfer audio data from one device to another, such as from an audio codec to an audio amplifier or a digital signal processor. It includes clock, data, and synchronization signal lines to support high-quality audio transmission. UART is a serial communication protocol and hardware interface used to transfer data from one device to another in serial form. It is a common communication method, usually used for serial communication connections, such as serial port communication.
[0068] The power supply module LDO is used to power the KH9210 chip and the WQ7033AD module.
[0069] See also Figure 3 , which is a diagram of the internal structure of a Bluetooth headset according to an embodiment of the present application.
[0070] In the embodiment of the present application, the Bluetooth headset 103 is configured with the same chip WQ7033AD as the software protector 102, which is used to receive the signal sent by the software protector 102 and convert it into audio to be played through the speaker.
[0071] The Power Management Unit (PMU) is used to control and manage the power supply of the device to ensure the power efficiency and battery life under different working conditions. This application uses a 63mAh lithium pack battery to power the Bluetooth headset.
[0072] PIO (Parallel Input / Output) is a common input / output method used to provide an interface for parallel data transmission between devices and external devices. In this application, it is used to connect data transmission between LED lights, control information transmission of touch buttons or display screens, UART data transmission, and thermistor connection.
[0073] RF (Radio Frequency) is used to process and transmit radio frequency signals. It is commonly used in communication systems, such as sending and receiving radio signals or performing radio frequency communication. In this application, it is mainly used to receive Figure 2 The electrical signal transmitted by the RF module in WQ7033AD, or the digital signal received by the Bluetooth headset is converted into an electrical signal and sent to the RF module in WQ7033AD.
[0074] XTAL (Crystal Oscillator) is used to provide the clock signal of the device, synchronize the operation of various electronic components, and ensure the normal operation of the device and the accuracy of data transmission. In this application, it is used to provide a 16Mhz clock signal frequency.
[0075] The Audio Interface module is used to allow the device to communicate with audio devices (such as microphones and speakers). In this application, the Audio Interface is used for the collection and playback of audio data.
[0076] See also Figure 4 As shown, it is a flow chart of a method for reducing the transmission delay of a Bluetooth headset shown in an embodiment of the present application. The method for reducing the transmission delay of a Bluetooth headset specifically includes the following steps.
[0077] S41, when the software protector is connected to the user terminal device, a first digital audio signal of the user terminal device is obtained.
[0078] When the software protector is connected to the client device, the software protector obtains the digital audio signal of the client device through the USB audio signal interface, and the digital audio signal is the first digital audio signal.
[0079] The digital audio signal is an audio information that represents and transmits audio in a digital manner. The digital audio signal can be generated by digitally encoding the audio so that the audio can be processed, stored and transmitted by digital devices (such as Bluetooth headsets, computers, etc.).
[0080] For example, the software protector is connected to a PC that is playing music, and the software protector obtains the digital audio signal played by the PC through the USB audio signal interface. The content of the digital audio signal may include the sampling rate and bit width of the audio.
[0081] S42, encoding the first digital audio signal through the software protector, compressing the encoded information to generate a first radio frequency signal data packet, and converting the first radio frequency signal data packet into an electrical signal through a first radio frequency module and outputting it to the Bluetooth headset.
[0082] The encoding refers to the process of converting original information into another form for easy transmission, storage or processing. The first radio frequency signal data packet refers to an audio stream data packet obtained by encoding and compressing the first digital audio signal.
[0083] When the software protector obtains the digital audio signal of the user terminal device, the audio encoder in the software protector will encode the first digital audio signal to obtain the encoding information, and integrate and compress the encoded encoding information to obtain the first RF signal data packet, and then convert the first RF signal data packet into an electrical signal through the first RF module, and finally output the electrical signal to the Bluetooth headset through the Bluetooth wireless communication module. The first RF module refers to Figure 2 RF module in the dongle.
[0084] In some embodiments, the audio encoder in the dongle encodes the first digital audio signal, including encoding a sampling rate and a bandwidth in the first digital audio signal.
[0085] The sampling rate refers to the number of times a digital audio signal is sampled in one second, usually expressed in Hertz (Hz). The bit width indicates the quantization level of each sampling point, that is, how many bits are used to represent a sample value. The sampling rate and bit width together determine the precision and accuracy of sampling digital audio signals.
[0086] A higher sampling rate means a higher sampling frequency for digital audio signals, that is, the digital audio signals are sampled at a higher frequency. A higher sampling rate can capture a wider frequency range and finer time domain resolution, more accurately capture and restore the instantaneous changes of audio signals, and reduce the distortion introduced by digital processing. However, a higher sampling rate has a larger amount of data and higher storage / transmission requirements; a lower sampling rate means a lower sampling frequency for digital audio signals, that is, the sound is sampled at a lower frequency. A lower sampling rate will result in the inability to accurately capture high-frequency sounds, resulting in frequency loss and distortion. Therefore, it is necessary to set a suitable sampling frequency to balance signal quality and data storage / transmission requirements.
[0087] Exemplarily, assuming that the first digital audio signal obtained by the software protector from the PC is a ten-second audio signal, the sampling rate of the signal obtained through the USB audio interface is 48kHz (48,000 sampling points per second), and the bit width is 16 bits (each sampling point has 16 bits of quantization bit), assuming that the audio format required by the Bluetooth headset is 16 kHz sampling rate and 8 bits, it is necessary to adjust the audio format through the audio encoder to convert the original audio signal from 48 kHz, 16 bits to 16 kHz, 8 bits. Among the 48,000 sampling points, assuming that the first 6 are {0000000000000001, 0000000000000010, 0000000000000100, 0000000000000100,
[0088] 000000000010000, 0000000000100000}, take one every three sampling points to get a new sampling point sequence {000000000000001, 000000000001000}, quantize and retain the lower 8 bits to get {00000001, 00001000}, and similarly perform sampling and quantization operations on 48,000 sampling points to get a 16 kHz, 8-bit digital audio signal. The digital audio signal is integrated and compressed into a data packet and sent to the Bluetooth headset through the RF module.
[0089] In an optional implementation, encoding the first digital audio signal by the software protector and compressing the encoded information to generate a first radio frequency signal data packet includes:
[0090] Performing spectrum analysis on the first digital audio signal through the audio encoder of the dongle to obtain a spectrum analysis result, wherein the spectrum analysis result includes first control information, first frame synchronization information and first audio information;
[0091] Encoding the first control information to obtain control coded information, and converting the control coded information into first compressed coded information;
[0092] Encoding the first frame synchronization information to obtain frame coding information, and converting the frame coding information into second compressed coding information;
[0093] Encode the first audio information to obtain audio encoding information, and convert the audio encoding information into third compressed encoding information;
[0094] The first compression coding information, the second compression coding information and the third compression coding information are integrated and compressed to generate the first radio frequency signal data packet.
[0095] The spectrum analysis refers to analyzing the digital audio signal in the frequency domain, sampling the digital audio signal, and digitizing the digital audio signal at a certain sampling rate. According to the spectrum analysis, control information, frame synchronization information and audio information of the digital audio signal can be obtained.
[0096] The first control information refers to some control information contained in the first digital audio signal and used for transmitting or processing the audio signal. For example, a volume control signal for adjusting an audio device is a control information.
[0097] The first frame synchronization information refers to the audio data information corresponding to each frame in the first digital audio signal.
[0098] The first audio information refers to the actual audio signal in the first digital audio signal, for example, audio sampling rate, bit width, etc.
[0099] When the software protector obtains the first digital audio signal through the USB audio data interface, the audio encoder in the software protector performs spectrum analysis on the first digital audio signal to obtain first control information, first frame synchronization information and first audio information, encodes the first control information, the first frame synchronization information and the first audio information respectively through the audio encoder, and compresses the encoded information to obtain corresponding compressed encoding information.
[0100] For example, assuming that the first control information includes: control information 1: audio playback volume is set to 70; control information 2: audio pause control is set to double-click the screen; control information 3: mode selection is loop playback, the first control information is binary encoded, the volume 70 in control information 1 can be converted into an 8-bit binary number 01000110, the double-click screen action in control information 2 is encoded as a specific identifier, assuming that it is represented by a 4-bit binary code, encoded as 1010, and the loop playback mode setting in control information 3 is represented by a specific identifier, assuming that it is represented by a 6-bit binary code, encoded as 110011, then control information 1 is encoded as 01000110, control information 2 is encoded as 1010, and control information 3 is encoded as 01000110. Then the control coding information of the first control information is {01000110, 1010, 110011}. Then the control coding information is integrated and compressed to obtain 01000110101010110011, that is, the first compressed coding information.
[0101] Assume again that the frame synchronization information is set to be represented by an 8-bit binary code, where the first 4 bits represent the audio frame number, and the last 4 bits represent the PC-side video frame or audio playback frame number. Assume that the first frame synchronization information obtained is the current audio frame number 13, the video frame or audio playback frame number is 5, the audio frame number is encoded to obtain an audio frame number of 1101, and the video frame or audio playback frame number is encoded to 0101. The frame coding information of the first frame synchronization information is {1101, 0101}, and the frame coding information is integrated and compressed to obtain 11010101, that is, the second compressed coding information.
[0102] Assume again that the first audio information is a 20-second piece of music with a sampling rate of 44100 Hz and a bit width of 16 bits, and the Bluetooth headset requires an audio signal with a sampling rate of 22050 Hz and a bit width of 8 bits. Assume that the audio sequence of the first audio information is {2, -5, 8, -3, 6...} (44100 sampling points), and by sampling every 2 sampling points, {2, 8, 6...} (22050 sampling points) is obtained, and the corresponding bit width is {0000000000000010, 00000000 00001000, 00000000 00000110, ...}, discarding the upper 8 bits, and obtaining the first audio information code {00000010, 00001000, 00000110, ...}, and then integrating and compressing the frame coding information to obtain 000000100000100000000110..., that is, the third compressed coding information.
[0103] The obtained first compression coding information, second compression coding information and third compression coding information are integrated and compressed to generate a first radio frequency signal data packet. For example, the first compression coding information 010001101010110011, the second compression coding information 11010101, the third compression coding information 000000100000100000000110... are integrated and compressed to obtain {010001101010110011, 11010101, 000000100000100000000110...}, that is, the first radio frequency signal data packet.
[0104] By integrating and compressing the sampling rate and bit width of the audio information in the encoding stage, the size of the audio stream data can be reduced, thereby reducing the demand for transmission bandwidth and speeding up the data transmission rate. At the same time, the audio information is encoded, wherein the control information can ensure that the communication system effectively transmits the control information, and the frame synchronization information helps the receiving end to correctly parse and restore the audio frame. The audio information reduces the bit width by reducing the sampling rate, which can reduce the audio signal data flow and speed up the transmission efficiency. By integrating and compressing the first control information, the first frame synchronization information and the first audio information, the size of the audio data is reduced, thereby reducing the demand for transmission bandwidth and increasing the speed of audio transmission.
[0105] In an optional implementation, converting the first radio frequency signal data packet into an electrical signal by the first radio frequency module and outputting the electrical signal to the Bluetooth headset includes:
[0106] converting the first radio frequency signal data packets into first radio wave signals in sequence;
[0107] The first radio wave signal is output to the Bluetooth headset through the first radio frequency module.
[0108] The first radio wave signal refers to an electrical signal for data transmission converted from the first radio frequency signal in the first radio frequency module. Figure 2 In the first RF module shown, there is a digital-to-analog converter (DAC) which can be used to convert a digital signal into an analog signal.
[0109] For example, the first radio frequency data packet {010001101010110011, 11010101, 000000100000100000000110...} is modulated by a digital-to-analog converter to map different binary values to different frequencies. Assume that the frequency corresponding to 0 is f(1), and f(1) represents mapping to the first sine wave. The frequency corresponding to 1 is f(2), and f(2) represents mapping to the second sine wave. The 11010101 in the first data packet can be converted into a frequency sequence {f(2), f(2), f(1), f(2), f(1), f(2), f(1), f(2)}, which is mapped to a complete signal waveform, namely the first wireless signal wave.
[0110] Output the first wireless signal wave to the Bluetooth headset, Bluetooth transmission communication specification, map the analog signal to a specific frequency range for transmission in the wireless medium. Control the bandwidth of the analog signal to adapt to the communication frequency band and avoid interference from other signals. Increase the power of the signal to maintain signal quality during transmission. Radiate the first wireless signal wave signal into space so that the first wireless signal wave can be received by the Bluetooth headset.
[0111] S43, receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal to a second radio frequency signal data packet.
[0112] The second RF module is Figure 3 The RF module of the Bluetooth headset is used to receive Figure 2 The first radio signal wave signal is emitted by the first radio frequency module of the software protector.
[0113] When the second radio frequency module receives the electrical signal, the modem in the second radio frequency module demodulates the electrical signal and converts the analog signal into a digital signal, that is, restores the electrical signal to a second radio frequency signal data packet.
[0114] In an optional implementation, the receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal to a second radio frequency signal data packet includes:
[0115] Receiving the first radio wave signal through the second radio frequency module of the Bluetooth headset;
[0116] The first radio wave signal is restored to the second radio frequency signal data packet through the second radio frequency module.
[0117] The second RF module of the Bluetooth headset receives the first radio wave signal transmitted via RF, amplifies the first radio wave signal, and converts the received first radio wave signal to a corresponding frequency range to reduce signal frequency distortion. The frequency is mapped back to a corresponding binary value, and the mapped binary values are combined together to restore the original binary data, i.e., the second RF signal data packet.
[0118] Exemplarily, according to the waveform of the first radio wave signal, it is divided into f(1) and f(2) according to the corresponding frequencies, and then restored to the corresponding binary code, so as to obtain the second radio frequency signal data packet {010001101010110011, 11010101, 000000100000100000000110...}.
[0119] S44: Decode the second radio frequency signal data packet into a second digital audio signal through the Bluetooth headset.
[0120] After the second radio frequency signal data packet is restored through the second radio frequency module of the Bluetooth headset, the audio decoder decodes the second radio frequency data packet to obtain a second digital audio signal.
[0121] In an optional implementation, decoding the second radio frequency signal data packet into a second digital audio signal by the Bluetooth headset includes:
[0122] Parsing the second radio frequency signal data packet to obtain second control information, second frame synchronization information and second audio information through the Bluetooth headset;
[0123] Mapping the second control information, the second frame synchronization information and the audio data to corresponding audio frames to obtain audio data within a short period of time contained in each audio frame;
[0124] Each audio frame is decoded according to a coding algorithm to obtain the second digital audio signal.
[0125] The second control information, the second frame synchronization information and the second audio information refer to information corresponding to the first radio frequency signal data packet that is parsed from the second radio frequency signal data packet.
[0126] Exemplarily, assuming that the second RF signal data packet received by the Bluetooth headset is {010001101010110011, 11010101, 000000100000100000000110...}, after being decoded by the audio decoder, the second control information is 010001101010110011, the second frame synchronization information is 11010101 and the second audio information is 000000100000100000000110... In the process of decoding the second RF signal data packet, the digital signal processing part of the Bluetooth headset will perform noise gate processing to control the noise level allowed to pass, and will also perform sound effect processing, automatically adjusting the gain of the audio signal and reducing the noise in the speaker output through AGC (Automatic Gain Control) and Speaker NR (Noise Reduction), to ensure that the decoded second control information, second frame synchronization information and second audio information have a low packet loss rate.
[0127] Then, audio restoration is performed according to the obtained second control information, second frame synchronization information and second audio information, and the audio data is split into a series of audio frames using the second frame synchronization information. Each audio frame is associated with the corresponding second control information to ensure that the subsequent decoding process can correctly understand the audio data, and each audio frame is mapped to obtain the audio data of a short period of time contained in each audio frame. This process is repeated for each audio frame through the decoding algorithm of the audio decoder. Finally, a second digital audio signal is obtained through each decoded audio frame.
[0128] S45, generating an audio waveform based on the second digital audio signal through the Bluetooth headset, and outputting audio according to the audio waveform.
[0129] The Bluetooth headset generates a final audio waveform by reconstructing the second digital audio signal in the time domain and frequency domain, such as Figure 5 The schematic diagram of the audio waveform is shown, and then the audio is output according to this audio waveform.
[0130] The time domain is used to represent the changes of the audio signal over time. In the time domain reconstruction, the Bluetooth headset will reconstruct the time sequence of the original audio signal to ensure that the changes and rhythm of the sound during the playback process are accurately reproduced. The present application adopts an interpolation method for time domain reconstruction to reconstruct the sound waveform according to the correct time sequence.
[0131] The frequency domain is used to represent the characteristics of different frequency components in the audio signal. Through frequency domain reconstruction, the Bluetooth headset can ensure that the frequency components such as the treble and bass of the audio remain balanced and accurate during playback. During the frequency domain reconstruction process, the Bluetooth headset uses Fourier transform signal processing technology to perform frequency domain reconstruction to ensure that the volume and characteristics of each frequency of the audio during playback meet the requirements of the original audio.
[0132] Exemplarily, in the time domain reconstruction stage, assuming that the digital audio signal is {2, 5, -3, 8, -1, 6, ...}, these numbers represent the amplitude of the audio signal at different time points. The audio samples after linear interpolation of the digital audio signal using the interpolation technology are {2, 3.5, 5, 01, 3, 2.5, 8, 3.5, -1, 3.5, 6, ...}.
[0133] In the frequency domain reconstruction stage, Fourier transform can be used to convert the time domain signal into frequency domain representation. Take Fourier transform as an example: Fourier transform the audio samples {2, 3.5, 5, 01, 3, 2.5, 8, 3.5, -1, 3.5, 6, ...} to reconstruct the audio waveform.
[0134] The resulting audio waveform is sent to the speaker of the Bluetooth headset to produce a simulated sound waveform for the user's auditory perception.
[0135] In an optional embodiment, the method further comprises:
[0136] Acquire a first target audio signal through the second radio frequency module of the Bluetooth headset, and generate a third radio frequency signal data packet according to the target audio signal and output it to the software protector;
[0137] receiving the third RF signal data packet through the first RF module of the software protector, and decoding the third RF signal data packet to obtain a second target audio signal;
[0138] The second target audio signal is output to the user terminal device through the software protector.
[0139] when Figure 3 When the Audio Interface (audio interface) of the Bluetooth headset obtains the first target audio signal, the audio encoder module in the Bluetooth headset encodes and compresses the first target audio signal to obtain a third RF signal data packet, and then converts the third RF signal data packet into an electrical signal through RF (Radio Frequency) for transmission. Figure 1 The first RF module of the software protector receives and restores the third RF signal data packet, and decodes it through the decoder in the software protector to obtain the second target audio signal. Figure 1 The USB audio signal interface (USBaudio) in sends the second target audio signal to the user-end device.
[0140] For example, when a computer is talking to a person, the Bluetooth headset will obtain the computer's audio signal through the software protector for playback. The headset can also obtain the audio spoken by the user and convert it into a signal and send it to the computer.
[0141] This application obtains the first digital audio signal of the user-end device by using the USB audio data interface of the software protector; and encodes the first digital audio signal, compresses the encoded information obtained by encoding to generate a first radio frequency signal data packet. By encoding and compressing the digital audio signal, the audio data flow and bandwidth are reduced, and the transmission rate of the audio signal is accelerated. The first radio frequency signal data packet is converted into an electrical signal by the first radio frequency module and output to the Bluetooth headset; the electrical signal is received by the second radio frequency module of the Bluetooth headset and the electrical signal is restored to the second radio frequency signal data packet; the data flow is reduced during the sending process, and the Bluetooth headset has a lower reception delay. The Bluetooth headset decodes the second radio frequency signal data packet and generates an audio waveform to play through the speaker. This application accelerates the data transmission rate and effectively reduces the delay of Bluetooth headset audio transmission by encoding and compressing the digital audio signal, thereby achieving synchronization between audio and video and improving the user's auditory experience.
[0142] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0143] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A method for reducing the transmission delay of a Bluetooth headset, characterized in that: The method comprises: When the software protector is connected to the user terminal device, obtaining a first digital audio signal of the user terminal device; Encoding the first digital audio signal through the software protector, compressing the encoded information to generate a first radio frequency signal data packet, and converting the first radio frequency signal data packet into an electrical signal through a first radio frequency module and outputting it to the Bluetooth headset; Receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal into a second radio frequency signal data packet; Decoding the second radio frequency signal data packet into a second digital audio signal through the Bluetooth headset; generating an audio waveform based on the second digital audio signal through the Bluetooth headset, and outputting audio according to the audio waveform; The step of encoding the first digital audio signal by the software protector and compressing the encoded information to generate a first radio frequency signal data packet includes: Performing spectrum analysis on the first digital audio signal through the audio encoder of the dongle to obtain a spectrum analysis result, wherein the spectrum analysis result includes first control information, first frame synchronization information and first audio information; Encoding the first control information to obtain control coded information, and converting the control coded information into first compressed coded information; Encoding the first frame synchronization information to obtain frame coding information, and converting the frame coding information into second compression coding information; Encode the first audio information to obtain audio encoding information, and convert the audio encoding information into third compressed encoding information; The first compression coding information, the second compression coding information and the third compression coding information are integrated and compressed to generate the first radio frequency signal data packet.
2. The method for reducing the transmission delay of a Bluetooth headset according to claim 1, characterized in that: The step of converting the first radio frequency signal data packet into an electrical signal and outputting it to the Bluetooth headset through the first radio frequency module includes: converting the first radio frequency signal data packets into first radio wave signals in sequence; The first radio wave signal is output to the Bluetooth headset through the first radio frequency module.
3. The method for reducing the transmission delay of a Bluetooth headset according to claim 2, characterized in that: The receiving the electrical signal through the second radio frequency module of the Bluetooth headset and restoring the electrical signal to a second radio frequency signal data packet comprises: Receiving the first radio wave signal through the second radio frequency module of the Bluetooth headset; The first radio wave signal is restored to the second radio frequency signal data packet through the second radio frequency module.
4. The method for reducing the transmission delay of a Bluetooth headset according to claim 1, characterized in that: The decoding of the second radio frequency signal data packet into a second digital audio signal by the Bluetooth headset comprises: Parsing the second radio frequency signal data packet through the Bluetooth headset to obtain second control information, second frame synchronization information and second audio information; Mapping the second control information, the second frame synchronization information and the second audio information to corresponding audio frames to obtain audio data of a short period of time contained in each audio frame; Each audio frame is decoded according to a coding algorithm to obtain the second digital audio signal.
5. The method for reducing the transmission delay of a Bluetooth headset according to claim 4, characterized in that: Generating an audio waveform based on the second digital audio signal by the Bluetooth headset includes: The second digital audio signal is reconstructed in the time domain and the frequency domain through the Bluetooth headset to generate an audio waveform.
6. The method for reducing the transmission delay of a Bluetooth headset according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire a first target audio signal through the second radio frequency module of the Bluetooth headset, and generate a third radio frequency signal data packet according to the target audio signal and output it to the software protector; receiving the third RF signal data packet through the first RF module of the software protector, and decoding the third RF signal data packet to obtain a second target audio signal; The second target audio signal is output to the user terminal device through the software protector.
7. A system for reducing the transmission delay of a Bluetooth headset, characterized in that: The system comprises: The software protector is used to obtain a first digital audio signal played by the user terminal device when the user terminal device is connected; The software protector is further used to encode the first digital audio signal, compress the encoded information obtained by encoding to generate a first radio frequency signal data packet, and convert the first radio frequency signal data packet into an electrical signal through a first radio frequency module and output it to the Bluetooth headset; The Bluetooth headset is used to receive the electrical signal through the second radio frequency module and restore the electrical signal to a second radio frequency signal data packet; The Bluetooth headset is further used to decode the second radio frequency signal data packet into a second digital audio signal; The Bluetooth headset is further used to generate an audio waveform based on the second digital audio signal, and output audio according to the audio waveform; The software protector encodes the first digital audio signal, and compresses the encoded information to generate a first radio frequency signal data packet, including: Performing spectrum analysis on the first digital audio signal through the audio encoder of the dongle to obtain a spectrum analysis result, wherein the spectrum analysis result includes first control information, first frame synchronization information and first audio information; Encoding the first control information to obtain control coded information, and converting the control coded information into first compressed coded information; Encoding the first frame synchronization information to obtain frame coding information, and converting the frame coding information into second compression coding information; Encode the first audio information to obtain audio encoding information, and convert the audio encoding information into third compressed encoding information; The first compression coding information, the second compression coding information and the third compression coding information are integrated and compressed to generate the first radio frequency signal data packet.
8. The system for reducing transmission delay of a Bluetooth headset according to claim 7, characterized in that: The Bluetooth headset is further used to obtain a first target audio signal through the second radio frequency module, and generate a third radio frequency signal data packet according to the target audio signal and output it to the software protector; The software protector is further used to receive the third radio frequency signal data packet through the first radio frequency module, and decode the third radio frequency signal data packet to obtain a second target audio signal; The software protector is further used to output the second target audio signal to the user terminal device.
Citation Information
Patent Citations
Bluetooth communication method and device
CN116615875A
Audio transmitting device, audio receiving device and audio transceiving system
CN217486477U