A multi-device cooperative low-delay wireless audio synchronization transmission method and system

By combining synchronous acquisition and adaptive encoding processing with feedforward audio pre-scheduling based on a priori input fingerprint database, low-latency synchronization of wireless audio transmission across multiple devices is achieved, optimizing resource utilization, solving the problems of inconsistent transmission latency and unreasonable resource allocation, and improving response speed and synchronization.

CN123185648APending Publication Date: 2026-11-27SHENZHEN GTAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611376332.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-device wireless audio transmission methods have shortcomings in low-latency synchronization control, joint utilization of uplink and downlink resources, and collaborative processing of multi-source data. The lack of a unified coordination mechanism leads to inconsistent transmission delays, unreasonable resource allocation, and mutual interference between uplink and downlink.

Method used

By synchronously acquiring the transmission signals from audio output devices, audio input devices, and human body input devices, raw data from multiple devices is obtained. Then, adaptive coding processing and a pre-built prior input fingerprint database are used for feedforward audio pre-scheduling. Combined with a unified reference timestamp and dual-threshold energy detection, uplink and downlink joint scheduling is achieved to optimize time slot allocation and resource utilization.

Benefits of technology

It improves the synchronization, response speed and resource utilization efficiency of wireless audio transmission across multiple devices, reduces the waiting time for urgent audio frames, and solves the problems of inconsistent transmission latency and unreasonable resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185648A_ABST
    Figure CN123185648A_ABST
Patent Text Reader

Abstract

The application provides a multi-device cooperative low-delay wireless audio synchronous transmission method and system, and belongs to the technical field of wireless audio transmission, and comprises the following steps: synchronously collecting transmission signals of an audio output device, an audio input device and an anthropometric input device, and obtaining multi-device original data; performing adaptive coding processing on downlink audio data streams in the multi-device original data, and performing feedforward audio pre-scheduling in combination with a pre-constructed prior input fingerprint library of the anthropometric input device and the multi-device original data; on the basis of the feedforward audio pre-scheduling, performing uplink and downlink joint scheduling on the audio output device and the audio input device based on the multi-device original data, and driving the audio output device and the audio input device to perform wireless audio transmission. The application solves the problems of inconsistent transmission delay, unreasonable resource allocation and mutual interference of uplink and downlink in the existing multi-device wireless audio transmission due to the lack of a unified coordination mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless audio transmission technology, and more specifically to a low-latency wireless audio synchronization transmission method and system for multi-device collaboration. Background Technology

[0002] Existing wireless audio transmission solutions typically schedule single audio output or input devices, offering limited support for multi-device collaborative scenarios. When multiple devices participate in audio interaction simultaneously, the lack of a unified coordination mechanism for signal acquisition, encoding, and scheduling among these devices easily leads to problems such as inconsistent transmission latency, unreasonable resource allocation, and mutual interference between uplink and downlink. Some methods reduce implementation complexity by independently scheduling each device, but it is difficult to utilize the correlation information between different devices to adjust the transmission strategy in advance, resulting in insufficient system response speed in dynamic interactive scenarios.

[0003] Therefore, existing multi-device wireless audio transmission methods still have shortcomings in low-latency synchronization control, joint utilization of uplink and downlink resources, and collaborative processing of multi-source data. Summary of the Invention

[0004] This invention provides a low-latency wireless audio synchronization transmission method and system for multi-device collaboration, which solves the problems of inconsistent transmission delay, unreasonable resource allocation, and mutual interference between uplink and downlink caused by the lack of a unified coordination mechanism in existing multi-device wireless audio transmission.

[0005] In view of the above problems, the present invention provides a method and system for low-latency wireless audio synchronization transmission with multi-device collaboration.

[0006] In a first aspect, the present invention provides a low-latency wireless audio synchronization transmission method for multi-device collaboration, comprising: Simultaneously acquire the transmitted signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices; Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multi-device system, and feedforward audio pre-scheduling is performed based on the pre-built prior input fingerprint database of the human body input device and the original data of the multi-device system. Based on the feedforward audio pre-scheduling, and based on the original data of the multiple devices, the audio output device and the audio input device are jointly scheduled for uplink and downlink to drive the audio output device and the audio input device to perform wireless audio transmission.

[0007] Secondly, the present invention provides a low-latency wireless audio synchronization transmission system for multi-device collaboration, comprising: The multi-device signal acquisition module is used to synchronously acquire the transmission signals of audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices. The feedforward audio pre-scheduling module is used to perform adaptive encoding processing on the downlink audio data stream in the original data of the multi-devices, and to perform feedforward audio pre-scheduling based on the pre-built prior input fingerprint database of the human body input device and the original data of the multi-devices. The joint scheduling and transmission module is used to perform uplink and downlink joint scheduling of the audio output device and the audio input device based on the original data of the multiple devices, on the basis of feedforward audio pre-scheduling, and drive the audio output device and the audio input device to perform wireless audio transmission.

[0008] One or more technical solutions provided in this invention have at least the following technical effects or advantages: The technical solution of this invention first synchronously acquires the transmission signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices. By attaching a unified reference timestamp to the downlink audio data stream, uplink microphone data stream, and uplink input data stream, the data from multiple devices are kept consistent in time, providing a unified time reference for subsequent collaborative scheduling.

[0009] Furthermore, adaptive encoding processing is performed on the downlink audio data stream in the raw data of multiple devices, and feedforward audio pre-scheduling is performed based on the pre-built prior input fingerprint database of human body input devices and the raw data of multiple devices. By using the matching results of real-time input feature vectors and prior input fingerprint database, the scheduling priority of encoded audio frames and the buffer depth of the receiver are adjusted in advance before the audio output event occurs, thereby reducing feedforward response latency and buffer waiting time.

[0010] Finally, based on the feedforward audio pre-scheduling, uplink and downlink joint scheduling is performed on the audio output and audio input devices based on the raw data of multiple devices, driving the audio output and audio input devices to perform wireless audio transmission. The microphone status is determined by dual threshold energy detection, and the uplink and downlink time slot allocation is switched between silent recovery mode and contention scheduling mode. The cross-directional time slot is used to preemptively transmit urgent encoded audio frames, thereby improving the time slot utilization rate of downlink audio transmission and reducing the waiting time of urgent audio frames.

[0011] In summary, the technical solution of this invention enables multiple devices to maintain data consistency in time, adjust scheduling priorities and buffer depths in advance, improve uplink and downlink time slot utilization, and reduce waiting time for urgent audio frames. This improves the synchronization, response speed, and resource utilization efficiency of multi-device wireless audio transmission, thereby solving the problems of inconsistent transmission delays, unreasonable resource allocation, and mutual interference between uplink and downlink caused by the lack of a unified coordination mechanism in existing multi-device wireless audio transmission. Attached Figure Description

[0012] Figure 1 This is a flowchart illustrating a low-latency wireless audio synchronization transmission method for multi-device collaboration provided by the present invention.

[0013] Figure 2 This is a logical diagram illustrating the uplink and downlink joint scheduling in a low-latency wireless audio synchronization transmission method for multi-device collaboration provided by the present invention.

[0014] Figure 3 This is a schematic diagram of a low-latency wireless audio synchronization transmission system for multi-device collaboration provided by the present invention.

[0015] In the attached diagram, the labels representing each component are as follows: Multi-device signal acquisition module 11, feedforward audio pre-scheduling module 12, and joint scheduling and transmission module 13. Detailed Implementation

[0016] This invention provides a low-latency wireless audio synchronization transmission method and system for multi-device collaboration, which solves the problems of inconsistent transmission delay, unreasonable resource allocation, and mutual interference between uplink and downlink caused by the lack of a unified coordination mechanism in existing multi-device wireless audio transmission.

[0017] It should be noted that the terms "comprising" and "having" are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0018] Example 1, as Figure 1 As shown, the present invention provides a low-latency wireless audio synchronization transmission method for multi-device collaboration, the method comprising: S100: Synchronously acquires the transmitted signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices.

[0019] This step involves synchronously acquiring the transmitted signals from audio output devices, audio input devices, and human body input devices, and attaching a unified reference timestamp to each data stream.

[0020] Step S100 in the method provided by the present invention includes: Establish connection links with the audio output device, the audio input device, and the human body input device respectively; At a first preset sampling rate, the downlink audio signal of the audio output device is acquired to obtain the downlink audio data stream; At a second preset sampling rate, the uplink microphone signal of the audio input device is acquired to obtain the uplink microphone data stream; At a third preset reporting rate, the uplink input signal of the human body input device is collected to obtain the uplink input data stream, which includes at least the displacement vector data and key status data of the mouse, and the key event data and key status data of the keyboard. A unified reference timestamp is attached to the downlink audio data stream, the uplink microphone data stream, and the uplink input data stream to obtain the original data from the multiple devices.

[0021] Specifically, connection links are first established with the audio output device, audio input device, and human body input device, respectively. These connection links can be established wirelessly, such as via the 2.4GHz band, 5GHz band, or Bluetooth and other wireless transmission protocols.

[0022] In the actual connection establishment process, the main control device or centralized scheduling unit initiates the connection request, and each device responds to complete the link establishment. The first connection link established with the audio output device is used to transmit the downlink audio signal from the audio output device; the second connection link established with the audio input device is used to transmit the uplink microphone signal from the audio input device; and the third connection link established with the human body input device is used to transmit the uplink input signal from the human body input device. The acquisition of each data stream is performed on the corresponding connection link.

[0023] For example, in an audio interaction scenario that includes wireless headphones, a wireless microphone, and a wireless mouse, the centralized scheduling unit first sends a connection request to the wireless headphones, and establishes a first connection link after the wireless headphones return an acknowledgment; then it sends a connection request to the wireless microphone, and establishes a second connection link after the wireless microphone returns an acknowledgment; finally, it sends a connection request to the wireless mouse, and establishes a third connection link after the wireless mouse returns an acknowledgment.

[0024] Next, the downlink audio signal from the audio output device is acquired at a first preset sampling rate to obtain a downlink audio data stream. The first preset sampling rate is determined based on the highest frequency component of the downlink audio signal and should be no less than twice the highest frequency of the downlink audio signal. During the acquisition process, the output data of the audio output device is continuously read according to the sampling period to form a downlink audio data stream arranged in chronological order.

[0025] For example, the first preset sampling rate can be set to 48kHz, 44.1kHz or 96kHz, and in actual implementation, it can be selected according to the output capability and transmission bandwidth requirements of the audio output device.

[0026] For example, in the above scenario, the centralized scheduling unit collects the audio signal being played from the first connection link corresponding to the wireless headphones at a sampling rate of 48kHz, obtaining 48,000 sampling points per second, and assembles these sampling points into a downlink audio data stream in chronological order.

[0027] Next, the uplink microphone signal from the audio input device is acquired using a second preset sampling rate to obtain the uplink microphone data stream. The second preset sampling rate is determined based on the highest frequency component of the uplink microphone signal and should be no less than twice the highest frequency of the uplink microphone signal. The second preset sampling rate can be the same as the first preset sampling rate or can be set independently according to microphone performance and uplink transmission resources. During the acquisition process, the microphone input data from the audio input device is continuously read according to the sampling period to form the uplink microphone data stream.

[0028] For example, the second preset sampling rate can be set to 16kHz, 24kHz or 48kHz, and can be selected according to uplink transmission resources and latency requirements in actual implementation.

[0029] For example, in the above scenario, the centralized scheduling unit collects user voice signals from the second connection link corresponding to the wireless microphone at a sampling rate of 16kHz, obtaining 16,000 sampling points per second, and assembles these sampling points into an uplink microphone data stream in chronological order.

[0030] Next, the uplink input signal of the human body input device is acquired at the third preset report rate to obtain the uplink input data stream. The third preset report rate represents the frequency of events reported by the human body input device. The third preset report rate is determined based on the input event generation rate of the human body input device and the system response requirements. The higher the report rate, the lower the input event transmission delay, but the more uplink resources are consumed.

[0031] For example, the third preset report rate can be set to 125Hz, 250Hz, 500Hz or 1000Hz. In actual implementation, a lower report rate can be selected to reduce resource consumption while meeting bandwidth and latency requirements.

[0032] The upstream input data stream includes at least mouse displacement vector data and button status data, as well as keyboard key event data and button status data. The mouse displacement vector data is represented by horizontal and vertical displacement increments, in units of count points or engineering units, the specific units depending on the mouse sensor resolution and system configuration. Each data set may also include a sign bit to indicate the positive or negative direction of the displacement vector. The button status data indicates whether each mouse button is currently pressed or released.

[0033] Keyboard key event data includes the key codes and event types for which state changes occurred; event types include press and release. Keyboard key state data includes the set of key codes currently in the pressed state or a state bitmap of each key. Instantaneous key presses can be captured through key event data, while sustained press states can be obtained through key state data. Both can coexist in the same set of uplink input data or be transmitted separately at different reporting cycles.

[0034] For example, in the above scenario, the centralized scheduling unit collects uplink input signals from the third connection link corresponding to the wireless mouse at a report rate of 500Hz, and obtains 500 sets of input data per second. Each set of data includes the mouse's horizontal and vertical displacement increments, displacement sign bits, and status flags for the left, right, and middle buttons, where the displacement increments are represented in units of count points.

