A method for implementing a USB multi-mode audio interface for an intelligent terminal
By analyzing the audio transmission parameter data in the audio interface module, ensuring that the audio data is accurately transmitted in the target USB mode when the degree of interference is low, the problem of the difficulty of accurately transmitting the USB audio interface in the prior art is solved, and the stability and quality of the audio signal are improved.
Patent Information
- Application Number
- CN202410759066.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-06-12
AI Technical Summary
In the prior art, it is difficult for USB audio interface to accurately realize audio transmission in the target mode, resulting in audio mode errors, insufficient data transmission rate, and affected by external electromagnetic interference, affecting the stability and quality of the audio signal.
By acquiring audio transmission parameter data in the audio interface module, analyzing the transmission content, mode and affected situation of the audio data to be transmitted, ensuring that the audio data is accurately transmitted in the target USB mode when the degree of interference is low.
It realizes the accurate transmission of audio with the target USB mode audio interface, solves the problems of audio mode errors, insufficient data transmission rate and electromagnetic interference, and improves the stability and quality of the audio signal.
Smart Images

Figure CN118885146B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method for realizing a USB multi-mode audio interface for an intelligent terminal. Background Art
[0002] USB (Universal Serial Bus) is a widely used computer interface that supports a variety of devices, such as mouse, keyboard, printer, and storage device. With the popularity of intelligent terminal devices (such as smart phones, tablet computers, and laptops), users' demand for audio interfaces is also growing. Traditional USB audio interfaces can usually only realize a single audio transmission function, while modern intelligent terminal devices often need to support multiple audio input and output requirements at the same time, such as headphones, microphones, Line Out (line output) and Line In (line input). However, in the existing technology, the audio interface is usually a single mode, which cannot meet the needs of multiple audio interfaces.
[0003] The existing USB interface audio implementation system inputs and outputs audio signals through the USB interface through a combination of software and hardware, thereby realizing the USB interface implementation function 1 of the audio signal.
[0004] For example, the invention patent with announcement number: CN106021155B announces a USB power supply port that can realize audio and video output, including: a battery cell, a power manager, a battery cell charging connector, a power supply / data connector, a main controller, an audio / video data output interface and a voltage converter. The battery cell charging connector and the power supply / data connector are both connected to the battery cell through the power manager. The battery cell is powered by the main controller through the voltage converter. The main controller outputs the audio / video data output by the power supply / data connector through the audio / video output port.
[0005] For example, the USB Type-C interface circuit and electronic device announced in the invention patent with announcement number: CN109144933B include: a USB Type-C female socket, a switching module, a PMI C module and an AP module; the switching module, the first end is connected to the com1 end of the USB Type-C female socket, the second end is connected to the com2 end of the USB Type-C female socket, the third end is connected to the DP end of the PMI C module, the fourth end is connected to the DM end of the PMI C module, the fifth end is connected to the SBU1 end of the USB Type-C female socket, the sixth end is connected to the SBU2 end of the USB Type-C female socket, the seventh end is connected to the CC1 end of the USB Type-C female socket, the eighth end is connected to the CC2 end of the USB Type-C female socket, the ninth end is connected to the CC1 end of the PMI C module, and the tenth end is connected to the CC2 end of the PMI C module; the switching module is also connected to the AP module through the I2C bus and the I2S bus.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the prior art, when using a USB audio interface, it may be necessary to switch between different audio modes through complex menus or settings, which may cause errors in the audio mode during the continuous switching process, resulting in the final audio mode being a non-target audio mode, causing the audio mode received by the terminal to not match the expected mode, and high-quality audio data transmission requires a higher data transmission rate. If the rate of the USB interface cannot meet the requirements, it may cause interruptions or quality degradation during audio playback. The USB interface may be subject to external electromagnetic interference when transmitting data, which will also affect the stability and quality of the audio signal. There is a problem that it is difficult to accurately realize audio transmission with the target USB mode audio interface. Summary of the invention
[0008] The embodiment of the present application solves the problem in the prior art that it is difficult to accurately implement audio transmission using a target USB mode audio interface by providing a method for implementing a USB multi-mode audio interface for a smart terminal, thereby achieving accurate audio transmission using a target USB mode audio interface.
[0009] An embodiment of the present application provides a method for implementing a USB multi-mode audio interface for a smart terminal, comprising the following steps: acquiring data to obtain audio transmission parameter data during the process in which an audio interface module transmits audio data to be transmitted to a smart terminal via a USB interface; analyzing the accuracy of transmission content of the audio data to be transmitted based on the audio transmission parameter data; when the accuracy of the transmission content is consistent with the audio data to be transmitted, analyzing the accuracy of the transmission mode of the audio data to be transmitted; when the accuracy of the transmission mode is accurate, analyzing the impact on the audio data to be transmitted; when the impact is expressed as a low degree of interference, transmitting the audio data to be transmitted to the smart terminal via the USB interface.
[0010] Furthermore, the specific analysis process of analyzing the accuracy of the transmission content of the audio data to be transmitted based on the audio transmission parameter data is: obtaining audio sending parameter data based on the audio transmission parameter data; performing data processing on the audio sending parameter data; obtaining an audio sending accuracy evaluation coefficient based on the audio sending parameter data after the data processing, and the audio sending accuracy evaluation coefficient is used to reflect the content accuracy of the transmitted audio data to be transmitted; analyzing the transmission content accuracy of the audio data to be transmitted based on the audio sending accuracy evaluation coefficient.
[0011] Furthermore, the specific analysis process of analyzing the accuracy of transmission content of audio data to be transmitted according to the audio transmission accuracy assessment coefficient is as follows: obtaining the audio transmission accuracy assessment coefficient, obtaining the audio transmission accuracy threshold, comparing the audio transmission accuracy assessment coefficient with the audio transmission accuracy threshold, when the audio transmission accuracy assessment coefficient is greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module; when the audio transmission accuracy assessment coefficient is not greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is inconsistent with the audio data to be transmitted transmitted by the audio interface module, repeating the process of the audio interface module transmitting the audio data to be transmitted to the USB interface to analyze the accuracy of transmission content of the audio data to be transmitted according to the audio transmission parameter data, and stopping the repeated process when the transmission content accuracy indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module.
[0012] Furthermore, the specific analysis process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is: obtaining interface mode parameter data based on the audio transmission parameter data; obtaining an interface mode accuracy evaluation coefficient based on the interface mode parameter data analysis, and the interface mode accuracy evaluation coefficient is used to reflect the accuracy of the transmission mode of the audio data to be transmitted; analyzing the accuracy of the transmission mode of the audio data to be transmitted based on the interface mode accuracy evaluation coefficient.
[0013] Furthermore, the interface mode accuracy evaluation coefficient is obtained, and the first interface mode accuracy threshold and the second interface mode accuracy threshold are obtained. When the interface mode accuracy evaluation coefficient is greater than the first interface mode accuracy threshold and less than the second interface mode accuracy threshold, it indicates that the audio data to be transmitted is transmitted in the target audio interface mode and the transmission mode is accurate. When in other situations, it indicates that the audio data to be transmitted is transmitted in the non-target audio interface mode, the transmission mode is inaccurate, the audio interface mode is switched, and the process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is repeated. When the transmission mode accuracy indicates that the audio data to be transmitted is transmitted in the target audio interface mode, the transmission mode is accurate and the audio interface mode is no longer switched.
[0014] Furthermore, the specific process of analyzing the impact on the audio data to be transmitted is: obtaining interface interference parameter data based on audio transmission parameter data; normalizing the interface interference parameter data; obtaining an interface interference degree assessment index based on the normalized interface interference parameter data analysis, wherein the interface interference degree assessment index is used to reflect the degree of interference when transmitting the audio data to be transmitted; and analyzing the impact on the audio data to be transmitted based on the interface interference degree assessment index.
[0015] Furthermore, the specific analysis process of analyzing the impact of the audio data to be transmitted based on the interface interference degree assessment index is: obtaining the interface interference degree assessment index, obtaining the interface interference degree threshold, comparing the interface interference degree assessment index with the interface interference degree threshold, when the interface interference degree assessment index is less than the interface interference degree threshold, it indicates that the degree of interference to the audio data to be transmitted during the transmission process is low; when the interface interference degree assessment index is not less than the interface interference degree threshold, it indicates that the degree of interference to the audio data to be transmitted during the transmission process is high, and the process of analyzing the impact of the audio data to be transmitted is repeated. When the impact of the audio data to be transmitted indicates that the degree of interference to the audio data to be transmitted during the transmission process is low, it is no longer repeated.
[0016] Furthermore, the specific process of transmitting the audio data to be transmitted to the smart terminal through the USB interface is: the audio data to be transmitted with accurate transmission content is transmitted to the smart terminal through the USB interface through the audio interface module according to the target transmission mode under low interference.
[0017] Furthermore, the specific method for obtaining the interface mode accuracy evaluation coefficient is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; obtaining the number of audio interface modes of the audio interface module and numbering the audio interface modes; obtaining interface mode parameter data; constructing an interface mode accuracy evaluation coefficient calculation formula according to the interface mode parameter data; the specific interface mode accuracy evaluation coefficient calculation formula is:
[0018]
[0019] In the formula, It represents the interface mode accuracy evaluation coefficient when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, m0=1,2,...,m, m0 represents the number of the audio interface mode, m represents the total number of audio interface modes, It is represented by the amount of audio data to be transmitted at the s0th data collection before the p0th audio data to be transmitted is transmitted, s0 = 1, 2, ..., s, s0 is the number of data collection times, and it is represented by the total number of data collection times, It is expressed as the amount of audio data to be transmitted after the transmission of the s0th data collection when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode. It is expressed as the amount of audio data to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode. It is represented as the transmission delay of the audio data to be transmitted when the p0th audio data to be transmitted is collected at the s0th data when the audio data to be transmitted is transmitted in the m0th audio interface mode. It is represented as the standard audio transmission delay to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode, T1 is represented as the weight ratio of the amount of audio data to be transmitted in the interface mode accuracy evaluation coefficient, and T2 is represented as the weight ratio of the audio transmission delay to be transmitted in the interface mode accuracy evaluation coefficient.
[0020] Furthermore, the specific method for obtaining the interface interference degree evaluation index is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; obtaining interface interference parameter data; constructing an interface interference degree evaluation index calculation formula according to the interface interference parameter data; the specific interface interference degree evaluation index calculation formula is:
[0021]
[0022] In the formula, It is represented as the evaluation index of the interference degree of the interface of the p0th audio data to be transmitted during transmission, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, It is represented as the power of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, s0=1,2,...,s, s0 is the number of data collection times, and it is represented as the total number of data collection times, It is expressed as the background noise power at the s0th data collection when the p0th audio data to be transmitted is transmitted, It is represented by the number of error bits of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted. It is represented by the total number of bits of audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, U1 is represented by the weight ratio of the power of the audio data to be transmitted in the interface interference degree assessment index, and U2 is represented by the weight ratio of the number of error bits of the audio data to be transmitted in the interface interference degree assessment index.
[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0024] 1. By analyzing the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission parameter data, when the accuracy of the transmission content is consistent with the audio data to be transmitted, analyzing the accuracy of the transmission mode of the audio data to be transmitted, and when the accuracy of the transmission mode is the transmission mode accuracy, analyzing the impact of the audio data to be transmitted, so that when the impact is represented by a low interference level, the audio data to be transmitted is transmitted to the smart terminal through the USB interface, thereby realizing accurate audio transmission with the target USB mode audio interface, effectively solving the problem in the prior art that it is difficult to accurately realize audio transmission with the target USB mode audio interface.
[0025] 2. By analyzing the accuracy of the transmission mode of the audio data to be transmitted according to the interface mode accuracy evaluation coefficient, when the accuracy of the transmission mode indicates that the audio data to be transmitted is transmitted in a non-target audio interface mode, the audio interface mode is switched, and the accuracy of the transmission mode is analyzed again. When the accuracy of the transmission mode indicates that the audio data to be transmitted is transmitted in a target audio interface mode, the audio data to be transmitted is transmitted in the accurate target audio interface mode.
[0026] 3. Obtain interface interference parameter data based on audio transmission parameter data, normalize the interface interference parameter data, obtain an interface interference degree assessment index based on the normalized interface interference parameter data, and analyze the impact of the audio data to be transmitted based on the interface interference degree assessment index, thereby transmitting the audio data to be transmitted to the smart terminal when the degree of interference to the audio data to be transmitted during the transmission process is low, thereby avoiding transmitting the audio data to be transmitted that may be interfered with to the smart terminal when the interference degree is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a method for implementing a USB multi-mode audio interface for a smart terminal provided in an embodiment of the present application;
[0028] Figure 2 A graph of an interface interference degree assessment index provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The embodiment of the present application solves the problem in the prior art that it is difficult to accurately implement audio transmission using a target USB mode audio interface by providing a method for implementing a USB multi-mode audio interface for a smart terminal. The method analyzes the accuracy of the transmission content of the audio data to be transmitted according to audio transmission parameter data, and when the accuracy of the transmission content is consistent with the audio data to be transmitted, analyzes the accuracy of the transmission mode of the audio data to be transmitted, and when the accuracy of the transmission mode is consistent with the audio data to be transmitted, analyzes the impact of the audio data to be transmitted. When the impact is expressed as a low degree of interference, the audio data to be transmitted is transmitted to the smart terminal through the USB interface, thereby achieving accurate audio transmission using the target USB mode audio interface.
[0030] The technical solution in the embodiment of the present application is to solve the above problem that it is difficult to accurately implement audio transmission with the target USB mode audio interface. The overall idea is as follows:
[0031] The method comprises the following steps: obtaining audio transmission parameter data by acquiring data in the process of transmitting the audio data to be transmitted to the intelligent terminal through the USB interface by the audio interface module; obtaining audio sending parameter data according to the audio transmission parameter data; performing data processing on the audio sending parameter data; obtaining an audio sending accuracy evaluation coefficient according to the audio sending accuracy evaluation coefficient; analyzing the accuracy of the transmission content of the audio data to be transmitted according to the audio sending accuracy evaluation coefficient; obtaining interface mode parameter data according to the audio transmission parameter data when the accuracy of the transmission content is consistent with the audio data to be transmitted; obtaining an interface mode accuracy evaluation coefficient according to the interface mode parameter data; analyzing the accuracy of the transmission mode of the audio data to be transmitted according to the interface mode accuracy evaluation coefficient; obtaining interface interference parameter data according to the audio transmission parameter data when the accuracy of the transmission mode is accurate; normalizing the interface interference parameter data; obtaining an interface interference degree evaluation index according to the interface interference degree evaluation index; analyzing the impact of the audio data to be transmitted according to the interface interference degree evaluation index; and transmitting the audio data to be transmitted to the intelligent terminal through the USB interface when the impact is low interference, thereby achieving the effect of accurately realizing audio transmission through the target USB mode audio interface.
[0032] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0033] like Figure 1 As shown, it is a flow chart of a USB multi-mode audio interface implementation method for a smart terminal provided in an embodiment of the present application, the method comprising the following steps: in the process of the audio interface module transmitting the audio data to be transmitted to the smart terminal through the USB interface, data is acquired to obtain audio transmission parameter data; according to the audio transmission parameter data, the transmission content accuracy of the audio data to be transmitted is analyzed; when the transmission content accuracy is consistent with the audio data to be transmitted, the transmission mode accuracy of the audio data to be transmitted is analyzed; when the transmission mode accuracy is accurate, the affected condition of the audio data to be transmitted is analyzed; when the affected condition is represented by a low interference level, the audio data to be transmitted is transmitted to the smart terminal through the USB interface.
[0034] Furthermore, the specific analysis process of analyzing the accuracy of the transmission content of the audio data to be transmitted based on the audio transmission parameter data is: obtaining audio sending parameter data based on the audio transmission parameter data; performing data processing on the audio sending parameter data; obtaining an audio sending accuracy evaluation coefficient based on the audio sending parameter data after the data processing, the audio sending accuracy evaluation coefficient being used to reflect the content accuracy of the transmitted audio data to be transmitted; analyzing the transmission content accuracy of the audio data to be transmitted based on the audio sending accuracy evaluation coefficient.
[0035] In this embodiment, the audio transmission parameter data is processed, including cleaning the audio transmission parameter data, removing irrelevant data, erroneous data and duplicate data, etc., ensuring the accuracy and consistency of the data, and filling or correcting missing values using the average value, median and most frequent value; converting the audio transmission parameter data, converting the data from a string to a numeric type for mathematical operations; and standardizing the audio transmission parameter data so that the audio transmission parameter data is scaled to a range, such as [0, 1] or [-1, 1], etc., to eliminate the influence of different dimensions. By cleaning and converting the audio transmission parameter data, the accuracy, reliability and data quality of the data are improved, and the errors of subsequent analysis are reduced. Standardization makes the calculation process of the audio transmission parameter data easier to explain.
[0036] Furthermore, the specific analysis process of analyzing the accuracy of transmission content of audio data to be transmitted according to the audio transmission accuracy assessment coefficient is as follows: obtain the audio transmission accuracy assessment coefficient, obtain the audio transmission accuracy threshold, compare the audio transmission accuracy assessment coefficient with the audio transmission accuracy threshold, when the audio transmission accuracy assessment coefficient is greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module; when the audio transmission accuracy assessment coefficient is not greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is inconsistent with the audio data to be transmitted transmitted by the audio interface module, repeat the process of the audio interface module transmitting the audio data to be transmitted to the USB interface to analyze the accuracy of transmission content of the audio data to be transmitted according to the audio transmission parameter data, and stop the repeated process when the transmission content accuracy indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module.
[0037] In this embodiment, the audio transmission history data is obtained, and the expert analyzes the audio transmission history data to obtain the audio transmission accuracy threshold, and obtains the audio transmission accuracy threshold, the audio transmission accuracy threshold is ρ, and the value range of ρ is [1.21, 1.22]. The audio transmission accuracy evaluation coefficient is compared with the audio transmission accuracy threshold. When the audio transmission accuracy evaluation coefficient is greater than the audio transmission accuracy threshold, that is, , it indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module; when the audio transmission accuracy evaluation coefficient is not greater than the audio transmission accuracy threshold, that is, When the audio data to be transmitted received by the USB interface is inconsistent with the audio data to be transmitted transmitted by the audio interface module, the process of the audio interface module transmitting the audio data to be transmitted to the USB interface to analyze the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission parameter data is repeated. When the accuracy of the transmission content indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module, the repeated process is stopped.
[0038] The specific method for obtaining the audio transmission accuracy evaluation coefficient is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; converting the audio data to be transmitted transmitted by the audio interface module into a vector, and the first sample vector of the audio data to be transmitted transmitted by the audio interface module is i represents the number of the sampling point of the sample vector, N represents the total number of sampling points of the sample vector, and the audio data to be transmitted received by the USB interface is converted into a vector. The second sample vector of the audio data to be transmitted received by the USB interface is Acquire audio transmission parameter data; construct an audio transmission accuracy evaluation coefficient calculation formula based on the audio transmission parameter data; the specific audio transmission accuracy evaluation coefficient calculation formula is:
[0039]
[0040] In the formula, It represents the audio transmission accuracy evaluation coefficient of the p0th audio data to be transmitted, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, It is represented as the amplitude value of the first sample vector at the i-th sampling point of the first sample vector of the p0-th audio data to be transmitted at the s0-th data collection, s0=1,2,...,s, s0 represents the number of data collection times, represents the total number of data collection times, i=1,2,...,N, i represents the number of the sampling point of the sample vector, N represents the total number of sampling points of the sample vector, It is represented by the amplitude value of the second sample vector of the p0th audio data to be transmitted at the i-th sampling point of the second sample vector at the s0th data collection. It is represented as the first sample vector of the p0th audio data to be transmitted at the s0th data collection. It is represented as the second sample vector of the p0th audio data to be transmitted at the s0th data collection, Y1 is represented as the weight ratio of the amplitude value of the first sample vector in the audio transmission accuracy evaluation coefficient, and Y2 is represented as the weight ratio of the first sample vector in the audio transmission accuracy evaluation coefficient.
[0041] The process of converting the audio data to be transmitted by the audio interface module and the audio data to be transmitted received by the USB interface into a vector includes: sampling, quantization, encoding and vectorization. The specific process is: converting a continuous audio signal into discrete sampling points; converting the amplitude at the sampling point from a continuous value to a finite number of discrete values, and each sampling point after quantization is a digital value; converting the quantized digital value into a binary form for storage and transmission; converting a sequence of digital sampling values into a vector form. In digital audio processing, this usually means processing a frame of audio data (for example, all sampling points in an audio block) as a whole. This whole is a vector, and its elements are each sampling value in the frame. For example, if an audio signal is 16-bit pulse code modulation (PCM) with a sampling rate of 44100 Hz, there will be 44100 sampling points per second. Each sampling point is a 16-bit value, representing the audio amplitude at that time point. Arranging these values in order forms a vector with a length of 44100, which is a representation of the original audio data. Through the above process, the audio data to be transmitted transmitted by the audio interface module and the audio data to be transmitted received by the USB interface are converted into a first sample vector and a second sample vector.
[0042] The cosine similarity is obtained by analyzing the first sample vector and the second sample vector. Cosine similarity is an indicator that measures the cosine value of the angle between two vectors, and its value range is from -1 to 1. The closer the cosine similarity is to 1, the more similar the directions of the two vectors are; the closer the cosine similarity is to -1, the more opposite the directions of the two vectors are; if the cosine similarity is equal to 0, it means that the two vectors are perpendicular and have no similarity in any direction. In audio data processing, cosine similarity can be used to evaluate the similarity between original audio data and transmitted or processed audio data.
[0043] The Euclidean distance is obtained by analyzing the amplitude value of the first sample vector and the amplitude value of the second sample vector. The Euclidean distance is a method of measuring the distance between two points in a multidimensional space. It is one of the most common distance measurement methods. The value range of the Euclidean distance is a real number greater than or equal to 0. When the two points completely overlap, the Euclidean distance is 0; when the positions of the two points in space are completely opposite, the Euclidean distance reaches its maximum value, that is, the square root of the sum of the squares of the difference between the coordinate values of the two points. In audio data processing, the Euclidean distance can be used to measure the difference between the original audio data and the transmitted audio data. If the audio data is converted into a numerical vector, the similarity between the two vectors can be evaluated by calculating the Euclidean distance between them. A larger Euclidean distance means a larger difference, while a smaller Euclidean distance means a smaller difference.
[0044] The cosine similarity is obtained by analyzing the first sample vector and the second sample vector, and the Euclidean distance is obtained by analyzing the amplitude value of the first sample vector and the amplitude value of the second sample vector. The cosine similarity and the Euclidean distance are nonlinearly transformed by a hyperbolic cosine function and analyzed to obtain an audio transmission accuracy assessment coefficient, so that the fluctuation of the audio transmission accuracy assessment coefficient is within a certain range, which is conducive to more accurately analyzing the consistency between the audio data to be transmitted received by the USB interface and the audio data to be transmitted transmitted by the audio interface module.
[0045] Through one-on-one interviews with experts in the field of audio data, we can obtain their degree of importance on each parameter and obtain the amplitude value of the first sample vector and the weight ratio of the first sample vector, that is, to obtain the specific values of Y1 and Y2. The value range of Y1 and Y2 is (0, 1), and the sum of Y1 and Y2 is equal to 1.
[0046] Furthermore, the specific analysis process for analyzing the accuracy of the transmission mode of the audio data to be transmitted is: obtaining interface mode parameter data based on the audio transmission parameter data; obtaining an interface mode accuracy assessment coefficient based on the interface mode parameter data analysis, and the interface mode accuracy assessment coefficient is used to reflect the accuracy of the transmission mode of the audio data to be transmitted; analyzing the accuracy of the transmission mode of the audio data to be transmitted based on the interface mode accuracy assessment coefficient.
[0047] In this embodiment, the interface mode accuracy assessment coefficient is obtained based on the interface mode parameter data analysis, so that the interface mode accuracy assessment coefficient is considered more comprehensively, which is conducive to more detailed analysis of the transmission mode accuracy of the audio data to be transmitted through the interface mode accuracy assessment coefficient.
[0048] Furthermore, the specific method for obtaining the interface mode accuracy evaluation coefficient is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; obtaining the number of audio interface modes of the audio interface module and numbering the audio interface modes; obtaining interface mode parameter data; constructing an interface mode accuracy evaluation coefficient calculation formula according to the interface mode parameter data; the specific interface mode accuracy evaluation coefficient calculation formula is:
[0049]
[0050] In the formula, It represents the interface mode accuracy evaluation coefficient when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, m0=1,2,...,m, m0 represents the number of the audio interface mode, m represents the total number of audio interface modes, It is represented by the amount of audio data to be transmitted at the s0th data collection before the p0th audio data to be transmitted is transmitted, s0 = 1, 2, ..., s, s0 is the number of data collection times, and it is represented by the total number of data collection times, It is expressed as the amount of audio data to be transmitted after the transmission of the s0th data collection when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode. It is expressed as the amount of audio data to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode. It is represented as the transmission delay of the audio data to be transmitted when the p0th audio data to be transmitted is collected at the s0th data when the audio data to be transmitted is transmitted in the m0th audio interface mode. It is represented as the standard audio transmission delay to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode, T1 is represented as the weight ratio of the amount of audio data to be transmitted in the interface mode accuracy evaluation coefficient, and T2 is represented as the weight ratio of the audio transmission delay to be transmitted in the interface mode accuracy evaluation coefficient.
[0051] In this embodiment, historical data related to the transmission mode of the audio data is obtained, and the historical data is subjected to principal component analysis (PCA) to obtain a specific weight ratio. The specific process is as follows: the historical data is standardized, the covariance matrix of the historical data is calculated, the eigenvalue of the covariance matrix is calculated, the principal component is obtained by eigenvalue decomposition, and the weight is determined according to the variance contribution rate of the principal component. The amplitude value of the first sample vector and the weight ratio of the first sample vector are obtained, that is, the specific values of T1 and T2 are obtained. The value ranges of T1 and T2 are both (0, 1), and the sum of T1 and T2 is equal to 1.
[0052] For the same audio data, different transmission modes will cause the following data changes: compression and processing methods of different modes will affect audio quality; wireless and network transmission may introduce additional delays; lossy compression will reduce the amount of data, while lossless compression will maintain the original amount of data; some transmission modes may require specific players or devices to support. When selecting an audio transmission mode, it is necessary to comprehensively consider factors such as audio quality requirements, transmission distance, convenience, cost, and compatibility. The audio data to be transmitted under different transmission modes will change to a certain extent. By analyzing these changes, it can be clear whether the transmission mode used is the target transmission mode. The greater the difference between the ratio of the amount of audio data to be transmitted and the amount of audio data to be transmitted after transmission and the ratio of the amount of audio data to be transmitted and the amount of audio data to be transmitted after standard transmission, and the greater the difference between the transmission delay of the audio to be transmitted and the transmission delay of the standard audio to be transmitted, the greater the difference between the currently used transmission mode and the target audio interface mode.
[0053] By performing nonlinear transformation of the above data through the inverse tangent function and analyzing it to obtain the interface mode accuracy evaluation coefficient, it is helpful to more intuitively feel the changes in the interface mode accuracy evaluation coefficient, and to more accurately analyze whether the transmission mode used is the target audio interface mode.
[0054] By using a computer to monitor and read the process of transmitting the audio data to be transmitted, the amount of audio data to be transmitted, the amount of audio data to be transmitted after transmission, and the audio transmission delay to be transmitted are obtained. When the audio data to be transmitted is transmitted in the target audio interface mode, the computer monitors and reads to obtain the amount of audio data to be transmitted after standard transmission and the standard audio transmission delay to be transmitted.
[0055] Furthermore, the interface mode accuracy evaluation coefficient is obtained, and the first interface mode accuracy threshold and the second interface mode accuracy threshold are obtained. When the interface mode accuracy evaluation coefficient is greater than the first interface mode accuracy threshold and less than the second interface mode accuracy threshold, it indicates that the audio data to be transmitted is transmitted in the target audio interface mode and the transmission mode is accurate. When in other situations, it indicates that the audio data to be transmitted is transmitted in the non-target audio interface mode, the transmission mode is inaccurate, the audio interface mode is switched, and the process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is repeated. When the transmission mode accuracy indicates that the audio data to be transmitted is transmitted in the target audio interface mode, the transmission mode is accurate and the audio interface mode is no longer switched.
[0056] In this embodiment, historical data is obtained and analyzed to obtain an interface mode accuracy evaluation coefficient, the accuracy of the audio transmission mode under different interface mode accuracy evaluation coefficients is analyzed, and the first interface mode accuracy threshold and the second interface mode accuracy threshold are obtained according to the accuracy of the audio transmission mode. The first interface mode accuracy threshold and the second interface mode accuracy threshold are ρ1 and ρ2, respectively, and the value range of ρ1 is [0.57, 0.58], and the value range of ρ2 is [0.65, 0.66]. The first interface mode accuracy threshold and the second interface mode accuracy threshold are obtained. When the interface mode accuracy evaluation coefficient is greater than the first interface mode accuracy threshold and less than the second interface mode accuracy threshold, that is, When , it means that the audio data to be transmitted is transmitted in the target audio interface mode, and the transmission mode is accurate; when it is in other situations, that is, or When the transmission mode is accurate, it indicates that the audio data to be transmitted is transmitted in a non-target audio interface mode, and the transmission mode is inaccurate. The audio interface mode is switched, and the process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is repeated. When the accuracy of the transmission mode indicates that the audio data to be transmitted is transmitted in the target audio interface mode, the transmission mode is accurate, and the audio interface mode is no longer switched.
[0057] When it is analyzed that the audio data to be transmitted is transmitted in the target audio interface mode, it means that the transmission mode of the audio data to be transmitted is correct and does not need to be changed; when the audio data to be transmitted is transmitted in the non-target audio interface mode, the transmission mode is inaccurate, and the audio interface mode is switched until it is analyzed that the audio data to be transmitted is transmitted in the target audio interface mode, indicating that the correct transmission mode is switched to transmit the audio data to be transmitted. This switching process is automatic switching. As long as the target audio interface mode is set, the audio data to be transmitted will be transmitted only when it is switched to the target audio interface mode, avoiding errors in other mode switching methods that lead to the final switching of the wrong transmission mode.
[0058] Furthermore, the specific process of analyzing the impact on the audio data to be transmitted is: obtaining interface interference parameter data based on the audio transmission parameter data; normalizing the interface interference parameter data; obtaining an interface interference degree assessment index based on the normalized interface interference parameter data, the interface interference degree assessment index being used to reflect the degree of interference when transmitting the audio data to be transmitted; and analyzing the impact on the audio data to be transmitted based on the interface interference degree assessment index.
[0059] In this embodiment, the interface interference parameter data is normalized, including scaling the interface interference parameter data to the range of [0, 1] or [negative maximum value, positive maximum value] through a minimum-maximum normalization (Min-Max Sca ling) method. By normalizing the interface interference parameter data, prominent data in the interface interference parameter data is smoothed, and the quality of the interface interference parameter data is improved, which is conducive to obtaining a more accurate interface interference degree evaluation index based on the interface interference parameter data, and is conducive to more accurately analyzing the impact of the audio data to be transmitted.
[0060] Furthermore, the specific method for obtaining the interface interference degree evaluation index is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; obtaining interface interference parameter data; constructing an interface interference degree evaluation index calculation formula according to the interface interference parameter data; the specific interface interference degree evaluation index calculation formula is:
[0061]
[0062] In the formula, It is represented as the evaluation index of the interference degree of the interface of the p0th audio data to be transmitted during transmission, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, It is represented as the power of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, s0=1,2,...,s, s0 is the number of data collection times, and it is represented as the total number of data collection times, It is expressed as the background noise power at the s0th data collection when the p0th audio data to be transmitted is transmitted, It is represented by the number of error bits of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted. It is represented by the total number of bits of audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, U1 is represented by the weight ratio of the power of the audio data to be transmitted in the interface interference degree assessment index, and U2 is represented by the weight ratio of the number of error bits of the audio data to be transmitted in the interface interference degree assessment index.
[0063] In this embodiment, the interference parameter data of the evaluation interface is standardized, the entropy value is calculated according to the discrete degree of the interference parameter data of the data interface, and the weight of each parameter in the interference parameter data of each interface is determined by using the inverse entropy method to obtain the specific weights of the power of the audio data to be transmitted and the number of error bits of the audio data to be transmitted, that is, to obtain the specific values of U1 and U2. The value ranges of U1 and U2 are both (0, 1), and the sum of U1 and U2 is equal to 1.
[0064] Use appropriate measuring equipment (such as spectrum analyzer, oscilloscope, etc.) to measure the power of the audio data to be transmitted and determine the power of the background noise, that is, to obtain the power of the audio data to be transmitted and the power of the background noise. Signal power is usually measured in watts (W) or decibel milliwatts (dBm). The signal-to-noise ratio (SNR) is obtained by analyzing the power of the audio data to be transmitted and the background noise power. The signal-to-noise ratio is a parameter to measure the signal quality. The higher the SNR value, the better the signal quality and the less interference. In a communication system, a higher SNR usually means a better data transmission rate and a lower bit error rate.
[0065] The number of error bits and the total number of bits of the audio data to be transmitted are obtained by reading and analyzing the audio data to be transmitted by a computer, and the bit error rate (BER) is obtained by analysis. The bit error rate is an indicator to measure the correctness of data transmission. It represents the ratio of the number of bits that have errors during the transmission process to the total number of bits transmitted. The unit of the bit error rate is dimensionless. The bit error rate is usually used to evaluate the reliability of the communication system. A low bit error rate means that the accuracy of data transmission is higher and the interference is lower.
[0066] The signal-to-noise ratio is obtained by analyzing the power of the audio data to be transmitted and the background noise power, and the bit error rate is obtained by analyzing the number of error bits of the audio data to be transmitted and the total number of bits of the audio data to be transmitted. The signal-to-noise ratio and the bit error rate are nonlinearly transformed and analyzed through a hyperbolic secant function to obtain an interface interference degree assessment index. The interface interference degree assessment index is smoothed so that the interface interference degree assessment index is within a certain range, which is conducive to more detailed analysis of the impact of the audio data to be transmitted according to the interface interference degree assessment index.
[0067] like Figure 2 As shown, it is a curve diagram of the interface interference degree assessment index provided by the embodiment of the present application, with the power of the audio data to be transmitted as the independent variable and the interface interference degree assessment index as the dependent variable. Through the increase and decrease analysis of curves 1, 2 and 3, it can be known that when the power of the audio data to be transmitted is greater, the interface interference degree assessment index is smaller; when the power of the audio data to be transmitted is smaller, the interface interference degree assessment index is larger. The statistical table of the interface interference degree assessment index related data is shown in Table 1:
[0068] Table 1 Statistics of interface interference degree evaluation index
[0069]
[0070] It can be seen from Table 1 that in curve 1, when other parameters are the same, the greater the power of the audio data to be transmitted, that is, when the power of the audio data to be transmitted is 0.3W, 0.4W and 0.5W respectively, the interface interference degree assessment index is 8.34*10 -4 5.74*10 -4 and 4.29*10 -4 , the interface interference degree evaluation index gradually decreases; similarly, when the power of the audio data to be transmitted is smaller, the interface interference degree evaluation index is larger. The above changes are also valid for curve 2 and curve 3.
[0071] For curve 1, curve 2 and curve 3, when the power of the audio data to be transmitted of curve 1, curve 2 and curve 3 is 0.4W, when the background noise power of curve 1, curve 2 and curve 3 is 0.001W, 0.002W and 0.003W respectively, and other parameters are the same, the interface interference degree assessment index of curve 1, curve 2 and curve 3 is 5.74*10 -4 , 1.41*10 -3 and 2.39*10 -3 It can be seen that when the power of the audio data to be transmitted is consistent with other parameters, the greater the background noise power, the greater the interface interference degree evaluation index.
[0072] Furthermore, the specific analysis process of analyzing the impact of the audio data to be transmitted according to the interface interference degree assessment index is as follows: obtaining the interface interference degree assessment index, obtaining the interface interference degree threshold, comparing the interface interference degree assessment index with the interface interference degree threshold, when the interface interference degree assessment index is less than the interface interference degree threshold, it indicates that the degree of interference to the audio data to be transmitted during the transmission process is low; when the interface interference degree assessment index is not less than the interface interference degree threshold, it indicates that the degree of interference to the audio data to be transmitted during the transmission process is high, and the process of analyzing the impact of the audio data to be transmitted is repeated. When the impact of the audio data to be transmitted indicates that the degree of interference to the audio data to be transmitted during the transmission process is low, it is no longer repeated.
[0073] In this embodiment, historical data related to signal interference is collected and analyzed to obtain the corresponding interface interference degree evaluation index and analyze the interference degree. The interface interference degree evaluation index is divided according to the interference degree, and the value range of the interface interference degree evaluation index that distinguishes high interference degree and low interference degree is obtained, that is, the interface interference degree threshold is obtained. The interface interference degree threshold is obtained, and the interface interference degree threshold is ω, and the value range of ω is [5*10 -4 , 8*10 -4 ], compare the interface interference degree evaluation index with the interface interference degree threshold. When the interface interference degree evaluation index is less than the interface interference degree threshold, that is, When , it indicates that the interference degree of the audio data to be transmitted is low during the transmission process; when the interface interference degree evaluation index is not less than the interface interference degree threshold, that is, When , it indicates that the interference degree of the audio data to be transmitted during the transmission process is high, and the process of analyzing the impact of the audio data to be transmitted is repeated. When the impact of the audio data to be transmitted indicates that the interference degree of the audio data to be transmitted during the transmission process is low, it is no longer repeated.
[0074] During the process of transmitting the audio data to be transmitted to the smart terminal through the USB interface, if the audio data to be transmitted is severely interfered with, the accuracy and reliability of the audio data to be transmitted received by the smart terminal will be reduced, which will have an adverse impact on the subsequent analysis and processing process of the smart terminal. Therefore, it is necessary to transmit the audio data to be transmitted to the smart terminal when the degree of interference of the audio data to be transmitted is low.
[0075] Furthermore, the specific process of transmitting the audio data to be transmitted to the smart terminal through the USB interface is: the audio data to be transmitted with accurate transmission content is transmitted to the smart terminal through the USB interface according to the target transmission mode under low interference through the audio interface module.
[0076] In this embodiment, during the above analysis process, it is first ensured that the content of the audio data to be transmitted is correct, and based on the correct content, it is determined that the transmission mode used is also correct. The audio data to be transmitted is transmitted under the correct transmission mode, ensuring that the degree of interference with the audio data to be transmitted during the transmission process is low, and then the audio data to be transmitted is transmitted to the smart terminal, ensuring that the audio data to be transmitted can be accurately transmitted to the smart terminal.
[0077] The technical scheme in the above-mentioned embodiment of the present application has at least the following technical effects or advantages: by analyzing the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission parameter data, when the accuracy of the transmission content is consistent with the audio data to be transmitted, analyzing the accuracy of the transmission mode of the audio data to be transmitted, and when the accuracy of the transmission mode is the transmission mode accuracy, analyzing the impact of the audio data to be transmitted, so that when the impact is represented by a low interference level, the audio data to be transmitted is transmitted to the smart terminal through the USB interface, thereby realizing accurate audio transmission with the target USB mode audio interface, effectively solving the problem in the prior art that it is difficult to accurately realize audio transmission with the target USB mode audio interface.
[0078] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0079] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0082] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0083] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for implementing a USB multi-mode audio interface for an intelligent terminal, characterized in that: The following steps are involved: In the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, data acquisition is performed to obtain audio transmission parameter data; Analyze the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission parameter data; When the accuracy of the transmitted content is consistent with the audio data to be transmitted, analyzing the accuracy of the transmission mode of the audio data to be transmitted; When the transmission mode is accurate, analyzing the impact on the audio data to be transmitted; When the affected situation indicates that the interference level is low, the audio data to be transmitted is transmitted to the intelligent terminal through the USB interface; The specific analysis process of analyzing the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission parameter data is as follows: Obtaining audio sending parameter data according to the audio transmission parameter data; Performing data processing on audio sending parameter data; Obtaining an audio transmission accuracy evaluation coefficient according to the audio transmission parameter data after data processing, wherein the audio transmission accuracy evaluation coefficient is used to reflect the accuracy of the content of the transmitted audio data to be transmitted; Analyze the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission accuracy evaluation coefficient; The specific method for obtaining the audio transmission accuracy evaluation coefficient is as follows: obtaining the number of audio data to be transmitted and numbering the audio data to be transmitted; performing multiple data collections in the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, obtaining the number of data collections, and numbering the number of data collections; converting the audio data to be transmitted transmitted by the audio interface module into a vector, and the first sample vector of the audio data to be transmitted transmitted by the audio interface module is i=1,2,...,N, i represents the number of the sampling point of the sample vector, N represents the total number of sampling points of the sample vector, the audio data to be transmitted received by the USB interface is converted into a vector, and the second sample vector of the audio data to be transmitted received by the USB interface is Acquire audio transmission parameter data; construct an audio transmission accuracy evaluation coefficient calculation formula based on the audio transmission parameter data; the specific audio transmission accuracy evaluation coefficient calculation formula is: In the formula, It represents the audio transmission accuracy evaluation coefficient of the p0th audio data to be transmitted, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, It is represented as the amplitude value of the first sample vector at the i-th sampling point of the first sample vector of the p0-th audio data to be transmitted at the s0-th data collection, s0=1,2,...,s, s0 represents the number of data collection times, represents the total number of data collection times, i=1,2,...,N, i represents the number of the sampling point of the sample vector, N represents the total number of sampling points of the sample vector, It is represented by the amplitude value of the second sample vector of the p0th audio data to be transmitted at the i-th sampling point of the second sample vector at the s0th data collection. It is represented as the first sample vector of the p0th audio data to be transmitted at the s0th data collection. It is represented as the second sample vector of the p0th audio data to be transmitted at the s0th data collection, Y1 is represented as the weight ratio of the amplitude value of the first sample vector in the audio transmission accuracy evaluation coefficient, and Y2 is represented as the weight ratio of the first sample vector in the audio transmission accuracy evaluation coefficient; The specific analysis process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is as follows: Obtaining interface mode parameter data according to audio transmission parameter data; Obtaining an interface mode accuracy evaluation coefficient according to the interface mode parameter data analysis, wherein the interface mode accuracy evaluation coefficient is used to reflect the accuracy of the transmission mode of the audio data to be transmitted; Analyze the accuracy of the transmission mode of the audio data to be transmitted according to the interface mode accuracy evaluation coefficient; The specific method for obtaining the interface mode accuracy evaluation coefficient is: Obtain the quantity of audio data to be transmitted, and number the audio data to be transmitted; In the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, multiple data collections are performed to obtain the number of data collections and number the number of data collections; Get the number of audio interface modes of the audio interface module and number the audio interface modes; Get interface mode parameter data; Construct an interface mode accuracy evaluation coefficient calculation formula based on interface mode parameter data; The specific interface mode accuracy evaluation coefficient calculation formula is: In the formula, It represents the interface mode accuracy evaluation coefficient when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, m0=1,2,...,m, m0 represents the number of the audio interface mode, m represents the total number of audio interface modes, It is represented by the amount of audio data to be transmitted at the s0th data collection before the p0th audio data to be transmitted is transmitted, s0 = 1, 2, ..., s, s0 is the number of data collection times, and it is represented by the total number of data collection times, It is expressed as the amount of audio data to be transmitted after the transmission of the s0th data collection when the p0th audio data to be transmitted is transmitted in the m0th audio interface mode. It is expressed as the amount of audio data to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode. It is represented as the transmission delay of the audio data to be transmitted when the p0th audio data to be transmitted is collected at the s0th data when the audio data to be transmitted is transmitted in the m0th audio interface mode. It is represented as the standard audio transmission delay to be transmitted after the p0th audio data to be transmitted is transmitted in the target audio interface mode, T1 is represented as the weight ratio of the amount of audio data to be transmitted in the interface mode accuracy evaluation coefficient, and T2 is represented as the weight ratio of the audio transmission delay to be transmitted in the interface mode accuracy evaluation coefficient; The specific process of analyzing the impact of the audio data to be transmitted is as follows: Obtaining interface interference parameter data according to audio transmission parameter data; Normalize the parameter data of the interface being disturbed; Obtaining an interface interference degree evaluation index according to the normalized interface interference parameter data analysis, wherein the interface interference degree evaluation index is used to reflect the interference degree when transmitting the audio data to be transmitted; Analyze the impact on the audio data to be transmitted based on the interface interference degree assessment index; The specific method for obtaining the interface interference degree evaluation index is: Obtain the quantity of audio data to be transmitted, and number the audio data to be transmitted; In the process of the audio interface module transmitting the audio data to be transmitted to the intelligent terminal through the USB interface, multiple data collections are performed to obtain the number of data collections and number the number of data collections; Get the interface interference parameter data; Construct a calculation formula for the interface interference degree evaluation index based on the interface interference parameter data; The specific calculation formula for the interface interference degree evaluation index is: In the formula, It is represented as the evaluation index of the interference degree of the interface of the p0th audio data to be transmitted during transmission, p0=1,2,...,p, p0 represents the number of the audio data to be transmitted, p represents the total number of audio data to be transmitted, It is represented as the power of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, s0=1,2,...,s, s0 is the number of data collection times, and it is represented as the total number of data collection times, It is expressed as the background noise power at the s0th data collection when the p0th audio data to be transmitted is transmitted, It is represented by the number of error bits of the audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted. It is represented by the total number of bits of audio data to be transmitted at the s0th data collection when the p0th audio data to be transmitted is transmitted, U1 is represented by the weight ratio of the power of the audio data to be transmitted in the interface interference degree assessment index, and U2 is represented by the weight ratio of the number of error bits of the audio data to be transmitted in the interface interference degree assessment index.
2. A method for implementing a USB multi-mode audio interface for an intelligent terminal as claimed in claim 1, characterized in that: The specific analysis process of analyzing the accuracy of the transmission content of the audio data to be transmitted according to the audio transmission accuracy evaluation coefficient is as follows: Obtain an audio transmission accuracy assessment coefficient, obtain an audio transmission accuracy threshold, compare the audio transmission accuracy assessment coefficient with the audio transmission accuracy threshold, and when the audio transmission accuracy assessment coefficient is greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module; When the audio transmission accuracy evaluation coefficient is not greater than the audio transmission accuracy threshold, it indicates that the audio data to be transmitted received by the USB interface is inconsistent with the audio data to be transmitted transmitted by the audio interface module. The audio interface module transmits the audio data to be transmitted to the USB interface and analyzes the transmission content accuracy of the audio data to be transmitted according to the audio transmission parameter data. When the transmission content accuracy indicates that the audio data to be transmitted received by the USB interface is consistent with the audio data to be transmitted transmitted by the audio interface module, the repeated process is stopped.
3. A method for implementing a USB multi-mode audio interface for an intelligent terminal as claimed in claim 1, characterized in that: The specific process of analyzing the accuracy of the transmission mode of the audio data to be transmitted according to the interface mode accuracy evaluation coefficient is as follows: Obtain an interface mode accuracy evaluation coefficient, obtain an interface mode accuracy first threshold and an interface mode accuracy second threshold. When the interface mode accuracy evaluation coefficient is greater than the interface mode accuracy first threshold and less than the interface mode accuracy second threshold, it indicates that the audio data to be transmitted is transmitted in the target audio interface mode and the transmission mode is accurate. When in other situations, it means that the audio data to be transmitted is transmitted in a non-target audio interface mode, the transmission mode is inaccurate, the audio interface mode is switched, and the process of analyzing the accuracy of the transmission mode of the audio data to be transmitted is repeated. When the accurate transmission mode indicates that the audio data to be transmitted is transmitted in the target audio interface mode, the transmission mode is accurate and the audio interface mode is no longer switched.
4. A method for implementing a USB multi-mode audio interface for an intelligent terminal as claimed in claim 1, characterized in that: The specific analysis process of analyzing the impact of the audio data to be transmitted according to the interface interference degree evaluation index is as follows: Obtaining an interface interference degree assessment index, obtaining an interface interference degree threshold, and comparing the interface interference degree assessment index with the interface interference degree threshold. When the interface interference degree assessment index is less than the interface interference degree threshold, it indicates that the interference degree of the audio data to be transmitted during the transmission process is low. When the interface interference degree assessment index is not less than the interface interference degree threshold, it indicates that the interference degree of the audio data to be transmitted is high during the transmission process, and the process of analyzing the impact of the audio data to be transmitted is repeated. When the impact of the audio data to be transmitted indicates that the interference degree of the audio data to be transmitted is low during the transmission process, it is no longer repeated.
5. A method for implementing a USB multi-mode audio interface for an intelligent terminal as claimed in claim 1, characterized in that: The specific process of transmitting the audio data to be transmitted to the smart terminal through the USB interface is: the audio data to be transmitted with accurate transmission content is transmitted to the smart terminal through the USB interface according to the target transmission mode under low interference through the audio interface module.
Citation Information
Patent Citations
A usb power supply port capable of audio, video and video output
CN106021155B
USB Type-C interface circuit and electronic devices
CN109144933B
Audio transmission method, device and equipment by combining recording microphone with USB (Universal Serial Bus)
CN117435985A
Method and System for Interference Suppression Using Blind Source Separation
US20110064242A1