ADAT interface performance optimization method

By calculating the transmission interference level of the ADAT module and combining the mean square error of human voice and ambient sound, the ADAT interface performance is optimized, and the data loss problem during audio transmission in the prior art is solved and the transmission performance is improved.

CN119323962APending Publication Date: 2025-01-17SHENZHEN XINGAIFA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411518376.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

The existing ADAT interface cannot comprehensively consider human voice and ambient sound during audio transmission, resulting in the inability to accurately judge the loss of the transmission module, and thus data loss and other problems.

Method used

By obtaining the human voice spectrum diagram of sending and receiving audio data, calculating the mean square error of human voice and unmanned voice, determining the transmission interference level of the ADAT module, and setting the optimization method according to the interference level, the intelligent performance of the ADAT interface is achieved. optimization.

Benefits of technology

Combined with the comprehensive consideration of human voice and ambient sound in audio data, the intelligent optimization of the ADAT interface is achieved, avoiding data loss and improving transmission performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119323962A_ABST
    Figure CN119323962A_ABST
Patent Text Reader

Abstract

The invention discloses an ADAT interface performance optimization method, relates to the technical field of interface optimization, and solves the problem that comprehensive consideration cannot be performed according to two aspects of human voice and environmental sound in audio data during audio transmission at the present stage. The method comprises the following steps: dividing sent audio data into a first comparison audio and first to nth sample audios; obtaining a corresponding sending human voice spectrogram by combining the first comparison audio, obtaining a corresponding receiving human voice spectrogram based on the receiving audio data, and calculating a mean square error corresponding to human voices in the receiving audio data and the sending audio data by combining the sending human voice spectrogram and the receiving human voice spectrogram; calculating a mean square error when no human voice exists in the received audio data and the sent audio data, and obtaining an ADAT transmission interference level corresponding to the ADAT module; a corresponding optimization method is set according to the ADAT transmission interference level. According to the invention, intelligent optimization of ADAT interface performance is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ADAT interface performance optimization, and specifically to an ADAT interface performance optimization method. Background Art

[0002] ADAT is a digital audio encoding format and digital audio interface standard. It was originally known for its 8-track audio digital recorder. This recorder quickly gained widespread use in the music production and recording industries for its high-quality digital audio recording and convenient interface design. ADAT uses optical fiber digital communication standards to achieve high-quality audio signal transmission.

[0003] However, at present, when transmitting audio, the human voice and environmental sound in the audio data are not comprehensively considered, resulting in the inability of the existing technology to accurately determine the loss of the transmission module when optimizing audio transmission, which in turn leads to data loss during audio transmission. Therefore, we propose a method to optimize the performance of ADAT interface. Summary of the invention

[0004] The purpose of the present invention is to propose a method for optimizing ADAT interface performance to solve the problems raised in the above background technology.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions: A method for optimizing ADAT interface performance, the method is as follows: Step S1, obtaining the transmitted audio data, and dividing the transmitted audio data into a first comparison audio and first to nth sample audios; Step S2, combining the first comparison audio to obtain a corresponding transmitted human voice spectrogram, obtaining a corresponding received human voice spectrogram based on the received audio data, and calculating a mean square error corresponding to the human voice in the received audio data and the transmitted audio data by combining the transmitted human voice spectrogram and the received human voice spectrogram; Step S3, calculating the mean square error between the received audio data and the transmitted audio data when there is no human voice, and obtaining the ADAT transmission interference level corresponding to the ADAT module; Step S4, setting a corresponding optimization method according to the ADAT transmission interference level.

[0006] Furthermore, the step S1 includes the following sub-steps: Step S11, if there is human voice in the transmitted audio data, extract the audio segment containing the human voice in the transmitted audio data and record it as the first comparison audio; Step S12, then dividing the part without human voice in the transmitted audio data into a plurality of audio segments with the same time interval, and arbitrarily selecting n audio segments to record as the first sample audio to the nth sample audio; Step S13: if there is no human voice data in the transmitted audio data, the transmitted audio data is divided into a plurality of audio segments with the same time interval, and n audio segments are randomly selected and recorded as the first sample audio to the nth sample audio.

[0007] Furthermore, the step S2 includes the following sub-steps: Step S21, obtaining a transmitted human voice spectrogram corresponding to the transmitted audio data; Step S22, obtaining a received human voice spectrogram corresponding to the received audio data; Step S23, compare the transmitted human voice spectrum with the received human voice spectrum, and calculate the human voice mean square error between the transmitted human voice spectrum and the received human voice spectrum. The calculation process of the human voice mean square error is: The calculation starts from the moment when the human voice is recognized, and the spectrum differences between the transmitted human voice spectrum graph and the received human voice spectrum graph are calculated in sequence. Then the spectrum differences are added and averaged to obtain the human voice mean square error RJW.

