CN111274073A - Server sound card audio function diagnosis method and system - Google Patents

Server sound card audio function diagnosis method and system Download PDF

Info

Publication number
CN111274073A
CN111274073A CN202010059926.3A CN202010059926A CN111274073A CN 111274073 A CN111274073 A CN 111274073A CN 202010059926 A CN202010059926 A CN 202010059926A CN 111274073 A CN111274073 A CN 111274073A
Authority
CN
China
Prior art keywords
audio
file
audio signal
sample
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010059926.3A
Other languages
Chinese (zh)
Inventor
张计芬
张含
陈金龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010059926.3A priority Critical patent/CN111274073A/en
Publication of CN111274073A publication Critical patent/CN111274073A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of server testing, and provides a server sound card audio function diagnosis method and a system, wherein the method comprises the following steps: driving to play the sample audio file, playing the sample audio file through the audio output interface, recording the played sample audio file through the audio receiving interface, and generating an audio receiving file; performing time domain analysis on the audio receiving file to obtain an audio signal amplitude of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal amplitude of the audio receiving file is normal or not; and performing frequency domain analysis on the generated audio receiving file to obtain the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with the sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not, so that the function of quickly and effectively diagnosing the sound card of the server is realized, the product quality is ensured, and the diagnosis coverage rate and the diagnosis level are improved.

Description

