Bluetooth audio wall plug codec for Dante audio networking
By collecting, processing and transmitting audio data in audio wall plug-in codecs, and using Dante protocol and codec training technology, the complex wiring and high cost in traditional audio transmission are solved, achieving high efficiency and low cost Audio data transmission and encoding and decoding speeds are improved.
Patent Information
- Application Number
- CN202411246677.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-06
AI Technical Summary
The existing network audio transmission technology cannot meet the transmission needs of large-scale and long-distance systems. The complex wiring in traditional audio transmission leads to high costs, and the transmission capacity and delay cannot meet the requirements.
A Bluetooth audio wall plug-in codec that can be connected to the Dante audio network is designed. Data is collected through the audio acquisition unit, and the audio processing unit performs filtering, noise reduction and enhancement processing. The network transmission unit uses the Dante protocol to transmit and edit. The decoder is trained to improve its quality and speed.
It improves the quality and audibility of audio data, solves traditional wiring problems, reduces costs, realizes efficient audio data transmission, and improves transmission speed and quality through the optimization of codecs.
Smart Images

Figure CN118762703B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of codecs, in particular to a Bluetooth audio wall plug-in codec capable of accessing a Dante audio network. Background Art
[0002] At the software level, an audio codec is a computer program that implements an algorithm that compresses and decompresses digital audio data into an audio file or streaming audio encoding format. The algorithm's goal is to represent a high-fidelity audio signal using the fewest bits while maintaining quality. This can effectively reduce the storage space and bandwidth required to transmit the stored audio files. Most codecs are implemented as a library with an interface for use by one or more media players; at the hardware level, an audio codec refers to a standalone device that can encode analog audio to digital audio and decode digital audio to analog audio. In other words, it contains an analog-to-digital converter (ADC) and a digital-to-analog converter (DAC) running on the same clock. This is used in sound cards to support audio input and output.
[0003] At present, with the rapid development of network audio technology, in order to meet the transmission requirements of large-scale and long-distance systems, the number of devices supporting digital audio signal network transmission may even reach dozens or even hundreds. The currently commonly used cables and switching equipment and the technology based on TDM to achieve transmission cannot meet the existing needs in terms of transmission capacity and delay. In addition, the wiring in traditional audio transmission is complicated, which increases the transmission cost. Therefore, it does not meet the existing needs. In this regard, we propose a Bluetooth audio wall plug codec that can be connected to the Dante audio network. Summary of the invention
[0004] The purpose of the present invention is to provide a Bluetooth audio wall plug codec that can be connected to a Dante audio network. By collecting audio data from an audio input device and processing the collected audio data, the audio quality of the audio data can be improved, thereby increasing the audibility of the audio. The processed audio data is encoded and decoded using a Dante protocol transmission codec, and the decoded audio data is converted into analog audio data and output through an external audio receiving device. In addition, the codec is trained and evaluated to improve the quality and encoding and decoding speed of the codec, thereby solving the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a Bluetooth audio wall plug codec that can be connected to a Dante audio network, comprising:
[0006] Audio acquisition unit, used for:
[0007] An external audio input device collects audio data from the audio input device through the audio collection unit and sends the collected audio data to the audio processing unit;
[0008] Audio processing unit for:
[0009] Receive audio data collected by the audio collection unit, process the received audio data, and send the processed audio data to the network transmission unit;
[0010] Network transmission unit, used for:
[0011] Receive the audio data processed by the audio processing unit and transmit the received audio data using the Dante protocol;
[0012] Codecs for:
[0013] The transmitted audio data is encoded and decoded, the decoded audio data is converted into analog audio data and output through an external audio receiving device, and the codec is trained to improve the quality and encoding and decoding speed of the codec.
[0014] Furthermore, the audio acquisition unit includes:
[0015] Frequency division processing for:
[0016] According to the different frequency information generated by the audio input device in different working states, targeted adjustments and information processing are carried out to ensure that the collected audio data matches the frequency band of the audio input device;
[0017] Delay calibration processing for:
[0018] By automatically calibrating the time difference, the synchronous playback of the acquired audio data is ensured.
[0019] Furthermore, the audio processing unit comprises:
[0020] Audio filtering for:
[0021] Filter the audio data to remove unnecessary frequency components and noise in the audio data;
[0022] Audio noise reduction for:
[0023] Perform noise reduction on audio data to improve the quality and audibility of audio data;
[0024] Audio enhancement for:
[0025] Perform enhanced processing on audio data to improve the clarity and loudness characteristics of the audio data.
[0026] Furthermore, the network transmission unit includes:
[0027] Ethernet switches for:
[0028] Accessing the Ethernet network, and obtaining the audio data collected by the audio collection unit by accessing the Ethernet;
[0029] Dante network modules, including Dante gateways, for:
[0030] Connected to the codec, the audio data obtained by the Ethernet switch is transmitted to the codec through the Dante network module;
[0031] Among them, the Dante network module runs based on the Ethernet network, the Dante gateway adopts the Dante protocol, and its Dante gateway has a built-in Dante audio network interface. The codec is connected to the Dante audio network interface via a network cable or optical fiber.
[0032] Furthermore, the codec includes the following process:
[0033] Encoding process: involves sampling and quantization. The audio data transmitted by the network transmission unit is compressed and encoded into a format suitable for transmission via Bluetooth;
[0034] Transmission process: The encoded audio data is sent via Bluetooth connection to the receiving end;
[0035] Decoding process: At the receiving end, the receiving end will decode the received audio data, convert the audio data back to the original audio format, and output it for playback through an external audio receiving device.
[0036] Furthermore, the encoded audio data is sent via a Bluetooth connection, and the encoded audio data is sent to a receiving end, including:
[0037] Before the audio data is sent, the operating parameters of the Bluetooth connection are monitored to obtain status parameter data corresponding to the current Bluetooth connection status; wherein the status parameter data includes received signal strength, data packet loss rate, delay and protocol error rate;
[0038] The Bluetooth operation quality evaluation parameter is obtained by using the state parameter data corresponding to the current Bluetooth connection state; wherein the Bluetooth operation quality evaluation parameter is obtained by the following formula:
[0039] ,
[0040] Where Q represents the Bluetooth operation quality evaluation parameter; Q 01 , Q 02 , Q03 and Q 04 represent the first evaluation parameter, the second evaluation parameter, the third evaluation parameter and the fourth evaluation parameter respectively; and the first evaluation parameter is obtained by the following formula:
[0041] ,
[0042] Among them, Q 01 Represents the first evaluation parameter; R max and R min They represent the maximum and minimum received signal strengths that satisfy the good Bluetooth operation status; R represents the received signal strength corresponding to the current Bluetooth connection;
[0043] At the same time, the second evaluation parameter is obtained by the following formula:
[0044] ,
[0045] Among them, Q 02 represents the second evaluation parameter; P represents the data packet loss rate of the data transmission corresponding to the current Bluetooth connection; P max Indicates the maximum allowed packet loss rate corresponding to meeting the Bluetooth connection requirements;
[0046] At the same time, the third evaluation parameter is obtained by the following formula:
[0047] ,
[0048] Among them, Q 03 represents the third evaluation parameter; L represents the data transmission delay rate of the data transmission corresponding to the current Bluetooth connection; L max Indicates the maximum allowable data transmission delay rate corresponding to the Bluetooth connection requirements;
[0049] At the same time, the fourth evaluation parameter is obtained by the following formula:
[0050] ,
[0051] Among them, Q 04 represents the fourth evaluation parameter; E represents the protocol error rate of data transmission corresponding to the current Bluetooth connection; E max Indicates the maximum allowed protocol error rate corresponding to meeting the Bluetooth connection requirements;
[0052] Comparing the Bluetooth operation quality evaluation parameter with a preset parameter threshold;
[0053] When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the audio data is sent;
[0054] When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set.
[0055] Further, when the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set, including:
[0056] When the Bluetooth operation quality evaluation parameter does not exceed the preset parameter threshold, extracting the Bluetooth operation quality evaluation parameter and the preset parameter threshold;
[0057] Using the Bluetooth operation quality evaluation parameter and the preset parameter threshold, obtaining a bit rate required for sending audio data;
[0058] The bit rate required for sending the audio data is obtained by the following formula:
[0059] ,
[0060] Among them, B t Indicates the bit rate required for sending audio data; C y Indicates the data volume corresponding to the audio data currently to be sent; C0 indicates the preset data volume reference value; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; B min Indicates the actual minimum bit rate during the Bluetooth connection process; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold;
[0061] Acquire the buffered data volume of the audio data at the data transmitting end by using the Bluetooth operation quality evaluation parameter and the preset parameter threshold;
[0062] The amount of buffered data of the audio data at the data sending end is obtained by the following formula:
[0063] ,
[0064] Among them, C t Indicates the amount of audio data buffered at the data sending end; C min Indicates the minimum buffered data volume of audio data at the data sending end that meets the data sending requirements; B t Indicates the bit rate required for sending audio data; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold.
[0065] Furthermore, the encoding process is specifically as follows:
[0066] Sampling and quantization: Sampling is to collect continuous audio data at a certain time interval, and quantization is to map the amplitude value of the sampled analog audio data into discrete digital values;
[0067] Compression coding: Analyze the redundant information in the audio data and use algorithms to compress the audio data;
[0068] Among them, the algorithm adopts a lossless compression algorithm, which reduces the amount of data by eliminating redundant information or repeating encoding to maintain audio quality without loss.
[0069] Furthermore, the decoding process is specifically as follows:
[0070] The receiving end decompresses the compressed audio data, identifies the compression format before decompression, and decodes the audio data according to the identified compression format;
[0071] After receiving the decompressed audio data, the digital audio signal is optimized and enhanced by adjusting the frequency, amplitude and phase parameters of the audio data;
[0072] After processing the audio data, the digital audio signal is converted into an analog audio signal and output by an external audio receiving device for playback. After processing the digital audio signal of the audio data, the digital audio signal of the audio data is converted into an analog audio signal and output by an external audio receiving device for playback.
[0073] Furthermore, the codec further includes the following process:
[0074] Training process: Select the appropriate model architecture based on deep learning methods to build a codec training model;
[0075] Prepare training sets and test sets, and use the training sets to train the established codec training model
[0076] , use the test set to evaluate the established codec training model;
[0077] The trained and evaluated codec training model is deployed to the actual application of the codec and optimized according to the actual application situation.
[0078] Compared with the prior art, the present invention has the following beneficial effects:
[0079] The present invention can collect audio data from an audio input device through an audio collection unit, and can filter, reduce noise, enhance and other processes on the collected audio data through an audio processing unit. The audio processing unit can improve the audio quality and audio audibility of the audio data. The processed audio data is transmitted by a network transmission unit. The network transmission unit first obtains the collected audio data through an Ethernet switch, and then the Dante network module transmits the audio data to a codec. The Dante network module uses the Dante protocol for audio transmission. The Dante network module solves the complicated wiring problems in traditional audio transmission, thereby reducing costs, encodes and decodes the transmitted audio data, and converts the decoded audio data into analog audio data and outputs it through an external audio receiving device. In addition, the codec is trained and optimized, thereby improving the quality and encoding and decoding speed of the codec and ensuring the quality and effect of the output playback audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 It is a schematic diagram of the structure of a Bluetooth audio wall plug codec that can be connected to a Dante audio network according to the present invention;
[0081] Figure 2 It is a schematic diagram of the implementation flow of the codec of the present invention. DETAILED DESCRIPTION
[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0083] In order to solve the problem that the cables and switching equipment used in the existing technology and the technology based on TDM transmission cannot meet the existing needs in terms of transmission capacity and delay, and the wiring in traditional audio transmission is complicated, which increases the transmission cost, please refer to Figure 1-Figure 2 , this embodiment provides the following technical solutions:
[0084] Bluetooth audio wall plug codec that can connect to Dante audio networks, including:
[0085] Audio acquisition unit, used for:
[0086] An external audio input device collects audio data from the audio input device through the audio collection unit and sends the collected audio data to the audio processing unit;
[0087] Audio processing unit for:
[0088] Receive audio data collected by the audio collection unit, process the received audio data, and send the processed audio data to the network transmission unit;
[0089] Network transmission unit, used for:
[0090] Receive the audio data processed by the audio processing unit and transmit the received audio data using the Dante protocol;
[0091] Codecs for:
[0092] The transmitted audio data is encoded and decoded, the decoded audio data is converted into analog audio data and output through an external audio receiving device, and the codec is trained to improve the quality and encoding and decoding speed of the codec.
[0093] The technical effect of the above content is: the audio data of the audio input device can be collected by the audio collection unit, and the collected audio data can be processed by the audio processing unit, so as to improve the audio quality of the audio data. The audio data processed by the audio processing unit will be transmitted through the network transmission unit. The network transmission unit can transmit the audio data to the codec by adopting the Dante protocol. The codec encodes and decodes the received audio data, converts the decoded audio data into analog audio data and outputs it through an external audio receiving device. At the same time, by training the codec, the codec can be optimized, so as to improve the quality and encoding and decoding speed of the codec.
[0094] Audio acquisition unit, including:
[0095] Frequency division processing for:
[0096] According to the different frequency information generated by the audio input device in different working states, targeted adjustments and information processing are carried out to ensure that the collected audio data matches the frequency band of the audio input device;
[0097] Delay calibration processing for:
[0098] By automatically calibrating the time difference, the synchronous playback of the acquired audio data is ensured.
[0099] The technical effect of the above content is: the frequency division processing can provide corresponding adjustments and information according to the different frequency information generated by the audio input device in different working states, that is, provide a signal corresponding to the frequency band of the audio input device. The frequency division processing enables the audio acquisition unit to be applicable to many audio input devices. As long as the audio input device works normally, the audio acquisition unit can also work normally and can accurately convey the audio data to the audio receiving device. Since the audio input device is composed of multiple components, these audio input devices will inevitably have time differences when in use. The time difference can be automatically calibrated through delay calibration processing to ensure that the collected audio data can be played synchronously on the audio receiving device.
[0100] Audio processing unit, including:
[0101] Audio filtering for:
[0102] Filter the audio data to remove unnecessary frequency components and noise in the audio data;
[0103] Audio noise reduction for:
[0104] Perform noise reduction on audio data to improve the quality and audibility of audio data;
[0105] Audio enhancement for:
[0106] Perform enhanced processing on audio data to improve the clarity and loudness characteristics of the audio data.
[0107] The technical effects of the above content are: first, audio data can be filtered through audio filtering to remove unnecessary frequency components and noise in the audio data. Then, audio noise reduction can be used to reduce the noise of audio data, thereby improving the quality and audibility of audio data. Audio denoising generally adopts denoising technology, namely frequency domain filtering, time domain filtering and reverberation elimination. Frequency domain filtering filters out noise components in the spectrum by analyzing the frequency domain characteristics of audio data. Time domain filtering filters out noise components in time by analyzing the time domain characteristics of audio data. Reverberation elimination reduces noise interference by modeling and removing reverberation components in audio data. Finally, audio enhancement can be used to enhance audio data, thereby improving the clarity and Loudness characteristics, audio enhancement is to process the audio signal of audio data to improve its clarity, loudness and other characteristics. Audio enhancement generally adopts harmonic enhancement to improve the audio quality by filtering, denoising and enhancing the audio data, thereby improving the audio quality and audio audibility of the audio data. In addition, the audio processing unit and the codec are related to each other but different. The audio processing unit performs various operations and improvements on the original audio data to improve the quality and audibility of the audio data. The purpose of the audio processing unit is to improve the quality of audio data, increase the audibility of audio and meet specific needs, while the codec encodes and decodes the audio data processed by the audio processing unit to obtain high-quality audio for external output.
[0108] Network transmission unit, comprising:
[0109] Ethernet switches for:
[0110] Accessing the Ethernet network, and obtaining the audio data collected by the audio collection unit by accessing the Ethernet;
[0111] Dante network modules, including Dante gateways, for:
[0112] Connected to the codec, the audio data obtained by the Ethernet switch is transmitted to the codec through the Dante network module;
[0113] Among them, the Dante network module runs based on the Ethernet network, the Dante gateway adopts the Dante protocol, and its Dante gateway has a built-in Dante audio network interface. The codec is connected to the Dante audio network interface via a network cable or optical fiber.
[0114] The technical effect of the above content is: the Ethernet network can be accessed through the Ethernet switch, so that the audio data collected by the audio acquisition unit can be obtained by accessing the Ethernet, and the Dante network module is Dante audio transmission technology, which is based on the Ethernet network. Dante audio transmission technology can allow audio data to be transmitted in the Ethernet. The Dante gateway of the Dante network module has a built-in Dante audio network interface, and the Dante gateway uses the Dante protocol codec to connect to the Dante audio network interface through a network cable or optical fiber, so that the audio data can be transmitted to the codec. Compared with traditional audio transmission technologies, the Dante network module ensures good sound quality, solves the complicated wiring problems in traditional audio transmission, reduces costs, and adapts to existing networks without the need for special configuration.
[0115] Codec, including the following processes:
[0116] Encoding process: involves sampling and quantization. The audio data transmitted by the network transmission unit is compressed and encoded into a format suitable for transmission via Bluetooth.
[0117] Among them, sampling and quantization: sampling, collecting continuous audio data at a certain time interval, quantization, mapping the amplitude value of the sampled analog audio data into discrete digital values;
[0118] Compression coding: Analyze the redundant information in the audio data and use algorithms to compress the audio data;
[0119] The algorithm uses a lossless compression algorithm, which reduces the amount of data by eliminating redundant information or repeating encoding to maintain audio quality without loss;
[0120] Transmission process: The encoded audio data is sent via Bluetooth connection to the receiving end;
[0121] Decoding process: At the receiving end, the receiving end will decode the received audio data, convert the audio data back to the original audio format, and output it for playback through an external audio receiving device.
[0122] The receiving end decompresses the compressed audio data, identifies the compression format before decompression, and decodes the audio data according to the identified compression format;
[0123] After receiving the decompressed audio data, the digital audio signal is optimized and enhanced by adjusting the frequency, amplitude and phase parameters of the audio data;
[0124] After processing the audio data, the digital audio signal is converted into an analog audio signal and output by an external audio receiving device for playback. After processing the digital audio signal of the audio data, the digital audio signal of the audio data is converted into an analog audio signal and output by an external audio receiving device for playback.
[0125] Codec also includes the following processes:
[0126] Training process: Select the appropriate model architecture based on deep learning methods to build a codec training model;
[0127] Prepare training sets and test sets, and use the training sets to train the established codec training model
[0128] Extract features from the training set, and then train and optimize the codec training model. Use the test set to evaluate the established codec training model. If the codec training model performs poorly, try adjusting the parameters.
[0129] The trained and evaluated codec training model is deployed to the actual application of the codec and optimized according to the actual application situation.
[0130] The technical effect of the above content is: the codec includes an encoding process, a transmission process and a decoding process. The encoding process involves sampling, quantization and compression coding. In audio data, the audio data signal is discretized into a series of sampling points, and sampling refers to the collection of continuous audio data signals at a certain time interval, and quantization refers to mapping the amplitude value of the sampled audio data signal into a discrete digital value, and then compressing and encoding the audio data. By analyzing the redundant information in the audio data and using a lossless compression algorithm to compress the audio data, the audio data is reduced while maintaining high audio quality. The compressed and encoded audio data is transmitted to the receiving end, and the compressed and encoded audio data is decompressed by the receiving end. The compression format is first identified before decompression, and the audio data is decoded according to the identified compression format. General compression formats include MP3, ACC, etc. These formats reduce the file size of the audio data by reducing the redundancy and repetitiveness of the data, and the receiving end After decompressing the audio data, the digital audio signal can be optimized and enhanced by adjusting the frequency, amplitude and phase parameters of the audio data, thereby improving the sound quality and restoration of the audio, thereby restoring the audio data to a form close to the original audio, allowing users to hear high-quality audio. After processing the audio data, the digital audio signal is converted into an analog audio signal for output to an external audio receiving device for playback. The codec converts continuous audio data into discrete audio data through the process of encoding, transmission and decoding, and reduces the amount of data while ensuring audio quality. In addition, the codec also includes a training process, in which the established codec training model is trained and evaluated through the training set and test set prepared in advance, and the trained and evaluated codec training model is deployed in actual application, and optimized according to the actual application situation, thereby improving the quality and encoding and decoding speed of the codec and ensuring the quality and effect of the output playback audio.
[0131] Working principle: The audio data from the audio input device can be collected through the audio acquisition unit, and the collected audio data can be processed through the audio processing unit. The audio data is filtered through audio filtering to remove unnecessary frequency components and noise in the audio data. The audio noise reduction is used to reduce the noise of the audio data to improve the quality and audibility of the audio data. The audio enhancement is used to enhance the audio data to improve the clarity and loudness characteristics of the audio data. After the audio data is processed through the above process, the audio quality and audio audibility of the audio data can be improved, and the codec can obtain higher quality output audio. The processed audio data is transmitted by the network transmission unit. The network transmission unit first obtains the collected audio data through the Ethernet switch, and then is transmitted by Dan The Dante network module transmits audio data to the codec. The Dante network module uses the Dante protocol for audio transmission. The Dante network module solves the complicated wiring problems in traditional audio transmission, reduces costs, and adapts to existing networks without special configuration. The codec encodes and decodes the transmitted audio data, and converts the decoded audio data into analog audio data and outputs it through an external audio receiving device. In addition, the established codec training model is trained and evaluated through the pre-prepared training set and test set, and the trained and evaluated codec training model is deployed in actual application, and optimized according to the actual application situation, so as to improve the quality and encoding and decoding speed of the codec and ensure the quality and effect of the output playback audio.
[0132] Specifically, the encoded audio data is sent via a Bluetooth connection, and the encoded audio data is sent to a receiving end, including:
[0133] Before the audio data is sent, the operating parameters of the Bluetooth connection are monitored to obtain status parameter data corresponding to the current Bluetooth connection status; wherein the status parameter data includes received signal strength, data packet loss rate, delay and protocol error rate;
[0134] The Bluetooth operation quality evaluation parameter is obtained by using the state parameter data corresponding to the current Bluetooth connection state; wherein the Bluetooth operation quality evaluation parameter is obtained by the following formula:
[0135] ,
[0136] Where Q represents the Bluetooth operation quality evaluation parameter; Q 01 , Q 02 , Q 03 and Q 04 represent the first evaluation parameter, the second evaluation parameter, the third evaluation parameter and the fourth evaluation parameter respectively; and the first evaluation parameter is obtained by the following formula:
[0137] ,
[0138] Among them, Q 01 Represents the first evaluation parameter; R max and R min They represent the maximum and minimum received signal strengths that satisfy the good Bluetooth operation status; R represents the received signal strength corresponding to the current Bluetooth connection;
[0139] At the same time, the second evaluation parameter is obtained by the following formula:
[0140] ,
[0141] Among them, Q 02 represents the second evaluation parameter; P represents the data packet loss rate of the data transmission corresponding to the current Bluetooth connection; P max Indicates the maximum allowed packet loss rate corresponding to meeting the Bluetooth connection requirements;
[0142] At the same time, the third evaluation parameter is obtained by the following formula:
[0143] ,
[0144] Among them, Q 03 represents the third evaluation parameter; L represents the data transmission delay rate of the data transmission corresponding to the current Bluetooth connection; L max Indicates the maximum allowable data transmission delay rate corresponding to the Bluetooth connection requirements;
[0145] At the same time, the fourth evaluation parameter is obtained by the following formula:
[0146] ,
[0147] Among them, Q 04 represents the fourth evaluation parameter; E represents the protocol error rate of data transmission corresponding to the current Bluetooth connection; E max Indicates the maximum allowed protocol error rate corresponding to meeting the Bluetooth connection requirements;
[0148] Comparing the Bluetooth operation quality evaluation parameter with a preset parameter threshold;
[0149] When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the audio data is sent;
[0150] When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set.
[0151] The technical effect of the above technical solution is: by real-time monitoring of the status parameters of the Bluetooth connection (received signal strength, data packet loss rate, delay and protocol error rate), the operation quality of the Bluetooth connection can be dynamically evaluated. The Bluetooth operation quality evaluation parameters calculated based on these status parameters can provide a quantitative indicator to reflect the stability of the current Bluetooth connection.
[0152] When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, it means that the current Bluetooth connection quality is good and suitable for sending audio data. If the evaluation parameter is not good, the bit rate required for sending audio data and the amount of buffered data at the data sending end can be adjusted to optimize the sending effect and reduce audio quality problems caused by poor connection quality.
[0153] Through dynamic monitoring and adjustment, the stability and quality of audio data during transmission can be ensured, thereby improving the user's auditory experience. This avoids problems such as audio freeze and distortion caused by poor Bluetooth connection quality, and improves user satisfaction.
[0154] This technical solution can dynamically adjust the transmission strategy according to the actual Bluetooth connection status, enhancing the adaptability and robustness of the system. Whether in the case of signal strength fluctuations, data transmission packet loss, increased latency or increased protocol error rate, the system can make corresponding adjustments to maintain the quality of audio data transmission.
[0155] In summary, this technical solution effectively optimizes the transmission quality of audio data, improves user experience, and enhances the adaptability and robustness of the system by real-time monitoring of the Bluetooth connection status, dynamically evaluating the connection quality, and intelligently adjusting the sending strategy.
[0156] Specifically, when the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set, including:
[0157] When the Bluetooth operation quality evaluation parameter does not exceed the preset parameter threshold, extracting the Bluetooth operation quality evaluation parameter and the preset parameter threshold;
[0158] Using the Bluetooth operation quality evaluation parameter and the preset parameter threshold, obtaining a bit rate required for sending audio data;
[0159] The bit rate required for sending the audio data is obtained by the following formula:
[0160] ,
[0161] Among them, B t Indicates the bit rate required for sending audio data; C yIndicates the data volume corresponding to the audio data currently to be sent; C0 indicates the preset data volume reference value; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; B min Indicates the actual minimum bit rate during the Bluetooth connection process; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold;
[0162] Acquire the buffered data volume of the audio data at the data transmitting end by using the Bluetooth operation quality evaluation parameter and the preset parameter threshold;
[0163] The amount of buffered data of the audio data at the data sending end is obtained by the following formula:
[0164] ,
[0165] Among them, C t Indicates the amount of audio data buffered at the data sending end; C min Indicates the minimum buffered data volume of audio data at the data sending end that meets the data sending requirements; B t Indicates the bit rate required for sending audio data; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold.
[0166] The technical effect of the above technical solution is: when the Bluetooth operation quality evaluation parameter does not reach the preset threshold, the system can automatically extract the current evaluation parameter and the preset threshold, and dynamically adjust the bit rate required for audio data transmission and the amount of buffered data at the data sending end according to these two values.
[0167] By adjusting the bit rate, the system can adapt to the current quality of the Bluetooth connection while ensuring audio quality, avoiding data transmission problems caused by too high a bit rate or audio quality degradation caused by too low a bit rate. Adjusting the amount of buffered data at the data sender can help the system better manage the sending of audio data, ensuring that when the Bluetooth connection quality is poor, there is still enough data buffer to maintain continuous audio playback and reduce freezes.
[0168] Dynamically adjusting audio transmission parameters can reduce audio quality issues caused by fluctuations in Bluetooth connection quality, such as audio freezes and distortion, thereby improving the user's listening experience. Users can enjoy high-quality audio playback without manual intervention, which improves the system's ease of use and user satisfaction.
[0169] This technical solution enables the system to automatically adjust the audio transmission parameters according to the actual Bluetooth connection status, enhancing the system's adaptability and stability. Whether the Bluetooth connection quality is good or poor, the system can maintain the audio transmission quality through dynamic adjustment, improving the system's robustness.
[0170] In summary, this technical solution optimizes the audio transmission quality, improves the user experience, and enhances the adaptability and stability of the system by dynamically adjusting the audio transmission parameters.
[0171] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0172] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
Claims
1. Bluetooth audio wall plug codec that can access Dante audio network, It is characterized in that include: Audio acquisition unit, used for: An external audio input device collects audio data from the audio input device through the audio collection unit and sends the collected audio data to the audio processing unit; Audio processing unit for: Receive audio data collected by the audio collection unit, process the received audio data, and send the processed audio data to the network transmission unit; Network transmission unit, used for: Receive the audio data processed by the audio processing unit and transmit the received audio data using the Dante protocol; Codecs for: Encode and decode the transmitted audio data, convert the decoded audio data into analog audio data and output it through an external audio receiving device, and train the codec to improve the quality and speed of the codec; The codec includes the following process: Encoding process: involves sampling and quantization. The audio data transmitted by the network transmission unit is compressed and encoded into a format suitable for transmission via Bluetooth. Transmission process: The encoded audio data is sent via Bluetooth connection to the receiving end; Decoding process: At the receiving end, the receiving end will decode the received audio data, convert the audio data back to the original audio format, and output it through the external audio receiving device for playback; The encoded audio data is sent via a Bluetooth connection, and the encoded audio data is sent to a receiving end, including: Before the audio data is sent, the operating parameters of the Bluetooth connection are monitored to obtain status parameter data corresponding to the current Bluetooth connection status; wherein the status parameter data includes received signal strength, data packet loss rate, delay and protocol error rate; The Bluetooth operation quality evaluation parameter is obtained by using the state parameter data corresponding to the current Bluetooth connection state; wherein the Bluetooth operation quality evaluation parameter is obtained by the following formula: , Where Q represents the Bluetooth operation quality evaluation parameter; Q 01 , Q 02 , Q 03 and Q 04 represent the first evaluation parameter, the second evaluation parameter, the third evaluation parameter and the fourth evaluation parameter respectively; and the first evaluation parameter is obtained by the following formula: , Among them, Q 01 Represents the first evaluation parameter; R max and R min They represent the maximum and minimum received signal strengths that satisfy the good Bluetooth operation status; R represents the received signal strength corresponding to the current Bluetooth connection; At the same time, the second evaluation parameter is obtained by the following formula: , Among them, Q 02 represents the second evaluation parameter; P represents the data packet loss rate of the data transmission corresponding to the current Bluetooth connection; P max Indicates the maximum allowed packet loss rate corresponding to meeting the Bluetooth connection requirements; At the same time, the third evaluation parameter is obtained by the following formula: , Among them, Q 03 represents the third evaluation parameter; L represents the data transmission delay rate of the data transmission corresponding to the current Bluetooth connection; L max Indicates the maximum allowable data transmission delay rate corresponding to the Bluetooth connection requirements; At the same time, the fourth evaluation parameter is obtained by the following formula: , Among them, Q 04 represents the fourth evaluation parameter; E represents the protocol error rate of data transmission corresponding to the current Bluetooth connection; E max Indicates the maximum allowed protocol error rate corresponding to meeting the Bluetooth connection requirements; Comparing the Bluetooth operation quality evaluation parameter with a preset parameter threshold; When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the audio data is sent; When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set; When the Bluetooth operation quality evaluation parameter exceeds the preset parameter threshold, the bit rate required for sending the audio data and the amount of buffered data at the data sending end are adjusted and set, including: When the Bluetooth operation quality evaluation parameter does not exceed the preset parameter threshold, extracting the Bluetooth operation quality evaluation parameter and the preset parameter threshold; Using the Bluetooth operation quality evaluation parameter and the preset parameter threshold, obtaining a bit rate required for sending audio data; The bit rate required for sending the audio data is obtained by the following formula: , Among them, B t Indicates the bit rate required for sending audio data; C y Indicates the amount of data corresponding to the audio data currently to be sent; C 0 Indicates the preset data volume reference value; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; B min Indicates the actual minimum bit rate during the Bluetooth connection process; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold; Acquire the buffered data volume of the audio data at the data transmitting end by using the Bluetooth operation quality evaluation parameter and the preset parameter threshold; The amount of buffered data of the audio data at the data sending end is obtained by the following formula: , Among them, C t Indicates the amount of audio data buffered at the data sending end; C min Indicates the minimum buffered data volume of audio data at the data sending end that meets the data sending requirements; B t Indicates the bit rate required for sending audio data; B max Indicates the maximum allowed bit rate corresponding to the Bluetooth connection; Q indicates the Bluetooth operation quality evaluation parameter; Q y Indicates the preset parameter threshold.
2. The Bluetooth audio wall plug codec capable of accessing a Dante audio network according to claim 1, Features: The audio acquisition unit comprises: Frequency division processing for: According to the different frequency information generated by the audio input device in different working states, targeted adjustments and information processing are carried out to ensure that the collected audio data matches the frequency band of the audio input device; Delay calibration processing for: By automatically calibrating the time difference, the synchronous playback of the acquired audio data is ensured.
3. The Bluetooth audio wall plug codec capable of accessing Dante audio network according to claim 1, Features: The audio processing unit comprises: Audio filtering for: Filter the audio data to remove unnecessary frequency components and noise in the audio data; Audio noise reduction for: Perform noise reduction on audio data to improve the quality and audibility of audio data; Audio enhancement for: Perform enhanced processing on audio data to improve the clarity and loudness characteristics of the audio data.
4. The Bluetooth audio wall plug codec capable of accessing a Dante audio network according to claim 1, Features: The network transmission unit comprises: Ethernet switches for: Accessing the Ethernet network, and obtaining the audio data collected by the audio collection unit by accessing the Ethernet; Dante network modules, including Dante gateways, for: Connected to the codec, the audio data obtained by the Ethernet switch is transmitted to the codec through the Dante network module; Among them, the Dante network module runs based on the Ethernet network, the Dante gateway adopts the Dante protocol, and its Dante gateway has a built-in Dante audio network interface. The codec is connected to the Dante audio network interface via a network cable or optical fiber.
5. The Bluetooth audio wall plug codec capable of accessing Dante audio network according to claim 1, Features: The encoding process is specifically as follows: Sampling and quantization: Sampling is to collect continuous audio data at a certain time interval, and quantization is to map the amplitude value of the sampled analog audio data into discrete digital values; Compression coding: Analyze the redundant information in the audio data and use algorithms to compress the audio data; Among them, the algorithm adopts a lossless compression algorithm, which reduces the amount of data by eliminating redundant information or repeating encoding to maintain audio quality without loss.
6. The Bluetooth audio wall plug codec capable of accessing a Dante audio network according to claim 1, Features: The decoding process is specifically as follows: The receiving end decompresses the compressed audio data, identifies the compression format before decompression, and decodes the audio data according to the identified compression format; After receiving the decompressed audio data, the digital audio signal is optimized and enhanced by adjusting the frequency, amplitude and phase parameters of the audio data; After processing the audio data, the digital audio signal is converted into an analog audio signal and output by an external audio receiving device for playback. After processing the digital audio signal of the audio data, the digital audio signal of the audio data is converted into an analog audio signal and output by an external audio receiving device for playback.
7. The Bluetooth audio wall plug codec capable of accessing Dante audio network according to claim 1, Features: The codec also includes the following process: Training process: Select the appropriate model architecture based on deep learning methods to build a codec training model; Prepare training sets and test sets, and use the training sets to train the established codec training model Use the test set to evaluate the established codec training model; The trained and evaluated codec training model is deployed to the actual application of the codec and optimized according to the actual application situation.