[0008] Furthermore, the process of obtaining the sent human voice spectrogram is specifically as follows: Step S211, obtaining a first comparison audio, dividing the first comparison audio into a plurality of transmission audio short frames FYPu according to a fixed length, where u is a number, u=1, 2, ..., z, and z is a positive integer; Step S212, multiply each transmitted audio short frame by a window function to obtain a first-level processed audio short frame YJGu, the formula is: YJGu=FYPu×CH; where CH is the window function; Step S213, by formula PPu=YJGu 2 / z calculates the spectrum PPu of the second processed short-time frame; Step S214, drawing a corresponding transmitted human voice spectrum diagram according to the spectrum.

[0009] Furthermore, the process of obtaining the received human voice spectrogram is specifically as follows: Step S221, obtaining the received audio data received by the receiving end, identifying the human voice part in the received audio data, and recording it as the second comparison audio; Step S222, repeatedly executing steps S211 to S214 for the second comparison audio, to obtain a received human voice spectrum diagram corresponding to the human voice part in the received audio data.

[0010] Furthermore, the step S3 includes the following sub-steps: Step S31, dividing the received audio data into a plurality of audio segments with the same time interval, and selecting the first comparison audio to the nth comparison audio; Step S32, converting the first reference audio into a reference waveform and converting the first sample audio into a sample waveform; Step S33, calculating the mean square error between the reference waveform and the sample waveform at the same time, recorded as the first mean square error YJW1 between the first reference audio and the first sample audio; Step S34, similarly calculating the second mean square error to the nth mean square error between the second reference audio and the second sample audio to the nth reference audio and the nth sample audio; Step S35, selecting the maximum value from the second mean square error to the nth mean square error as the unvoiced mean square error WJW; Step S36, calculating the interference level value GDJ of the ADAT module by the formula GDJ=A1×RJW+A2×WJW; wherein A1 and A2 are weight coefficients, and A1>A2>0; Step S37, if the interference level value of the ADAT module is less than or equal to the first interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level one interference; If the interference level value of the ADAT module is greater than the first interference point threshold and less than or equal to the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as secondary interference; If the interference level value of the ADAT module is greater than the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level three interference.

[0011] Further, the second interference threshold is greater than the first interference threshold; The transmission performance of the ADAT module corresponding to the third-level interference is lower than that of the ADAT module corresponding to the second-level interference; The transmission performance of the ADAT module corresponding to the second-level interference is lower than the transmission performance of the ADAT module corresponding to the first-level interference.

[0012] Furthermore, the step S4 includes the following sub-steps: Step S41, obtaining the ADAT transmission interference level corresponding to the ADAT module; Step S42, if the ADAT interference level is level one transmission interference, performing level one transmission optimization; Step S43: If the ADAT interference level is level 1 transmission interference, perform level 2 transmission optimization. Step S44: If the ADAT interference level is level one transmission interference, it is determined that the ADAT module is faulty, and an abnormal signal is generated to prompt the user to replace the ADAT optical fiber in the ADAT module.

[0013] Furthermore, the optimization process of the first-level transmission optimization is specifically as follows: Step S421, obtaining the transmitted audio data, recording the transmitted audio data as FYi, i is the number of the transmitted audio data, i=1, 2, ..., m, m is the upper limit of the number, m is a positive integer, and the transmitted audio data FYi is composed of multiple audio units; The corresponding transmission code is obtained by multiplying the transmission audio data by the identity matrix, wherein the transmission code is the actual data of the transmission audio data passing through the transmitting end; The corresponding audio data matrix is ​​obtained according to the transmitted audio data; if the upper limit value of the corresponding number of the transmitted audio data is 4, the transmission code of the transmitter is: ; Among them, the matrix on the left is the identity matrix, that is, the matrix whose main diagonal elements are all 1 and the remaining elements are all zero. The calculated value of the identity matrix is ​​1; Step S422, inserting a redundant data into the transmitted audio data, that is, converting the transmitting end code into a unit matrix multiplied by the redundant data; If the upper limit of the number corresponding to the sent audio data is 4, the sender code corresponding to the sent audio data is: , where FY1, FY2, FY3 and FY4 are all sent audio data, and the redundant data RY1 is calculated by the formula, and the specific formula is: RY1=R11×FY1+R12×FY2+……+R1m×FYm (1); Let R1i=1, i=1, 2,...,m; Then formula (1) is simplified to RY1=FY1+FY2+……+FYm (2); Using Galois finite field operations, the addition operation in formula (2) is converted into an XOR operation, and we get: RY1=FY1⊕FY2⊕……⊕FYm (3); In the formula, ⊕ is the XOR operator symbol. The specific rule of XOR operation is that if the two variables are different, the output is 1, that is: 0⊕0=0 0 is XOR with 0, the result is 0; 0⊕1=1 0 is XORed with 1, the result is 1; 1⊕0=1 1 is XORed with 0, the result is 1; 1⊕1=0 1 is XORed with 1, the result is 0; Step S423: If one transmitted audio data FYi is lost, then formula (1) can be used to obtain: FYi=(RY1-R11×FY1-R12×FY2-……-R1m×FYm) / R1i; Let R1i=1, and from formula (3) we can get: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm.

