Parameter configuration method and device of external decoder, external decoder and storage medium

By acquiring network status, load information, and user experience quality indicators, the sampling rate and register configuration of the external decoder are dynamically adjusted, solving the inefficiency problems of model adaptation and parameter setting in existing technologies, and achieving high-quality audio services.

CN121963755APending Publication Date: 2026-05-01QUECTEL WIRELESS SOLUTIONS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
QUECTEL WIRELESS SOLUTIONS CO LTD
Filing Date
2026-01-14
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing external decoders suffer from inefficiencies and static settings in terms of model compatibility and parameter settings, resulting in insufficient bandwidth utilization, degraded sound quality under high load scenarios, and an inability to provide stable, high-quality audio services.

Method used

By acquiring network status, load information, and user experience quality indicators, the target sampling rate of the external decoder is dynamically adjusted, and the target register configuration information is matched from the parameter preset database to achieve dynamic parameter configuration of the external decoder.

Benefits of technology

It improves the quality and efficiency of audio services, enhances the flexibility and scalability of the system, adapts to user needs in different environments, and avoids sound quality degradation and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121963755A_ABST
    Figure CN121963755A_ABST
Patent Text Reader

Abstract

The invention provides a parameter configuration method and device of an external decoder, the external decoder and a storage medium. The method comprises the following steps: acquiring a network state of a network where the external decoder is located, load information of the external decoder and a user experience quality index; determining a target sampling rate of the external decoder based on the network state, the load information and the user experience quality index; matching from a parameter preset database based on the target sampling rate and the model of the external decoder to obtain target register configuration information; the external decoder is configured based on the target register configuration information, and the target sampling rate is determined by obtaining the network state, the load information and the user experience quality index, so that the processing parameters of the external decoder are dynamically adjusted, and the high-quality audio service can be provided.
Need to check novelty before this filing date? Find Prior Art

Description

External decoder parameter configuration method, device, external decoder and storage medium Technical Field

[0001] This application belongs to the field of external decoder technology, and in particular relates to a parameter configuration method, device, external decoder and storage medium for an external decoder. Background Technology

[0002] In the field of audio processing, external decoders (codecs) are key devices whose performance directly affects the quality and efficiency of audio transmission. Most existing external decoders use fixed parameters for audio signal processing. This static parameter setting method has revealed many drawbacks in practical applications, such as insufficient bandwidth utilization and sound quality degradation under high load scenarios, making it impossible to provide stable, high-quality audio services in different environments. Summary of the Invention

[0003] In view of this, embodiments of this application provide a parameter configuration method, apparatus, external decoder, and storage medium for an external decoder. By acquiring network status, load information, and user experience quality indicators, the target sampling rate is determined, and the processing parameters of the external decoder are dynamically adjusted to provide high-quality audio services.

[0004] In a first aspect, embodiments of this application provide a parameter configuration method for an external decoder, comprising: obtaining the network status of the network where the external decoder is located, the load information of the external decoder, and user experience quality indicators; determining the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality indicators; obtaining target register configuration information by matching the target sampling rate and the model of the external decoder from a parameter preset database; and configuring the external decoder based on the target register configuration information.

[0005] In some embodiments, determining the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index includes: determining whether the user experience quality index is less than a preset index threshold; if the user experience quality index is less than the preset index threshold, reducing the sampling rate of the external decoder to obtain the target sampling rate; and if the user experience quality index is greater than the preset index threshold, determining the target sampling rate of the external decoder based on the network status and the load information.

[0006] In some embodiments, determining the target sampling rate of the external decoder based on the network state and the load information includes: reducing the sampling rate of the external decoder to obtain the target sampling rate when the network state meets preset requirements, wherein the preset requirements include: network bandwidth being less than a preset bandwidth threshold and / or signal strength being less than a preset strength threshold; determining whether the load information is greater than a load threshold when the network state does not meet the preset requirements; and reducing the sampling rate of the external decoder to obtain the target sampling rate when the load information is greater than the load threshold.

[0007] In some embodiments, the method further includes: increasing the sampling rate of the external decoder to obtain target sampling when the user experience quality index is greater than or equal to the preset index threshold, the network status does not meet the preset requirements, and the load information is less than or equal to the load threshold.