[0035] Additionally, if the scenario includes a wireless keyboard, keyboard input signals are also acquired from the third connection link corresponding to the wireless keyboard at a report rate of 500Hz, obtaining 500 sets of key data per second. Each set of data includes the key code of the currently changing state, the event type, and the state bitmap of each key. The event type is pressed or released, and the state bitmap is used to indicate whether each key is currently in a pressed or released state.

[0036] Finally, a unified reference timestamp is appended to the downlink audio data stream, uplink microphone data stream, and uplink input data stream to obtain raw data from multiple devices. The unified reference timestamp is generated by a single clock counter within the centralized scheduling unit, and different data streams read the current value of this clock counter as the timestamp during acquisition or reception.

[0037] Specifically, for downlink audio data streams and uplink microphone data streams, when timestamps are added to sampling point blocks, the timestamp represents the acquisition time of the first sampling point in the sampling point block, and the timestamps of subsequent sampling points are obtained recursively according to the sampling period; for uplink input data streams, when timestamps are added to groups, the timestamp represents the reporting time of the group of input events.

[0038] During cross-stream alignment, a unified reference timestamp is used as the benchmark, grouping data units with the same or closest timestamps from different data streams into the same synchronization period. The granularity of timestamp appending is determined based on the synchronization accuracy requirements and transmission overhead of the data stream. More frequent timestamp appending results in higher synchronization accuracy, but also a larger amount of appended data. For audio data streams, the timestamp appending interval can be set to correspond to the audio frame length or code block length; for input data streams, timestamps can be appended to each data set. In practice, the timestamp appending granularity can be fixed or dynamically adjusted based on wireless link quality or synchronization errors.

[0039] Raw data from multiple devices is sorted by a unified reference timestamp within a centralized scheduling unit, forming a data queue arranged in chronological order. Each queue unit contains a timestamp, a data type identifier, and the corresponding data content. The data type identifier distinguishes between downlink audio data, uplink microphone data, and uplink input data. This data queue can be directly used for subsequent encoding, scheduling, and transmission processing.

[0040] For example, in the above scenario, the centralized scheduling unit uses an internal high-precision clock counter as a unified reference clock. For downlink audio data streams, a timestamp is appended to every 128 sampling points, recording the acquisition time of the first sampling point among those 128 points, and the timestamps of subsequent sampling points are obtained recursively at a 48kHz sampling period. For uplink microphone data streams, a timestamp is appended to every 160 sampling points, recording the acquisition time of the first sampling point among those 160 points, and the timestamps of subsequent sampling points are obtained recursively at a 16kHz sampling period. For uplink input data streams, a timestamp is directly appended to each set of mouse or keyboard data during acquisition, recording the generation time of that set of data. The centralized scheduling unit places the timestamped data into the same data queue in the order of the timestamps. Each queue unit contains a timestamp, a data type identifier, and the corresponding data content. Through this method, all three types of data streams have a unified reference timestamp, collectively constituting the original data from multiple devices.

[0041] It should be noted that the sampling rate, reporting rate, and timestamp granularity mentioned above are all exemplary settings, and can be adjusted according to device capabilities, wireless transmission resources, and system latency requirements in actual implementation.

[0042] In summary, this step enables data from multiple devices to remain consistent in time, providing raw data with a unified time reference for subsequent multi-device collaborative scheduling.

[0043] S200: Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multi-devices, and feedforward audio pre-scheduling is performed based on the pre-constructed prior input fingerprint database of the human body input device and the original data of the multi-devices.

[0044] This step involves adaptively encoding the downlink audio data stream and using a pre-built prior input fingerprint database to perform real-time matching and feedforward scheduling of the uplink input signal from the human body input device.

[0045] In this step, the pre-construction of the prior input fingerprint database includes: In the offline calibration phase of the target scene, the sample uplink input signal of the human body input device is continuously collected in a preset sliding window as the step, and the corresponding audio output event sequence is recorded simultaneously to form multiple calibration samples; For each of the calibrated samples, input fingerprint features are extracted based on the uplink input signal of the sample. The input fingerprint features include at least: the average value of mouse displacement amplitude within a preset sliding window, the peak value of mouse displacement amplitude, the timing of mouse button transitions, the keyboard key combination mode identifier, and the keyboard event rate statistics. Cluster analysis is performed based on the input fingerprint features to determine multiple human body input classes. Each human body input class includes a class center fingerprint feature defined by the mean vector of all input fingerprint features within the cluster and a distance between associated fingerprint features. Each of the human body input classes is associated with the category label of the audio output event in the corresponding time period in the audio output event sequence, wherein the category label includes at least the highest priority class, high priority class, normal priority class and low priority class; Using the class center fingerprint feature of the human body input class as the index, the fingerprint feature distance as the matching tolerance, and the category label as the mapping target, an input fingerprint-audio category mapping table is constructed, and the output is the prior input fingerprint database.

[0046] Specifically, in the offline calibration stage of the target scene, the uplink input signals of the human body input device are continuously collected in steps using a preset sliding window, and the corresponding audio output event sequence is recorded simultaneously to form multiple calibration samples.

[0047] The preset sliding window is used to divide the continuous input signal, resulting in a temporally continuous signal segment of fixed length. The sliding window length and step size can be preset. For example, the sliding window length and step size can both be set to 200 milliseconds, meaning the windows do not overlap; alternatively, the step size can be set to 100 milliseconds, resulting in 50% overlap between adjacent windows. The specific length is determined based on the event generation rate of the human body input device and the rate of change of audio output events. Each calibration sample contains the upstream input signal from the human body input device within a sliding window, and the corresponding audio output event sequence within that sliding window's time range.

[0048] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, the offline calibration phase involves a centralized scheduling unit continuously acquiring uplink input signals from the wireless mouse and keyboard in 200-millisecond sliding windows with 200-millisecond increments. Simultaneously, the centralized scheduling unit records the types of audio events being output by the wireless headphones within the same time frame. The first sliding window corresponds to milliseconds 0 to 200, the second to 400, and so on. The mouse and keyboard input data and corresponding audio output events within each sliding window constitute a calibration sample.

[0049] Secondly, for each calibrated sample, input fingerprint features are extracted based on the sample's uplink input signal. The input fingerprint features include at least: the average mouse displacement amplitude within a preset sliding window, the peak mouse displacement amplitude, the mouse button transition time, the keyboard key combination mode identifier, and the keyboard event rate statistics.

[0050] The average mouse displacement amplitude is calculated as follows: obtain the horizontal and vertical displacement increments of the mouse within the sliding window, calculate the displacement amplitude for each sampling point, and the displacement amplitude is equal to the square root of the sum of the squares of the horizontal and vertical displacement increments; sum the displacement amplitudes of all sampling points and divide by the number of sampling points to obtain the average mouse displacement amplitude.

[0051] The peak value of mouse displacement amplitude is calculated as follows: obtain the displacement amplitude of all sampling points within the sliding window, and take the maximum value as the peak value of mouse displacement amplitude.

[0052] Mouse button transition moments indicate the points in time when the state of a mouse button within the sliding window changes. A transition occurs when a button changes from released to pressed, or vice versa. The transition moment is represented with the initial time of the sliding window as zero.

[0053] Keyboard key combination pattern identifiers are used to represent keyboard key combinations that are simultaneously pressed or change state in a specific sequence within a sliding window. A set of key combination patterns can be predefined, and each combination can be assigned a unique identifier.

[0054] Specifically, the predefined set of keyboard key combination pattern identifiers can be constructed based on combinations that may occur in the target scenario. Each element in the set contains a set of key codes that are simultaneously pressed. For example, the W key and Shift key correspond to combination pattern identifier C003, and the Ctrl key and Space key correspond to combination pattern identifier C005. When constructing the set, combinations that appeared during the offline calibration phase can be counted, and identifiers can be assigned according to the order of appearance or lexicographical order. If no key combination exists within the sliding window, the identifier is set to an empty value or a preset default value C000. During online extraction, matching is performed based on the same set.

[0055] The keyboard event rate statistic represents the frequency of keyboard key events occurring within the sliding window. It can be calculated as the number of key events per unit of time, i.e., the total number of key events within the sliding window divided by the length of the sliding window. Key events include key presses and key releases.

[0056] For example, in the above scenario, feature extraction is performed on the mouse and keyboard data within the first sliding window. Within this window, the mouse moves at five sampling points, with horizontal displacement increments of +8, -3, +12, -5, and +10, and vertical displacement increments of +4, +6, -2, +7, and +3. The corresponding displacement amplitudes are approximately 8.94, 6.71, 12.17, 8.60, and 10.44, with a mean of 9.37 and a peak of 12.17. The left mouse button is pressed at 80 milliseconds and released at 150 milliseconds. The keyboard detects that the W key and Shift key are simultaneously pressed within this window, corresponding to a predefined combination pattern identifier of C003. A total of six key events occur within this window, the sliding window length is 200 milliseconds, and the keyboard event rate is 30 events / second. These features together constitute the input fingerprint features of this calibration sample.

[0057] Next, cluster analysis is performed based on the input fingerprint features to determine multiple human body input classes. Cluster analysis can employ K-means clustering, hierarchical clustering, or density-based clustering algorithms. Before clustering, the input fingerprint features are normalized. Numerical features such as the mean mouse displacement amplitude, peak mouse displacement amplitude, and keyboard event rate statistics are linearly normalized according to the maximum and minimum values ​​of each feature dimension, mapping the values ​​to the interval between 0 and 1.

[0058] In this process, the maximum and minimum values ​​used for numerical feature normalization are derived from the maximum and minimum values ​​of the corresponding feature dimensions in all calibrated samples. When extracting real-time input feature vectors online, the same maximum and minimum values ​​saved during the offline calibration phase are continued to be used to ensure consistency in the feature space.

[0059] Mouse button transition times are normalized based on the starting time of the sliding window, with the window length as the zero point. Keyboard key combination patterns are identified as discrete features and converted into multi-dimensional binary features using one-hot encoding. The binary features after one-hot encoding take only 0 or 1 values, consistent with the value range of the normalized numerical features. They are directly concatenated into the same feature vector for Euclidean distance calculation without further weighting.

[0060] In the K-means clustering algorithm, the number of clusters K is pre-set based on the number of input behavior types in the target scenario. In practice, an initial range for K can be determined based on the number of input behavior types, and then a value for K can be selected using clustering effectiveness metrics. These metrics can include the silhouette coefficient or the inflection point of the sum of squared errors corresponding to the elbow rule. The final number of clusters is chosen based on the K value that maximizes the silhouette coefficient or significantly slows the decrease in the sum of squared errors. For example, when classifying input behaviors into types such as rapid movement, high-frequency key presses, combination key presses, static no input, and single key presses, K can be set to 5 to 8. After clustering, K ergonomic input classes are obtained.

[0061] Each human body input class includes a class center fingerprint feature defined based on the mean vector of all input fingerprint features within the cluster, and associated fingerprint feature distances. The class center fingerprint feature is a vector composed of the average values ​​of all sample input fingerprint features within the cluster across each feature dimension. The fingerprint feature distance is used to determine whether subsequent online input fingerprint features belong to this class, and the distance can be determined based on the distance distribution from each sample within the cluster to the class center fingerprint feature.

[0062] The distance metric used is Euclidean distance. The distance can be set as the maximum Euclidean distance from a sample within a cluster to the fingerprint feature of the cluster center, or it can be set as the average Euclidean distance plus a preset standard deviation. For example, the fingerprint feature distance can be set as the average Euclidean distance from a sample within a cluster to the fingerprint feature of the cluster center plus twice the standard deviation, where the standard deviation is the standard deviation of the distance from the sample within the cluster to the fingerprint feature of the cluster center.

[0063] For example, in the scenario described above, K-means clustering is performed on the input fingerprint features of all calibrated samples, with K set to 6, resulting in 6 anthropomorphic input classes. One of these classes contains a large number of high-frequency keystrokes and combination keystrokes. The central fingerprint feature of this class exhibits a high keyboard event rate, and the keyboard key combination pattern identifier corresponds to multiple combination codes. Based on the Euclidean distance from all samples in this class to the central fingerprint feature, the average distance is calculated to be 0.12, with a standard deviation of 0.04. Therefore, the fingerprint feature distance is set to 0.20.

[0064] Next, each human body input class is associated and mapped with the category label of the corresponding audio output event in the audio output event sequence. The category label includes at least the highest priority class, high priority class, normal priority class, and low priority class.

[0065] The association mapping method is as follows: For each human body input class, obtain the audio output event sequence corresponding to all calibrated samples within the cluster; count the occurrence frequency of each audio output event category label; and use the category label with the highest occurrence frequency as the mapping label for that human body input class. If multiple category labels have the same occurrence frequency, the category label with higher priority is used as the mapping label.

[0066] Audio output event category labels can be predefined based on the response priority of the audio output content. The highest priority category corresponds to audio events that require immediate response or have the highest resource guarantee level; the high priority category corresponds to audio events with high response requirements; the normal priority category corresponds to general audio events; and the low priority category corresponds to audio events that can be delayed or degraded in transmission.

[0067] For example, in the scenario described above, in the human body input class corresponding to the high-frequency keys and key combinations, most of the calibrated samples' synchronous audio output events are game action feedback sound effects. This type of audio event is pre-marked as the highest priority class. Therefore, this human body input class is mapped to the highest priority class.

[0068] Finally, using the class center fingerprint features of the human body input class as the index, the fingerprint feature distance as the matching tolerance, and the category label as the mapping target, an input fingerprint-audio category mapping table is constructed, and the output is the prior input fingerprint database.