[0014] Furthermore, the optimization process of the secondary transmission optimization is specifically as follows: Step S431, obtaining the transmitted audio data, and obtaining the corresponding audio data matrix according to the transmitted audio data; Step S432, insert two redundant data into the transmitted audio data. Similarly, the upper limit of the corresponding number of the transmitted audio data is 4, so the transmitting end code is: ; In the formula, RY1 and RY2 are redundant data, where: RY1=R11×FY1+R12×FY2+……+R1m×FYm; RY2=R21×FY1+R22×FY2+……+R2m×FYm (4); Let R1i=1, R2i=i, where i=1, 2, ..., m, and use Galois finite field operations to transform the above formula into: RY1=FY1⊕FY2⊕……⊕FYm; RY2=gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm) (5); In formula (5), the gfm() function represents the Galois Field multiplication operation, and gfm(i, Di) represents the multiplication operation of i and Di in the Galois Field; Step S4331: if only one transmission audio data FYi is lost and the redundant data RY1 is not lost, the lost transmission audio data is calculated according to the process of step S42 as follows: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm; Step S4332: If one transmitted audio data FYi and one redundant data RY1 are lost, and the redundant data RY2 is not lost, then FYi is restored by the received data and the redundant data RY2. The specific calculation process is as follows: FYi=(RY2-R21×FY1-R22×FY2-……-R2m×FYm) / R2i; Let R2i=i, then the above formula is simplified to: FYi=(RY2-FY1-2×FY2-……-m×FYm) / m; Using Galois Field operations, the above formula is transformed into: FYi=gfd(β,i); where gfd() function represents the Galois Field division operation, and gfd(a,b) represents the division operation a / b in the Galois Field; β=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm); Step S4333: If two transmitted audio data FYi and FYj are lost, and the redundant data RY1 and RY2 are not lost, the transmitting end matrix is: ; If FY3 and FY4 are missing, clear the third and fourth rows of the left identity matrix: ; After row elimination, we get: ; Where α1=Ry1-R11×FY1-R12×FY2-R15×FY5-R16×FY6; α2=Ry2-R21×FY1-R22×FY2-R25×FY5-R26×FY6; Therefore, the essence of solving FY3 and F4 is to solve the equation: ; Combined with the inverse formula of the second-order square matrix: ; Solving for this yields: ; but ; ; Therefore, if the missing data is FYi and FYj, the solution formula for FYi and Fyj is: ; ; Let R1i=1, R2j=j, i=1, 2, ..., j=1, 2, ..., simplify to: ; ; α1=RY1-FY1-FY2-…-FYm; α2=RY2-RY1-2×RY2-……-m×FYm; Using Galois Field operations, the above formula is transformed into: FYi=gfd(gfm(j,α1)⊕α2,j⊕i); FYj=gfd(α2⊕gfm(i,α1),j⊕i); α1=RY1⊕FY1⊕FY2⊕……⊕FYm; α2=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm).

[0015] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: The present invention first obtains the transmitted audio data, divides the transmitted audio data into a first comparison audio and first to nth sample audios in sequence, and then obtains a corresponding transmitted human voice spectrum diagram in combination with the first comparison audio, and simultaneously obtains a corresponding received human voice spectrum diagram based on the received audio data, and finally calculates the mean square error corresponding to the human voice in the received audio data and the transmitted audio data in combination with the transmitted human voice spectrum diagram and the received human voice spectrum diagram, and on the other hand, calculates the mean square error when there is no human voice in the received audio data and the transmitted audio data, and obtains the ADAT transmission interference level corresponding to the ADAT module by combining the two mean square errors, and finally sets a corresponding optimization method according to the ADAT transmission interference level, and the present invention comprehensively considers the human voice and the ambient sound in the audio data to realize the intelligent optimization of the ADAT interface performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0017] Figure 1 It is the principle diagram of the ADAT module in the present invention.

[0018] Figure 2 It is another schematic diagram of the ADAT module in the present invention.

[0019] Figure 3 This is a PCB preview of the ADAT module in the present invention.

[0020] Figure 4 This is a physical picture of the ADAT module in the present invention.

[0021] Figure 5 The figure is a flow chart of the method of the present invention.

[0022] Figure 6 It is a schematic diagram of audio data transmission in the present invention.

[0023] Figure 7 It is a schematic diagram of sending a human voice spectrum diagram and receiving a human voice spectrum diagram in the present invention.

[0024] Figure 8 It is a structural schematic diagram of the computer device in the present invention. DETAILED DESCRIPTION