[0008] In some embodiments, determining the target sampling rate of the external decoder based on the network state, the load information, and the user experience quality index includes: inputting the network state, the load information, and the user experience quality index into a neural network model to obtain the target sampling rate of the external decoder.

[0009] In some embodiments, the method further includes: obtaining the model of the external decoder; matching it from the parameter preset database based on the model, the configured sampling rate, and the number of channels; and configuring the external decoder based on the register configuration information if a match is found.

[0010] In some embodiments, the method further includes: outputting an error message if no register configuration information is matched, or configuring the external decoder using general register configuration information.

[0011] Secondly, embodiments of this application provide a parameter configuration device for an external decoder, comprising: an acquisition module, configured to acquire the network status of the network where the external decoder is located, the load information of the external decoder, and user experience quality indicators; a determination module, configured to determine the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality indicators; a matching module, configured to match target register configuration information from a parameter preset database based on the target sampling rate and the model of the external decoder; and a configuration module, configured to configure the external decoder based on the target register configuration information.

[0012] Thirdly, embodiments of this application provide an external decoder, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in any of the above-mentioned embodiments.

[0013] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any of the preceding claims.

[0014] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes an external decoder to execute any of the methods described above.

[0015] The beneficial effects of this application embodiment compared with the prior art are as follows: The parameter configuration method of the external decoder provided in this application embodiment obtains the network status of the network where the external decoder is located, the load information of the external decoder, and the user experience quality index; determines the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index; obtains target register configuration information by matching the target sampling rate and the model of the external decoder from a parameter preset database; and configures the external decoder based on the target register configuration information. By obtaining the network status, load information, and user experience quality index to determine the target sampling rate, the processing parameters of the external decoder can be dynamically adjusted, thereby providing high-quality audio services. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 is a schematic flowchart of the implementation of a parameter configuration method for an external decoder provided in this application; Figure 2 is a schematic flowchart of the implementation of a parameter configuration method for an external decoder provided in an embodiment of this application; Figure 3 is a flowchart of a parameter configuration method for an external decoder provided in an embodiment of this application; Figure 4 is a schematic structural diagram of a parameter configuration device for an external decoder provided in an embodiment of this application; Figure 5 is a schematic structural diagram of an external decoder provided in an embodiment of this application. Detailed Implementation

[0018] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0019] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0020] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0021] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once detected," or "in response to detection."

[0022] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0023] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0024] Before introducing the embodiments of this application, a brief introduction to related technologies is provided: External decoders are used in the field of multimedia data processing technology and are suitable for scenarios such as real-time audio and video transmission, edge computing encoding, and cloud transcoding. External decoders typically have multiple input and output interfaces, which can easily connect to various audio and video devices, such as computers, mobile phones, tablets, Blu-ray players, game consoles, and sound systems. Through external decoders, users can uniformly process and output audio and video signals from different devices, realizing interconnection and resource sharing between devices. As a core component for achieving efficient audio and video processing and transmission in these scenarios, the performance and adaptability of external codecs directly determine the quality of the entire system and the user experience. However, current external codecs face many problems that urgently need to be solved in practical applications, mainly in terms of model compatibility and parameter settings, which seriously restrict their further development and widespread application in the field of multimedia data processing.

[0025] External codec chips from different manufacturers exhibit significant differences in hardware design and register configuration. Replacing an external codec chip requires substantial manpower and time to re-adapt the register parameters. This is because different manufacturers use different register mapping methods, with differences reaching as high as 73%. This means that when replacing one codec chip with another, it's almost impossible to directly reuse the original register configuration; a tedious debugging and configuration process must be started from scratch to ensure the new codec chip functions correctly and achieves the expected audio and video processing effects. This inefficient model adaptation method not only increases development costs and time but also limits system flexibility and scalability, posing a significant challenge in scenarios requiring rapid codec chip replacement or upgrades.