Server sound card audio function diagnosis method and system
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a server sound card audio function diagnosis method and system.
Background
In the mass production of current server products, the requirements for the diagnosis automation, the diagnosis efficiency and the diagnosis coverage rate of the products are extremely high. Some tower servers and PCs are shipped together with sound cards, which requires efficient functional diagnosis of the sound cards in the server in the mass production process to ensure the shipment quality.
At present, the production process is completed by a manual inspection mode for the sound card, and the flow is generally as follows:
1) preparing tools (earphones, microphones and the like) for operators;
2) an inspector uses an earphone to connect a machine, wears the earphone and plays a section of audio, and judges whether the playing function of the sound card is normal or not according to the heard sound;
3) the inspector connects the microphone with the machine, records a section of audio through the microphone, and then listens to the recorded audio through the earphone to judge whether the recording function of the sound card is normal.
However, this test method has several significant drawbacks:
1) and tools such as earphones and microphones need to be customized, so that the production cost is increased.
2) The plugging of devices such as earphones and microphones needs to be carried out, the actions such as playing and recording audio frequency need to be carried out, the operation is complex, and the production efficiency is influenced.
3) Special manpower is needed for testing, and misjudgment or artificial loss is easy to occur.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the server sound card audio function diagnosis method which can quickly and effectively finish the server sound card audio signal receiving and sending function diagnosis.
The technical scheme provided by the invention is as follows: a server sound card audio function diagnostic method, the method comprising the steps of:
under a linux system, a pre-configured sample audio file is played in a driving mode, the sample audio file is played through an audio output interface of a server, and meanwhile the sample audio file is played through an audio output interface of the server and recorded through an audio receiving interface of the server to generate an audio receiving file;
performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, and checking and comparing the generated audio receiving file with a sample audio file to judge whether the audio signal amplitude of the audio receiving file is normal or not;
and performing frequency domain analysis on the generated audio receiving file to obtain the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not.
As an improved scheme, the step of playing the preconfigured sample audio file under the linux system is driven to further comprise the following steps:
an audio signal transceiving loop is formed between an audio receiving interface and an audio output interface of the server;
a sample audio file is preconfigured and an audio signal amplitude and an audio signal frequency of the sample audio file are generated.
As an improved scheme, an audio receiving interface of the server is a microphone interface, and an audio output interface of the server is an earphone interface;
the audio signal receiving and sending loop is composed of a microphone interface, a multi-core copper wire connected between the microphone interface and the earphone interface and an earphone connection.
As an improved scheme, the step of comparing the generated audio receiving file with the sample audio file and determining whether the amplitude of the audio signal of the audio receiving file is normal includes the following steps:
performing difference operation on the audio signal amplitude of the obtained audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter;
dividing the calculated amplitude difference parameter with the audio signal amplitude of the sample audio file to obtain a percentage parameter A;
judging whether the percentage parameter A is less than or equal to a preset reference percentage or not;
when the obtained percentage parameter A is smaller than or equal to a preset reference percentage, judging that the amplitude of the audio signal of the audio receiving file is normal, and judging that the function of the server sound card is normal;
and when the obtained percentage parameter A is larger than a preset reference percentage, judging that the amplitude of the audio signal of the audio receiving file is abnormal, and judging that the function of the server sound card is abnormal.
As an improved scheme, the step of comparing the generated audio receiving file with the sample audio file and determining whether the audio signal frequency of the audio receiving file is normal includes the following steps:
comparing and analyzing the audio signal frequency of the acquired audio receiving file with the audio signal frequency of the sample audio file, and judging whether the audio signal of the audio receiving file comprises at least two audio signal frequencies;
when the audio signal of the audio receiving file is judged to contain at least two audio signal frequencies, performing inverse Fourier transform on audio signal frequencies except the audio signal frequency of the sample audio file in the audio receiving file;
performing time domain analysis on the audio receiving file after performing the inverse Fourier transform, acquiring an audio signal amplitude of the audio receiving file after performing the inverse Fourier transform, comparing the acquired audio signal amplitude of the audio receiving file after performing the inverse Fourier transform with a preset amplitude threshold parameter, judging whether the server sound card functions normally, and when the audio signal amplitude of the audio receiving file after performing the inverse Fourier transform is less than or equal to the preset amplitude threshold parameter, judging that the server sound card functions normally;
and when the audio signal frequency of the audio receiving file is matched with the audio signal frequency of the sample audio file, judging that the server sound card functions normally.
Another object of the present invention is to provide a server sound card audio function diagnosis system, including:
the system comprises a sample audio file output module, a sample audio file output module and a sample audio file output module, wherein the sample audio file output module is used for driving and playing a pre-configured sample audio file under a linux system and playing the sample audio file through an audio output interface of a server;
the audio receiving file generating module is used for recording the sample audio file through an audio receiving interface of the server and playing the sample audio file through an audio output interface of the server to generate an audio receiving file;
the time domain analysis and judgment module is used for performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal amplitude of the audio receiving file is normal or not;
and the frequency domain analysis and judgment module is used for carrying out frequency domain analysis on the generated audio receiving file, acquiring the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not.
As an improvement, the system further comprises:
the loop building module is used for forming an audio signal transceiving loop between the audio receiving interface and the audio output interface of the server;
and the sample audio file configuration module is used for configuring a sample audio file in advance and generating the audio signal amplitude and the audio signal frequency of the sample audio file.
As an improved scheme, an audio receiving interface of the server is a microphone interface, and an audio output interface of the server is an earphone interface;
the audio signal receiving and sending loop is composed of a microphone interface, a multi-core copper wire connected between the microphone interface and the earphone interface and an earphone connection.
As an improved scheme, the time domain analysis and determination module specifically includes:
the difference operation module is used for carrying out difference operation on the audio signal amplitude of the obtained audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter;
the division operation module is used for dividing the calculated amplitude difference parameter and the audio signal amplitude of the sample audio file to obtain a percentage parameter A;
the percentage judgment is used for judging whether the percentage parameter A is less than or equal to a preset reference percentage;
the first judging module is used for judging that the amplitude of the audio signal of the audio receiving file is normal and judging that the function of the sound card of the server is normal when the obtained percentage parameter A is smaller than or equal to a preset reference percentage;
and the second judging module is used for judging that the amplitude of the audio signal of the audio receiving file is abnormal and judging that the function of the sound card of the server is abnormal when the obtained percentage parameter A is larger than a preset reference percentage.
As an improved scheme, the frequency domain analysis and judgment module specifically includes:
the frequency judgment module is used for comparing and analyzing the obtained audio signal frequency of the audio receiving file with the audio signal frequency of the sample audio file and judging whether the audio signal of the audio receiving file comprises at least two audio signal frequencies;
the inverse Fourier transform module is used for performing inverse Fourier transform on audio signal frequencies except the audio signal frequency of the sample audio file in the audio receiving file when the audio signal of the audio receiving file is judged to contain at least two audio signal frequencies;
the amplitude calculation module is used for carrying out time domain analysis on the audio receiving file after the inverse Fourier transform is carried out, and obtaining the audio signal amplitude of the audio receiving file after the inverse Fourier transform is carried out;
the amplitude comparison and judgment module is used for comparing the acquired audio signal amplitude of the audio receiving file after the inverse Fourier transform is executed with a preset amplitude threshold parameter, judging whether the function of the server sound card is normal or not, and judging that the function of the server sound card is normal when the amplitude of the audio signal of the audio receiving file after the inverse Fourier transform is executed is smaller than or equal to the preset amplitude threshold parameter;
and the third judging module is used for judging that the server sound card has normal function when the audio signal frequency of the audio receiving file is judged to be matched with the audio signal frequency of the sample audio file.
In the embodiment of the invention, under a linux system, a pre-configured sample audio file is driven to be played, the sample audio file is played through an audio output interface of a server, and the sample audio file is recorded and played through an audio output interface of the server through an audio receiving interface of the server to generate an audio receiving file; performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, and checking and comparing the generated audio receiving file with a sample audio file to judge whether the audio signal amplitude of the audio receiving file is normal or not; and performing frequency domain analysis on the generated audio receiving file to obtain the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not, so that a server sound card function can be quickly and effectively diagnosed, the product quality is ensured, and the diagnosis coverage rate and the diagnosis level are improved.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flow chart of an implementation of a server sound card audio function diagnosis method provided by the present invention;
FIG. 2 is a flowchart illustrating an implementation of comparing a generated audio receiving file with a sample audio file to determine whether an amplitude of an audio signal of the audio receiving file is normal according to the present invention;
FIG. 3 is a flowchart illustrating an implementation of comparing a generated audio receiving file with a sample audio file to determine whether the audio signal frequency of the audio receiving file is normal according to the present invention;
FIG. 4 is a block diagram of a server sound card audio function diagnostic system according to the present invention;
FIG. 5 is a block diagram of a time domain analysis and determination module according to the present invention;
fig. 6 is a block diagram of a frequency domain analysis and determination module according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are merely for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows an implementation flowchart of the server sound card audio function diagnosis method provided by the present invention, which specifically includes the following steps:
in step S101, under a linux system, a preconfigured sample audio file is played in a driven manner, the sample audio file is played through an audio output interface of a server, and the sample audio file is played through an audio output interface of the server and recorded through an audio receiving interface of the server to generate an audio receiving file;
in step S102, performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, and comparing the generated audio receiving file with a sample audio file to determine whether the audio signal amplitude of the audio receiving file is normal;
in step S103, performing frequency domain analysis on the generated audio receiving file to obtain an audio signal frequency of the audio receiving file, and comparing the generated audio receiving file with a sample audio file to determine whether the audio signal frequency of the audio receiving file is normal.
In this embodiment, the step of playing the preconfigured sample audio file under the linux system is further preceded by the steps of:
forming an audio signal transceiving loop between an audio receiving interface and an audio output interface of the server, wherein:
the audio receiving interface of the server is a microphone interface, and the audio output interface of the server is an earphone interface; the audio signal receiving and sending loop is composed of a microphone interface, a multi-core copper wire connected between the microphone interface and the earphone interface and an earphone, and the multi-core copper wire is selected as a connecting wire because the audio signal is an analog signal transmitted by current, the impedance of a pure copper wire is small, the energy loss brought in the transmission process of the audio signal can be basically ignored, and the multi-core copper wire is selected as the connecting wire.
Pre-configuring a sample audio file and generating an audio signal amplitude and an audio signal frequency of the sample audio file, wherein:
the auditory range perceivable by human ears is 20Hz to 20kHz, the more important hearing range is 100Hz to 8kHz, so specific frequencies are selected from high, medium and low frequencies in the range to serve as audio input samples, namely 125Hz,500Hz,1kHz,4kHz and 8KHz, and fixed-frequency time duration 10S transmission audio files WAVS1, WAVS2, WAVS3, WAVS4 and WAVS5 are manufactured for all sample frequencies.
In the embodiment of the invention, a plurality of sample audio files can be played in a driving manner, namely, a test is started, the sample audio files with specified frequency are played in a driving manner in sequence under a Linux system of a server, recording is started, and audio signals received by a microphone interface are correspondingly recorded and stored into received audio files WAVR1, WAVR2, WAVR3, WAVR4 and WAVR5 in sequence.
As shown in fig. 2, the step of comparing the generated audio receiving file with the sample audio file and determining whether the amplitude of the audio signal of the audio receiving file is normal specifically includes the following steps:
in step S201, a difference operation is performed between the audio signal amplitude of the audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter.
In step S202, a division operation is performed on the calculated amplitude difference parameter and the audio signal amplitude of the sample audio file to obtain a percentage parameter a.
In step S203, it is determined whether the percentage parameter a is less than or equal to a preset reference percentage, if so, step S204 is executed, otherwise, step S205 is executed.
In step S204, when the obtained percentage parameter a is less than or equal to a preset reference percentage, it is determined that the amplitude of the audio signal of the audio receiving file is normal, and it is determined that the server sound card functions normally.
In this step, the reference percentage may be set according to the actual diagnostic requirements, for example, the percentage may be set to 20%, although other parameters may be set.
In step S205, when the obtained percentage parameter a is greater than a preset reference percentage, it is determined that the amplitude of the audio signal of the audio receiving file is abnormal, and it is determined that the server sound card is abnormal in function.
Fig. 3 shows that the step of comparing the generated audio receiving file with the sample audio file to determine whether the audio signal frequency of the audio receiving file is normal includes the following steps:
in step S301, comparing and analyzing the audio signal frequency of the acquired audio receiving file with the audio signal frequency of the sample audio file, and determining whether the audio signal of the audio receiving file contains at least two audio signal frequencies, if so, performing step S302, otherwise, performing step S307;
in step S302, when it is determined that the audio signal of the audio receiving file contains at least two audio signal frequencies, performing inverse fourier transform on audio signal frequencies other than the audio signal frequency of the sample audio file in the audio receiving file;
in step S303, the audio receiving file after the inverse fourier transform is performed is subjected to time domain analysis, and the audio signal amplitude of the audio receiving file after the inverse fourier transform is performed is acquired.
In step S304, the obtained audio signal amplitude of the audio receiving file after performing the inverse fourier transform is compared with a preset amplitude threshold parameter, and it is determined whether the audio signal amplitude of the audio receiving file after performing the inverse fourier transform is less than or equal to the preset amplitude threshold parameter, if so, step S305 is performed, otherwise, step S306 is performed.
In step S305, when the amplitude of the audio signal of the audio receiving file after performing the inverse fourier transform is equal to or less than the amplitude threshold parameter set in advance, it is determined that the server sound card functions normally.
In step S306, when the amplitude of the audio signal of the audio receiving file after performing the inverse fourier transform is greater than the preset amplitude threshold parameter, it is determined that the server sound card is malfunctioning.
In step S307, when it is determined that the audio signal frequency of the audio receiving file matches the audio signal frequency of the sample audio file, it is determined that the server sound card functions normally.
In the embodiment of the present invention, the above-mentioned is a functional diagnosis scheme of the whole sound card, and the left channel and the right channel of the sound card can be diagnosed according to the same diagnosis method, and the specific implementation steps are as described in the above method embodiment, and are not described herein again.
Fig. 4 is a block diagram illustrating a structure of a server sound card audio function diagnosis system provided by the present invention, and for convenience of explanation, only the parts related to the embodiment of the present invention are shown in the diagram.
The server sound card audio function diagnosis system comprises:
the sample audio file output module 11 is configured to drive to play a preconfigured sample audio file in the linux system, and play the sample audio file through an audio output interface of the server;
the audio receiving file generating module 12 is configured to record the sample audio file through an audio receiving interface of the server and play the sample audio file through an audio output interface of the server, so as to generate an audio receiving file;
a time domain analysis and judgment module 13, configured to perform time domain analysis on the generated audio receiving file, obtain an audio signal amplitude of the audio receiving file, check and compare the generated audio receiving file with a sample audio file, and judge whether the audio signal amplitude of the audio receiving file is normal;
and the frequency domain analysis and judgment module 14 is configured to perform frequency domain analysis on the generated audio receiving file, acquire an audio signal frequency of the audio receiving file, check and compare the generated audio receiving file with a sample audio file, and judge whether the audio signal frequency of the audio receiving file is normal.
In this embodiment, the system further comprises:
a loop building module 15, configured to form an audio signal transceiving loop between the audio receiving interface and the audio output interface of the server;
and the sample audio file configuration module 16 is configured to configure a sample audio file in advance, and generate an audio signal amplitude and an audio signal frequency of the sample audio file.
As shown in fig. 5, the time domain analyzing and determining module 13 specifically includes:
the difference operation module 17 is configured to perform difference operation on the audio signal amplitude of the obtained audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter;
a division operation module 18, configured to perform division operation on the calculated amplitude difference parameter and the audio signal amplitude of the sample audio file to obtain a percentage parameter a;
a percentage judgment module 19, configured to judge whether the percentage parameter a is less than or equal to a preset reference percentage;
the first judging module 20 is configured to judge that the amplitude of the audio signal of the audio receiving file is normal and judge that the function of the server sound card is normal when the obtained percentage parameter a is less than or equal to a preset reference percentage;
the second determining module 21 is configured to determine that the amplitude of the audio signal of the audio receiving file is abnormal and determine that the function of the server sound card is abnormal when the obtained percentage parameter a is greater than a preset reference percentage.
As shown in fig. 6, the frequency domain analyzing and determining module 14 specifically includes:
the frequency judging module 22 is configured to compare and analyze the audio signal frequency of the acquired audio receiving file with the audio signal frequency of the sample audio file, and judge whether the audio signal of the audio receiving file includes at least two audio signal frequencies;
an inverse fourier transform module 23, configured to, when it is determined that the audio signal of the audio receiving file contains at least two audio signal frequencies, perform inverse fourier transform on audio signal frequencies other than the audio signal frequency of the sample audio file in the audio receiving file;
the amplitude calculation module 24 is configured to perform time domain analysis on the audio receiving file after performing the inverse fourier transform, and obtain an audio signal amplitude of the audio receiving file after performing the inverse fourier transform;
the amplitude comparison and judgment module 25 is configured to compare the obtained audio signal amplitude of the audio receiving file after performing the inverse fourier transform with a preset amplitude threshold parameter, judge whether the server sound card function is normal, and judge that the server sound card function is normal when the audio signal amplitude of the audio receiving file after performing the inverse fourier transform is less than or equal to the preset amplitude threshold parameter;
and a third determining module 26, configured to determine that the server sound card functions normally when it is determined that the audio signal frequency of the audio receiving file matches the audio signal frequency of the sample audio file.
In the embodiment of the invention, under a linux system, a pre-configured sample audio file is driven to be played, the sample audio file is played through an audio output interface of a server, and the sample audio file is recorded and played through an audio output interface of the server through an audio receiving interface of the server to generate an audio receiving file; performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, and checking and comparing the generated audio receiving file with a sample audio file to judge whether the audio signal amplitude of the audio receiving file is normal or not; and performing frequency domain analysis on the generated audio receiving file to obtain the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not, so that a server sound card function can be quickly and effectively diagnosed, the product quality is ensured, and the diagnosis coverage rate and the diagnosis level are improved.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A server sound card audio function diagnosis method is characterized by comprising the following steps:
under a linux system, a pre-configured sample audio file is played in a driving mode, the sample audio file is played through an audio output interface of a server, and meanwhile the sample audio file is played through an audio output interface of the server and recorded through an audio receiving interface of the server to generate an audio receiving file;
performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, and checking and comparing the generated audio receiving file with a sample audio file to judge whether the audio signal amplitude of the audio receiving file is normal or not;
and performing frequency domain analysis on the generated audio receiving file to obtain the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not.
2. The server sound card audio function diagnosis method according to claim 1, wherein the step of playing the preconfigured sample audio file under the linux system is further preceded by the steps of:
an audio signal transceiving loop is formed between an audio receiving interface and an audio output interface of the server;
a sample audio file is preconfigured and an audio signal amplitude and an audio signal frequency of the sample audio file are generated.
3. The server sound card audio function diagnostic method according to claim 2, wherein the audio receiving interface of the server is a microphone interface, and the audio output interface of the server is an earphone interface;
the audio signal receiving and sending loop is composed of a microphone interface, a multi-core copper wire connected between the microphone interface and the earphone interface and an earphone connection.
4. The server sound card audio function diagnostic method according to claim 3, wherein the step of comparing the generated audio receiving file with the sample audio file and determining whether the amplitude of the audio signal of the audio receiving file is normal specifically comprises the steps of:
performing difference operation on the audio signal amplitude of the obtained audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter;
dividing the calculated amplitude difference parameter with the audio signal amplitude of the sample audio file to obtain a percentage parameter A;
judging whether the percentage parameter A is less than or equal to a preset reference percentage or not;
when the obtained percentage parameter A is smaller than or equal to a preset reference percentage, judging that the amplitude of the audio signal of the audio receiving file is normal, and judging that the function of the server sound card is normal;
and when the obtained percentage parameter A is larger than a preset reference percentage, judging that the amplitude of the audio signal of the audio receiving file is abnormal, and judging that the function of the server sound card is abnormal.
5. The server sound card audio function diagnostic method according to claim 3, wherein the step of comparing the generated audio receiving file with the sample audio file and determining whether the audio signal frequency of the audio receiving file is normal specifically comprises the steps of:
comparing and analyzing the audio signal frequency of the acquired audio receiving file with the audio signal frequency of the sample audio file, and judging whether the audio signal of the audio receiving file comprises at least two audio signal frequencies;
when the audio signal of the audio receiving file is judged to contain at least two audio signal frequencies, performing inverse Fourier transform on audio signal frequencies except the audio signal frequency of the sample audio file in the audio receiving file;
performing time domain analysis on the audio receiving file after performing the inverse Fourier transform, acquiring an audio signal amplitude of the audio receiving file after performing the inverse Fourier transform, comparing the acquired audio signal amplitude of the audio receiving file after performing the inverse Fourier transform with a preset amplitude threshold parameter, judging whether the server sound card functions normally, and when the audio signal amplitude of the audio receiving file after performing the inverse Fourier transform is less than or equal to the preset amplitude threshold parameter, judging that the server sound card functions normally;
and when the audio signal frequency of the audio receiving file is matched with the audio signal frequency of the sample audio file, judging that the server sound card functions normally.
6. A server sound card audio function diagnostic system, the system comprising:
the system comprises a sample audio file output module, a sample audio file output module and a sample audio file output module, wherein the sample audio file output module is used for driving and playing a pre-configured sample audio file under a linux system and playing the sample audio file through an audio output interface of a server;
the audio receiving file generating module is used for recording the sample audio file through an audio receiving interface of the server and playing the sample audio file through an audio output interface of the server to generate an audio receiving file;
the time domain analysis and judgment module is used for performing time domain analysis on the generated audio receiving file to obtain an audio signal amplitude of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal amplitude of the audio receiving file is normal or not;
and the frequency domain analysis and judgment module is used for carrying out frequency domain analysis on the generated audio receiving file, acquiring the audio signal frequency of the audio receiving file, checking and comparing the generated audio receiving file with a sample audio file, and judging whether the audio signal frequency of the audio receiving file is normal or not.
7. The server sound card audio function diagnostic system of claim 6, further comprising:
the loop building module is used for forming an audio signal transceiving loop between the audio receiving interface and the audio output interface of the server;
and the sample audio file configuration module is used for configuring a sample audio file in advance and generating the audio signal amplitude and the audio signal frequency of the sample audio file.
8. The server sound card audio function diagnostic system of claim 7, wherein the audio receiving interface of the server is a microphone interface and the audio output interface of the server is a headphone interface;
the audio signal receiving and sending loop is composed of a microphone interface, a multi-core copper wire connected between the microphone interface and the earphone interface and an earphone connection.
9. The server sound card audio function diagnostic system according to claim 8, wherein the time domain analysis and determination module specifically includes:
the difference operation module is used for carrying out difference operation on the audio signal amplitude of the obtained audio receiving file and the audio signal amplitude of the sample audio file to obtain an amplitude difference parameter;
the division operation module is used for dividing the calculated amplitude difference parameter and the audio signal amplitude of the sample audio file to obtain a percentage parameter A;
the percentage judgment module is used for judging whether the percentage parameter A is less than or equal to a preset reference percentage;
the first judging module is used for judging that the amplitude of the audio signal of the audio receiving file is normal and judging that the function of the sound card of the server is normal when the obtained percentage parameter A is smaller than or equal to a preset reference percentage;
and the second judging module is used for judging that the amplitude of the audio signal of the audio receiving file is abnormal and judging that the function of the sound card of the server is abnormal when the obtained percentage parameter A is larger than a preset reference percentage.
10. The server sound card audio function diagnostic system of claim 8, wherein the frequency domain analysis and determination module specifically comprises:
the frequency judgment module is used for comparing and analyzing the obtained audio signal frequency of the audio receiving file with the audio signal frequency of the sample audio file and judging whether the audio signal of the audio receiving file comprises at least two audio signal frequencies;
the inverse Fourier transform module is used for performing inverse Fourier transform on audio signal frequencies except the audio signal frequency of the sample audio file in the audio receiving file when the audio signal of the audio receiving file is judged to contain at least two audio signal frequencies;
the amplitude calculation module is used for carrying out time domain analysis on the audio receiving file after the inverse Fourier transform is carried out, and obtaining the audio signal amplitude of the audio receiving file after the inverse Fourier transform is carried out;
the amplitude comparison and judgment module is used for comparing the acquired audio signal amplitude of the audio receiving file after the inverse Fourier transform is executed with a preset amplitude threshold parameter, judging whether the function of the server sound card is normal or not, and judging that the function of the server sound card is normal when the amplitude of the audio signal of the audio receiving file after the inverse Fourier transform is executed is smaller than or equal to the preset amplitude threshold parameter;
and the third judging module is used for judging that the server sound card has normal function when the audio signal frequency of the audio receiving file is judged to be matched with the audio signal frequency of the sample audio file.
CN202010059926.3A 2020-01-19 2020-01-19 Server sound card audio function diagnosis method and system Withdrawn CN111274073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010059926.3A CN111274073A (en) 2020-01-19 2020-01-19 Server sound card audio function diagnosis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010059926.3A CN111274073A (en) 2020-01-19 2020-01-19 Server sound card audio function diagnosis method and system