[0025] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] Example 1: Please refer to Figure 1-Figure 7 As shown, the technical solution provided by the present invention is: a method for optimizing ADAT interface performance, the method is specifically as follows: It should be noted that Figure 1-Figure 2 is the principle diagram of the ADAT module in the present invention, Figure 3 It is the PCB preview image drawn from the schematic diagram corresponding to the ADAT module, that is, the layout of the circuit board in the ADAT module; Figure 4 It is the physical structure diagram of the circuit board made according to the PCB preview diagram; Step S1, obtaining the transmitted audio data, and dividing the transmitted audio data into a first comparison audio and first to nth sample audios; The transmitted audio data is the audio data sent by the transmitting end, and the audio data is specifically a piece of speech or a piece of music; The step S1 specifically includes the following sub-steps: Step S11, if there is human voice in the transmitted audio data, extract the audio segment containing the human voice in the transmitted audio data and record it as the first comparison audio; Among them, judging whether there is a human voice in the sent audio data and extracting the audio segment where the human voice is located are both existing mature technologies; Step S12, then dividing the part without human voice in the transmitted audio data into a plurality of audio segments with the same time interval, and arbitrarily selecting n audio segments to record as the first sample audio to the nth sample audio; Step S13, if there is no human voice data in the transmitted audio data, directly divide the transmitted audio data into a plurality of audio segments with the same time interval, and arbitrarily select n audio segments to record as the first sample audio to the nth sample audio; Step S2, combining the first comparison audio to obtain a corresponding transmitted human voice spectrogram, obtaining a corresponding received human voice spectrogram based on the received audio data, and calculating a mean square error corresponding to the human voice in the received audio data and the transmitted audio data by combining the transmitted human voice spectrogram and the received human voice spectrogram; The step S2 specifically includes the following sub-steps: Step S21, obtaining a transmitted human voice spectrogram corresponding to the transmitted audio data, comprises the following steps: Step S211, obtaining a first comparison audio, dividing the first comparison audio into a plurality of transmission audio short frames FYPu according to a fixed length, where u is a number, u=1, 2, ..., z, and z is a positive integer; Step S212, multiply each transmitted audio short frame by a window function to obtain a first-level processed audio short frame YJGu: YJGu=FYPu×CH; The window function is specifically: , where CH is the window function, x is an arbitrary value, and different values ​​of x correspond to different window functions; Step S213, the spectrum PPu of the second processed short-time frame is calculated by a formula, and the specific formula is: ; Step S214, drawing a corresponding transmitted human voice spectrum diagram according to the spectrum; Step S22, obtaining a received human voice spectrogram corresponding to the received audio data, comprises the following steps: Step S221, obtaining the received audio data received by the receiving end, identifying the human voice part in the received audio data, and recording it as the second comparison audio; Step S222, repeatedly executing steps S211 to S214 for the second comparison audio to obtain a received human voice spectrum corresponding to the human voice part in the received audio data; Step S23, comparing the transmitted human voice spectrum with the received human voice spectrum, and calculating the human voice mean square error between the transmitted human voice spectrum and the received human voice spectrum; like Figure 7 As shown, the specific calculation takes the moment when the human voice is recognized as the starting point, calculates the spectrum difference between the transmitted human voice spectrum graph and the received human voice spectrum graph in sequence, and then adds and averages the spectrum differences to obtain the human voice mean square error RJW; Step S3, calculating the mean square error between the received audio data and the transmitted audio data when there is no human voice, and obtaining the ADAT transmission interference level corresponding to the ADAT module; The step S3 specifically includes the following sub-steps: Step S31, dividing the received audio data into a plurality of audio segments with the same time interval, and selecting the first comparison audio to the nth comparison audio; The position of the first reference audio in the received audio data is the same as the position of the first sample audio in the sent audio data; the position of the second reference audio in the received audio data is the same as the position of the second sample audio in the sent audio data; Step S32, converting the first reference audio into a reference waveform graph, and converting the first sample audio into a sample waveform graph; Step S33, calculating the mean square error between the reference waveform and the sample waveform at the same time, recorded as the first mean square error YJW1 between the first reference audio and the first sample audio; Step S34, similarly calculating the second mean square error to the nth mean square error between the second reference audio and the second sample audio to the nth reference audio and the nth sample audio; Step S35, selecting the maximum value from the second mean square error to the nth mean square error as the unvoiced mean square error WJW; Step S36, calculating the interference level value GDJ of the ADAT module, GDJ=A1×RJW+A2×WJW; wherein A1 and A2 are weight coefficients, and A1>A2>0; Step S37, if the interference level value of the ADAT module is less than or equal to the first interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level one interference; If the interference level value of the ADAT module is greater than the first interference point threshold and less than or equal to the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as secondary interference; If the interference level value of the ADAT module is greater than the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level 3 interference; Wherein, the second interference threshold is greater than the first interference threshold, the transmission performance of the ADAT module corresponding to the third-level interference is lower than the transmission performance of the ADAT module corresponding to the second-level interference, and the transmission performance of the ADAT module corresponding to the second-level interference is lower than the transmission performance of the ADAT module corresponding to the first-level interference; Step S4, setting a corresponding optimization method according to the ADAT transmission interference level; The step S4 specifically includes the following sub-steps: Step S41, obtaining the ADAT transmission interference level corresponding to the ADAT module; Step S42: If the ADAT interference level is level 1 transmission interference, level 1 transmission optimization is performed; the level 1 transmission optimization process is as follows: Step S421, obtaining the transmitted audio data, recording the transmitted audio data as FYi, i is the number of the transmitted audio data, i=1, 2, ..., m, m is the upper limit of the number, m is a positive integer, and the transmitted audio data FYi is composed of multiple audio units; The corresponding transmission code is obtained by multiplying the transmission audio data by the identity matrix, wherein the transmission code is the actual data of the transmission audio data passing through the transmitting end; The corresponding audio data matrix is ​​obtained according to the transmitted audio data; if the upper limit value of the corresponding number of the transmitted audio data is 4, the transmission code of the transmitter is: ; The matrix on the left is the identity matrix, that is, a matrix whose main diagonal elements are all 1 and the remaining elements are all zero. The calculated value of the identity matrix is ​​1; Step S422, inserting a redundant data into the transmitted audio data, that is, converting the transmitting end code into a unit matrix multiplied by the redundant data; wherein the redundant data is specifically a data packet in a fixed format, which is used to correct errors occurring in the transmission process and recover lost data during the data recovery process; Exemplarily, when the upper limit value of the number corresponding to the sent audio data is 4, the sender code corresponding to the sent audio data is: , where FY1, FY2, FY3 and FY4 are all sent audio data, and RY1 is the calculated redundant data; RY1=R11×FY1+R12×FY2+……+R1m×FYm (1); Let R1i=1, i=1, 2,...,m; Then formula (1) can be simplified to RY1=FY1+FY2+……+FYm (2); Using Galois finite field operations, the addition operation in formula (2) is converted into an XOR operation, and we get: RY1=FY1⊕FY2⊕……⊕FYm (3); In the formula, ⊕ is the XOR operator symbol. The specific rule of XOR operation is that the output is 1 only when the two variables are different, that is: 0⊕0=0 0 is XOR with 0, the result is 0; 0⊕1=1 0 is XORed with 1, the result is 1; 1⊕0=1 1 is XORed with 0, the result is 1; 1⊕1=0 1 is XORed with 1, the result is 0; Step S423: If one transmitted audio data FYi is lost, then formula (1) can be used to obtain: FYi=(RY1-R11×FY1-R12×FY2-……-R1m×FYm) / R1i; Let R1i=1, and from formula (3) we can get: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm; Taking FY3 as an example, the recovery matrix operation of FY3 is: (Assume m=4, the missing data is FY3); From formula (1), we can get FY3 = (RY1-R11×FY1-R12×FY2-R14×FY4) / R13; That is, FY3=RY1⊕FY1⊕FY2⊕FY4; Step S43: If the ADAT interference level is level 1 transmission interference, level 2 transmission optimization is performed, wherein the level 2 transmission optimization process is as follows: Step S431, obtaining the transmitted audio data, and obtaining the corresponding audio data matrix according to the transmitted audio data; Step S432, similarly to step S422, inserts two redundant data into the transmitted audio data. Similarly, the upper limit of the corresponding number of the transmitted audio data is 4, and the transmitting end code is: ; In the formula, RY1 and RY2 are redundant data, where: RY1=R11×FY1+R12×FY2+……+R1m×FYm; RY2=R21×FY1+R22×FY2+……+R2m×FYm (4); Let R1i=1, R2i=i, where i=1, 2, ..., m, and use Galois finite field operations to transform the above formula into: RY1=FY1⊕FY2⊕……⊕FYm; RY2=gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm) (5); In formula (5), the gfm() function represents the Galois Field multiplication operation, and gfm(i, Di) represents the multiplication operation of i and Di in the Galois Field; Step S4331: if only one transmission audio data FYi is lost and the redundant data RY1 is not lost, the lost transmission audio data is calculated according to the process of step S42 as follows: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm; Step S4332: If one transmitted audio data FYi and one redundant data RY1 are lost, and the redundant data RY2 is not lost, FYi can be restored by the received data and the redundant data RY2. The specific calculation process is as follows: FYi=(RY2-R21×FY1-R22×FY2-……-R2m×FYm) / R2i; Let R2i=i, then the above formula can be simplified to: FYi=(RY2-FY1-2×FY2-……-m×FYm) / m; Using Galois Field operations, the above formula can be transformed into: FYi=gfd(β,i); where gfd() function represents the Galois Field division operation, and gfd(a,b) represents the division operation a / b in the Galois Field; β=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm); Step S4333: If two transmitted audio data FYi and FYj are lost, and the redundant data RY1 and RY2 are not lost, the transmitting end matrix is: ; Assuming that FY3 and FY4 are lost, clear the third and fourth rows of the left identity matrix: ; After row elimination, we get: ; Where α1=Ry1-R11×FY1-R12×FY2-R15×FY5-R16×FY6; α2=Ry2-R21×FY1-R22×FY2-R25×FY5-R26×FY6; Therefore, the essence of solving FY3 and F4 is to solve the equation: ; Combined with the inverse formula of the second-order square matrix: ; It can be solved to get: ; but ; ; Therefore, if the missing data is FYi and FYj, the solution formula for FYi and Fyj is: ; ; Let R1i=1, R2j=j, i=1, 2, ..., j=1, 2, ..., it can be simplified to: ; ; α1=RY1-FY1-FY2-…-FYm; α2=RY2-RY1-2×RY2-……-m×FYm; Using Galois Field operations, the above formula can be transformed into: FYi=gfd(gfm(j,α1)⊕α2,j⊕i); FYj=gfd(α2⊕gfm(i,α1),j⊕i); α1=RY1⊕FY1⊕FY2⊕……⊕FYm; α2=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm); Step S44, if the ADAT interference level is level one transmission interference, it is determined that the ADAT module is faulty, and an abnormal signal is generated to prompt the user to replace the ADAT optical fiber in the ADAT module; It should be noted that, in this embodiment, steps S2 and S3 only show in detail a test method for sending audio data and receiving audio data. When actually performing the test, the following test methods may also be selected: DNR-A-weighted dynamic range test: The DNR dynamic range test evaluates the performance of the device when processing from the minimum volume to the maximum volume by simulating sound signals of different intensities, while A-weighting is a weighting of the frequency response perceived by the human ear, mainly emphasizing the mid-high frequency and attenuating the low and very high frequency parts to better conform to the auditory characteristics of the human ear; SINAD signal-to-noise ratio test: SINAD signal-to-noise ratio test is a common indicator used to evaluate the signal quality of electronic equipment (such as audio equipment or communication equipment). The purpose of this test is to measure the ratio of useful components (pure signals) to useless components (noise and distortion) in the signal, reflecting the level of noise and distortion introduced by the device when processing the signal; THD+N total harmonic distortion plus noise test: THD+N total harmonic distortion plus noise test is a performance indicator used to measure harmonic distortion and noise in audio or electronic equipment. It represents the sum of all harmonic distortion and noise introduced by the signal after it is processed by the device, in addition to the original signal. It is one of the key indicators for evaluating the quality of audio equipment. In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.