[0026] Furthermore, most existing external codec parameter settings use a fixed mode, which cannot be dynamically adjusted according to the actual operating environment and needs, leading to a series of problems. On the one hand, the fixed sampling rate setting prevents optimal network bandwidth utilization. In a real network environment, bandwidth changes dynamically, and a fixed sampling rate cannot be adjusted according to the real-time bandwidth situation. For example, in actual tests, it was found that when the network bandwidth was 30Mbps, due to the use of a fixed 8kHz sampling rate, the theoretical bandwidth utilization only reached 26%, a large amount of bandwidth resources were wasted, and the network's transmission capacity could not be fully utilized, affecting the transmission efficiency and quality of audio and video data. On the other hand, under high-load scenarios, fixed parameter settings will lead to a significant degradation in sound quality. When the device's central processing unit (CPU) load exceeds 80%, because the codec parameters cannot be dynamically optimized according to the CPU load, audio and video processing is still performed according to fixed parameters, causing the system's processing capacity to be mismatched with actual needs, thus leading to a decrease in sound quality. Quantitative evaluation using subjective sound quality evaluation standards revealed that the MOS score dropped by 1.2 points at this time, seriously affecting the user's listening experience.

[0027] In summary, the inefficiencies and static nature of existing external codecs in terms of model compatibility and parameter settings have become bottlenecks restricting the development of multimedia data processing scenarios such as real-time audio and video transmission, edge computing encoding, and cloud transcoding. Therefore, developing an adaptive parameter adjustment method that can solve these problems is of significant practical importance and urgency.

[0028] To address the problems in related technologies, this application provides a parameter configuration method for an external decoder. The method involves acquiring the network status of the network where the external decoder is located, the load information of the external decoder, and user experience quality indicators; determining the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality indicators; matching target register configuration information from a parameter preset database based on the target sampling rate and the model of the external decoder; and configuring the external decoder based on the target register configuration information. By determining the target sampling rate using network status, load information, and user experience quality indicators, the method dynamically adjusts the processing parameters of the external decoder, thereby providing high-quality audio services.

[0029] The following provides a detailed explanation of a parameter configuration method for an external decoder provided in this application embodiment. This method can be applied to electronic devices, which can be either a main device connected to the external decoder or the external decoder itself. The following description uses a main device as an example. Figure 1 is a schematic diagram of the implementation flow of the parameter configuration method for an external decoder provided in this application embodiment. As shown in Figure 1, the method includes: Step S101, obtaining the network status of the network where the external decoder is located, the load information of the external decoder, and user experience quality indicators.

[0030] In this embodiment, the external decoder is a hardware device independent of audio playback devices (such as computers, mobile phones, etc.). Its main function is to convert digital audio signals into analog audio signals so that the decoded signals can be sent to other devices via a network for playback. Network status is a set of parameters describing the current operating status and performance characteristics of the network to which the external decoder is connected, mainly including indicators such as network bandwidth, signal strength, network latency, and packet loss rate. Load information reflects the workload of the external decoder itself, typically represented by CPU utilization, memory usage, etc. Load information reflects the system resources consumed by the decoder when processing audio data at the current moment. Quality of Experience (QoE) indicators can include subjective and / or objective indicators. Subjective indicators can quantify the quality of experience through user feedback (such as ratings, complaints) or simulated user behavior (such as playback stutters, buffering time). Objective indicators can be calculated audio quality indicators (such as signal-to-noise ratio, distortion) or network transmission indicators (such as packet loss rate, jitter). Subjective and customer metrics can be quantified into scores to obtain a user experience quality index (QoE), which can be a score. For example, an objective metric alone can be used to obtain the QoE. In some embodiments, subjective and objective metrics can be weighted and combined to obtain a composite score, which serves as the QoE. Monitoring modules can be embedded in the user's device or application to collect user experience-related data in real time, such as video stuttering frequency, buffering time, and audio clarity scores. This data can then be calculated and analyzed using a pre-defined algorithm to derive the QoE value. For example, a comprehensive scoring algorithm can be set up to weight factors such as video stuttering frequency and buffering time to obtain the final QoE score.

[0031] In this embodiment, information such as network bandwidth, signal strength, network latency, and packet loss rate can be obtained by calling network interface functions or using network monitoring tools. For example, in Windows systems, Windows API functions can be used to obtain network bandwidth and latency information, while in Linux systems, commands such as ifconfig and netstat, or related network monitoring tools, can be used.

[0032] In this embodiment, the external decoder typically has a corresponding management interface or software, through which load information such as CPU utilization and memory usage of the decoder can be read. For example, some decoders support obtaining device status information via the Simple Network Management Protocol (SNMP).

[0033] In this embodiment of the application, objective indicators can be obtained by counting the number of stutters, buffering time, packet loss rate, etc., and subjective indicators can be obtained by analyzing user feedback text (such as "poor sound quality") through user rating interface or NLP analysis, thereby obtaining user experience quality indicators.