[0069] The input fingerprint-audio category mapping table can be stored as a data table structure. Each entry contains a class number, a class-centric fingerprint feature vector, a fingerprint feature distance, and an audio output event category label. The class-centric fingerprint feature vector contains the center values ​​for each feature dimension, with the feature dimensions ordered in the same order as those used in cluster analysis. The fingerprint feature distance is a scalar value. The category label is a discrete value; for example, 1 represents the highest priority class, 2 represents a high-priority class, 3 represents a normal-priority class, and 4 represents a low-priority class.

[0070] The prior input fingerprint database can be stored in a centralized scheduling unit or deployed in a separate fingerprint matching module. During use, fingerprint features of the same class are extracted from the uplink input signals of online human body input devices. The Euclidean distance between this feature and the central fingerprint features of each class in the prior input fingerprint database is calculated. If the minimum Euclidean distance is less than or equal to the fingerprint feature distance of the corresponding class, the input fingerprint is determined to belong to that class. If no class meets the conditions, a default class label is returned or feedforward pre-scheduling is temporarily suspended. The default class label can be set to a regular priority class.

[0071] For example, in the scenario described above, the centralized scheduling unit writes the class center fingerprint feature vectors, fingerprint feature distances, and audio output event category labels corresponding to the six anthropometric input classes into the input fingerprint-audio category mapping table. One class record is as follows: Class number 1, class center fingerprint feature vector [0.35, 0.60, 0.72, 0.85, 0.90, 0.15, 0.20, 0.80], fingerprint feature distance 0.20, category label 1, indicating the highest priority class. This mapping table constitutes the prior input fingerprint database, which can be used for subsequent online input signal matching.

[0072] Step S200 in the method provided by the present invention includes: The downlink audio data stream is encoded using an adaptive encoding frame length to generate an encoded audio frame sequence. From the raw data of the multiple devices, extract the real-time input feature vector of the human body input device based on the uplink input data stream; The real-time input feature vector is matched with the prior input fingerprint database in real time to determine the feedforward scheduling criterion corresponding to the current human body input class. The feedforward scheduling criterion includes at least: predicted audio category, confidence level, urgent item marker, and buffer pre-reduction instruction. Based on the feedforward scheduling criterion, the corresponding feedforward scheduling action is matched and determined, and a pre-scheduling flag is output. The encoded audio frame sequence is associated with the pre-scheduling tag, and feedforward audio pre-scheduling is performed on the encoded audio frames associated with the pre-scheduling tag.

[0073] Specifically, the downlink audio data stream is first encoded using an adaptive encoding frame length to generate an encoded audio frame sequence.

[0074] Adaptive encoding frame length means that the length of the audio frames used in encoding processing can be dynamically adjusted according to the system status. The encoding frame length can be selected based on the current wireless link quality, buffer occupancy level, audio signal variation, or feedforward scheduling results: shorter frame lengths result in lower encoding latency, but may decrease encoding efficiency; longer frame lengths result in higher encoding efficiency, but increase single-frame transmission and encoding time. The encoding frame length can be selected from a preset set of frame lengths. Preset set of frame lengths includes, for example, 2.5 milliseconds, 5 milliseconds, 10 milliseconds, and 20 milliseconds. Encoding processing uses audio encoding algorithms to compress the downlink audio data stream, generating a sequence of encoded audio frames. Each encoded audio frame has a frame number, which increments sequentially according to the encoding order.

[0075] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, a centralized scheduling unit encodes the downlink audio data stream from the wireless headphones. If the current buffer usage is below a preset buffer threshold and the wireless link quality is good, an adaptive encoding frame length of 10 milliseconds is selected. At a 48kHz sampling rate, 10 milliseconds corresponds to 480 sampling points. The centralized scheduling unit compresses every 480 sampling points as one encoding frame, generating a sequence of consecutively numbered encoded audio frames. If buffer usage increases, the frame length can be switched to 5 milliseconds in the next encoding cycle.

[0076] Secondly, real-time input feature vectors of the human body input devices are extracted from the raw data of multiple devices based on the uplink input data stream. The extraction method of the real-time input feature vectors is consistent with the input fingerprint feature extraction method in the pre-construction stage of the prior input fingerprint database. During extraction, the uplink input signal of the human body input device is truncated backward by a preset sliding window length with the current time as the endpoint.

[0077] The preset sliding window length is the same as the sliding window length used in the prior input fingerprint database construction. The extracted content includes at least: average mouse displacement amplitude, peak mouse displacement amplitude, mouse button transition times, keyboard key combination pattern identifiers, and keyboard event rate statistics. After extraction, numerical features undergo the same normalization processing as in the pre-construction stage, and discrete features undergo the same one-hot encoding processing, resulting in a real-time input feature vector with the same feature dimension order and numerical range as the prior input fingerprint database.

[0078] For example, in the above scenario, the current time is 10200 milliseconds. The centralized scheduling unit extracts 200 milliseconds of uplink input data from the wireless mouse and wireless keyboard from the multi-device raw data queue, from 10000 milliseconds to 10200 milliseconds. The calculated average mouse displacement amplitude is 7.80, the peak mouse displacement amplitude is 11.20, the left mouse button is pressed once at 10050 milliseconds, which corresponds to 0.25 after normalization, the keyboard key combination mode is identified as C003, and the keyboard event rate is 28 times / second. After processing with the same normalization parameters as in the pre-construction stage, the real-time input feature vector is obtained [0.29, 0.55, 0.25, 0.85, 0.90, 0.14, 0.20, 0.76].

[0079] Next, the real-time input feature vector is matched with the prior input fingerprint database in real time to determine the feedforward scheduling criterion corresponding to the current human body input class.

[0080] The real-time matching method involves calculating the Euclidean distance between the real-time input feature vector and the class center fingerprint feature vectors of each anatomy input class in the prior input fingerprint database. The class with the smallest distance, which is less than or equal to the fingerprint feature distance of that class, is taken as the matching result. If the smallest distance is greater than the corresponding fingerprint feature distance, the matching fails, and the default feedforward scheduling criterion is returned. If multiple classes simultaneously meet the distance criteria, the class with the smallest distance is taken as the matching result.

[0081] After a successful match, the corresponding feedforward scheduling criteria are obtained based on the matched human body input class. The feedforward scheduling criteria include at least: predicted audio category, confidence level, urgent item marker, and buffer pre-reduction instruction.

[0082] The predicted audio category is the audio output event category label associated with the matched human body input category in the prior input fingerprint database, including the highest priority class, high priority class, normal priority class, or low priority class. The confidence score is calculated based on the distance between the real-time input feature vector and the matching class center fingerprint feature vector. The smaller the distance, the higher the confidence score.

[0083] The confidence score can be calculated using the following formula: Confidence score equals 1 minus the Euclidean distance between the real-time input feature vector and the fingerprint feature vector at the class center, divided by the fingerprint feature distance. The result is limited to between 0 and 1. If the distance is 0, the confidence score is 1; if the distance equals the fingerprint feature distance, the confidence score is 0. When a match fails, the confidence score is set to 0. Both the Euclidean distance and the fingerprint feature distance are calculated in the same normalized feature space, using the same feature dimension order and the same distance metric, with consistent units, allowing for direct division.

[0084] The urgent message flag indicates whether the currently predicted audio category needs to be transmitted immediately with priority in the next scheduling cycle. The urgent message flag is set to 1 when the predicted audio category is the highest priority category and the confidence level is greater than or equal to a preset confidence threshold; otherwise, it is set to 0. The preset confidence threshold can be set to 0.70. To avoid frequent jumps in confidence level near the threshold, a hysteresis interval is set: the urgent message flag is set to 1 when the confidence level rises from low to high and exceeds the first threshold of 0.70; it is only set to 0 when the confidence level falls below the second threshold of 0.60. When the confidence level is between the two thresholds, the urgent message flag remains unchanged from its previous state.

[0085] The buffer pre-reduction command triggers the receiver buffer depth pre-reduction action. The reduction magnitude in the receiver buffer depth pre-reduction action is executed proportionally according to the confidence level. The normal buffer depth represents the amount of buffered data maintained by the system without pre-scheduling. The minimum safe buffer depth represents the minimum amount of buffered data that can guarantee continuous decoding output without interruption. The reduction magnitude is positively correlated with the confidence level, and the reduced buffer depth is not lower than the minimum safe buffer depth.

[0086] For example, in the above scenario, the Euclidean distance between the real-time input feature vector and the class center fingerprint feature vector of class number 1 in the prior input fingerprint database is 0.08. The fingerprint feature discrimination distance of class number 1 is 0.20. Since the distance is less than the discrimination distance, the match is successful. The category label associated with class number 1 is the highest priority class. The confidence score is calculated by subtracting 0.08 from 0.20, resulting in 0.60. Because the predicted audio category is the highest priority class, but the confidence score of 0.60 is less than the preset confidence threshold of 0.70, the urgent item flag is set to 0. The buffer pre-reduction instruction is not effective at this time. If the confidence score subsequently increases to 0.80, the urgent item flag is set to 1, the buffer pre-reduction instruction takes effect, and buffer pre-reduction is performed according to the confidence level proportion.

[0087] Furthermore, based on the feedforward scheduling criteria, the corresponding feedforward scheduling action is determined and a pre-scheduling flag is output.

[0088] In this step, based on the feedforward scheduling criterion, the corresponding feedforward scheduling action is determined and a pre-scheduling flag is output, including: Perform an audio scheduling priority pre-boost action: Based on the confidence level in the feedforward scheduling criterion, boost the scheduling priority of the current encoded audio frame from the default audio frame priority, wherein the boost magnitude is positively correlated with the confidence level; Perform a pre-reduction action for the receiver buffer depth: based on the confidence level in the feedforward scheduling criterion, reduce the receiver buffer depth from the normal buffer depth to the minimum safe buffer depth, wherein the reduction magnitude is positively correlated with the confidence level; The output includes a pre-scheduling flag containing the scheduling priority and the buffer depth.

[0089] Specifically, based on the feedforward scheduling criteria, the corresponding feedforward scheduling action is determined and a pre-scheduling flag is output. The feedforward scheduling actions include audio scheduling priority pre-boosting and receiver buffer depth pre-reduction.

[0090] The audio scheduling priority pre-boosting action is executed as follows: based on the confidence level in the feedforward scheduling criterion, the scheduling priority of the current encoded audio frame is boosted from the default audio frame priority. The default audio frame priority represents the baseline priority of the encoded audio frame in the scheduling queue before feedforward pre-scheduling. The boost magnitude is positively correlated with the confidence level; the higher the confidence level, the greater the priority boost.

[0091] Specifically, the priority increase can be quantified according to preset priority levels. For example, audio frame scheduling priorities can be divided into 8 levels, from P0 to P7, where P0 is the lowest priority and P7 is the highest priority. The default audio frame priority is P3. Confidence levels are divided into ranges from 0 to 1. When the confidence level is greater than 0 and less than 0.3, the priority increases by 1 level; when the confidence level is greater than or equal to 0.3 and less than 0.6, the priority increases by 2 levels; when the confidence level is greater than or equal to 0.6 and less than 0.8, the priority increases by 3 levels; and when the confidence level is greater than or equal to 0.8, the priority increases by 4 levels. The highest priority after the increase cannot exceed P7.

[0092] The pre-reduction of the receiver buffer depth is performed as follows: based on the confidence level in the feedforward scheduling criterion, the receiver buffer depth is reduced from the normal buffer depth towards the minimum safe buffer depth. The normal buffer depth represents the amount of buffered data maintained by the system without pre-scheduling. The minimum safe buffer depth represents the minimum amount of buffered data that can guarantee continuous decoding output without interruption. The reduction magnitude is positively correlated with the confidence level; the higher the confidence level, the greater the buffer depth reduction, but the reduced buffer depth is not lower than the minimum safe buffer depth.

[0093] Specifically, the buffer depth reduction is calculated according to a preset ratio, based on the normal buffer depth. For example, the normal buffer depth is set to 20 milliseconds, and the minimum safe buffer depth is set to 5 milliseconds. When the confidence level is greater than 0 and less than 0.3, the buffer depth is reduced by 10%; when it is greater than or equal to 0.3 and less than 0.6, it is reduced by 20%; when it is greater than or equal to 0.6 and less than 0.8, it is reduced by 30%; and when it is greater than or equal to 0.8, it is reduced by 40%. The reduced buffer depth is calculated by multiplying the normal buffer depth by 1 and subtracting the reduction ratio. When the calculated result is less than the minimum safe buffer depth, the minimum safe buffer depth is used.

[0094] The output includes a pre-scheduled flag containing the scheduling priority and buffer depth. The pre-scheduled flag also includes the effective time and duration. The effective time indicates the point in time when the flag begins to apply to encoded audio frames, which can be obtained by adding a fixed processing cycle to the pre-scheduled flag generation time. The duration indicates the number of encoded audio frames or the length of time the flag applies consecutively. When the duration ends and no new pre-scheduled flag is received, the system reverts to the default audio frame priority and normal buffer depth.

[0095] For example, the predicted audio category in the current feedforward scheduling criterion is the highest priority class with a confidence level of 0.60. The default audio frame priority is P3. A confidence level of 0.60 falls within the range of 0.6 or higher and less than 0.8, increasing the scheduling priority by 3 levels, from P3 to P6. The normal buffer depth is 20 milliseconds; after a 30% reduction, it becomes 14 milliseconds, which is 5 milliseconds higher than the minimum safe buffer depth. Therefore, the buffer depth is pre-reduced to 14 milliseconds. The centralized scheduling unit outputs a pre-scheduling flag, including the scheduling priority P6, the buffer depth of 14 milliseconds, the effective time, and the duration.