[0027] Example 2: Figure 8As shown, this embodiment discloses a structural schematic diagram of a computer device, which may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute an ADAT interface performance optimization method, which includes: obtaining the transmitted audio data, dividing the transmitted audio data into a first comparison audio and first to nth sample audios; obtaining the corresponding transmitted human voice spectrogram in combination with the first comparison audio, obtaining the corresponding received human voice spectrogram based on the received audio data, and calculating the mean square error corresponding to the human voice in the received audio data and the transmitted audio data in combination with the transmitted human voice spectrogram and the received human voice spectrogram; calculating the mean square error when there is no human voice in the received audio data and the transmitted audio data, and obtaining the ADAT transmission interference level corresponding to the ADAT module; and setting the corresponding optimization method according to the ADAT transmission interference level.

[0028] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0029] Embodiment 3: This embodiment also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute an ADAT interface performance optimization method provided by the above methods, the method including: obtaining transmitted audio data, dividing the transmitted audio data into a first comparison audio and first to nth sample audios; obtaining a corresponding transmitted human voice spectrum diagram in combination with the first comparison audio, obtaining a corresponding received human voice spectrum diagram based on the received audio data, and calculating the mean square error corresponding to the human voice in the received audio data and the transmitted audio data in combination with the transmitted human voice spectrum diagram and the received human voice spectrum diagram; calculating the mean square error when there is no human voice in the received audio data and the transmitted audio data, and obtaining the ADAT transmission interference level corresponding to the ADAT module; and setting a corresponding optimization method according to the ADAT transmission interference level.