[0034] Step S102: Determine the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index.

[0035] In this embodiment, the target sampling rate is the sampling frequency that the external decoder should use when processing audio signals, determined based on network status, load information, and user experience quality indicators. The sampling rate refers to the number of times the audio signal is sampled per second, directly affecting audio quality and data volume. Common audio sampling rates include 44.1kHz, 48kHz, and 96kHz. Higher sampling rates can provide higher quality audio, but they also consume more network bandwidth and device resources.

[0036] In this embodiment of the application, rules can be preset to adjust the current sampling rate to obtain the target sampling rate. In some embodiments, the target sampling rate can be obtained through a neural network model.

[0037] Step S103: Based on the target sampling rate and the model of the external decoder, the target register configuration information is obtained by matching from the parameter preset database.

[0038] In this embodiment, the parameter preset database is a database that pre-stores register configuration information for different models of external decoders at different sampling rates. This configuration information has been professionally debugged and optimized to ensure that the decoder works normally and achieves optimal performance at the corresponding sampling rate. For example, the database may store register configuration values ​​1, 2, 3, etc., for an external decoder of model A at a sampling rate of 44.1kHz, and register configuration values ​​4, 5, 6, etc., at a sampling rate of 48kHz. The parameter preset database can be a two-dimensional matrix database indexed by the Codec model identifier (ID), storing a mapping relationship of [sampling rate → register address → configuration value]. The target register configuration information is obtained by matching the target sampling rate and the model of the external decoder from the parameter preset database and is used to configure the specific parameter values ​​of the internal registers of the external decoder. These parameter values ​​determine the decoder's audio processing method, signal amplification factor, filtering characteristics, etc. For example, the target register configuration information may include the register address and the corresponding value, such as the value of register address 0x10 being 0xFF, the value of register address 0x20 being 0x80, etc.

[0039] In this embodiment, the parameter preset database can be queried based on the model and target sampling rate keywords to match the target register configuration information.

[0040] Step S104: Configure the external decoder based on the target register configuration information.

[0041] In this embodiment, the target register configuration information can be sent to an external decoder via a communication protocol, thereby writing the target register configuration information into the external decoder. The configuration content in the target register configuration information may include a sampling rate control register, a filter coefficient register, a gain control register, etc.

[0042] In some embodiments, verification is also required after configuration is complete.

[0043] The method provided in this application embodiment obtains the network status of the network where the external decoder is located, the load information of the external decoder, and the user experience quality index; determines the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index; obtains target register configuration information by matching the target sampling rate and the model of the external decoder from a parameter preset database; and configures the external decoder based on the target register configuration information. By obtaining the network status, load information, and user experience quality index to determine the target sampling rate, the processing parameters of the external decoder can be dynamically adjusted, thereby providing high-quality audio services.

[0044] The method provided in this application embodiment can improve user experience and achieve personalized adaptation by using network status, load information and user experience quality indicators.

[0045] In some embodiments, step S102 can be implemented by the following steps: step S1021, determining whether the user experience quality index is less than a preset index threshold.

[0046] In this embodiment, a QoE threshold can be set according to business needs. The threshold can be determined through historical data analysis or user surveys.

[0047] In this embodiment of the application, user experience quality indicators can be compared with preset indicator thresholds.

[0048] Step S1022: If the user experience quality index is less than the preset index threshold, reduce the sampling rate of the external decoder to obtain the target sampling rate.

[0049] In this embodiment of the application, if the user experience quality index is less than the preset index threshold, it indicates that the user experience is poor, and the sampling rate of the external decoder can be reduced to obtain the target sampling rate.

[0050] In this embodiment, the sampling rate can be reduced in a preset gradient (e.g., 48kHz→32kHz→16kHz) to avoid a sudden drop in sound quality caused by directly reducing it to the lowest level. The frequency reduction can be dynamically adjusted according to the degree of QoE degradation. A corresponding level can be obtained based on the degree of reduction in user experience quality indicators, and the target sampling rate is obtained through this level. For example, reducing the sampling rate by one level when QoE drops from 4.0 to 3.5, and by two levels when it drops to 3.0, corresponds to different sampling rates.

[0051] Step S1023: If the user experience quality index is greater than the preset index threshold, determine the target sampling rate of the external decoder based on the network status and the load information.