[0096] Finally, the encoded audio frame sequence is associated with pre-scheduling markers, and feedforward audio pre-scheduling is performed on the associated encoded audio frames. During association, the frame number of the most recently generated encoded audio frame corresponding to the time the pre-scheduling marker is generated is recorded, and this frame number is used as the starting frame. From the starting frame until the most recently generated frame corresponding to the next pre-scheduling marker generation time, the scope of the pre-scheduling marker is within its effective range. If the pre-scheduling marker is generated within a fixed scheduling period, its effective range is the encoded audio frames generated within that scheduling period.

[0097] During the feedforward audio pre-scheduling process, the centralized scheduling unit adjusts the associated encoded audio frames from the default priority queue to the target priority queue according to the scheduling priority in the pre-scheduling flag; at the same time, it sends a buffer depth adjustment instruction to the receiving end according to the buffer depth in the pre-scheduling flag.

[0098] Buffer depth adjustment commands can be transmitted via the wireless control channel between the centralized scheduling unit and the audio output device, or they can be transmitted using the control field in the downlink audio transmission link. When the control channel and audio data transmission share the same wireless link, the audio data frame and the control command frame are distinguished by the frame type field. After receiving the control command frame, the receiving end parses the buffer depth field and adjusts the decoding buffer.

[0099] For example, the current encoded audio frame sequence has been generated up to frame numbers F102 to F112. The centralized scheduling unit associates the encoded audio frames with frame numbers F102 to F112 with a pre-scheduling flag containing scheduling priority P6 and a buffer depth of 14 milliseconds. During execution, the encoded audio frames with frame numbers F102 to F112 are moved from the queue corresponding to the default priority P3 to the transmission queue corresponding to P6, and a buffer depth adjustment command is sent to the wireless headset receiver. The receiver adjusts the buffer depth from 20 milliseconds to 14 milliseconds, controlling the amount of data in the decoding buffer according to 14 milliseconds. In this way, the encoded audio frame sequence is associated with the feedforward scheduling result, and the feedforward audio pre-scheduling is completed.

[0100] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0101] In summary, this step can adjust the scheduling priority of encoded audio frames and the buffer depth at the receiving end in advance before the audio output event occurs, thereby reducing the feedforward response latency and buffer waiting time in multi-device collaborative scenarios.

[0102] S300: Based on the feedforward audio pre-scheduling, and based on the original data of the multiple devices, the audio output device and the audio input device are jointly scheduled for uplink and downlink, driving the audio output device and the audio input device to perform wireless audio transmission.

[0103] like Figure 2 As shown, this step, based on feedforward audio pre-scheduling, determines the microphone status through dual-threshold energy detection, and switches uplink and downlink time slot allocation between silent reclamation mode and contention scheduling mode accordingly. At the same time, it utilizes cross-directional time slots to preemptively transmit urgent encoded audio frames.

[0104] Step S300 in the method provided by the present invention includes: Based on the uplink microphone data stream in the raw data from the multiple devices, perform dual-threshold energy detection to determine the microphone status of the audio input device: Calculate the short-time frame energy of the current frame. When the short-time frame energy is greater than a first preset threshold, it is determined to be in an active state. When the short-time frame energy is less than a second preset threshold, it is determined to be in a silent state. When the short-time frame energy is between the first preset threshold and the second preset threshold, the previous state remains unchanged. Wherein, the first preset threshold is greater than the second preset threshold. Uplink and downlink time slots are allocated based on the microphone status: When in silent mode, it enters silent recycling mode, reduces the uplink time slots to the minimum guaranteed time slots, and allocates all the recycled time slots to the downlink audio channel. When in an active state, it enters a contention scheduling mode, calculates the number of uplink time slots required based on the encoding bitrate of the audio input device, and allocates the remaining time slots to the downlink audio channel. Based on the uplink and downlink time slot allocation results and the pre-scheduling flag, the encoded audio frame sequence is uniformly wirelessly scheduled and transmitted, driving the audio output device and the audio input device to perform wireless audio transmission.

[0105] Specifically, firstly, based on the uplink microphone data stream from the raw data of multiple devices, dual-threshold energy detection is performed to determine the microphone status of the audio input device. Dual-threshold energy detection is performed on a frame-by-frame basis. Each frame corresponds to a fixed-length sampled data segment in the uplink microphone data stream. The frame length can be determined based on the uplink audio encoding frame length or scheduling period, for example, set to 10 milliseconds, 20 milliseconds, or the same as the uplink encoding frame length.

[0106] In dual-threshold energy detection, the short-time frame energy of the current frame is calculated. Short-time frame energy represents the temporal energy of the microphone sampled signal within that frame. It is calculated by summing the squared amplitude values ​​of each sample point within the frame and then dividing by the number of sample points within the frame. The amplitude value can be either a PCM quantized value or a normalized floating-point value. If PCM quantization is used, the amplitude value is taken as a signed integer corresponding to the sampling bit depth or an unsigned integer after offset, and the energy unit is the square of the quantized value. If normalized floating-point values ​​are used, the amplitude value ranges from -1 to 1, and the energy unit is the square of the normalized amplitude.

[0107] The first and second preset thresholds use the same units as the energy calculation. If the microphone signal is a multi-channel signal, the short-time frame energy can be calculated for each channel separately, and then the average or maximum value of the channel energy can be taken as the short-time frame energy of the current frame. When each channel is used to enhance the speech signal in the same direction and the noise between channels is uncorrelated, the average value is taken; when each channel faces different sound source directions or there is a possibility of single-channel failure, the maximum value is taken to avoid missing active states.

[0108] The first and second preset thresholds are used to distinguish between active and silent states. The first preset threshold is greater than the second preset threshold. The first preset threshold is used to determine the transition from a silent or transitional state to an active state, while the second preset threshold is used to determine the transition from an active state to a silent state. The thresholds can be determined based on the ambient noise level, microphone sensitivity, and historical energy statistics.

[0109] For example, during the offline or initialization phase, a background noise signal without voice input is acquired, the average energy of the background noise is calculated, and the standard deviation of the background noise energy is statistically analyzed. A first preset threshold can be set to the average background noise energy plus a first multiple of the standard deviation, and a second preset threshold can be set to the average background noise energy plus a second multiple of the standard deviation, where the first multiple is greater than the second multiple. For example, the first preset threshold is set to the average background noise energy plus four times the standard deviation, and the second preset threshold is set to the average background noise energy plus two times the standard deviation.

[0110] The aforementioned thresholds can also be directly set to a fixed energy value. If normalized floating-point amplitude is used, with a full-scale amplitude of 1.0, -40dBFS corresponds to a normalized amplitude of 10 to the power of -40 / 20, which is 0.01, corresponding to an energy of 0.0001; -50dBFS corresponds to a normalized amplitude of 10 to the power of -50 / 20, approximately 0.00316, corresponding to an energy of approximately 0.00001. The first preset threshold can be set to the energy corresponding to -40dBFS, and the second preset threshold can be set to the energy corresponding to -50dBFS. In actual implementation, the dBFS value is converted to units consistent with the energy calculation based on the mapping relationship between sampling bit depth and full-scale.

[0111] The determination rule is as follows: when the short-time frame energy is greater than a first preset threshold, it is determined to be in an active state; when the short-time frame energy is less than a second preset threshold, it is determined to be in a silent state; when the short-time frame energy is between the first and second preset thresholds, the previous state remains unchanged. Maintaining the previous state prevents frequent state switching when the microphone signal energy fluctuates near the threshold.

[0112] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, a centralized scheduling unit performs energy detection on the uplink microphone data stream of the wireless microphone. The current frame length is 10 milliseconds, the sampling rate is 16kHz, corresponding to 160 sampling points. The microphone signal is represented as normalized floating-point amplitude. During the initialization phase, the average background noise energy is measured to be 0.0004, with a standard deviation of 0.0001. The first preset threshold is set to 0.0008, and the second preset threshold is set to 0.0006. The average background noise energy of 0.0004 corresponds to approximately -34 dBFS, the first preset threshold of 0.0008 corresponds to approximately -31 dBFS, and the second preset threshold of 0.0006 corresponds to approximately -32 dBFS. The sum of the squares of the amplitudes of each sampling point in the current frame, divided by 160, yields a short-time frame energy of 0.0012. Since 0.0012 is greater than the first preset threshold of 0.0008, the current frame is determined to be in an active state. The energy of the next short frame is 0.0007, which is between 0.0006 and 0.0008, and the active state remains unchanged. The energy of the next short frame after that is 0.0005, which is less than the second preset threshold of 0.0006, and is determined to be in a silent state.

[0113] Furthermore, uplink and downlink time slot allocation is performed based on microphone status. When time-division multiplexing is used for wireless transmission, the total number of time slots within a scheduling cycle is fixed, determined by the wireless frame structure, transmission bandwidth, and scheduling cycle length. Uplink and downlink time slot allocation is used to determine the number of time slots occupied by each uplink and downlink time slot within each scheduling cycle.

[0114] The number of regular uplink time slots can be predetermined based on the average coding bitrate and total number of time slots of the audio input device under typical active conditions. During the initialization phase, the number of uplink time slots required is calculated based on the default coding bitrate of the audio input device, the scheduling cycle length, and the amount of data carried by a single time slot, with a certain margin reserved, to obtain the number of regular uplink time slots.

[0115] For example, the default encoding bitrate is 32kbps, the scheduling period is 10 milliseconds, the data volume carried by a single time slot is 80 bits, the uplink data volume is 320 bits, the required number of time slots is 4, plus 2 additional time slots, and the normal number of uplink time slots is set to 6.

[0116] The amount of data that a single timeslot can carry is equal to the wireless physical layer transmission rate multiplied by the single timeslot duration, minus the physical layer overhead, resulting in the effective payload bits. For example, if the wireless transmission rate is 1 Mbps and the single timeslot duration is 100 microseconds, the original number of bits that can be carried is 100 bits; after deducting physical layer overhead such as preamble, checksum, and inter-frame interval, the effective payload bits are 80 bits. In actual implementation, the effective payload bits are determined according to the physical layer frame format.

[0117] When the microphone is muted, it enters a muted recovery mode. In muted recovery mode, the uplink time slots are reduced to the minimum guaranteed time slots, and all recovered time slots are allocated to the downlink audio channels. The minimum guaranteed time slots are used to maintain basic connectivity of the audio input devices and necessary control information transmission, such as for uplink signaling, device status reporting, or low-rate background noise transmission.

[0118] The minimum guaranteed number of time slots can be determined based on the amount of uplink control information and the radio frame structure. For example, if the total number of time slots in each scheduling cycle is 20, the minimum guaranteed number of time slots is set to 2. In silent mode, the number of uplink time slots is reduced from the normal number of uplink time slots to 2, and the number of time slots reclaimed is calculated as the difference between the normal number of uplink time slots and the minimum guaranteed number of time slots, and all of them are allocated to the downlink audio channel.

[0119] In silent recovery mode, in addition to transmitting uplink control information, a small amount of downsampled or low-rate uplink microphone data is also transmitted in the minimum guaranteed time slot. This data is used to continuously calculate short-frame energy and maintain microphone status detection. For example, the uplink microphone data transmitted in the minimum guaranteed time slot may use an 8kHz downsampling rate or transmit only a portion of the sample points per frame. The centralized scheduling unit continues to perform dual-threshold energy detection based on this data.

[0120] When the microphone is active, the system enters contention scheduling mode. In contention scheduling mode, the number of uplink time slots required is calculated based on the audio input device's encoding bitrate, and the remaining time slots are allocated to the downlink audio channels. The audio input device's encoding bitrate represents the number of bits per second generated by the encoded uplink microphone data. The encoding bitrate can be determined by the uplink encoding parameters currently used by the audio input device.

[0121] The required number of uplink time slots is calculated as follows: Obtain the amount of uplink coded data to be transmitted within a scheduling cycle, which is equal to the coding rate multiplied by the scheduling cycle length; then divide by the amount of data that a single time slot can carry to obtain the required number of time slots. Round the result up and add the additional time slots used for uplink control information or guard intervals. The additional time slots are calculated based on the fixed amount of uplink control information and the amount of data carried per time slot. Uplink control information includes device status reporting, link quality feedback, and time synchronization information.

[0122] For example, uplink control information requires approximately 40 bits in one scheduling cycle, and a single timeslot carries 80 bits, thus requiring at least one additional timeslot. If the amount of control information increases or the amount of data carried in a single timeslot decreases, the number of additional timeslots will increase accordingly. In actual implementation, the number of additional timeslots can be fixed at 1, or it can be dynamically calculated based on the amount of control information data.

[0123] For example, in the scenario above, each scheduling cycle is 10 milliseconds, the total number of time slots is 20, the number of regular uplink time slots is 6, the number of regular downlink time slots is 14, and the minimum guaranteed number of time slots is 2. When the current microphone state is silent, it enters a silent recycling mode, reducing the number of uplink time slots from 6 to 2, recycling 4 time slots and allocating them to the downlink audio channel, increasing the number of downlink time slots from 14 to 18. Of the 2 uplink time slots, one is used to transmit uplink control information, and the other is used to transmit downsampled uplink microphone data.