[0030] Embodiment 4: This embodiment also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute an ADAT interface performance optimization method provided above, the method comprising: obtaining transmitted audio data, dividing the transmitted audio data into a first comparison audio and first to nth sample audios; obtaining a corresponding transmitted human voice spectrum diagram in combination with the first comparison audio, obtaining a corresponding received human voice spectrum diagram based on the received audio data, and calculating the mean square error corresponding to the human voice in the received audio data and the transmitted audio data in combination with the transmitted human voice spectrum diagram and the received human voice spectrum diagram; calculating the mean square error when there is no human voice in the received audio data and the transmitted audio data, and obtaining the ADAT transmission interference level corresponding to the ADAT module; and setting a corresponding optimization method according to the ADAT transmission interference level.

[0031] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0032] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0033] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for optimizing ADAT interface performance, characterized in that: The specific method is as follows: Step S1, obtaining the transmitted audio data, and dividing the transmitted audio data into a first comparison audio and first to nth sample audios; Step S2, combining the first comparison audio to obtain a corresponding transmitted human voice spectrogram, obtaining a corresponding received human voice spectrogram based on the received audio data, and calculating a mean square error corresponding to the human voice in the received audio data and the transmitted audio data by combining the transmitted human voice spectrogram and the received human voice spectrogram; Step S3, calculating the mean square error between the received audio data and the transmitted audio data when there is no human voice, and obtaining the ADAT transmission interference level corresponding to the ADAT module; Step S4, setting a corresponding optimization method according to the ADAT transmission interference level.