Publications (1)

Publication Number Publication Date
CN111274073A true CN111274073A (en) 2020-06-12

Family

ID=71003150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010059926.3A Withdrawn CN111274073A (en) 2020-01-19 2020-01-19 Server sound card audio function diagnosis method and system

Country Status (1)

Country Link
CN (1) CN111274073A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112969135A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 PC sound card testing method, device and system
CN114866944A (en) * 2022-05-13 2022-08-05 广州市保伦电子有限公司 Multi-channel audio output abnormity positioning test method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747407A (en) * 2013-12-27 2014-04-23 深圳英飞拓科技股份有限公司 Audio module automatic test method based on FFT frequency sweep
CN106791825A (en) * 2016-12-23 2017-05-31 深圳创维数字技术有限公司 A kind of audio automated testing method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747407A (en) * 2013-12-27 2014-04-23 深圳英飞拓科技股份有限公司 Audio module automatic test method based on FFT frequency sweep
CN106791825A (en) * 2016-12-23 2017-05-31 深圳创维数字技术有限公司 A kind of audio automated testing method and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112969135A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 PC sound card testing method, device and system
CN112969135B (en) * 2021-02-20 2023-04-25 山东英信计算机技术有限公司 PC sound card testing method, device and system
CN114866944A (en) * 2022-05-13 2022-08-05 广州市保伦电子有限公司 Multi-channel audio output abnormity positioning test method and system
CN114866944B (en) * 2022-05-13 2023-09-05 广东保伦电子股份有限公司 Multipath audio output abnormality positioning test method and system