[0052] In this embodiment of the application, if the user experience quality index is greater than the preset index threshold, it is also necessary to comprehensively consider the network status and the load information to determine the target sampling rate of the external decoder.

[0053] In this embodiment, frequency reduction is triggered by a QoE threshold to ensure that users can still obtain acceptable audio quality even when the network or load is extremely poor.

[0054] In some embodiments, step S1023 can be implemented by the following steps: Step S231, when the network state meets the preset requirements, the sampling rate of the external decoder is reduced to obtain the target sampling rate, wherein the preset requirements include: the network bandwidth is less than a preset bandwidth threshold and / or the signal strength is less than a preset strength threshold.

[0055] In this embodiment, the network status reflects real-time parameters of the current network transmission capacity, including network bandwidth (the amount of data that can be transmitted per unit time) and signal strength (the physical strength of the wireless signal). Network status directly determines whether audio data can be transmitted stably and with low latency. Insufficient bandwidth leads to data congestion, and weak signals cause packet loss or retransmissions, both of which require reducing the sampling rate to decrease the amount of data and alleviate the pressure. Preset requirements are network status threshold conditions that trigger sampling rate adjustments, including: insufficient bandwidth is considered when network bandwidth is below a preset bandwidth threshold, and weak signal strength is considered when signal strength is below a preset strength threshold.

[0056] In this embodiment of the application, if the bandwidth is less than the preset bandwidth threshold or the signal strength is less than the preset strength threshold, the network status is determined to be unsatisfactory, and the frequency reduction process is triggered.

[0057] In this embodiment, the sampling rate can be reduced in a preset gradient (e.g., 48kHz→32kHz→16kHz) to avoid a sudden drop in sound quality caused by directly reducing it to the lowest level. In some embodiments, the frequency reduction can be adjusted according to the degree of network degradation. For example, when the bandwidth is reduced from 1Mbps to 500kbps, it can be reduced by one level, and when it is reduced to 200kbps, it can be reduced by two levels. Different levels correspond to different reduction in sampling rate.

[0058] Step S232: If the network state does not meet the preset requirements, determine whether the load information is greater than the load threshold.

[0059] In this embodiment, the load threshold is the safe upper limit for decoder usage, and the load threshold can be configured. By determining whether the device is overloaded, service interruption due to resource exhaustion can be avoided.

[0060] Step S233: If the load information is greater than the load threshold, reduce the sampling rate of the external decoder to obtain the target sampling rate.

[0061] The method provided in this application embodiment only reduces the frequency when network bandwidth is insufficient or the signal is weak, avoiding unnecessary loss of sound quality due to misjudgment (e.g., not reducing the frequency when the WiFi signal fluctuates briefly). It also reduces the frequency when the device load is too high, preventing system crashes or service interruptions caused by resource exhaustion (e.g., prioritizing game smoothness when a mobile phone is running games and playing audio simultaneously).

[0062] The method provided in this application prioritizes user experience quality. When QoE is substandard, the sampling rate is directly reduced to quickly alleviate issues such as stuttering and interruptions, preventing user churn. When QoE is good, network and load conditions are further considered to balance sound quality and stability, avoiding system crashes caused by blindly increasing the sampling rate.

[0063] In some embodiments, the method further includes: step S1024, where the user experience quality index is greater than or equal to the preset index threshold, the network status does not meet the preset requirements, and the load information is less than or equal to the load threshold, the sampling rate of the external decoder is increased to obtain the target sample.

[0064] The method provided in this application, when the user experience quality index has reached a certain level (greater than or equal to a preset index threshold), further increases the sampling rate of the external decoder, which can provide higher quality audio or video decoding effects. When the load information is less than or equal to the load threshold, it indicates that the current workload of the system or device (including the external decoder) is relatively light, and there are sufficient resources to handle a higher sampling rate. Increasing the sampling rate at this time can make full use of these idle resources and improve the overall performance and efficiency of the system.

[0065] The method provided in this application dynamically adjusts the sampling rate of the external decoder based on different conditions (user experience quality, network status, load information), and can automatically optimize performance according to actual conditions. This flexible adjustment mechanism can adapt to different application scenarios and user needs, whether pursuing a higher quality audio and video experience under conditions of good network environment and low load.