2. A method for optimizing ADAT interface performance according to claim 1, characterized in that: The step S1 includes the following sub-steps: Step S11, if there is human voice in the transmitted audio data, extract the audio segment containing the human voice in the transmitted audio data and record it as the first comparison audio; Step S12, then dividing the part without human voice in the transmitted audio data into a plurality of audio segments with the same time interval, and arbitrarily selecting n audio segments to record as the first sample audio to the nth sample audio; Step S13: if there is no human voice data in the transmitted audio data, the transmitted audio data is divided into a plurality of audio segments with the same time interval, and n audio segments are randomly selected and recorded as the first sample audio to the nth sample audio.

3. A method for optimizing ADAT interface performance according to claim 1, characterized in that: The step S2 includes the following sub-steps: Step S21, obtaining a transmitted human voice spectrogram corresponding to the transmitted audio data; Step S22, obtaining a received human voice spectrogram corresponding to the received audio data; Step S23, compare the transmitted human voice spectrum with the received human voice spectrum, and calculate the human voice mean square error between the transmitted human voice spectrum and the received human voice spectrum. The calculation process of the human voice mean square error is: The calculation starts from the moment when the human voice is recognized, and the spectrum differences between the transmitted human voice spectrum and the received human voice spectrum are calculated in sequence. Then the spectrum differences are added and averaged to obtain the mean square error RJW of the human voice.

4. A method for optimizing ADAT interface performance according to claim 3, characterized in that: The process of obtaining the sent human voice spectrogram is specifically as follows: Step S211, obtaining a first comparison audio, dividing the first comparison audio into a plurality of transmission audio short frames FYPu according to a fixed length, where u is a number, u=1, 2, ..., z, and z is a positive integer; Step S212, multiply each transmitted audio short frame by a window function to obtain a first-level processed audio short frame YJGu, the formula is: YJGu=FYPu×CH; where CH is the window function; Step S213, by the formula PPu=YJGu 2 / z calculates the spectrum PPu of the second processed short-time frame; Step S214, drawing a corresponding transmitted human voice spectrum diagram according to the spectrum.

5. The ADAT interface performance optimization method according to claim 3, characterized in that: The process of obtaining the received human voice spectrogram is specifically as follows: Step S221, obtaining the received audio data received by the receiving end, identifying the human voice part in the received audio data, and recording it as the second comparison audio; Step S222, repeatedly executing steps S211 to S214 for the second comparison audio, to obtain a received human voice spectrum diagram corresponding to the human voice part in the received audio data.

6. The ADAT interface performance optimization method according to claim 1, characterized in that: The step S3 includes the following sub-steps: Step S31, dividing the received audio data into a plurality of audio segments with the same time interval, and selecting the first comparison audio to the nth comparison audio; Step S32, converting the first reference audio into a reference waveform and converting the first sample audio into a sample waveform; Step S33, calculating the mean square error between the reference waveform and the sample waveform at the same time, recorded as the first mean square error YJW1 between the first reference audio and the first sample audio; Step S34, similarly calculating the second mean square error to the nth mean square error between the second reference audio and the second sample audio to the nth reference audio and the nth sample audio; Step S35, selecting the maximum value from the second mean square error to the nth mean square error as the unvoiced mean square error WJW; Step S36, calculating the interference level value GDJ of the ADAT module by the formula GDJ=A1×RJW+A2×WJW; wherein A1 and A2 are weight coefficients, and A1>A2>0; Step S37, if the interference level value of the ADAT module is less than or equal to the first interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level one interference; If the interference level value of the ADAT module is greater than the first interference point threshold and less than or equal to the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as secondary interference; If the interference level value of the ADAT module is greater than the second interference threshold, the ADAT transmission interference level corresponding to the ADAT module is recorded as level three interference.

7. The ADAT interface performance optimization method according to claim 6, characterized in that: The second interference threshold is greater than the first interference threshold; The transmission performance of the ADAT module corresponding to the third-level interference is lower than that of the ADAT module corresponding to the second-level interference; The transmission performance of the ADAT module corresponding to the second-level interference is lower than the transmission performance of the ADAT module corresponding to the first-level interference.

8. The ADAT interface performance optimization method according to claim 6, characterized in that: The step S4 includes the following sub-steps: Step S41, obtaining the ADAT transmission interference level corresponding to the ADAT module; Step S42, if the ADAT interference level is level one transmission interference, performing level one transmission optimization; Step S43: If the ADAT interference level is level 1 transmission interference, perform level 2 transmission optimization. Step S44: If the ADAT interference level is level one transmission interference, it is determined that the ADAT module is faulty, and an abnormal signal is generated to prompt the user to replace the ADAT optical fiber in the ADAT module.

