Audio processor proactive backup system based on failure prediction
By monitoring audio frame processing time and using linear regression prediction, an active backup system for the audio processor was implemented, solving the problem of audio frame timeout switching lag and ensuring the continuity of audio output and listening quality.
Patent Information
- Application Number
- CN202611300660.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot predict audio frame processing timeouts before they occur, resulting in delayed switching of audio processors in the event of a failure, which fails to meet the requirements for lossless continuous output for broadcast and performance purposes.
By monitoring the processing time within an audio frame cycle, the frame processing time margin is calculated, and the timeout probability is predicted using least squares linear regression. When the timeout probability exceeds a threshold, the audio processing parameters are synchronized to a backup processor for parallel processing and output consistency verification, and finally, the processor switches at the audio frame boundary.
It enables early prediction and seamless switching of audio frame processing timeout faults, ensuring the continuity of audio output and auditory safety, and avoiding switching lag, audio interruption or popping sounds.
Smart Images

Figure CN123179121A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio processors, specifically to an active backup system for audio processors based on fault prediction. Background Technology
[0002] Audio processors undertake uninterrupted audio processing tasks in real-time audio scenarios such as broadcasting, performances, and conferences. They typically employ a hot backup of a primary audio processor and a backup audio processor to ensure continuous output. Traditional passive fault detection and switching schemes detect whether the primary processor has crashed or has abnormal output through heartbeat, watchdog, or pilot signals. Only after a fault is confirmed will the output be switched to the backup processor. The switching action is significantly delayed compared to the moment of the fault. By the time a fault occurs, the audio has already been interrupted or has popped, which cannot meet the requirements of broadcast-level and performance-level continuous audio output without damage.
[0003] Existing technologies propose predictive switching schemes based on hardware health status, which predict hardware failures and switch in advance by monitoring hardware parameters such as the main processor's temperature, voltage, and fan speed. This type of scheme is effective for gradual hardware failures. However, the most common failures in actual operation of audio processors are not gradual hardware failures, but audio frame processing timeouts caused by sudden increases in audio processing load, software anomalies, or priority inversions. In other words, the main processor fails to complete the processing of the audio data of the current audio frame within the current audio frame cycle. When audio frame processing timeouts occur, the processor's temperature, voltage, and other hardware parameters are usually completely normal, without any signs of gradual change. Therefore, predictive methods based on hardware health status are completely ineffective for this type of failure. Existing technologies cannot predict frame processing timeouts before they occur, let alone complete a lossless switch before the timeout failure actually occurs. Summary of the Invention
[0004] To address the technical problems mentioned in the background section, this invention proposes an active backup system for audio processors based on fault prediction.
[0005] Therefore, the technical solution adopted by the present invention is as follows: A fault-prediction-based active backup system for audio processors, comprising: The monitoring module acquires the actual processing time of the main audio processor in completing the audio processing of the frame within the audio frame period, and calculates the frame processing time margin, which is the difference between the duration of the audio frame period and the actual processing time. The timeout prediction module calculates the probability of frame processing timeout and predicts the timeout target frame based on the time series composed of continuous frame processing time margins. The frame processing timeout is when the main audio processor fails to complete the audio processing of the frame within the current audio frame period. The switching module synchronizes the current audio processing parameters of the main audio processor to the backup audio processor when the probability exceeds a preset threshold, and simultaneously provides the same input audio signal to the main audio processor and the backup audio processor for parallel audio processing. It verifies the consistency of the output audio data of the main audio processor and the backup audio processor, and switches from the main audio processor to the backup audio processor when the consistency meets the preset conditions.
[0006] Furthermore, the monitoring module is located in an independent monitoring and control unit outside the main audio processor; The independent monitoring and control unit receives the frame processing start signal and frame processing completion signal sent by the main audio processor via interrupt, and generates a processing start timestamp and a processing completion timestamp. The actual processing time is calculated based on the processing start timestamp and processing completion timestamp.
[0007] Furthermore, the timeout prediction module uses least squares linear regression to fit a straight line to the time series; Based on the fitted straight line, the first The frame processing time margin is predicted, and the residual standard deviation of the fitted line relative to historical data is calculated. Based on the residual standard deviation and the first The standard deviation of the prediction results for each frame is calculated, and then the standard deviation of the prediction results for the next frame is calculated. The probability of frame processing timeout; The first future frame whose probability exceeds a preset threshold is determined as the prediction timeout target frame.
[0008] Furthermore, the current audio processing parameters of the main audio processor are synchronized to the backup audio processor via a communication interface; During the synchronization process, the synchronized audio processing parameters are subjected to cyclic redundancy check. After the check passes, the backup audio processor loads the audio processing parameters and enters hot standby state.
[0009] Furthermore, the consistency verification uses the mean absolute error as a metric. The mean absolute error is the average of the absolute values of the differences between the output audio data sequences of the main audio processor and the backup audio processor within the consistency check window. The mean absolute error is compared with a preset consistency threshold. When the mean absolute error is less than or equal to the consistency threshold, the consistency is determined to meet the preset condition.
[0010] Calculate the remaining time between the current time and the start time of the predicted timeout target frame, and calculate the total preparation time for the handover; When the remaining time is greater than the total preparation time for the switch, the switch is performed at the boundary of an audio frame before the predicted timeout target frame; When the remaining time is less than or equal to the total preparation time for the switch, the downgrade switch process is initiated, the consistency check is skipped, and the switch is performed directly at the boundary of an available audio frame after the current frame. During the switch, the main audio signal and the backup audio signal are crossfaded.
[0011] Compared with the prior art, the advantages of the present invention are as follows: 1. This invention uses the audio frame period as the time base to obtain the actual processing time of each frame of the main processor in real time and calculate the frame processing time margin. It uses the time series composed of the frame processing time margins of multiple consecutive frames to predict the probability of frame processing timeout in the next few frames. It directly targets the most common and critical audio frame processing timeout faults in audio processors for specific prediction, filling the gap in the existing hardware health prediction methods for the insufficient ability to predict load-related and software-related faults.
[0012] 2. When the timeout probability exceeds the threshold, this invention completes the synchronization of audio processing parameters, hot standby of the backup processor, and consistency verification of the main and backup outputs in advance while the main processor is still outputting audio normally. The switching is performed at the audio frame boundary before the predicted timeout frame, which fundamentally solves the problems of the existing passive scheme's switching lag and the existing prediction scheme's failure to handle timeout faults, ensuring that the audio output is uninterrupted and without popping sounds during the switching.
[0013] 3. This invention strictly limits the switching point to the audio frame boundary and only allows switching after the consistency verification of the primary and backup output audio data passes. At the same time, it adopts degraded switching and cross-fading processing for cases where the switching preparation time is insufficient, which significantly improves the auditory safety and system robustness of primary and backup switching. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a flowchart of the audio processor active backup system of the present invention; Figure 2 This is a flowchart of the monitoring module of the present invention; Figure 3 This is a flowchart of the timeout prediction module of the present invention. Detailed Implementation
[0016] To achieve the above objectives, the present invention provides an active backup system for audio processors based on fault prediction, comprising: M1, the monitoring module, acquires the actual processing time of the main audio processor to complete the audio processing of that frame within the audio frame period, and calculates the frame processing time margin. This module is deployed in an independent monitoring and control unit (such as a microcontroller or programmable logic device) located outside the main audio processor. It reads the processing start and completion timestamps of the main audio processor through a high-speed interface and calculates the remaining capacity. Before the main audio processor begins processing the audio data of each audio frame cycle, it sends a frame processing start signal to the independent monitoring and control unit through an internal general-purpose input / output interface. When the independent monitoring and control unit detects this signal, it immediately reads the current count value of the internal hardware timer and records it as the [number]. Frame processing start timestamp After the main audio processor completes all processing operations for the frame and writes the processed audio data to the output buffer, it sends a frame processing completion signal. The independent monitoring and control unit reads the hardware timer when it detects this signal, denoted as the [number missing]. Frame processing completion timestamp , Both signals are notified to the independent monitoring and control unit via interrupt. The timestamp reading operation is executed at the very beginning of the interrupt service routine to control the impact of interrupt response time jitter on measurement accuracy to within 1 microsecond. The hardware timer operates at a frequency of 1 MHz, i.e., a time resolution of 1 microsecond, which is sufficiently accurate for an audio frame period on the order of milliseconds. To address the issue of timer count overflow and wrap-around, the independent monitoring and control unit detects wrap-around after each count value reading. If wrap-around occurs, the increment of the count value corresponding to the overflow period is added to ensure the continuity of the timestamp. Based on the processing start timestamp and processing completion timestamp, the first Actual processing time of frames for: No. Frame processing time margin for: in, Indicates the duration of an audio frame period; during the operation of the main audio processor. Keep constant, therefore The changes were entirely due to Changes caused by, when A positive value indicates that the processing was completed ahead of schedule, while a negative value indicates that the frame processing has timed out. This module transfers the calculated frame processing time margin for each frame to a circular buffer with a capacity of [missing information]. Each storage unit is filled, and when it is full, the oldest data is overwritten, thus always retaining the most recent data. Frame margin The value of directly affects prediction performance. If the value is too small, historical data will be insufficient, and predictions will be easily affected by random fluctuations. If the data is too large, it will contain outdated data and cause forecast lag. In this embodiment, the sampling rate is 48000 Hz, with 128 sampling points per frame and a frame period of approximately 2.667 milliseconds. Experimental data shows that the processing load of the main audio processor fluctuates between approximately 20 and 50 frames per second. Therefore, [the following text is incomplete and requires further context: "will be..."] Setting it to 32 allows the cache to hold approximately 85 milliseconds of historical data, which fully covers a load fluctuation cycle while preventing the data from becoming too outdated. To reduce the impact of measurement noise on prediction, a moving average filter can be applied to the margin, specifically targeting the first... For each frame, the arithmetic mean of the frame processing time margins of the frame and the previous three consecutive frames is calculated and used as the value to be written to the buffer. In this embodiment, the filtering window is 4 frames (approximately 10.7 milliseconds), which can remove high-frequency random fluctuations while maintaining trend sensitivity. If the filtering window is too large, it will blur the inflection point of the upward trend; if it is too small, the filtering effect will be insufficient. 4 frames is a compromise value verified by experiments.
[0017] When the When the frame processing time margin of a frame is negative, this module still writes the negative value into the buffer and adds a timeout flag to the corresponding storage unit. When the timeout prediction module reads the data, it can perform two parts of processing based on this: first, it uses the negative value as the real margin data for prediction calculation, so that the prediction model can know the actual change trend of the margin after the timeout; second, if the timeout flag has appeared in the buffer for the most recent few frames, it is determined that the main audio processor is in an unstable state, and the prediction result should be biased towards triggering the switch earlier.
[0018] The M2 timeout prediction module calculates the probability of frame processing timeout occurring in the main audio processor and predicts the target timeout frame based on a time series composed of continuous frame processing time margins. This module reads the most recent data from the monitoring module's ring buffer. The frame processing time margins of each frame constitute a time series for prediction. The read frame processing time margin sequence is denoted as... ,in Corresponding to the earliest frame, Corresponding to the current frame; Based on this time series, a trend prediction model is established. In this embodiment, least squares linear regression is used to analyze the recent... The frame processing time margin is fitted with a straight line, and the fitted line is used to predict the future. Extrapolate and predict the frame processing time margin within each audio frame period. A positive integer, representing the prediction window length. For the The frame processing time margin corresponding to the frame is linearly fitted and expressed as: in, Indicates the first The fitted value of the frame processing time margin corresponding to the frame; This represents the slope of the fitted line; The intercept of the fitted line; the slope Reflecting the overall trend of frame processing time margin: A negative value indicates that the margin is continuously decreasing and the processing load of the main audio processor is increasing. A positive value indicates that the margin is increasing and the processing load is decreasing. slope With intercept The average value of the historical time series frame numbers is obtained by using the least squares method. The average of the processing time margin for historical frames They respectively satisfy: The slope and intercept are expressed as: Using the fitted straight line, for the future... The frame processing time margin is extrapolated and predicted, where greater than or equal to 1 and less than or equal to 1 integers, the future number The frame number on the timeline is Predicted value Represented as: Obtaining only the forecast value is insufficient to assess the risk of timeout; it is also necessary to estimate the uncertainty of that forecast value. First, calculate the residual standard deviation of the fitted straight line relative to the historical data. , is represented as: It reflects the degree of dispersion of the historical frame processing time margin around the fitted line. The larger the value, the more drastic the fluctuations in historical residuals, and the lower the reliability of extrapolation predictions. For the future Frame, its predicted value Standard deviation Represented as: The first term of the formula reflects the random fluctuation of the residual itself, while the latter two terms reflect the increased uncertainty due to the greater the extrapolation distance. Setting the future The frame processing time margin of a frame follows the mean value. Standard deviation is If it follows a normal distribution, then the future th The probability of frame processing timeout Represented as: in, The cumulative distribution function of the standard normal distribution can be calculated using a table lookup or numerical approximation algorithm; when predicting the mean... It is a large positive value and much greater than When the value inside the parentheses is a larger positive number, The value approaches 1, and the probability of timeout approaches 0; when the prediction mean is close to zero or negative, the value in parentheses approaches zero or negative, and the probability of timeout increases significantly. This module is for From 1 to Calculate one by one Take the maximum value among them as the future The probability of frame processing timeout occurring within each audio frame period is output, and the target frame for predicting timeout is determined simultaneously; from Starting with 1, check sequentially, the first one that satisfies... Future frames exceeding a preset threshold are the target frames for prediction timeout. If the threshold is not exceeded within any frame, the predicted timeout target frame will not be output, and the switching module will not execute the switching process.
[0019] When the sequence provided by the monitoring module contains a timeout flag (i.e., the frame processing time margin of existing frames is negative), this module uses the negative value as the true margin when reading data to participate in the linear regression calculation, so that the fitted line can reflect the actual trend of the margin after the timeout. At the same time, if the timeout flag has appeared in the most recent frames, it indicates that the main audio processor is already in an unstable state. At this time, this module can multiply the original probability calculation by a correction coefficient greater than 1. In this embodiment, the correction coefficient is 1.5, so that the prediction result is biased towards triggering the switch earlier and avoids continuous timeouts leading to continuous output degradation.
[0020] M3, the switching module, synchronizes the current audio processing parameters of the main audio processor to the backup audio processor when the probability exceeds a preset threshold. It also provides the same input audio signal to both the main and backup audio processors for parallel audio processing, verifies the consistency of the output audio data between the main and backup audio processors, and switches from the main audio processor to the backup audio processor when the consistency meets preset conditions. During real-time audio processing, the main audio processor's internal audio processing parameters change with user operations, scene switching, or the execution of adaptive algorithms. These parameters collectively determine the main audio processor's specific processing behavior for the input audio signal. In order for the backup audio processor to produce an output audio signal consistent with the main audio processor after taking over, the main audio processor's current audio processing parameters must first be completely and accurately synchronized to the backup audio processor. The synchronization of audio processing parameters is accomplished through a high-speed communication interface between the main audio processor and the backup audio processor. In this embodiment, the Serial Peripheral Interface (SPI) is selected as the parameter synchronization communication interface. The operating clock frequency of the SPI is set to 10 MHz, and 1 bit of data is transmitted per clock cycle. Therefore, the effective data transmission rate is 10 megabits per second, or approximately 1.25 megabytes per second. The time required to transmit 2048 bytes of data is approximately 1.64 milliseconds. This time is much less than several times that of an audio frame cycle (approximately 2.667 milliseconds), and also less than the early warning duration of the timeout prediction module (usually several to tens of frames). Therefore, the parameter synchronization process will not pose a bottleneck to the switching timing. After receiving all audio processing parameters and passing cyclic redundancy check, the backup audio processor writes these parameters into its own audio processing engine, overwriting the original parameter configuration. Once loaded, the backup audio processor immediately begins executing the same audio processing algorithm as the primary audio processor, at which point the backup audio processor enters hot standby mode. Hot standby means that the standby audio processor has the same audio processing parameters as the main audio processor and has started audio processing tasks to continuously process the input audio signals in real time, but its output standby audio signal has not yet been selected, so it will not affect the system audio output. Compared with cold standby, the standby audio processor in hot standby is already running, and no additional parameter loading or algorithm initialization time is required when switching, thus ensuring the immediacy of the switch.
[0021] After the backup audio processor enters hot standby mode, this module will simultaneously provide the same input audio signal to both the main audio processor and the backup audio processor. To ensure that the output audio data of the main audio processor and the backup audio processor are strictly aligned in time, their audio frame boundaries must be synchronized. In this embodiment, this module sets up a frame synchronization signal generator. The frame synchronization signal generator uses the audio sampling clock as a reference and generates a frame synchronization pulse signal every time the number of sampling points contained in an audio frame (i.e., every 128 sampling points) passes. The frame synchronization pulse signal is sent to both the main audio processor and the backup audio processor as the start mark of their respective audio frame cycles. The audio processing engines of the main audio processor and the backup audio processor start the processing of each frame of audio data based on the frame synchronization pulse signal. After parallel processing begins, the main audio processor and the backup audio processor independently process the same input audio data and output the main audio signal and backup audio signal respectively. This module reads digital audio data from the outputs of both the main audio processor and the backup audio processor, and performs output consistency checks. The purpose of the consistency check is to confirm whether the output audio data of the main audio processor and the backup audio processor are sufficiently close under the same audio processing parameters and the same input audio data. Only when the outputs of the two are sufficiently close will switching not cause audible transient differences. The audio sample sequence output by the main audio processor is set as follows: The audio sample sequence output by the backup audio processor is This module has been in continuous recent Consistency checks are performed within the output data range of each audio frame. Consistency verification uses mean absolute error as the metric, which is the mean absolute error between the primary output and the backup output. Represented as: in, This represents the total number of sample points within the consistency check window, obtained by multiplying the number of audio frames by the number of sample points contained in each audio frame. Indicates the sampling point number; The calculated mean absolute error Consistency threshold with preset Comparison, preset consistency threshold These are predetermined positive real numbers used to determine whether the main output and the backup output are sufficiently consistent. In this embodiment, Setting the consistency threshold to 0.001, or -60 dB, is crucial in professional audio where the human ear's audible threshold for switching transient noise is approximately -60 dB. When the transient difference is below -60 dB, it is almost imperceptible to the human ear. Setting the consistency threshold to 0.001 ensures that switching transients are subjectively inaudible. when When the main output and the backup output are consistent, the preconditions for switching are met; when If the outputs of the two devices are inconsistent and the switching conditions are not met, and the outputs are inconsistent and cannot converge within several subsequent frames, this module can abandon the active switching and switch to maintaining the output of the main audio processor. At the same time, it will send an alarm message to the system to prompt the maintenance personnel to check.
[0022] When the consistency check result is consistent (i.e.) After that, the switching execution phase begins. The switching action must occur at the audio frame boundary and must be earlier than the start time of the predicted timeout target frame to ensure that the output path is switched to the backup audio processor before the main audio processor may experience a frame processing timeout. To determine the specific switching timing, we first calculate the remaining time between the current time and the start time of the predicted timeout target frame. , is represented as: in, Indicates the start time of the predicted timeout target frame; Indicates the current moment; Calculate the total time required to complete all switchover preparations. , is represented as: in, Indicates the time taken for parameter synchronization; Indicates that the backup audio processor is loading parameters The time it takes to enter hot standby mode; Indicates the duration covered by the consistency check window; In this embodiment, the parameter synchronization time is... The time it takes for the backup audio processor to load parameters and enter hot standby mode is determined by both the amount of parameter data and the communication interface speed. It mainly depends on the speed at which parameters are written to the internal registers and the start time of the audio processing task; when When the timeout period begins, it indicates that there is still sufficient time before the predicted timeout target frame begins, allowing for the complete execution of parameter synchronization, hot standby startup, and consistency checks. The switching then occurs at the boundary of the most recent audio frame before the predicted timeout target frame. After the consistency check is completed, the frame synchronization pulse signal is monitored. The switching command is triggered on the rising edge of the last frame synchronization pulse before the start of the predicted timeout target frame. For example, if the predicted timeout target frame is the 8th frame in the future and the consistency check is completed in the 5th frame, the active switching module issues a switching command at the frame boundary of the 7th frame (i.e. the frame boundary before the start of the 8th frame). when When the timeout period begins, it indicates that there is insufficient time left to complete the full parameter synchronization, hot standby startup, and consistency check. At this time, the degradation switching process is initiated. The current audio processing parameters of the main audio processor are immediately synchronized to the backup audio processor as quickly as possible, and the input audio signal is provided to the backup audio processor at the same time. After the backup audio processor completes parameter loading and starts outputting, this module skips the consistency check and directly performs the switch at the boundary of the nearest available audio frame after the current frame. After the switchover is complete, the backup audio processor becomes the new master audio processor, and its output backup audio signal becomes the system audio output signal. The original master audio processor no longer undertakes the output task and can switch to fault diagnosis mode or be downgraded to a backup processor.
[0023] The proposed active backup system for audio processors based on fault prediction uses a monitoring module to obtain the actual processing time of the main audio processor in each audio frame cycle and calculate the frame processing time margin. Based on the time series formed by the frame processing time margins of multiple consecutive frames, the system predicts the probability of frame processing timeout in the main audio processor within a few future frames and determines the predicted timeout target frame. When the probability exceeds a preset threshold, the switching module synchronizes the current audio processing parameters of the main audio processor to the backup audio processor and puts it into hot standby mode. The same input audio signal is simultaneously provided to the main audio processor and the backup audio processor for parallel audio processing. After verifying that the consistency of the output audio data of the two meets the preset conditions, a lossless switch from the main audio processor to the backup audio processor is completed at the boundary of the audio frame before the predicted timeout target frame. This achieves active backup switching before the main audio processor actually experiences frame processing timeout, significantly improving the continuity of audio output and listening safety.
[0024] In summary, this invention addresses the technical problem that frame processing timeout faults unique to audio processors cannot be detected in advance by existing hardware health prediction methods. By using frame processing time margin, an indicator that directly reflects the saturation of processing load, to perform trend extrapolation and timeout probability prediction, and combining the prediction results with the timing coordination of audio processing parameter synchronization, hot standby startup, primary / standby output consistency verification, and audio frame boundary switching, this invention achieves early prediction and seamless proactive switching of frame processing timeout faults. This effectively avoids switching lag, audio interruption, and popping sounds, and significantly improves the real-time performance, reliability, and listening quality of primary / standby switching of audio processors.
[0025] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An audio processor active backup system based on fault prediction, characterized in that, The system includes: The monitoring module acquires the actual processing time of the main audio processor in completing the audio processing of the frame within the audio frame period, and calculates the frame processing time margin, which is the difference between the duration of the audio frame period and the actual processing time. The timeout prediction module calculates the probability of frame processing timeout and predicts the timeout target frame based on the time series composed of continuous frame processing time margins. The frame processing timeout is when the main audio processor fails to complete the audio processing of the frame within the current audio frame period. The switching module synchronizes the current audio processing parameters of the main audio processor to the backup audio processor when the probability exceeds a preset threshold, and simultaneously provides the same input audio signal to the main audio processor and the backup audio processor for parallel audio processing. It verifies the consistency of the output audio data of the main audio processor and the backup audio processor, and switches from the main audio processor to the backup audio processor when the consistency meets the preset conditions.
2. The active backup system for audio processors based on fault prediction according to claim 1, characterized in that, The monitoring module is located in an independent monitoring and control unit outside the main audio processor; The independent monitoring and control unit receives the frame processing start signal and frame processing completion signal sent by the main audio processor via interrupt, and generates a processing start timestamp and a processing completion timestamp. The actual processing time is calculated based on the processing start timestamp and processing completion timestamp.
3. The active backup system for audio processors based on fault prediction according to claim 2, characterized in that, The timeout prediction module uses least squares linear regression to fit a straight line to the time series. Based on the fitted straight line, the first The frame processing time margin is predicted, and the residual standard deviation of the fitted line relative to historical data is calculated. Based on the residual standard deviation and the first The standard deviation of the prediction results for each frame is calculated, and then the standard deviation of the prediction results for the next frame is calculated. The probability of frame processing timeout; The first future frame whose probability exceeds a preset threshold is determined as the prediction timeout target frame.
4. The active backup system for audio processors based on fault prediction according to claim 3, characterized in that, The current audio processing parameters of the main audio processor are synchronized to the backup audio processor via the communication interface; During the synchronization process, the synchronized audio processing parameters are subjected to cyclic redundancy check. After the check passes, the backup audio processor loads the audio processing parameters and enters hot standby state.
5. The active backup system for audio processors based on fault prediction according to claim 4, characterized in that, The consistency verification uses the mean absolute error as the metric. The mean absolute error is the average of the absolute values of the differences between the output audio data sequences of the main audio processor and the backup audio processor within the consistency check window. The mean absolute error is compared with a preset consistency threshold. When the mean absolute error is less than or equal to the consistency threshold, the consistency is determined to meet the preset condition.
6. The active backup system for audio processors based on fault prediction according to claim 5, characterized in that, Calculate the remaining time between the current time and the start time of the predicted timeout target frame, and calculate the total preparation time for the handover; When the remaining time is greater than the total preparation time for the switch, the switch is performed at the boundary of an audio frame before the predicted timeout target frame; When the remaining time is less than or equal to the total preparation time for the switch, the downgrade switch process is initiated, the consistency check is skipped, and the switch is performed directly at the boundary of an available audio frame after the current frame. During the switch, the main audio signal and the backup audio signal are crossfaded.