[0066] In some embodiments, step S102 can be implemented by the following steps: step S1025, inputting the network state, the load information and the user experience quality index into the neural network model to obtain the target sampling rate of the external decoder.

[0067] In this embodiment, the neural network model is a computational model that simulates the structure and function of neurons in the human brain, consisting of a large number of interconnected neurons (nodes). Neural network models possess powerful learning and adaptive capabilities, enabling them to be trained on large amounts of data, automatically discover complex patterns and relationships within the data, and be used for tasks such as prediction and classification. Neural network models include multilayer perceptrons, convolutional neural networks, recurrent neural networks, and their variants.

[0068] In this embodiment, the collected network status, load information, and user experience quality indicators can be preprocessed, including cleaning and normalization. Data cleaning removes outliers and missing values, ensuring data quality. Normalization maps data from different ranges to the same interval (e.g., [0, 1]), allowing the neural network model to process it better. After preprocessing, the real-time collected network status, load information, and user experience quality indicator data are input into the trained neural network model. The model calculates and outputs the target sampling rate of the external decoder based on the input data. Based on this target sampling rate, the sampling rate can be adjusted through the management interface or control software provided by the external decoder to achieve optimal decoding performance and user experience.

[0069] In some embodiments, FIG2 is a schematic diagram of the implementation flow of a parameter configuration method for an external decoder provided in the present application. As shown in FIG2, before step S101, the method further includes: step S1, obtaining the model of the external decoder.

[0070] In this embodiment, the model number is a specific identifier for the product, used to distinguish products with different specifications, performance, and functions. For external decoders, the model number typically includes information such as the manufacturer, product series, and functional characteristics. The specific type and features of the decoder can be accurately identified through the model number.

[0071] In this embodiment, when the external decoder is connected to the host device (such as a computer), the host device sends a query command to the external decoder via a specific communication protocol (such as Universal Serial Bus (USB) protocol). After receiving the command, the external decoder returns its model information to the host device. Alternatively, the user can manually enter the external decoder's model number in the host device's settings interface, or scan a QR code or barcode on the external decoder, allowing the host device to parse the information in the QR code or barcode to obtain the model number.

[0072] Step S2: Match the model, configured sampling rate, and number of channels from the parameter preset database.

[0073] In this embodiment, after obtaining the model, configured sampling rate, and number of channels of the external decoder, this information is used as query conditions to send a query request to the parameter preset database. Based on these query conditions, a search is performed in the database to determine if a matching register configuration information record exists. If it exists, the matching record is returned; otherwise, a no-match message is returned.

[0074] Step S3: If register configuration information is matched, configure the external decoder based on the register configuration information.

[0075] In this embodiment, after receiving register configuration information returned from the parameter preset database, the register configuration information is sent to the external decoder via a communication interface (such as a USB interface) according to a specific communication protocol. Upon receiving this configuration information, the external decoder writes it into the corresponding registers, thereby completing the decoder configuration. For example, by sending the register configuration information to the external decoder via a USB interface, the microcontroller inside the decoder parses this information and writes it into the corresponding registers, enabling the decoder to operate according to the configured sampling rate and number of channels.

[0076] The method provided in this application avoids the tedious process and potential errors of manual configuration by matching register configuration information from a parameter preset database. Manual configuration requires users to possess certain professional knowledge and experience, and is prone to incorrect configuration due to negligence or erroneous operation. This method, however, can automatically and accurately find suitable configuration information based on the external decoder's model, sampling rate, and number of channels, greatly improving configuration efficiency and reducing the possibility of configuration errors. The register configuration information stored in the parameter preset database has been pre-tested and optimized to ensure that the external decoder performs optimally under different operating conditions. This method supports various models of external decoders; as long as the corresponding model's configuration information is stored in the parameter preset database, it can be correctly configured. This makes the system compatible with more external decoders, improving the system's versatility and scalability. Regardless of the brand or model of the external decoder used by the user, this method enables rapid configuration and normal operation.

[0077] In some embodiments, after step S2, the method further includes: step S4, outputting an error message if no register configuration information is matched, or configuring the external decoder using general register configuration information.

[0078] In this embodiment of the application, after determining that no register configuration information is matched, an error message is displayed to the user through the user interface (such as a pop-up window on a computer screen, the display screen of an audio playback device, etc.), informing the user that the current external decoder model, sampling rate and channel number combination does not have corresponding configuration information in the parameter preset database, and may not be able to be configured or used normally.