[0124] When the microphone is currently active, it enters contention scheduling mode. The current uplink coding rate is 24kbps, and the scheduling period is 10 milliseconds. Therefore, the uplink coding data volume in one scheduling period is 24kbps multiplied by 0.01 seconds, which is 240 bits. Since a single time slot can carry 80 bits of data, the required number of uplink time slots is 240 divided by 80, resulting in 3 time slots. Adding one additional time slot for uplink control information, the total number of uplink time slots required is 4. Subtracting the 4 required uplink time slots from the total of 20 time slots leaves 16 time slots allocated to the downlink audio channel.

[0125] Microphone status determination is completed within the current scheduling cycle, and the new uplink and downlink time slot allocation results take effect from the next scheduling cycle. The centralized scheduling unit sends the updated time slot configuration to the audio output and audio input devices before the end of the current scheduling cycle, and the new time slot allocation is executed from the next scheduling cycle.

[0126] Finally, based on the uplink and downlink time slot allocation results and pre-scheduling markers, the encoded audio frame sequence is uniformly wirelessly scheduled and transmitted to drive the audio output device and audio input device to perform wireless audio transmission.

[0127] Unified wireless scheduling and transmission are executed by a centralized scheduling unit. The centralized scheduling unit determines the time positions of the uplink and downlink time slots within the current scheduling period based on the uplink and downlink time slot allocation results. Simultaneously, it arranges the transmission order of the coded audio frame sequence according to the scheduling priority and buffer depth information in the pre-scheduling markers. In the downlink time slots, coded audio frames with higher scheduling priorities are transmitted first; regular priority and low priority coded audio frames are transmitted in the remaining downlink time slots.

[0128] The priority transmission rule can be fixed as follows: first, transmit the frame with the highest scheduling priority, then transmit in descending order of priority, and within the same priority, transmit in ascending order of frame number. When the remaining downlink time slots are insufficient to transmit all low-priority encoded audio frames, transmit them sequentially in ascending order of frame number. Untransmitted encoded audio frames are temporarily stored until the next scheduling cycle for transmission, or low-priority frames are discarded or delayed according to the buffer depth instruction. In the uplink time slots, the audio input device transmits uplink microphone encoded data within the corresponding time slot.

[0129] In silent reclamation mode, due to the limited number of uplink time slots, uplink microphone data is transmitted only with minimum rate control information, some downsampled background noise data, or low-rate uplink microphone data. The reclaimed downlink time slots are used to transmit more coded audio frames to improve the continuity and low-latency performance of downlink audio transmission. In contention-based scheduling mode, the number of uplink time slots is dynamically determined based on the coding rate, and the downlink time slots are adjusted accordingly, allowing uplink voice and downlink audio to share radio resources according to actual needs.

[0130] For example, in the scenario described above, the microphone is currently in a silent state, and the uplink and downlink time slot allocation is 2 uplink time slots and 18 downlink time slots. In the current encoded audio frame sequence, frames F102 to F112 have pre-scheduled markers and a scheduling priority of P6. The centralized scheduling unit prioritizes sending frames F102 to F112 in the earlier downlink time slots within the 18 downlink time slots of the current scheduling period; the remaining unmarked or low-priority encoded audio frames are sent in order of their frame numbers in the remaining downlink time slots. The wireless microphone sends uplink control information and downsampled uplink microphone data in the two uplink time slots, respectively.

[0131] Once the microphone status switches to active, the status switch takes effect in the next scheduling cycle, and the uplink and downlink time slot allocation becomes 4 uplink time slots and 16 downlink time slots. The centralized scheduling unit transmits coded audio frames in the 16 downlink time slots, and the wireless microphone transmits uplink microphone coded data in the 4 uplink time slots. Through this method, uplink and downlink time slot allocation based on microphone status and unified wireless scheduling transmission are completed, driving the wireless headset and wireless microphone to perform wireless audio transmission.

[0132] Step S300 in the method provided by the present invention further includes: In the contention scheduling mode, when there is an urgent encoded audio frame indicated by the pre-scheduling flag in the encoded audio frame sequence, cross-directional time slot preemption is performed, and a preset number of time slots are temporarily preempted from the uplink time slots and allocated to the downlink audio channel. The cross-directional time slot preemption lasts for only one scheduling frame period. The state transition rule for time slot allocation between silent reclamation mode and contention scheduling mode is as follows: When transitioning from a silent state to an active state, time slot allocation switches from silent reclamation mode to contention scheduling mode; When transitioning from an active state to a silent state, time slot allocation switches from contention scheduling mode to silent reclamation mode; In the contention scheduling mode, after the urgent encoded audio frame has been sent, the cross-directional time slot preemption is terminated.

[0133] Specifically, in contention-based scheduling mode, when the microphone is active, the centralized scheduling unit performs radio resource scheduling according to the uplink and downlink time slot allocation results. The encoded audio frame sequence may contain urgent encoded audio frames indicated by pre-scheduling tags. Urgent encoded audio frames represent encoded audio frames that require immediate priority transmission, and their urgent tag in the pre-scheduling tag is in a valid state.

[0134] At the beginning of each scheduling cycle, the centralized scheduling unit checks whether there are any urgent encoded audio frames in the sequence of encoded audio frames to be sent. The checking method is as follows: read the pre-scheduling flag associated with each encoded audio frame and determine whether the urgent flag is set to 1. If at least one urgent encoded audio frame exists, cross-directional time slot preemption is triggered.

[0135] The total data volume of urgent encoded audio frames is calculated based on all encoded audio frames marked as urgent (1) in the queue to be sent at the start of the current scheduling frame period. If cross-directional time slot preemption lasts only one scheduling frame period, the total data volume of urgent frames to be sent is recalculated in the next scheduling frame period, and a new number of preemption time slots is calculated.

[0136] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, the microphone is currently active, and the uplink and downlink time slot allocation is 4 uplink time slots and 16 downlink time slots. At the start of the current scheduling cycle, the centralized scheduling unit checks the sequence of encoded audio frames to be transmitted. It finds that the urgent component flag is set to 1 in the pre-scheduled flags associated with frame numbers F120 to F122, indicating the presence of an urgent encoded audio frame and triggering cross-directional time slot preemption.

[0137] Secondly, when there is an urgent encoded audio frame indicated by a pre-scheduling flag in the encoded audio frame sequence, cross-directional time slot preemption is performed, temporarily preempting a preset number of time slots from the uplink time slots and allocating them to the downlink audio channel.

[0138] The preset quantity represents the maximum number of uplink time slots that can be occupied during each cross-directional time slot preemption. The preset quantity can be determined based on the data volume of the urgent encoded audio frame and the data volume that a single time slot can carry. The calculation method is as follows: the total data volume of the urgent encoded audio frame is divided by the data volume that a single time slot can carry, the result is rounded up, and it is limited to not exceeding the number of available preempted time slots after subtracting the minimum guaranteed time slot number from the current number of uplink time slots.

[0139] In contention-based scheduling mode, the minimum guaranteed time slot number can be the same as in silent reclamation mode, or it can be set separately. The minimum guaranteed time slot number in contention-based scheduling mode is used to guarantee the minimum uplink resources for uplink control information and microphone status detection, and can be set to a fixed value, such as 2 time slots. If the current number of uplink time slots is less than or equal to the minimum guaranteed time slot number, cross-directional time slot preemption will not be performed. The preset number can also be directly set to a fixed value, such as 1 or 2 time slots.

[0140] Cross-directional time slot preemption lasts for only one scheduling frame period. One scheduling frame period corresponds to a complete uplink / downlink time slot allocation period, for example, 10 milliseconds. Cross-directional time slot preemption takes effect within the current scheduling frame period. At the start of the next scheduling frame period, the uplink / downlink time slots revert to their original allocation results. If there are still urgent encoded audio frames in the next scheduling frame period, cross-directional time slot preemption is retried.

[0141] Cross-directional time slot preemption does not persist across cycles. At the start of each scheduling frame cycle, the centralized scheduling unit re-checks whether there are coded audio frames marked as urgent (1) in the transmission queue. If they exist, cross-directional time slot preemption is re-executed; otherwise, it is not. When urgent frames appear in multiple consecutive scheduling frame cycles, cross-directional time slot preemption is re-triggered and takes effect cycle by cycle.

[0142] During cross-directional time slot preemption, the centralized scheduling unit selects a preset number of time slots from the uplink time slots of the current scheduling frame period, changes the direction of the selected time slots from uplink to downlink, and allocates them to the downlink audio channel. The preempted uplink time slots are preferentially selected for uplink audio data, excluding time slots used for uplink control information. If uplink control information occupies a fixed time slot position, cross-directional time slot preemption avoids that time slot. Within the uplink audio data time slots, a preset number of time slots are selected in reverse order to minimize the impact on continuous transmission within uplink microphone data frames.

[0143] After being preempted, the audio input device does not transmit uplink data in the corresponding time slot, and the centralized scheduling unit transmits the urgent encoded audio frame in the corresponding time slot. The uplink microphone encoded data that was originally scheduled to be transmitted in the preempted time slot is temporarily stored in the uplink transmission buffer of the audio input device and will continue to be transmitted in the next scheduling frame period or subsequent uplink time slots. If the uplink transmission buffer exceeds the preset buffer limit, the earliest uplink microphone encoded data is discarded in chronological order to ensure that the uplink transmission delay does not increase indefinitely.

[0144] For example, in the scenario above, the current scheduling frame period has a total of 20 time slots: 4 uplink time slots and 16 downlink time slots. The minimum guaranteed time slots are 2, and the available preemptible time slots are 4 uplink time slots minus the minimum guaranteed time slots of 2, which is 2. The total data volume of the urgent encoded audio frames F120 to F122 is 240 bits, and the data volume of a single time slot is 80 bits. The required number of preemptible time slots is 240 divided by 80, which is 3 time slots. Since the required number of preemptible time slots (3) is greater than the available number of preemptible time slots (2), this cross-directional time slot preemption can preempt a maximum of 2 uplink time slots. The centralized scheduling unit selects the last 2 uplink time slots from the 4 uplink time slots in the current scheduling frame period, changes their direction to downlink, and temporarily increases the number of downlink time slots from 16 to 18. The audio input device does not send uplink data in the two uplink time slots that are originally scheduled to be last. The centralized scheduling unit sends part of the urgent encoded audio frames in the frame sequence numbers F120 to F122 at this position. The remaining part continues to be sent or continues to preempt time slots in the next scheduling frame cycle.

[0145] Furthermore, the state transition rules for time slot allocation between silent reclamation mode and contention scheduling mode are as follows: when transitioning from silent state to active state, time slot allocation switches from silent reclamation mode to contention scheduling mode; when transitioning from active state to silent state, time slot allocation switches from contention scheduling mode to silent reclamation mode.

[0146] The state transition is driven by the dual-threshold energy detection results. When the current microphone state is silent, and the short-time frame energy of a certain frame is greater than the first preset threshold, the microphone state transitions from silent to active. The centralized scheduling unit switches the time slot allocation from silent reclamation mode to contention scheduling mode in the next scheduling frame period. In contention scheduling mode, the number of uplink time slots is recalculated based on the audio input device's encoding bitrate, and the remaining time slots are allocated to the downlink audio channels.

[0147] When the microphone is currently active and the short-time frame energy of a certain frame is less than the second preset threshold, the microphone state transitions from active to silent. In the next scheduling frame period, the centralized scheduling unit switches the time slot allocation from contention scheduling mode to silent reclamation mode. In silent reclamation mode, uplink time slots are reduced to the minimum guaranteed number of time slots, and all reclaimed time slots are allocated to downlink audio channels.

[0148] During state transition, the time slot allocation results are updated within the current scheduling frame period and take effect from the next scheduling frame period. The centralized scheduling unit sends the updated time slot configuration to the audio output and audio input devices before the end of the current scheduling frame period.

[0149] When the microphone status transitions from active to silent, if cross-directional time slot preemption has already been triggered within the current scheduling frame period, the current scheduling frame period will still execute according to the triggered preemption result; after the next scheduling frame period switches to silent reclamation mode, cross-directional time slot preemption in contention scheduling mode will no longer be executed. If the urgent encoded audio frame has not yet been completely transmitted, it will continue to be transmitted in silent reclamation mode according to the downlink time slot allocation result of silent reclamation mode.

[0150] For example, in the scenario described above, the microphone is currently active, and time slot allocation is in contention scheduling mode. If the short-time frame energy of a certain frame is less than a second preset threshold, the microphone is determined to be in a silent state. Before the end of the current scheduling frame period, the centralized scheduling unit sends the updated time slot configuration to the wireless headset and wireless microphone. At the start of the next scheduling frame period, time slot allocation switches to silent reclamation mode, reducing the uplink time slots from 4 to 2 and increasing the downlink time slots from 16 to 18.

[0151] If, in silent recovery mode, the short-time frame energy of a certain frame exceeds a first preset threshold, the microphone status is determined to be active. The centralized scheduling unit sends the updated time slot configuration before the end of the current scheduling frame period. At the start of the next scheduling frame period, time slot allocation switches to contention scheduling mode. At this time, the required number of uplink time slots is recalculated based on the current uplink coding rate, resulting in a new number of uplink and downlink time slots. Assuming the current uplink coding rate remains 24kbps, the required number of uplink time slots remains 4, and the number of downlink time slots reverts to 16.