9. The ADAT interface performance optimization method according to claim 8, characterized in that: The optimization process of the first-level transmission optimization is as follows: Step S421, obtaining the transmitted audio data, recording the transmitted audio data as FYi, i is the number of the transmitted audio data, i=1, 2, ..., m, m is the upper limit of the number, m is a positive integer, and the transmitted audio data FYi is composed of multiple audio units; The corresponding transmission code is obtained by multiplying the transmission audio data by the identity matrix, wherein the transmission code is the actual data of the transmission audio data passing through the transmitting end; The corresponding audio data matrix is ​​obtained according to the transmitted audio data; if the upper limit value of the corresponding number of the transmitted audio data is 4, the transmission code of the transmitter is: ; Among them, the matrix on the left is the identity matrix, that is, the matrix whose main diagonal elements are all 1 and the remaining elements are all zero. The calculated value of the identity matrix is ​​1; Step S422, inserting a redundant data into the transmitted audio data, that is, converting the transmitting end code into a unit matrix multiplied by the redundant data; If the upper limit of the number corresponding to the sent audio data is 4, the sender code corresponding to the sent audio data is: , where FY1, FY2, FY3 and FY4 are all sent audio data, and the redundant data RY1 is calculated by the formula, and the specific formula is: RY1=R11×FY1+R12×FY2+……+R1m×FYm (1); Let R1i=1, i=1, 2,..., m; Then formula (1) is simplified to RY1=FY1+FY2+……+FYm (2); Using Galois finite field operations, the addition operation in formula (2) is converted into an XOR operation, and we get: RY1=FY1⊕FY2⊕……⊕FYm (3); In the formula, ⊕ is the XOR operator symbol. The specific rule of XOR operation is that if the two variables are different, the output is 1, that is: 0⊕0=0 0 is XOR with 0, the result is 0; 0⊕1=1 0 is XORed with 1, the result is 1; 1⊕0=1 1 is XORed with 0, the result is 1; 1⊕1=0 1 is XORed with 1, the result is 0; Step S423: If one transmitted audio data FYi is lost, then formula (1) can be used to obtain: FYi=(RY1-R11×FY1-R12×FY2-……-R1m×FYm) / R1i; Let R1i=1, and from formula (3) we can get: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm.

10. The ADAT interface performance optimization method according to claim 8, characterized in that: The optimization process of the secondary transmission optimization is as follows: Step S431, obtaining the transmitted audio data, and obtaining the corresponding audio data matrix according to the transmitted audio data; Step S432, insert two redundant data into the transmitted audio data. Similarly, the upper limit of the corresponding number of the transmitted audio data is 4, so the transmitting end code is: ; In the formula, RY1 and RY2 are redundant data, where: RY1=R11×FY1+R12×FY2+……+R1m×FYm; RY2=R21×FY1+R22×FY2+……+R2m×FYm (4); Let R1i=1, R2i=i, where i=1, 2, ..., m, and use Galois finite field operations to transform the above formula into: RY1=FY1⊕FY2⊕……⊕FYm; RY2=gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm) (5); In formula (5), the gfm() function represents the Galois Field multiplication operation, and gfm(i, Di) represents the multiplication operation of i and Di in the Galois Field; Step S4331: if only one transmission audio data FYi is lost and the redundant data RY1 is not lost, the lost transmission audio data is calculated according to the process of step S42 as follows: FYi=RY1⊕FY1⊕…⊕FY(i-1)⊕FY(i+1)⊕…⊕FYm; Step S4332: If one transmitted audio data FYi and one redundant data RY1 are lost, and the redundant data RY2 is not lost, then FYi is restored by the received data and the redundant data RY2. The specific calculation process is as follows: FYi=(RY2-R21×FY1-R22×FY2-……-R2m×FYm) / R2i; Let R2i=i, then the above formula is simplified to: FYi=(RY2-FY1-2×FY2-……-m×FYm) / m; Using Galois Field operations, the above formula is transformed into: FYi=gfd(β,i); where gfd() function represents the Galois Field division operation, and gfd(a,b) represents the division operation a / b in the Galois Field; β=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm); Step S4333: If two transmitted audio data FYi and FYj are lost, and the redundant data RY1 and RY2 are not lost, the transmitting end matrix is: ; If FY3 and FY4 are missing, clear the third and fourth rows of the left identity matrix: ; After row elimination, we get: ; Where α1=Ry1-R11×FY1-R12×FY2-R15×FY5-R16×FY6; α2=Ry2-R21×FY1-R22×FY2-R25×FY5-R26×FY6; Therefore, the essence of solving FY3 and F4 is to solve the equation: ; Combined with the inverse formula of the second-order square matrix: ; Solving for this yields: ; but ; ; Therefore, if the missing data is FYi and FYj, the solution formula for FYi and Fyj is: ; ; Let R1i=1, R2j=j, i=1, 2, ..., j=1, 2, ..., simplify to: ; ; α1=RY1-FY1-FY2-…-FYm; α2=RY2-RY1-2×RY2-……-m×FYm; Using Galois Field operations, the above formula is transformed into: FYi=gfd(gfm(j,α1)⊕α2,j⊕i); FYj=gfd(α2⊕gfm(i,α1),j⊕i); α1=RY1⊕FY1⊕FY2⊕……⊕FYm; α2=RY2⊕gfm(1,FY1)⊕gfm(2,FY2)⊕...⊕gfm(m,FYm).