[0079] In some embodiments, a suitable set of configuration information can be selected from a pre-stored set of general-purpose register configuration information. The selection can be based on meeting the basic requirements of the current sampling rate and number of channels as much as possible, or by using the default general configuration.

[0080] The method provided in this application ensures that the system will not directly stop working or experience a serious malfunction when specific register configuration information is not matched. By outputting error messages, users can promptly understand the problem. Furthermore, using general-purpose register configuration information ensures that the external decoder can at least operate in basic mode, preventing the device from becoming unusable due to missing configuration information and improving system stability and reliability.

[0081] Based on the foregoing embodiments, this application provides another method for configuring parameters of an external decoder. Figure 3 is a flowchart of a method for configuring parameters of an external decoder provided in this application. As shown in Figure 3, it includes: step S301, powering on and starting the external decoder.

[0082] Step S302: Send a query command to read the model number.

[0083] Step S303: Query the preset parameter database.

[0084] Step S304: Determine if a match is found.

[0085] In this embodiment of the application, if yes, then step S305 is executed. If no, then step 306 is executed.

[0086] Step S305: Load register configuration information.

[0087] Step S307: Verify data integrity.

[0088] Step S308: Parameter loading complete.

[0089] Step S306: Enable the default configuration.

[0090] After step S306 or step S308, the method further includes: step S309, obtaining network bandwidth, device load data and the user experience quality index.

[0091] Step S310: Determine the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index.

[0092] Step S311: Obtain target register configuration information from the parameter preset database based on the target sampling rate and the model of the external decoder; Step S312: Configure the external decoder based on the target register configuration information.

[0093] The method provided in this application can automatically match preset parameter templates based on device model, thus solving the problem of low efficiency in manual table lookup adaptation. Through closed-loop control based on network status, load information, and user experience quality, intelligent optimization of encoding and decoding parameters is achieved.

[0094] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0095] According to the foregoing embodiments, this application provides a parameter configuration device for an external decoder. The various modules and units included in the device can be implemented by a processor in a computer device; of course, they can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0096] This application provides a parameter configuration device for an external decoder. Figure 4 is a schematic diagram of the structure of the parameter configuration device for an external decoder provided in this application. As shown in Figure 4, the parameter configuration device 400 for the external decoder includes: an acquisition module 401, used to acquire the network status of the network where the external decoder is located, the load information of the external decoder, and the user experience quality index; a determination module 402, used to determine the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index; a matching module 403, used to match target register configuration information from a parameter preset database based on the target sampling rate and the model of the external decoder; and a configuration module 404, used to configure the external decoder based on the target register configuration information.

[0097] In some embodiments, the determining module 402 includes: a judging unit, configured to judge whether the user experience quality index is less than a preset index threshold; a reducing unit, configured to reduce the sampling rate of the external decoder to obtain a target sampling rate when the user experience quality index is less than the preset index threshold; and a determining unit, configured to determine the target sampling rate of the external decoder based on the network status and the load information when the user experience quality index is greater than the preset index threshold.

[0098] In some embodiments, the determining unit includes: a first reduction subunit, configured to reduce the sampling rate of the external decoder to obtain a target sampling rate when the network state meets preset requirements, wherein the preset requirements include: network bandwidth less than a preset bandwidth threshold and / or signal strength less than a preset strength threshold; a determining subunit, configured to determine whether the load information is greater than a load threshold when the network state does not meet the preset requirements; and a second reduction subunit, configured to reduce the sampling rate of the external decoder to obtain the target sampling rate when the load information is greater than the load threshold.

[0099] In some embodiments, the determining module 402 further includes an increasing unit, configured to increase the sampling rate of the external decoder to obtain target sampling when the user experience quality index is greater than or equal to the preset index threshold, the network status does not meet the preset requirements, and the load information is less than or equal to the load threshold.

[0100] In some embodiments, the determining module 402 further includes: a neural network module, configured to input the network state, the load information and the user experience quality index into the neural network model to obtain the target sampling rate of the external decoder.

[0101] In some embodiments, the parameter configuration device 400 for the external decoder further includes: a model acquisition module for acquiring the model of the external decoder; a model matching module for matching from the parameter preset database based on the model, the configured sampling rate and the number of channels; and a configuration module for configuring the external decoder based on the register configuration information if a register configuration information is matched.