[0152] Finally, in contention-based scheduling mode, after all urgent encoded audio frames have been sent, cross-directional time slot preemption ceases. During the transmission of urgent encoded audio frames, the centralized scheduling unit continuously checks the queue to be sent to see if there are still encoded audio frames marked as urgent (1). At the end of each scheduling frame period, the centralized scheduling unit checks the queue to be sent; if there are no encoded audio frames marked as urgent (1), cross-directional time slot preemption ceases; if there are still urgent encoded audio frames, cross-directional time slot preemption is retried in the next scheduling frame period.

[0153] Specifically, when all available preemptible time slots in the current scheduling frame period have been used to send urgent coded audio frames, or when the remaining downlink time slots are insufficient to carry a complete urgent coded audio frame, urgent coded audio frames will no longer be sent in the current scheduling frame period, and the unsent urgent coded audio frames will be processed in the next scheduling frame period.

[0154] When exiting cross-directional time slot preemption, the next scheduling frame period will no longer preempt time slots from the uplink time slots, and the uplink and downlink time slots will revert to the normal allocation result under contention scheduling mode. The number of uplink time slots will revert to the number calculated based on the coding rate, and the number of downlink time slots will revert to the remaining number after subtracting the number of uplink time slots from the total number of time slots.

[0155] For example, in the scenario above, frame numbers F120 to F122 are urgent encoded audio frames. After cross-directional time slot preemption in the current scheduling frame cycle, frame numbers F120 and F121 have been sent, while frame number F122 has not been sent due to insufficient preempted time slots. At the start of the next scheduling frame cycle, the centralized scheduling unit detects that frame number F122, marked as urgent (1), still exists in the queue to be sent, and therefore triggers cross-directional time slot preemption again. In this scheduling frame cycle, frame number F122 is sent. At the start of the next scheduling frame cycle, there are no coded audio frames marked as urgent (1) in the queue to be sent, the centralized scheduling unit exits cross-directional time slot preemption, and the uplink and downlink time slots are restored to 4 uplink time slots and 16 downlink time slots, and the audio input device resumes normal uplink transmission.

[0156] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0157] In summary, this step can improve the time slot utilization of downlink audio transmission while ensuring the uplink voice transmission requirements, reduce the waiting time of urgent audio frames, and thus improve the overall response speed and resource utilization efficiency of multi-device wireless audio transmission.

[0158] The method provided by this invention further includes: Set a predicted expiration time, wherein the predicted expiration time is the sum of the empirical audio arrival time corresponding to the feedforward scheduling criterion and the preset safety margin; If no corresponding encoded audio frame is detected arriving at the wireless scheduling transmitter after the prediction expiration time, the current prediction is marked as a miss, the executed feedforward scheduling action is canceled, and the receiver buffer depth is driven to be restored to the normal buffer depth in an exponential decay mode. The prediction hit rate is continuously recorded, and the confidence threshold in the feedforward scheduling criterion is dynamically adjusted based on the prediction hit rate.

[0159] Specifically, the first step is to set a predicted expiration time for the feedforward scheduling criterion. The predicted expiration time is the sum of the empirical audio arrival time corresponding to the feedforward scheduling criterion and the preset safety margin.

[0160] The empirical audio arrival time corresponding to the feedforward scheduling criterion represents the typical or average time when the encoded audio frame arrives at the wireless scheduling transmitter when it matches the human body input class corresponding to the feedforward scheduling criterion during the construction of historical statistics or prior input fingerprint database.

[0161] The empirical audio arrival time can be obtained during the pre-construction phase of the prior input fingerprint database by statistically analyzing the arrival times of audio output events in the calibration samples corresponding to each human body input class. Specifically, for each human body input class, the time interval from the start time of the sliding window to the arrival of the corresponding coded audio frame at the wireless scheduling transmitter is obtained from all calibration samples within that cluster, and the average of these time intervals is calculated as the empirical audio arrival time corresponding to that human body input class.

[0162] The preset safety margin is used to absorb wireless link jitter, encoding time fluctuations, and scheduling processing time variations. The preset safety margin can be set to a fixed time length, such as 5 milliseconds, 10 milliseconds, or 20 milliseconds. It can also be set based on the standard deviation of historical arrival times, for example, set to 2 or 3 times the standard deviation. The predicted expiration time is used to determine whether the feedforward scheduling criterion is valid. If the encoded audio frame has not arrived after this time, the feedforward scheduling criterion is considered to have failed.

[0163] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, the currently matched human body input class is class number 1, and the corresponding empirical audio arrival time is 30 milliseconds. This empirical value is obtained during the pre-construction phase of the prior input fingerprint database, statistically analyzing all calibrated samples of class number 1: the average time interval from the start of the sliding window to the arrival of the encoded audio frame at the wireless scheduling transmitter is 30 milliseconds. A preset safety margin is set to 10 milliseconds. The predicted expiration time is 30 milliseconds plus 10 milliseconds, i.e., 40 milliseconds. The predicted expiration time is based on the current sliding window start time. The empirical audio arrival time is statistically analyzed during the pre-construction phase based on the sliding window start time, and the predicted expiration time is also based on the sliding window start time.

[0164] Secondly, if no corresponding encoded audio frame is detected arriving at the wireless scheduling transmitter after the prediction expiration time, the current prediction is marked as a miss, the executed feedforward scheduling action is canceled, and the receiver buffer depth is driven to be restored to the normal buffer depth in an exponential decay mode.

[0165] The corresponding encoded audio frame refers to the encoded audio frame that is expected to arrive at the wireless scheduling transmitter before the predicted expiration time after the feedforward scheduling action is triggered by the current feedforward scheduling criterion. The determination method is as follows: when the predicted expiration time arrives, check whether the wireless scheduling transmitter has received an encoded audio frame with the corresponding pre-scheduling tag or associated with the current feedforward scheduling criterion. If not received, it is considered a miss. A miss indicates that although the feedforward scheduling criterion has been generated, the actual encoded audio frame has not arrived as expected. Continuing to perform priority promotion or buffer depth reduction may have no practical effect and may even lead to resource waste.

[0166] The cancellation of executed feedforward scheduling actions includes: restoring the increased scheduling priority to the default audio frame priority, stopping the receiver buffer depth pre-reduction action, and clearing the corresponding pre-scheduling flag. If the pre-scheduling flag has already been applied to some encoded audio frames, the feedforward scheduling action will no longer be executed for subsequent encoded audio frames from the time of cancellation; encoded audio frames that have already been sent will not be backtracked.

[0167] The receiver buffer depth is restored to the normal buffer depth using an exponential decay pattern. The exponential decay pattern means that the receiver buffer depth is not restored instantaneously, but rather gradually increases to the normal buffer depth using an exponential function. This exponential decay recovery reduces the impact of sudden changes in buffer depth on decoding continuity. The recovery formula can be expressed as: B(t) = B1 + (B2 - B1) × e^(-t / τ).

[0168] Where B(t) is the receiver buffer depth at time t during the recovery process, B1 is the normal buffer depth, B2 is the current buffer depth at the start of recovery, t is the time elapsed since the start of recovery, τ is the recovery time constant, and e is the natural constant. The recovery time constant τ can be set according to system stability requirements, for example, to 20 milliseconds, 50 milliseconds, or 100 milliseconds. The larger τ is, the slower the recovery, the stronger the protection of decoding continuity, but the longer the buffer resources are occupied; the smaller τ is, the faster the recovery, but it may cause short-term fluctuations in the buffer depth.

[0169] For example, in the above scenario, the predicted expiration time is 40 milliseconds. Starting from the beginning of the current sliding window, when 40 milliseconds have elapsed, the centralized scheduling unit checks the wireless scheduling transmitter and finds no coded audio frame associated with the current feedforward scheduling criterion. The centralized scheduling unit marks the current prediction as a miss. The current feedforward scheduling action has increased the coded audio frame scheduling priority from the default P3 to P6 and reduced the receiver buffer depth from the usual 20 milliseconds to 14 milliseconds. The centralized scheduling unit cancels the priority increase, and subsequent coded audio frames revert to the default priority P3; simultaneously, it stops pre-reducing the buffer depth. The receiver buffer depth recovers from 14 milliseconds to 20 milliseconds in an exponential decay mode. The recovery time constant τ is set to 50 milliseconds. After 50 milliseconds, the buffer depth recovers to approximately 20 milliseconds minus 6 milliseconds multiplied by e to the power of -1, which is approximately 17.8 milliseconds; after another 50 milliseconds, it recovers to approximately 19.4 milliseconds, gradually approaching 20 milliseconds.

[0170] Secondly, the prediction hit rate is continuously recorded. The prediction hit rate is used to measure the accuracy of the feedforward scheduling criteria. The prediction hit rate can be calculated over a sliding time window or a fixed statistical period.

[0171] The statistical period can be set to a fixed length, such as 10 seconds, 30 seconds, or 60 seconds. Within the statistical period, the total number of generation and hit counts of the feedforward scheduling criteria are recorded. The prediction hit rate equals the number of hits divided by the total number of generation. A hit is counted as long as the corresponding coded audio frame arrives at the wireless scheduling transmitter before or at the prediction expiration time; a miss is counted as arriving after the prediction expiration time or not arriving at all. The prediction hit rate can be statistically analyzed separately for each human input type, or it can be statistically analyzed uniformly for all feedforward scheduling criteria. Statistical analysis separately for each human input type allows for more accurate adjustment of the judgment thresholds for each type.

[0172] For example, in the scenario described above, the centralized scheduling unit uses a 30-second statistical period. In the most recent 30 seconds, the feedforward scheduling criterion was generated 200 times, with 170 instances detecting the arrival of the corresponding coded audio frame before the prediction expiration time, and 30 instances resulting in a miss. The prediction hit rate is 170 divided by 200, or 85%. The centralized scheduling unit can also record data separately by human anatomy input class. For example, class 1 was generated 50 times, with 45 hits and 5 misses, resulting in a prediction hit rate of 90% for class 1.

[0173] Finally, the confidence threshold in the feedforward scheduling criterion is dynamically adjusted based on the predicted hit rate. The confidence threshold is used to determine whether the urgent item flag is set to 1 and whether the feedforward scheduling action is executed. The goal of adjusting the threshold is to maintain the predicted hit rate within a preset target range.

[0174] The dynamic adjustment rules can be set as follows: When the prediction hit rate is higher than the upper limit of the preset target interval, the confidence threshold is increased to make the judgment conditions of the feedforward scheduling criteria more stringent, reducing the number of times low-confidence criteria trigger feedforward scheduling actions, thereby reducing the risk of misses; when the prediction hit rate is lower than the lower limit of the preset target interval, the confidence threshold is decreased to make the judgment conditions of the feedforward scheduling criteria more lenient, allowing more medium-confidence criteria to trigger feedforward scheduling actions, thereby improving scheduling response capabilities. The preset target interval can be set to 80% to 95%, or set according to the requirements of the actual scenario.

[0175] The confidence threshold adjustment step size can be set to a fixed value, such as 0.02 or 0.05 each time. Alternatively, it can be adjusted proportionally to the deviation between the predicted hit rate and the target interval. The adjusted confidence threshold is limited to the range of 0 to 1, and the first threshold is always greater than the second threshold. The confidence threshold includes the first and second thresholds mentioned above for urgent marking and buffer pre-reduction instructions. During dynamic adjustment, both thresholds can be adjusted simultaneously while maintaining a constant difference between them; alternatively, only the first threshold can be adjusted, with the second threshold adjusting accordingly by a fixed difference.

[0176] For example, in the scenario described above, the current prediction hit rate is 85%, and the preset target range is 80% to 95%. Since the hit rate is within the target range, the confidence threshold is not adjusted at this time. If the prediction hit rate rises to 97% in the next statistical period, exceeding the upper limit of the target range (95%), the centralized scheduling unit will increase the first threshold from 0.70 to 0.72 by 0.02, and the second threshold from 0.60 to 0.62. After the adjustment, criteria with a confidence level below 0.72 will no longer trigger urgent item marking, thereby reducing potential misses. If the prediction hit rate drops to 75% in subsequent statistical periods, below the lower limit of the target range (80%), the centralized scheduling unit will decrease the first threshold by 0.02 to 0.70, and the second threshold by 0.02 to 0.60. Through this method, the confidence threshold in the feedforward scheduling criteria is dynamically adjusted based on the prediction hit rate.

[0177] The method provided by this invention further includes: Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multiple devices to obtain an encoded audio frame sequence; The predicted audio category in the feedforward scheduling criterion is used as the first signal, the pre-scheduling flag is used as the second signal, and the microphone status of the audio input device is used as the third signal. The first signal, the second signal, and the third signal are synchronously input into the joint decision engine. The joint decision engine, based on a preset joint decision matrix, determines the joint scheduling strategy for the current frame according to the combined states of the first signal, the second signal, and the third signal, including: When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is silent, the optimal path scheduling strategy is determined, the downlink adopts the minimum coding frame length and the maximum available time slot, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is active, a priority path scheduling strategy is determined, the downlink adopts the minimum coding frame length and performs cross-directional time slot preemption, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is silent, a lenient path scheduling strategy is determined, the downlink adopts the standard coded frame length and the maximum available time slot, and the receiver buffer depth is a normal value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is active, a standard path scheduling strategy is determined, the downlink adopts the standard coded frame length and standard shared time slot, and the receiver buffer depth is a normal value. Based on the joint scheduling strategy, the encoded audio frame sequence is uniformly scheduled and transmitted wirelessly.

[0178] Specifically, the downlink audio data stream in the original data from multiple devices is first subjected to adaptive encoding processing to obtain the encoded audio frame sequence.

