Digital audio distribution system and digital audio distribution method
By introducing silent sampling and segmentation conversion packaging technology in the digital audio distribution system, combined with the method of removing DC bias components by silent flag bits, the impact sound problem during the switching of the audio input is solved, and the implementation effect of the system is improved.
Patent Information
- Application Number
- CN202510137280.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-02-07
AI Technical Summary
The existing digital audio distribution system causes impact sound due to different DC bias voltages when switching at the audio input, and the hardware conditions and complex control logic lead to poor implementation results.
Design a digital audio distribution system, including an audio input module, an audio distribution processing module and an audio output module. The audio input module generates audio data packets through mute sampling and segmentation conversion packaging, and the audio distribution processing module eliminates DC bias components based on the mute flag bit to obtain clean output audio data.
It effectively avoids the impact sound during audio switching, reduces the strict requirements on hardware conditions, simplifies control logic, and improves the implementation effect of the digital audio distribution system.
Smart Images

Figure CN119946503A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio processing, and in particular to a digital audio distribution system and a digital audio distribution method. Background Art
[0002] In a multi-input multi-output digital audio distribution system, analog audio data needs to be converted from analog to digital audio data at the audio input end before it can be output. In this conversion process, the DC bias voltage is used as a key reference point, resulting in a DC bias component being superimposed on the converted digital audio data. In addition, the DC bias voltages of different audio input ends are different, resulting in different digital audio data generated after the same analog audio data is converted at different audio input ends.
[0003] Therefore, when the same audio output is switched between different audio inputs, the difference in the DC bias component carried in the digital audio data will cause transient level changes as the audio data is switched, which will in turn produce a noticeable impact sound. For this reason, the current digital audio distribution system usually adds a mute circuit to the audio output to implement a short mute when the input is switched to avoid the impact sound, or strictly requires that the digital-to-analog conversion modules of all audio inputs have a consistent DC bias voltage. However, these two solutions place very stringent requirements on the hardware conditions of the digital audio distribution system, and the control logic is relatively complex, resulting in poor implementation of the digital audio distribution system in actual scenarios. Summary of the invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defects that the hardware conditions of the digital audio distribution system in the prior art are very stringent and the control logic is relatively complex, resulting in poor implementation effect of the digital audio distribution system in actual scenarios.
[0005] The present application provides a digital audio distribution system, the system comprising an audio input module, an audio distribution processing module and an audio output module;
[0006] One end of the audio distribution processing module is connected to a plurality of audio input modules respectively, and the other end is connected to a plurality of audio output modules respectively;
[0007] The audio input module is used to perform silent sampling on the continuously input analog audio data to obtain silent audio data, and to perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet; wherein the audio data packet contains a silent flag bit;
[0008] The audio distribution processing module is used to determine the mute flag in the received audio data packet, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data, and transmit the output audio data to the corresponding audio output module;
[0009] The audio output module is used to drive and output the received output audio data.
[0010] Optionally, the audio input module includes a front-end mute module, an analog-to-digital conversion module and a data packaging module;
[0011] The front-end mute module is used to perform data sampling on the analog audio data when receiving the input analog audio data, and perform a mute operation on the sampling result to obtain mute audio data;
[0012] The analog-to-digital conversion module is used to perform analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data;
[0013] The data packaging module is used to sequentially package the digital audio data in sections to obtain audio data packets.
[0014] Optionally, the data packaging module is used to package the digital audio data in sequence to obtain an audio data packet, comprising:
[0015] The data packaging module determines the output channel number of the digital audio data, and segments the digital audio data according to a preset frequency to obtain digital segmented audio, and determines the mute flag corresponding to each digital segmented audio, so as to package the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag.
[0016] Optionally, the process of the data packing module packing the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag bit includes:
[0017] For each digital segmented audio, the data packaging module compresses the digital segmented audio to obtain an audio compression package, and packages the mute flag of the digital segmented audio, the output channel number and the audio compression package according to a preset format to generate an audio data packet.
[0018] Optionally, the audio distribution processing module is used to eliminate the DC bias component in the audio data packet based on the mute flag to obtain the output audio data, including:
[0019] The audio distribution processing module decompresses the audio data packet to obtain a mute flag and digital segmented audio, and confirms the audio type of the digital segmented audio based on the mute flag;
[0020] When the audio type is confirmed to be silent digital audio, the audio distribution processing model performs voltage average calculation on the digital segmented audio and uses the calculation result as the DC bias component of the analog audio data;
[0021] When the audio type is confirmed to be normal digital audio, the audio allocation processing model subtracts the digital segmented audio from the DC offset component to obtain output audio data.
[0022] Optionally, the process of the audio allocation processing module confirming the audio type of the digital segmented audio based on the mute flag bit includes:
[0023] When the mute flag is 1, the audio allocation processing module confirms that the audio type of the digital segmented audio is mute digital audio;
[0024] When the mute flag is 0, the audio allocation processing module determines that the audio type of the digital segmented audio is normal digital audio.
[0025] Optionally, the process in which the audio distribution processing module is used to transmit the output audio data to the corresponding audio output module includes:
[0026] The audio distribution processing module decompresses the output channel number in the audio data packet and confirms the audio output module corresponding to the output channel number to transmit the output audio data to the audio output module.
[0027] The present application also provides a digital audio distribution method, which is applied to the digital audio distribution system in any one of the above embodiments, and the method includes:
[0028] Performing silent sampling on the analog audio data continuously inputted into the audio input module to obtain silent audio data, and performing segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet; wherein the audio data packet includes a silent flag bit;
[0029] Determine the mute flag in the received audio data packet through the audio distribution processing module, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data;
[0030] The output audio data is transmitted to the corresponding audio output module for driving output.
[0031] Optionally, the performing segmented conversion and packaging of the analog audio data based on the silent audio data to generate an audio data packet includes:
[0032] Performing analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data, and determining an output channel number of the digital audio data;
[0033] Segmenting the digital audio data according to a preset frequency to obtain digital segmented audio, and determining a mute flag corresponding to each digital segmented audio;
[0034] The audio data packet corresponding to each digital segmented audio is obtained by packaging based on the output channel number and each mute flag bit.
[0035] Optionally, eliminating a DC bias component in the audio data packet based on the mute flag to obtain output audio data includes:
[0036] Decompressing the audio data packet to obtain a mute flag and digital segmented audio, and confirming the audio type of the digital segmented audio based on the mute flag;
[0037] When it is confirmed that the audio type is silent digital audio, performing voltage average calculation on the digital segmented audio, and using the calculation result as the DC bias component of the analog audio data;
[0038] When it is confirmed that the audio type is normal digital audio, the digital segmented audio is subtracted from the DC offset component to obtain output audio data.
[0039] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0040] The digital audio distribution system and digital audio distribution method provided by the present application are applied in the digital audio distribution system, wherein the digital audio distribution system includes an audio input module, an audio distribution processing module and an audio output module, wherein one end of the audio distribution processing module is respectively connected to a plurality of audio input modules, and the other end is respectively connected to a plurality of audio output modules, and each module performs a corresponding function, so that the digital audio distribution system can eliminate the DC bias component in the digital audio data obtained by converting the analog audio data before the audio output, thereby avoiding the impact sound when the audio is switched. For example, the audio input module can perform silent sampling on the continuously input analog audio data to obtain silent audio data, and perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet, so that the audio data packet corresponding to the silent audio data only contains the DC bias component; therefore, the audio distribution processing module can eliminate the DC bias component in all audio data packets based on the audio data packet corresponding to the silent audio data, obtain clean output audio data, and transmit the output audio data to the corresponding audio output module for driving output, thereby avoiding the impact sound when the audio is switched, thereby improving the implementation effect of the digital audio distribution system. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 A schematic diagram of the structure of a digital audio distribution system provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of an audio data module provided in an embodiment of the present application;
[0044] Figure 3 A flowchart of a digital audio distribution method provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a flow chart of a process for generating an audio data packet provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of a flow chart of a DC bias component elimination process provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] When the same audio output is switched between different audio inputs, the difference in the DC bias component carried in the digital audio data will cause transient level changes as the audio data is switched, which will produce a noticeable impact sound. For this reason, the current digital audio distribution system usually adds a mute circuit at the audio output to implement a short mute when the input is switched to avoid the impact sound, or strictly requires that the digital-to-analog conversion modules of all audio inputs have a consistent DC bias voltage. However, these two solutions place very stringent requirements on the hardware conditions of the digital audio distribution system, and the control logic is relatively complex, resulting in poor implementation of the digital audio distribution system in actual scenarios.
[0049] Based on this, this application proposes the following technical solutions, see below for details:
[0050] In one embodiment, Figure 1 As shown, Figure 1 A structural diagram of a digital audio distribution system provided in an embodiment of the present application; the present application provides a digital audio distribution system, including an audio input module, an audio distribution processing module and an audio output module; specifically including the following:
[0051] One end of the audio distribution processing module is connected to the multiple audio input modules respectively, and the other end is connected to the multiple audio output modules respectively.
[0052] The audio input module is used to perform silent sampling on the continuously input analog audio data to obtain silent audio data, and to perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet; wherein the audio data packet includes a silent flag.
[0053] The audio distribution processing module is used to determine the mute flag in the received audio data packet, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data, and transmit the output audio data to the corresponding audio output module.
[0054] The audio output module is used to drive the output of the received output audio data.
[0055] In this embodiment, Figure 1As shown, the digital audio distribution system of the present application is mainly connected in sequence by three modules, namely, an audio input module, an audio distribution processing module and an audio output module; wherein, multiple audio input modules and audio output modules are respectively provided according to actual application requirements, so as to realize the switching broadcast of different audios in different audio output modules during the broadcasting process; in addition, each module in the system performs corresponding functions, thereby forming a multi-input and multi-output digital audio distribution system.
[0056] First, the audio input module can receive analog audio signals from different audio sources and convert them into digital audio signals. Once a new analog audio signal is received, the audio input module can first use the silent sampling technology to collect a section of analog audio data for silent processing to obtain the corresponding silent audio data. Then, the audio input module can perform segmented conversion and packaging on the analog audio data continuously received this time based on the silent audio data to generate an audio data packet, that is, convert it from the form of an analog audio signal to the form of a digital audio signal. Therefore, the audio data packets here are all superimposed with a DC bias component, and the audio data corresponding to the silent audio data only contains a DC bias component and does not contain other audio information, so it can provide a reference benchmark for the processing of other audio data packets.
[0057] Secondly, the audio distribution processing module can further process all audio data packets. By comparing the DC bias component in the audio data packet corresponding to the silent audio data, the audio distribution processing module can accurately eliminate the DC bias component in each audio data packet, thereby restoring a pure audio signal. In this process, the digital audio distribution system processes and corrects each audio data packet one by one, ensuring that the final output audio data is of high quality and free of noise or unnecessary interference.
[0058] Finally, the audio output module can receive and play the clean output audio data obtained after being processed by the audio distribution processing module. Here, the audio output module can drive the output of high-quality audio signals according to different needs and scenarios to ensure the accurate transmission of audio signals in the device or system. It can be understood that since the DC bias component has been effectively eliminated by the audio distribution processing module, there will be no sudden impact sound or noise when the audio is switched, which can greatly improve the broadcasting effect and stability.
[0059] In the above embodiment, the digital audio distribution system includes an audio input module, an audio distribution processing module and an audio output module, wherein one end of the audio distribution processing module is respectively connected to a plurality of audio input modules, and the other end is respectively connected to a plurality of audio output modules, and each module performs a corresponding function, so that the digital audio distribution system can eliminate the DC bias component in the digital audio data converted from the analog audio data before the audio output, thereby avoiding the impact sound when the audio is switched. For example, the audio input module can perform silent sampling on the continuously input analog audio data to obtain silent audio data, and perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet, so that the audio data packet corresponding to the silent audio data only contains the DC bias component; therefore, the audio distribution processing module can eliminate the DC bias component in all audio data packets based on the audio data packet corresponding to the silent audio data, obtain clean output audio data, and transmit the output audio data to the corresponding audio output module for driving output, thereby avoiding the impact sound when the audio is switched, thereby improving the implementation effect of the digital audio distribution system.
[0060] In one embodiment, Figure 2 As shown, Figure 2 A schematic diagram of the structure of an audio data module provided in an embodiment of the present application; Figure 2 In the example, the audio input module may include a front-end mute module, an analog-to-digital conversion module, and a data packaging module; specifically, the following are included:
[0061] The front-end mute module is used to sample the analog audio data when receiving the input analog audio data, and perform a mute operation on the sampling result to obtain mute audio data.
[0062] The analog-to-digital conversion module is used to perform analog-to-digital conversion on silent audio data and analog audio data to generate digital audio data.
[0063] The data packing module is used to pack the digital audio data in sections in sequence to obtain audio data packets.
[0064] In this embodiment, Figure 2 As shown, in order to achieve more refined and efficient audio data processing, the present application can further divide the audio input module into three modules, which are connected in sequence according to the front-end mute module, analog-to-digital conversion module, and data packaging module. Each module has independent functions and cooperates with each other to complete the complete process of audio input, providing a reliable foundation for subsequent audio processing.
[0065] Among them, the front-end mute sampling module is the primary part of the entire audio input module, which is mainly responsible for sampling and muting the input analog audio data. When the analog audio signal is transmitted from an external device or sound source, the front-end mute sampling module will monitor the signal in real time and sample the analog audio data at a preset time interval. The sampling result will be muted to extract the mute audio data as a reference signal, providing a pure reference signal for the analog audio data input this time, so as to effectively reflect the characteristics of the DC bias component to be superimposed in the subsequent conversion process.
[0066] The analog-to-digital conversion module is an important part of the conversion from analog signals to digital signals. It is mainly responsible for the analog-to-digital conversion of the silent audio data generated by the front-end silent sampling module and the input analog audio data. During the analog-to-digital conversion process, the analog-to-digital conversion module needs to use the DC bias voltage as a reference point. The audio data obtained after the digital-to-analog conversion will have a DC bias component superimposed on the original audio, and finally generate digital audio data with high fidelity, laying the foundation for digital processing, so that the system can store and process continuous analog audio signals in a discrete and digital form.
[0067] The data packaging module is mainly responsible for further organizing and processing the digital audio data generated by the analog-to-digital conversion module. After the digital signal is generated, the data packaging module will segment the digital audio data according to the set rules and encapsulate it into audio data packets; the audio data packets here are encapsulated in a sequential packaging manner to ensure data integrity and timing consistency. Each audio data packet contains complete audio segment information while retaining the characteristics of silent audio data so that subsequent modules can perform unified DC bias correction and processing on the audio data packets.
[0068] In one embodiment, the data packaging module is used to package the digital audio data in sequence to obtain an audio data packet, which may include:
[0069] The data packaging module determines the output channel number of the digital audio data, and segments the digital audio data according to a preset frequency to obtain digital segmented audio, and determines the mute flag corresponding to each digital segmented audio, so as to package the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag.
[0070] In this embodiment, when packaging digital audio data, the data packaging module can divide the continuously input audio data into multiple segments of digital segmented audio, and then combine the output channel number and the mute flag of each segment of digital segmented audio to encapsulate each segment of data into an independent audio data packet. Therefore, the data packaging module can package the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag, thereby realizing the structured organization of digital audio data and providing clear guidance and optimized interface for subsequent module processing.
[0071] The output channel number refers to the identification information corresponding to the output channel, which is used to indicate the output channel to which the audio data belongs, and in this application, it may refer to the audio output module to be allocated. The mute flag refers to the identification information of whether the digital segmented audio is in a mute state.
[0072] Specifically, the data packaging module can first determine the output channel number of the digital audio data, which can be dynamically and automatically generated according to the system configuration rules or the source of the audio data, providing a clear path mapping for multi-channel audio processing. Then the data packaging module can select the corresponding segmentation frequency according to the system transmission and processing efficiency requirements to segment the continuous digital audio data, and cut it in turn to obtain multiple segments of digital segmented audio. Each segment of data contains an audio signal sampled within a specific time range. This not only ensures the time continuity of the data, but also provides a basic unit for subsequent mute flag judgment and data packaging operations.
[0073] In addition, the data packaging module also needs to assign a corresponding mute flag to each segment of digital segmented audio, which is mainly achieved by analyzing the signal characteristics of the segmented audio data. Here, the data packaging module can determine whether it is in a mute state by detecting the signal amplitude and spectrum characteristics of the audio data. If the data amplitude of the segmented audio is close to zero and there is a lack of significant energy components in the spectrum, it is determined to be a mute feature and a corresponding mute flag is assigned to it; if the signal amplitude or spectrum characteristics show obvious non-mute features, the flag will indicate a non-mute state. Through the setting of the mute flag, the present application can provide an important basis for subsequent modules to quickly identify mute digital audio and specifically process DC bias.
[0074] In one embodiment, the process of the data packing module packing the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag bit may include:
[0075] For each digital segmented audio, the data packaging module compresses the digital segmented audio to obtain an audio compression package, and packages the mute flag, output channel number and audio compression package of the digital segmented audio according to a preset format to generate an audio data packet.
[0076] In this embodiment, when packaging the digital segmented audio, the data packaging module can first compress the digital segmented audio to obtain an audio compression package, and package the mute flag, output channel number and audio compression package of the digital segmented audio according to a preset format to generate a standardized audio data packet.
[0077] It can be understood that the digital packaging module can reduce the storage space and transmission bandwidth requirements of the digital segmentation module through data compression processing, thereby improving the system's operating efficiency and transmission performance; the data compression processing here can be implemented using a compression algorithm to convert the original digital segmented audio into an audio compression package that is smaller in size and easier to process and transmit.
[0078] Specifically, during the packaging process, the data packaging module can follow a unified packaging protocol or a preset data format standard to encapsulate the mute flag, output channel number, and audio compression package in a predetermined order or hierarchical structure. Each audio data packet contains these key information, which not only ensures the integrity and consistency of the data structure, but also facilitates the subsequent audio distribution processing module or audio output module to parse and use. In this way, the data packaging module can convert segmented audio data into standardized audio data packets, providing a basic guarantee for the efficient operation and seamless audio switching of the entire digital audio distribution system.
[0079] In one embodiment, the process in which the audio distribution processing module is used to eliminate the DC bias component in the audio data packet based on the mute flag to obtain the output audio data may include:
[0080] The audio distribution processing module decompresses the audio data packet to obtain the mute flag and the digital segmented audio, and confirms the audio type of the digital segmented audio based on the mute flag.
[0081] When the audio type is determined to be silent digital audio, the audio distribution processing model performs voltage average calculation on the digital segmented audio and uses the calculation result as the DC bias component of the analog audio data.
[0082] When the audio type is confirmed to be normal digital audio, the audio distribution processing model subtracts the digital segmented audio from the DC bias component to obtain output audio data.
[0083] In this embodiment, when eliminating the DC bias component in the audio data packet, the audio distribution processing module can first decompress the audio data packet to obtain the mute flag and the digital segmented audio, and confirm the audio type of the digital segmented audio based on the mute flag, and then use a method corresponding to the audio type to eliminate the DC bias component, thereby obtaining clean output audio data.
[0084] Specifically, when the audio type is silent digital audio, the audio distribution processing module can count and average the voltage data in the silent digital audio, and calculate the average voltage value representing the DC bias of the audio segment, that is, the DC bias component in the analog audio data continuously input this time; when the audio type is normal digital audio, the audio distribution processing module can further process the digital segmented audio based on the DC bias component calculated previously, including subtracting the corresponding DC bias component from the digital segmented audio to eliminate the DC bias introduced by the analog-to-digital conversion node, and restore the pure audio data without DC bias. Through this method, the digital audio distribution system of the present application can dynamically adapt to the bias characteristics of different input audio data, ensuring that the calculation result of the DC bias component has a high accuracy.
[0085] In one embodiment, the process of the audio distribution processing module confirming the audio type of the digital segmented audio based on the mute flag may include:
[0086] When the mute flag is 1, the audio allocation processing module determines that the audio type of the digital segmented audio is mute digital audio.
[0087] When the mute flag is 0, the audio allocation processing module determines that the audio type of the digital segmented audio is normal digital audio.
[0088] In this embodiment, the audio distribution processing module determines the specific type of each digital segmented audio by the value of the mute flag, thereby providing a basis for the subsequent audio data processing steps. For example, when the value of the mute flag is 1, the audio distribution processing module will confirm that the type of the digital segmented audio is mute digital audio. At this time, the amplitude of its audio signal is zero, and it only contains the DC bias component introduced in the analog audio conversion process, which is the reference benchmark for the system to process other audio data; when the value of the mute flag is 0, the audio distribution processing module will confirm that the type of the digital segmented audio is normal digital audio, which contains the actual audio data and the DC bias component introduced in the audio conversion process, which is the core data that the system needs to process and output.
[0089] In one embodiment, the process of the audio distribution processing module transmitting the output audio data to the corresponding audio output module may include:
[0090] The audio distribution processing module decompresses the audio data packet to obtain the output channel number, and confirms the audio output module corresponding to the output channel number, so as to transmit the output audio data to the audio output module.
[0091] In this embodiment, after receiving the audio data packet, the audio distribution processing module may first parse the audio data packet to obtain the output channel number, and then confirm the audio output module corresponding to the output channel number to transmit the output audio data to the audio output module.
[0092] Specifically, after obtaining the output channel number of the audio data packet, the audio distribution processing module can match the output channel number with the configured audio output module according to the preset channel mapping table, and confirm the audio output module corresponding to the output channel number according to the matching result. Then, the audio distribution processing module can generate corresponding instructions according to the built-in scheduling logic of the digital audio distribution system, and transmit the processed output audio data to the matched audio output module for playback. During the transmission process, the audio distribution processing module will also monitor the integrity and accuracy of the audio data in real time to ensure that the audio signal will not be lost, delayed or distorted during the transmission process.
[0093] In one embodiment, Figure 3 As shown, Figure 3 A flowchart of a digital audio distribution method provided by the present application; the present application also provides a digital audio distribution method, which is applied to the digital audio distribution system described in any one of the above embodiments, and specifically includes the following:
[0094] S110: Performing mute sampling on the analog audio data continuously inputted into the audio input module to obtain mute audio data, and performing segmented conversion and packaging on the analog audio data based on the mute audio data to generate an audio data packet; wherein the audio data packet includes a mute flag.
[0095] S120: Determine the mute flag in the received audio data packet through the audio distribution processing module, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data.
[0096] S130: Transmit the output audio data to the corresponding audio output module for driving output.
[0097] In this embodiment, the digital audio distribution system can perform mute sampling on the analog audio data continuously input into the audio input module to obtain mute audio data, and perform segmented conversion and packaging on the analog audio data based on the mute audio data to generate an audio data packet containing a mute flag; then the mute flag in the received audio data packet can be determined through the audio distribution processing module, and the DC bias component in the audio data packet can be eliminated based on the mute flag to obtain output audio data, so that the output audio data can be transmitted to the corresponding audio output module for driven output.
[0098] Specifically, once there is analog audio data input from different audio sources, the digital audio distribution system can first use the silent sampling technology to collect a section of silent audio data to provide a reference benchmark for subsequent audio data processing, ensuring that the DC bias component can be accurately eliminated during the audio signal conversion process; then the analog audio data can be collected normally, and based on the silent audio data, the row segmented conversion and packaging are performed to generate an audio data packet, where the audio data packets obtained by the conversion and packaging are superimposed with a DC bias component; therefore, the digital audio distribution system needs to determine the silent flag in the received audio data packet through the audio distribution processing module, and eliminate the DC bias component in the audio data packet based on the silent flag to obtain clean output audio data, so that the output audio data can be transmitted to the corresponding audio output module for driving output, so that there will be no sudden impact sound or noise when the audio is switched, greatly improving the broadcasting effect and stability.
[0099] It should be noted that, unlike the analog audio data obtained by normal acquisition, the audio data packet obtained by directly converting and packaging the silent audio data only contains a DC bias component.
[0100] In the above embodiment, the digital audio distribution method is applied to a digital audio distribution system, and the digital audio distribution system includes an audio input module, an audio distribution processing module and an audio output module, wherein one end of the audio distribution processing module is connected to a plurality of audio input modules respectively, and the other end is connected to a plurality of audio output modules respectively, and each module performs a corresponding function, so that the digital audio distribution system can eliminate the DC bias component in the digital audio data obtained by converting the analog audio data before the audio output, thereby avoiding the impact sound when the audio is switched. For example, the audio input module can perform silent sampling on the continuously input analog audio data to obtain silent audio data, and perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet, so that the audio data packet corresponding to the silent audio data only contains the DC bias component; therefore, the audio distribution processing module can eliminate the DC bias component in all audio data packets based on the audio data packet corresponding to the silent audio data, obtain clean output audio data, and transmit the output audio data to the corresponding audio output module for driving output, thereby avoiding the impact sound when the audio is switched, thereby improving the implementation effect of the digital audio distribution system.
[0101] In one embodiment, Figure 4 As shown, Figure 4 A schematic diagram of a flow chart of a process for generating an audio data packet provided in an embodiment of the present application; Figure 4 In step S110, the process of performing segmented conversion and packaging of the analog audio data based on the silent audio data to generate an audio data packet may include:
[0102] S111: Perform analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data, and determine the output channel number of the digital audio data.
[0103] S112: Segment the digital audio data according to a preset frequency to obtain digital segmented audio, and determine a mute flag corresponding to each digital segmented audio.
[0104] S113: Packing to obtain an audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag bit.
[0105] In this embodiment, when the digital audio distribution system performs segmented conversion and packaging on the analog audio data, it can first perform analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data, and determine the output channel number of the digital audio data. Then, the digital audio data is segmented according to a preset frequency to obtain digital segmented audio, and the silent flag corresponding to each digital segmented audio is determined. Finally, based on the output channel number and each silent flag, the audio data packet corresponding to each digital segmented audio can be packaged.
[0106] It is understandable that each audio data packet of the present application contains a mute flag, an output channel number, and digital segmented audio after data compression. Among them, the mute flag is used to indicate whether the digital segmented audio is a mute segment, providing a quick judgment basis for subsequent audio processing methods; the output channel number clarifies the transmission target and ownership of the audio data, ensuring that the data can be accurately routed to the specified audio output module or path; the digital segmented audio after data compression is the core data part with a reduced volume after compression, which contains the main information of the digital segmented audio.
[0107] In one embodiment, Figure 5 As shown, Figure 5 A schematic diagram of a flow chart of a DC bias component elimination process provided in an embodiment of the present application; Figure 5 In step S120, the process of eliminating the DC bias component in the audio data packet based on the mute flag to obtain the output audio data may include:
[0108] S121: decompress the audio data packet to obtain a mute flag and digital segmented audio, and confirm the audio type of the digital segmented audio based on the mute flag.
[0109] S122: When it is determined that the audio type is silent digital audio, voltage average calculation is performed on the digital segmented audio, and the calculation result is used as a DC bias component of the analog audio data.
[0110] S123: When it is confirmed that the audio type is normal digital audio, the digital segmented audio is subtracted from the DC bias component to obtain output audio data.
[0111] In this embodiment, when the digital audio distribution system eliminates the DC bias component of the audio data packet, it can first decompress the audio data packet to obtain the mute flag and the digital segmented audio, and then confirm the audio type of the digital segmented audio based on the mute flag. Then, the digital audio distribution system can use a method corresponding to the audio type to eliminate the DC bias component in the digital segmented audio.
[0112] Specifically, when the digital audio distribution system confirms that the audio type is silent digital audio, it can perform voltage average calculation on the digital segmented audio, and use the calculation result as the DC bias component of the analog audio data, and use it as a reference value for subsequent processing; then the digital audio distribution system can continue to process the subsequent received audio data packets, and when it is confirmed that the subsequent received audio data packets are normal digital audio, it can subtract the digital segmented audio in the audio data packet from the DC bias component calculated previously to obtain clean output audio data. In this way, the digital audio distribution system can dynamically adapt to the bias characteristics of different input audios, ensuring that the calculation result of the DC bias component has a high accuracy.
[0113] Finally, 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0114] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0115] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A digital audio distribution system, characterized in that: The system includes an audio input module, an audio distribution processing module and an audio output module; One end of the audio distribution processing module is connected to a plurality of audio input modules respectively, and the other end is connected to a plurality of audio output modules respectively; The audio input module is used to perform silent sampling on the continuously input analog audio data to obtain silent audio data, and to perform segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet; wherein the audio data packet contains a silent flag bit; The audio distribution processing module is used to determine the mute flag in the received audio data packet, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data, and transmit the output audio data to the corresponding audio output module; The audio output module is used to drive and output the received output audio data.
2. The digital audio distribution system according to claim 1, characterized in that: The audio input module includes a front-end mute module, an analog-to-digital conversion module and a data packaging module; The front-end mute module is used to perform data sampling on the analog audio data when receiving the input analog audio data, and perform a mute operation on the sampling result to obtain mute audio data; The analog-to-digital conversion module is used to perform analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data; The data packaging module is used to sequentially package the digital audio data in sections to obtain audio data packets.
3. The digital audio distribution system according to claim 2, characterized in that: The data packaging module is used to package the digital audio data in sequence to obtain an audio data packet, including: The data packaging module determines the output channel number of the digital audio data, and segments the digital audio data according to a preset frequency to obtain digital segmented audio, and determines the mute flag corresponding to each digital segmented audio, so as to package the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag.
4. The digital audio distribution system according to claim 3, characterized in that: The process of the data packing module packing the audio data packet corresponding to each digital segmented audio based on the output channel number and each mute flag bit includes: For each digital segmented audio, the data packaging module compresses the digital segmented audio to obtain an audio compression package, and packages the mute flag of the digital segmented audio, the output channel number and the audio compression package according to a preset format to generate an audio data packet.
5. The digital audio distribution system according to claim 1, characterized in that: The audio distribution processing module is used to eliminate the DC bias component in the audio data packet based on the mute flag to obtain the output audio data, including: The audio distribution processing module decompresses the audio data packet to obtain a mute flag and digital segmented audio, and confirms the audio type of the digital segmented audio based on the mute flag; When the audio type is confirmed to be silent digital audio, the audio distribution processing model performs voltage average calculation on the digital segmented audio and uses the calculation result as the DC bias component of the analog audio data; When the audio type is confirmed to be normal digital audio, the audio allocation processing model subtracts the digital segmented audio from the DC offset component to obtain output audio data.
6. The digital audio distribution system according to claim 5, characterized in that: The process of the audio distribution processing module confirming the audio type of the digital segmented audio based on the mute flag bit includes: When the mute flag is 1, the audio allocation processing module confirms that the audio type of the digital segmented audio is mute digital audio; When the mute flag is 0, the audio allocation processing module determines that the audio type of the digital segmented audio is normal digital audio.
7. The digital audio distribution system according to claim 1, characterized in that: The process of the audio distribution processing module for transmitting the output audio data to the corresponding audio output module includes: The audio distribution processing module decompresses the output channel number in the audio data packet and confirms the audio output module corresponding to the output channel number to transmit the output audio data to the audio output module.
8. A digital audio distribution method, applied to the digital audio distribution system according to any one of claims 1 to 7, characterized in that: The method comprises: Performing silent sampling on the analog audio data continuously inputted into the audio input module to obtain silent audio data, and performing segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet; wherein the audio data packet includes a silent flag bit; Determine the mute flag in the received audio data packet through the audio distribution processing module, and eliminate the DC bias component in the audio data packet based on the mute flag to obtain output audio data; The output audio data is transmitted to the corresponding audio output module for driving output.
9. The digital audio distribution method according to claim 8, characterized in that: The step of performing segmented conversion and packaging on the analog audio data based on the silent audio data to generate an audio data packet includes: Performing analog-to-digital conversion on the silent audio data and the analog audio data to generate digital audio data, and determining an output channel number of the digital audio data; Segmenting the digital audio data according to a preset frequency to obtain digital segmented audio, and determining a mute flag corresponding to each digital segmented audio; The audio data packet corresponding to each digital segmented audio is obtained by packaging based on the output channel number and each mute flag bit.
10. The digital audio distribution method according to claim 8, characterized in that: The step of eliminating the DC bias component in the audio data packet based on the mute flag to obtain output audio data includes: Decompressing the audio data packet to obtain a mute flag and digital segmented audio, and confirming the audio type of the digital segmented audio based on the mute flag; When it is confirmed that the audio type is silent digital audio, performing voltage average calculation on the digital segmented audio, and using the calculation result as the DC bias component of the analog audio data; When it is confirmed that the audio type is normal digital audio, the digital segmented audio is subtracted from the DC offset component to obtain output audio data.
Citation Information
Patent Citations
Voice data processing method and system, and terminal device
CN112331188A
Audio driving circuit and method, chip and audio playing equipment
CN116614746A
Noise elimination method and device, computer equipment and storage medium
CN118660257A
Digital-to-analog converter circuit
JP1993244010A
Offset cancel circuit of digital to analog converter
JP2008278117A