Similar Documents

Publication Publication Date Title
US8879744B2 (en) Audio testing system and audio testing method for device under test
CN103179495B (en) The ear microphone of mobile terminal and the audio testing method of receiver and system
CN103179240A (en) Audio test method and system for mobile terminal
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
CN108430026B (en) Audio equipment fault detection method and karaoke equipment
CN103179496A (en) Audio test method and system for earphone microphone and receiver of mobile terminal
CN111274073A (en) Server sound card audio function diagnosis method and system
CN111800722B (en) Feedforward microphone function detection method and device, terminal equipment and storage medium
CN111276160A (en) Audio detection method and device
CN110446150A (en) A kind of intelligence Wi-Fi speaker automated production test macro and method
US8150048B2 (en) System and method for testing audio device of motherboard
CN111491248A (en) Audio detection system and audio detection method of electronic product
CN110891236A (en) Method and device for realizing production test of multi-microphone array
CN111182434A (en) Conference system microphone anomaly detection method, conference system and test system
US20230030911A1 (en) Abnormal sound detection method and apparatus
CN112261566B (en) AI intelligent glasses audio test method based on cloud service
CN108260065B (en) Television loudspeaker playing function online detection method and device
CN112822623B (en) Wireless earphone abnormity detection method and structure
CN113543005B (en) Audio device detection method and system
CN112995882B (en) Intelligent equipment audio open loop test method
CN101521894A (en) Mobile telephone sound effect testing device and testing method
CN111432323B (en) Microphone testing method and device of mobile terminal, electronic equipment and storage medium
CN113676826A (en) Testing method, device and system of multi-horn module and storage medium
CN112929808A (en) Method, module and system for detecting whether campus broadcasting equipment can work normally
US20220329956A1 (en) Procede d'auto-diagnostic d'un equipement de restitution audio

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200612