[0179] The adaptive coding process is consistent with the aforementioned feedforward audio pre-scheduling. The encoded frame length can be selected based on the current wireless link quality, buffer occupancy level, audio signal variation, or feedforward scheduling results. Shorter frame lengths result in lower coding latency but may decrease coding efficiency; longer frame lengths result in higher coding efficiency but increase single-frame transmission and coding time. The encoded frame length can be selected from a preset set of frame lengths, such as 2.5 milliseconds, 5 milliseconds, 10 milliseconds, and 20 milliseconds. After encoding, a sequence of encoded audio frames arranged by frame number is generated.

[0180] For example, in an audio interaction scenario involving wireless headphones, a wireless microphone, a wireless mouse, and a wireless keyboard, a centralized scheduling unit encodes the downlink audio data stream from the wireless headphones. Given the current good wireless link quality, an adaptive encoding frame length of 10 milliseconds is chosen. At a sampling rate of 48kHz, 10 milliseconds correspond to 480 sampling points. Each 480 sampling points is encoded into one encoded audio frame, generating a sequentially numbered sequence of encoded audio frames.

[0181] Secondly, the predicted audio category in the feedforward scheduling criterion is used as the first signal, the pre-scheduling flag is used as the second signal, and the microphone status of the audio input device is used as the third signal. The first, second, and third signals are synchronously input into the joint decision engine.

[0182] The first signal represents the predicted audio category matched in the feedforward scheduling criterion. The predicted audio category can be the highest priority class, high priority class, normal priority class, or low priority class. The second signal represents the pre-schedule flag associated with the current coded audio frame. The pre-schedule flag includes at least the scheduling priority, buffer depth, and whether the urgent flag is valid. The third signal represents the microphone status obtained by dual-threshold energy detection, which can be an active state or a silent state.

[0183] The three signals need to be input synchronously into the joint decision engine. Synchronous input means that within the same scheduling frame period, the centralized scheduling unit combines the latest first, second, and third signals according to the same time base to avoid decision-making errors caused by asynchronous timing of different signals.

[0184] For example, in the scenario described above, within the current scheduling frame period, the feedforward scheduling criterion matches the predicted audio category as the highest priority class, and the first signal value is set to the highest priority. In the current encoded audio frame sequence, the pre-scheduling markers associated with frame numbers F130 to F135 show a scheduling priority of P6, a buffer depth of 56 milliseconds, and an urgent marker of 1. The second signal value is set to both the pre-scheduling marker and the urgent marker. The current microphone state is silent, and the third signal value is set to silent. The centralized scheduling unit synchronously inputs the first, second, and third signals into the joint decision engine.

[0185] Furthermore, the joint decision engine determines the joint scheduling strategy for the current frame based on the preset joint decision matrix and the combined states of the first, second, and third signals.

[0186] The joint decision matrix can be divided according to the main combination states of the first and third signals. The second signal is used to further subdivide the strategy under the same combination of the first and third signals. When the first signal has the highest priority and the third signal is active, if the urgent item marker in the second signal is 1, the priority path scheduling strategy is executed and cross-directional time slot preemption is triggered; if the urgent item marker is 0, the normal priority path scheduling strategy is executed, and cross-directional time slot preemption is not triggered. The normal priority path scheduling strategy still uses the minimum coded frame length, the receiver buffer depth is reduced to the minimum safe buffer depth, and cross-directional time slot preemption is not executed. The scheduling priority and buffer depth in the second signal are used to execute specific parameter configurations after the strategy is determined. The joint decision matrix contains at least the following four combinations of strategies: When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is silent, the optimal path scheduling strategy is determined. Under the optimal path scheduling strategy, the downlink uses the minimum coded frame length and the maximum available time slot, and the receiver buffer depth is reduced to the minimum safe buffer depth.

[0187] The minimum encoded frame length represents the smallest frame length in the set of encoded frame lengths, such as 2.5 milliseconds or 5 milliseconds, used to reduce encoding latency. The maximum available time slot represents adjusting the number of time slots that can be allocated to the downlink audio channel within the current scheduling frame period to the maximum value. Since the microphone is in a silent state, the uplink time slots are in silent reclamation mode, and only the minimum guaranteed time slots are retained for the uplink. Therefore, the maximum available downlink time slot is the total number of time slots minus the minimum guaranteed time slots. When the joint decision engine determines the optimal path scheduling strategy, if the current microphone state is already silent, the time slot allocation result in silent reclamation mode is directly used; if the current microphone state is still active, the state transition rule is first followed to switch to silent reclamation mode in the next scheduling frame period, and then the maximum available time slot allocation is executed.

[0188] When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is active, a priority path scheduling strategy is determined. Under the priority path scheduling strategy, the downlink uses the minimum coded frame length and performs cross-directional time slot preemption, and the receiver buffer depth is reduced to the minimum safe buffer depth. The priority path scheduling strategy first calculates the number of uplink time slots required and the number of remaining downlink time slots according to the contention scheduling mode to obtain the basic time slot allocation result; then, cross-directional time slot preemption is performed on the basis of the basic time slot allocation result.

[0189] The main difference between the priority path scheduling strategy and the optimal path scheduling strategy lies in the microphone status: when the microphone is active and there is an actual voice transmission demand in the uplink, the uplink time slots cannot be directly reduced to the minimum guaranteed number of time slots. Downlink requires additional time slots to be temporarily acquired from the uplink time slots through cross-directional time slot preemption. The preset number of cross-directional time slot preemptions is determined according to the aforementioned rules.

[0190] When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is silent, a generous path scheduling strategy is determined. Under the generous path scheduling strategy, the downlink uses the standard coded frame length and the maximum available time slot, and the receiver buffer depth is a normal value. The standard coded frame length refers to the system's default coded frame length, such as 10 milliseconds or 20 milliseconds. The maximum available time slot is the same as in the optimal path scheduling strategy. Due to the microphone silence, uplink time slots are reclaimed and allocated to downlink, increasing the available downlink time slots. The receiver buffer depth remains at a normal buffer depth without pre-reduction.

[0191] When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is active, a standard path scheduling strategy is determined. Under the standard path scheduling strategy, the downlink uses the standard coded frame length and standard shared time slots, and the receiver buffer depth is a normal value. The standard shared time slot represents the uplink and downlink time slot allocation result calculated based on the uplink coding rate under contention scheduling mode. The number of uplink time slots is determined according to the coding rate, and the remaining time slots are used as downlink time slots. The receiver buffer depth remains at a normal buffer depth.

[0192] When the first signal is of a high priority class, it is processed as the highest priority class, but the reduction of the encoded frame length, buffer depth, or cross-directional time slot preemption conditions are appropriately relaxed; when the first signal is of a low priority class, it is processed as a regular priority class, and the downlink encoded frame length is allowed to remain or increase, and no additional preemption is performed on time slot allocation.

[0193] For example, in the scenario described above, the first signal has the highest priority, and the third signal is silent. The joint decision engine determines the optimal path scheduling strategy for the current frame based on the joint decision matrix. The downlink coded frame length is switched from 10 milliseconds to a minimum coded frame length of 2.5 milliseconds. Calculated at a 48kHz sampling rate, 2.5 milliseconds corresponds to 120 sampling points. The number of available downlink time slots is the total number of time slots (20) minus the minimum guaranteed time slots (2), which is 18. The receiver buffer depth is further reduced from 14 milliseconds to a minimum safe buffer depth of 5 milliseconds.

[0194] Finally, based on the joint scheduling strategy, the encoded audio frame sequence is uniformly scheduled for wireless transmission. The centralized scheduling unit configures the encoded frame length, the number of available downlink time slots, the cross-directional time slot preemption status, and the receiver buffer depth within the current scheduling frame period according to the determined joint scheduling strategy. The encoded audio frame sequence is re-encoded or reuses already encoded frames as required by the strategy. In the downlink time slots, high-priority encoded audio frames and urgent encoded audio frames are transmitted first. The receiver buffer depth adjustment command is sent to the audio output device receiver via the control channel.

[0195] If the strategy includes cross-directional time slot preemption, then a time slot is temporarily preempted from the uplink time slots and allocated to the downlink according to the aforementioned cross-directional time slot preemption rules. If the strategy does not include cross-directional time slot preemption, then transmission is performed according to the current time slot allocation result. During the unified wireless scheduling transmission process, the audio input device transmits uplink microphone-encoded data in the remaining uplink time slots.

[0196] For example, in the scenario described above, the joint decision engine determines the optimal path scheduling strategy. The centralized scheduling unit switches the encoding frame length to 2.5 milliseconds and encodes subsequent downlink audio data in frames of 120 samples each. The current scheduling frame period has 18 downlink time slots. The centralized scheduling unit places the urgent encoded audio frames (frame numbers F130 to F135) into the earlier downlink time slots for transmission, while other encoded audio frames are transmitted in the remaining downlink time slots according to priority and frame number. A buffer depth adjustment command is sent to the wireless headset receiver, which adjusts the buffer depth to 5 milliseconds. The wireless microphone transmits uplink control information and downsampled data in the two minimum guaranteed time slots. If the first or third signal changes in the next scheduling frame period, the joint decision engine is re-entered to determine a new joint scheduling strategy.

[0197] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0198] In summary, this invention enables multiple devices to maintain data consistency in time, adjusts scheduling priorities and buffer depth in advance, improves uplink and downlink time slot utilization, and reduces waiting time for urgent audio frames, thereby enhancing the synchronization, response speed, and resource utilization efficiency of wireless audio transmission across multiple devices.

[0199] Example 2, as Figure 3 As shown, the present invention provides a low-latency wireless audio synchronization transmission system for multi-device collaboration, the system comprising: The multi-device signal acquisition module 11 is used to synchronously acquire the transmission signals of audio output devices, audio input devices and human body input devices to obtain raw data from multiple devices.

[0200] This includes simultaneously acquiring the transmitted signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices, including: Establish connection links with the audio output device, the audio input device, and the human body input device respectively; At a first preset sampling rate, the downlink audio signal of the audio output device is acquired to obtain the downlink audio data stream; At a second preset sampling rate, the uplink microphone signal of the audio input device is acquired to obtain the uplink microphone data stream; At a third preset reporting rate, the uplink input signal of the human body input device is collected to obtain the uplink input data stream, which includes at least the displacement vector data and key status data of the mouse, and the key event data and key status data of the keyboard. A unified reference timestamp is attached to the downlink audio data stream, the uplink microphone data stream, and the uplink input data stream to obtain the original data from the multiple devices.

[0201] The feedforward audio pre-scheduling module 12 is used to perform adaptive encoding processing on the downlink audio data stream in the original data of the multi-devices, and to perform feedforward audio pre-scheduling based on the pre-built prior input fingerprint library of the human body input device and the original data of the multi-devices.

[0202] The pre-construction of the prior input fingerprint database includes: In the offline calibration phase of the target scene, the sample uplink input signal of the human body input device is continuously collected in a preset sliding window as the step, and the corresponding audio output event sequence is recorded simultaneously to form multiple calibration samples; For each of the calibrated samples, input fingerprint features are extracted based on the uplink input signal of the sample. The input fingerprint features include at least: the average value of mouse displacement amplitude within a preset sliding window, the peak value of mouse displacement amplitude, the timing of mouse button transitions, the keyboard key combination mode identifier, and the keyboard event rate statistics. Cluster analysis is performed based on the input fingerprint features to determine multiple human body input classes. Each human body input class includes a class center fingerprint feature defined by the mean vector of all input fingerprint features within the cluster and a distance between associated fingerprint features. Each of the human body input classes is associated with the category label of the audio output event in the corresponding time period in the audio output event sequence, wherein the category label includes at least the highest priority class, high priority class, normal priority class and low priority class; Using the class center fingerprint feature of the human body input class as the index, the fingerprint feature distance as the matching tolerance, and the category label as the mapping target, an input fingerprint-audio category mapping table is constructed, and the output is the prior input fingerprint database.

[0203] Adaptive encoding processing is performed on the downlink audio data stream in the multi-device raw data, and feedforward audio pre-scheduling is performed based on the pre-built prior input fingerprint database of the human body input device and the multi-device raw data, including: The downlink audio data stream is encoded using an adaptive encoding frame length to generate an encoded audio frame sequence. From the raw data of the multiple devices, extract the real-time input feature vector of the human body input device based on the uplink input data stream; The real-time input feature vector is matched with the prior input fingerprint database in real time to determine the feedforward scheduling criterion corresponding to the current human body input class. The feedforward scheduling criterion includes at least: predicted audio category, confidence level, urgent item marker, and buffer pre-reduction instruction. Based on the feedforward scheduling criterion, the corresponding feedforward scheduling action is matched and determined, and a pre-scheduling flag is output. The encoded audio frame sequence is associated with the pre-scheduling tag, and feedforward audio pre-scheduling is performed on the encoded audio frames associated with the pre-scheduling tag.

[0204] Specifically, based on the feedforward scheduling criterion, the corresponding feedforward scheduling action is matched and determined, and a pre-scheduling flag is output, including: Perform an audio scheduling priority pre-boost action: Based on the confidence level in the feedforward scheduling criterion, boost the scheduling priority of the current encoded audio frame from the default audio frame priority, wherein the boost magnitude is positively correlated with the confidence level; Perform a pre-reduction action for the receiver buffer depth: based on the confidence level in the feedforward scheduling criterion, reduce the receiver buffer depth from the normal buffer depth to the minimum safe buffer depth, wherein the reduction magnitude is positively correlated with the confidence level; The output includes a pre-scheduling flag containing the scheduling priority and the buffer depth.