[0102] In some embodiments, the parameter configuration device 400 for the external decoder further includes: a processing module, configured to output error information when no register configuration information is matched, or to configure the external decoder using general register configuration information.

[0103] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0104] In addition, the parameter configuration device for the external decoder described above can be a software unit, a hardware unit, or a combination of software and hardware. It can also be integrated into the external decoder as an independent component, or it can exist as an independent terminal device.

[0105] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0106] Figure 5 is a schematic diagram of the structure of the external decoder provided in an embodiment of this application. As shown in Figure 5, the external decoder 3 of this embodiment may include: at least one processor 30 (only one processor 30 is shown in Figure 5), a memory 31, and a computer program 32 stored in the memory 31 and executable on at least one processor 30. When the processor 30 executes the computer program 32, it implements the steps in any of the above method embodiments, or, when the processor 30 executes the computer program 32, it implements the functions of each module / unit in the above device or system embodiments.

[0107] For example, computer program 32 can be divided into one or more modules / units, one or more of which are stored in memory 31 and executed by processor 30 to complete this application. One or more modules / units can be a series of computer program 32 instruction segments capable of performing a specific function, which describe the execution process of computer program 32 in external decoder 3.

[0108] This application also provides a computer-readable storage medium storing a computer program 32, which, when executed by a processor 30, implements the steps described in the above-described method embodiments.

[0109] This application provides a computer program product that, when run on an external decoder, enables the external decoder to implement the steps described in the above-described method embodiments.

[0110] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program 32 instructing related hardware. The computer program 32 can be stored in a computer-readable storage medium, and when executed by the processor 30, it can implement the steps of the various method embodiments described above. The computer program 32 includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a terminal, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0112] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0113] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0115] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for configuring parameters of an external decoder, characterized in that, include: Obtain the network status of the network where the external decoder is located, the load information of the external decoder, and the user experience quality indicators; The target sampling rate of the external decoder is determined based on the network status, the load information, and the user experience quality indicators. The target register configuration information is obtained by matching the target sampling rate and the model of the external decoder from the parameter preset database; Configure the external decoder based on the target register configuration information.

2. The method according to claim 1, characterized in that, The step of determining the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index includes: determining whether the user experience quality index is less than a preset index threshold; if the user experience quality index is less than the preset index threshold, reducing the sampling rate of the external decoder to obtain the target sampling rate; and if the user experience quality index is greater than the preset index threshold, determining the target sampling rate of the external decoder based on the network status and the load information.

3. The method according to claim 2, characterized in that, Determining the target sampling rate of the external decoder based on the network status and the load information includes: reducing the sampling rate of the external decoder to obtain the target sampling rate when the network status meets preset requirements, wherein the preset requirements include: network bandwidth being less than a preset bandwidth threshold and / or signal strength being less than a preset strength threshold; determining whether the load information is greater than a load threshold when the network status does not meet the preset requirements; and reducing the sampling rate of the external decoder to obtain the target sampling rate when the load information is greater than the load threshold.

4. The method according to claim 3, characterized in that, The method further includes: when the user experience quality index is greater than or equal to the preset index threshold, the network status does not meet the preset requirements, and the load information is less than or equal to the load threshold, increasing the sampling rate of the external decoder to obtain the target sampling rate.

5. The method according to claim 1, characterized in that, Determining the target sampling rate of the external decoder based on the network state, the load information, and the user experience quality index includes: inputting the network state, the load information, and the user experience quality index into a neural network model to obtain the target sampling rate of the external decoder.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: obtaining the model of the external decoder; matching it from the parameter preset database based on the model, the configured sampling rate and the number of channels; and configuring the external decoder based on the register configuration information if a match is found.

7. The method according to claim 6, characterized in that, The method further includes: outputting an error message if no register configuration information is matched, or configuring the external decoder using general register configuration information.

8. A parameter configuration device for an external decoder, characterized in that, include: The acquisition module is used to acquire the network status of the network where the external decoder is located, the load information of the external decoder, and user experience quality indicators. The determination module is used to determine the target sampling rate of the external decoder based on the network status, the load information, and the user experience quality index; The matching module is used to obtain target register configuration information from the parameter preset database based on the target sampling rate and the model of the external decoder; the configuration module is used to configure the external decoder based on the target register configuration information.

9. An external decoder, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.