[0205] The joint scheduling and transmission module 13 is used to perform uplink and downlink joint scheduling of the audio output device and the audio input device based on the original data of the multiple devices, on the basis of feedforward audio pre-scheduling, and drive the audio output device and the audio input device to perform wireless audio transmission.

[0206] Specifically, based on the feedforward audio pre-scheduling, and based on the original data from the multiple devices, uplink and downlink joint scheduling is performed on the audio output device and the audio input device to drive wireless audio transmission between the audio output device and the audio input device, including: Based on the uplink microphone data stream in the raw data from the multiple devices, perform dual-threshold energy detection to determine the microphone status of the audio input device: Calculate the short-time frame energy of the current frame. When the short-time frame energy is greater than a first preset threshold, it is determined to be in an active state. When the short-time frame energy is less than a second preset threshold, it is determined to be in a silent state. When the short-time frame energy is between the first preset threshold and the second preset threshold, the previous state remains unchanged. Wherein, the first preset threshold is greater than the second preset threshold. Uplink and downlink time slots are allocated based on the microphone status: When in silent mode, it enters silent recycling mode, reduces the uplink time slots to the minimum guaranteed time slots, and allocates all the recycled time slots to the downlink audio channel. When in an active state, it enters a contention scheduling mode, calculates the number of uplink time slots required based on the encoding bitrate of the audio input device, and allocates the remaining time slots to the downlink audio channel. Based on the uplink and downlink time slot allocation results and the pre-scheduling flag, the encoded audio frame sequence is uniformly wirelessly scheduled and transmitted, driving the audio output device and the audio input device to perform wireless audio transmission.

[0207] This also includes: In the contention scheduling mode, when there is an urgent encoded audio frame indicated by the pre-scheduling flag in the encoded audio frame sequence, cross-directional time slot preemption is performed, and a preset number of time slots are temporarily preempted from the uplink time slots and allocated to the downlink audio channel. The cross-directional time slot preemption lasts for only one scheduling frame period. The state transition rule for time slot allocation between silent reclamation mode and contention scheduling mode is as follows: When transitioning from a silent state to an active state, time slot allocation switches from silent reclamation mode to contention scheduling mode; When transitioning from an active state to a silent state, time slot allocation switches from contention scheduling mode to silent reclamation mode; In the contention scheduling mode, after the urgent encoded audio frame has been sent, the cross-directional time slot preemption is terminated.

[0208] Also includes: Set a predicted expiration time, wherein the predicted expiration time is the sum of the empirical audio arrival time corresponding to the feedforward scheduling criterion and the preset safety margin; If no corresponding encoded audio frame is detected arriving at the wireless scheduling transmitter after the prediction expiration time, the current prediction is marked as a miss, the executed feedforward scheduling action is canceled, and the receiver buffer depth is driven to be restored to the normal buffer depth in an exponential decay mode. The prediction hit rate is continuously recorded, and the confidence threshold in the feedforward scheduling criterion is dynamically adjusted based on the prediction hit rate.

[0209] Also includes: Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multiple devices to obtain an encoded audio frame sequence; The predicted audio category in the feedforward scheduling criterion is used as the first signal, the pre-scheduling flag is used as the second signal, and the microphone status of the audio input device is used as the third signal. The first signal, the second signal, and the third signal are synchronously input into the joint decision engine. The joint decision engine, based on a preset joint decision matrix, determines the joint scheduling strategy for the current frame according to the combined states of the first signal, the second signal, and the third signal, including: When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is silent, the optimal path scheduling strategy is determined, the downlink adopts the minimum coding frame length and the maximum available time slot, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is active, a priority path scheduling strategy is determined, the downlink adopts the minimum coding frame length and performs cross-directional time slot preemption, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is silent, a lenient path scheduling strategy is determined, the downlink adopts the standard coded frame length and the maximum available time slot, and the receiver buffer depth is a normal value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is active, a standard path scheduling strategy is determined, the downlink adopts the standard coded frame length and standard shared time slot, and the receiver buffer depth is a normal value. Based on the joint scheduling strategy, the encoded audio frame sequence is uniformly scheduled and transmitted wirelessly.

[0210] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0211] This specification and accompanying drawings are merely illustrative examples of the invention and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its scope. Therefore, if such modifications and modifications fall within the scope of the invention and its equivalents, the invention is intended to include these modifications and modifications.

Claims

1. A low-latency wireless audio synchronization transmission method for multi-device collaboration, characterized in that, include: Simultaneously acquire the transmitted signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices; Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multi-device system, and feedforward audio pre-scheduling is performed based on the pre-built prior input fingerprint database of the human body input device and the original data of the multi-device system. Based on the feedforward audio pre-scheduling, and based on the original data of the multiple devices, the audio output device and the audio input device are jointly scheduled for uplink and downlink to drive the audio output device and the audio input device to perform wireless audio transmission.

2. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, Simultaneously acquire the transmitted signals from audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices, including: Establish connection links with the audio output device, the audio input device, and the human body input device respectively; At a first preset sampling rate, the downlink audio signal of the audio output device is acquired to obtain the downlink audio data stream; At a second preset sampling rate, the uplink microphone signal of the audio input device is acquired to obtain the uplink microphone data stream; At a third preset reporting rate, the uplink input signal of the human body input device is collected to obtain the uplink input data stream, which includes at least the displacement vector data and key status data of the mouse, and the key event data and key status data of the keyboard. A unified reference timestamp is attached to the downlink audio data stream, the uplink microphone data stream, and the uplink input data stream to obtain the original data from the multiple devices.

3. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, The pre-construction of the prior input fingerprint database includes: In the offline calibration phase of the target scene, the uplink input signals of the human body input device are continuously collected in steps using a preset sliding window, and the corresponding audio output event sequence is recorded simultaneously to form multiple calibration samples. For each of the calibrated samples, input fingerprint features are extracted based on the uplink input signal of the sample. The input fingerprint features include at least: the average value of mouse displacement amplitude within a preset sliding window, the peak value of mouse displacement amplitude, the timing of mouse button transitions, the keyboard key combination mode identifier, and the keyboard event rate statistics. Cluster analysis is performed based on the input fingerprint features to determine multiple human body input classes. Each human body input class includes a class center fingerprint feature defined based on the mean vector of all input fingerprint features within the cluster and a distance between associated fingerprint features. Each of the human body input classes is associated with the category label of the audio output event in the corresponding time period in the audio output event sequence, wherein the category label includes at least the highest priority class, high priority class, normal priority class and low priority class; Using the class center fingerprint feature of the human body input class as the index, the fingerprint feature distance as the matching tolerance, and the category label as the mapping target, an input fingerprint-audio category mapping table is constructed, and the output is the prior input fingerprint database.

4. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, Adaptive encoding processing is performed on the downlink audio data stream in the multi-device raw data, and feedforward audio pre-scheduling is performed based on the pre-built prior input fingerprint database of the human body input device and the multi-device raw data, including: The downlink audio data stream is encoded using an adaptive encoding frame length to generate an encoded audio frame sequence. From the raw data of the multiple devices, extract the real-time input feature vector of the human body input device based on the uplink input data stream; The real-time input feature vector is matched with the prior input fingerprint database in real time to determine the feedforward scheduling criterion corresponding to the current human body input class. The feedforward scheduling criterion includes at least: predicted audio category, confidence level, urgent item marker, and buffer pre-reduction instruction. Based on the feedforward scheduling criterion, the corresponding feedforward scheduling action is matched and determined, and a pre-scheduling flag is output. The encoded audio frame sequence is associated with the pre-scheduling tag, and feedforward audio pre-scheduling is performed on the encoded audio frames associated with the pre-scheduling tag.

5. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 4, characterized in that, Based on the aforementioned feedforward scheduling criterion, the corresponding feedforward scheduling action is determined and a pre-scheduling flag is output, including: Perform an audio scheduling priority pre-boost action: Based on the confidence level in the feedforward scheduling criterion, boost the scheduling priority of the current encoded audio frame from the default audio frame priority, wherein the boost magnitude is positively correlated with the confidence level; Perform a pre-reduction action for the receiver buffer depth: based on the confidence level in the feedforward scheduling criterion, reduce the receiver buffer depth from the normal buffer depth to the minimum safe buffer depth, wherein the reduction magnitude is positively correlated with the confidence level; The output includes a pre-scheduling flag containing the scheduling priority and the buffer depth.

6. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, Based on feedforward audio pre-scheduling, and using the original data from the multiple devices, uplink and downlink joint scheduling is performed on the audio output device and audio input device to drive wireless audio transmission between them, including: Based on the uplink microphone data stream in the original data from the multiple devices, perform dual-threshold energy detection to determine the microphone status of the audio input device: Calculate the short-time frame energy of the current frame. When the short-time frame energy is greater than a first preset threshold, it is determined to be in an active state. When the short-time frame energy is less than a second preset threshold, it is determined to be in a silent state. When the short-time frame energy is between the first preset threshold and the second preset threshold, the previous state remains unchanged. Wherein, the first preset threshold is greater than the second preset threshold. Uplink and downlink time slots are allocated based on the microphone status: When in silent mode, it enters silent recycling mode, reduces the uplink time slots to the minimum guaranteed time slots, and allocates all the recycled time slots to the downlink audio channel. When in an active state, it enters a contention scheduling mode, calculates the number of uplink time slots required based on the encoding bitrate of the audio input device, and allocates the remaining time slots to the downlink audio channel; Based on the uplink and downlink time slot allocation results and the pre-scheduling flag, the encoded audio frame sequence is uniformly wirelessly scheduled and transmitted, driving the audio output device and the audio input device to perform wireless audio transmission.

7. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 6, characterized in that, Also includes: In the contention scheduling mode, when there is an urgent encoded audio frame indicated by the pre-scheduling flag in the encoded audio frame sequence, cross-directional time slot preemption is performed, and a preset number of time slots are temporarily preempted from the uplink time slots and allocated to the downlink audio channel. The cross-directional time slot preemption lasts for only one scheduling frame period. The state transition rule for time slot allocation between silent reclamation mode and contention scheduling mode is as follows: When transitioning from a silent state to an active state, time slot allocation switches from silent reclamation mode to contention scheduling mode; When transitioning from an active state to a silent state, time slot allocation switches from contention scheduling mode to silent reclamation mode; In the contention scheduling mode, after the urgent encoded audio frame has been sent, the cross-directional time slot preemption is terminated.

8. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, Also includes: Set a predicted expiration time, wherein the predicted expiration time is the sum of the empirical audio arrival time corresponding to the feedforward scheduling criterion and the preset safety margin; If no corresponding encoded audio frame is detected arriving at the wireless scheduling transmitter after the prediction expiration time, the current prediction is marked as a miss, the executed feedforward scheduling action is canceled, and the receiver buffer depth is driven to be restored to the normal buffer depth in an exponential decay mode. The prediction hit rate is continuously recorded, and the confidence threshold in the feedforward scheduling criterion is dynamically adjusted based on the prediction hit rate.

9. The low-latency wireless audio synchronization transmission method for multi-device collaboration as described in claim 1, characterized in that, Also includes: Adaptive encoding processing is performed on the downlink audio data stream in the original data of the multiple devices to obtain an encoded audio frame sequence; The predicted audio category in the feedforward scheduling criterion is used as the first signal, the pre-scheduling flag is used as the second signal, and the microphone status of the audio input device is used as the third signal. The first signal, the second signal, and the third signal are synchronously input into the joint decision engine. The joint decision engine, based on a preset joint decision matrix, determines the joint scheduling strategy for the current frame according to the combined states of the first signal, the second signal, and the third signal, including: When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is silent, the optimal path scheduling strategy is determined, the downlink adopts the minimum coding frame length and the maximum available time slot, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of the highest priority and the third signal indicates that the microphone status is active, a priority path scheduling strategy is determined, the downlink adopts the minimum coding frame length and performs cross-directional time slot preemption, and the receiver buffer depth is reduced to the minimum value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is silent, a lenient path scheduling strategy is determined, the downlink adopts the standard coded frame length and the maximum available time slot, and the receiver buffer depth is a normal value. When the first signal indicates that the predicted audio category is of normal priority and the third signal indicates that the microphone status is active, a standard path scheduling strategy is determined, the downlink adopts the standard coded frame length and standard shared time slot, and the receiver buffer depth is a normal value. Based on the joint scheduling strategy, the encoded audio frame sequence is uniformly scheduled and transmitted wirelessly.

10. A low-latency wireless audio synchronization transmission system for multi-device collaboration, characterized in that, A method for performing a low-latency wireless audio synchronization transmission method with multi-device collaboration as described in any one of claims 1 to 9 includes: The multi-device signal acquisition module is used to synchronously acquire the transmission signals of audio output devices, audio input devices, and human body input devices to obtain raw data from multiple devices. The feedforward audio pre-scheduling module is used to perform adaptive encoding processing on the downlink audio data stream in the original data of the multi-devices, and to perform feedforward audio pre-scheduling based on the pre-built prior input fingerprint database of the human body input device and the original data of the multi-devices. The joint scheduling and transmission module is used to perform uplink and downlink joint scheduling of the audio output device and the audio input device based on the original data of the multiple devices, on the basis of feedforward audio pre-scheduling, and drive the audio output device and the audio input device to perform wireless audio transmission.