CN112969135B - PC sound card testing method, device and system - Google Patents

PC sound card testing method, device and system Download PDF

Info

Publication number
CN112969135B
CN112969135B CN202110194018.XA CN202110194018A CN112969135B CN 112969135 B CN112969135 B CN 112969135B CN 202110194018 A CN202110194018 A CN 202110194018A CN 112969135 B CN112969135 B CN 112969135B
Authority
CN
China
Prior art keywords
information
tone
mono
tested
audio file
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.)
Active
Application number
CN202110194018.XA
Other languages
Chinese (zh)
Other versions
CN112969135A (en
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110194018.XA priority Critical patent/CN112969135B/en
Publication of CN112969135A publication Critical patent/CN112969135A/en
Application granted granted Critical
Publication of CN112969135B publication Critical patent/CN112969135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Abstract

The invention provides a PC sound card testing method, which comprises the following steps: the server combines the generated mono text audio file to be tested, the mono tone audio file to be tested and the mono tone audio file to be tested into a multi-channel audio file to be tested and sends the multi-channel audio file to the PC; after receiving audio test files with different sound volumes and different sound colors obtained after splitting and restoring, tone volume information identification and playing and recording of a mono character audio file to be tested by a PC, splitting the audio test files, and respectively comparing character test information with character information to be tested, tone test information with tone information to be tested and volume test information with tone information to be tested.

Description

PC sound card testing method, device and system
Technical Field
The invention relates to the field of sound card testing, in particular to a method, a device and a system for testing a PC sound card.
Background
In recent years, countries propose autonomous controllable development strategies, and server localization is an important link of autonomous control. The domestic server is late in development and the key technology is blocked by foreign potential, so that the usability and the performance of the domestic server are larger than those of an X86 and Power (a CPU with a simplified instruction set architecture) platform. The matched software and tools of the domestic server have great gap compared with the X86 and Power platforms. The current test of the sound card of the machine is quite noisy in the actual production process, and the machine runs for vibration and other reasons, so that the test can fail with high probability. The PC machine shipment is generally matched with the sound card, so that the sound card of the PC machine is required to be tested for function and stability, and the delivery quality of the machine is ensured.
In the current all-domestic PC production factory, a section of audio file A with fixed frequency of 10kHz is prepared in advance, an audio line is used for shorting an earphone hole and a microphone hole of the PC, the audio file A to be tested is played when the test is started, a recording function is started, sound played by the earphone hole is transmitted to the microphone hole through the audio line, an audio test file B is recorded and generated, the waveform of the audio test file B is a sine waveform, binary information of the audio test file B is analyzed, the frequency and amplitude of the audio test file B are obtained and compared with those of the audio file A, and the error is met, so that the sound card is considered to be normal.
However, in the actual production process, the reasons such as noisy environment and vibration of the machine running can cause the recorded audio file B to be not a complete sine waveform and cause test failure, which is not beneficial to improving the accuracy and reliability of PC sound card test; moreover, the volume test and the tone test are both single-parameter tests, and the PC sound card needs to be adjusted for multiple times so as to realize the test of the sound card under different volumes and different tone conditions, and the test efficiency is low.
Disclosure of Invention
The invention aims to solve the problems in the prior art, innovatively provides a method, a device and a system for testing a PC sound card, effectively solves the problem of test failure caused by environmental interference in the prior art, effectively improves the accuracy and reliability of testing the PC sound card, and further improves the testing efficiency of the PC sound card under the conditions of different sound volumes and different tone colors.
The invention provides a PC sound card testing method, which comprises the following steps:
the server generates a mono-channel to-be-tested text audio file according to a test request sent by the PC, generates a mono-channel to-be-tested tone audio file according to the to-be-tested tone information, generates a mono-channel to-be-tested volume audio file according to the to-be-tested tone information, combines the generated mono-channel to-be-tested text audio file, the mono-channel to-be-tested tone audio file and the mono-channel to-be-tested volume audio file into a multi-channel to-be-tested audio file, and sends the combined multi-channel to the PC;
after receiving audio test files with different sound volumes and different tone colors, which are obtained by splitting and restoring, tone color volume information identification and playing and recording of a mono-channel to-be-tested text audio file, through a PC (personal computer), a server splits the audio test files, converts audio information in the split mono-channel text audio test files into text test information, converts audio information in the split mono-channel tone color audio test files into tone color test information, and converts audio information in the split mono-channel tone volume audio test files into sound volume test information;
and respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, passing the test.
Optionally, before the server sends the test request according to the PC, the method further includes: and shorting the earphone hole and the microphone hole of the PC.
Optionally, the PC sequentially performs splitting and restoring, tone volume information identifying, playing and recording the mono text audio file to be tested, and the audio test files obtained under the conditions of different volumes and different tones specifically include:
the PC receives the multi-channel audio file to be detected sent by the server, and splits and restores the multi-channel audio file to be detected;
identifying different to-be-detected tone information in the mono to-be-detected tone audio file and different to-be-detected volume information in the mono to-be-detected volume audio file according to the split restored mono to-be-detected tone audio file and mono to-be-detected volume audio file;
according to different tone information to be measured and different volume information to be measured, playing the mono text audio file to be measured by adjusting the sound card, starting to record the audio test file, and sending the recorded audio test file to the server.
Optionally, the text information to be measured is a plurality of characters randomly generated by the server, the volume information to be measured is a first waveform file with different amplitudes, and the tone information to be measured is a second waveform file with different amplitudes.
Optionally, a first configuration file and a second configuration file are preset in the PC, and the corresponding relation between the mono text audio file to be tested, the mono volume audio file to be tested, the mono tone audio file to be tested and the sound channels is configured in the first configuration file; and the second configuration file is configured with a corresponding relation between the volume information to be detected and the amplitude in the mono volume audio file to be detected and a corresponding relation between the tone information to be detected and the amplitude in the mono tone audio file to be detected.
Further, according to the monaural to-be-detected tone color audio file and the monaural to-be-detected volume audio file after splitting and restoring, identifying different to-be-detected tone color information in the monaural to-be-detected tone color audio file and different to-be-detected volume information in the monaural to-be-detected volume audio file specifically includes:
determining a corresponding mono tone to be detected audio file and a mono tone to be detected audio file according to the sound channel corresponding to the split restored mono tone to be detected audio file;
different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected, and different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected.
Optionally, the server communicates with the PC via message.
The second aspect of the present invention provides a device for testing a sound card of a PC, comprising:
the server generates a mono character audio file to be tested according to the test request sent by the PC, generates a mono tone audio file to be tested according to the tone information to be tested, generates a mono volume audio file to be tested according to the tone information to be tested, combines the generated mono character audio file to be tested, the mono tone audio file to be tested and the mono volume audio file to be tested into a multi-channel audio file to be tested, and sends the combined multi-channel audio file to the PC;
the splitting conversion module is used for splitting the audio test file after receiving the audio test file with different sound volumes and different sound colors obtained by sequentially carrying out splitting reduction, tone volume information identification and playing and recording of the mono character audio file to be tested through the PC, converting the audio information in the split mono character audio test file into character test information, converting the audio information in the split mono tone audio test file into tone test information, and converting the audio information in the split mono tone audio test file into sound volume test information;
and the comparison module is used for respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, the test is passed.
Optionally, the method further comprises: and the short circuit module is used for shorting the earphone hole and the microphone hole of the PC.
The third aspect of the present invention provides a sound card testing system for a PC, comprising: a PC and a server; the server is used for generating a mono character audio file to be tested according to the test request sent by the PC, generating a mono tone audio file to be tested according to the tone information to be tested, generating a mono volume audio file to be tested according to the tone information to be tested, merging the generated mono character audio file to be tested, the mono tone audio file to be tested and the mono volume audio file to be tested into a multi-channel audio file to be tested, and sending the merged multi-channel audio file to the PC; after receiving audio test files with different sound volumes and different tone colors, which are obtained by splitting and restoring, tone color volume information identification and playing and recording of a mono character audio file to be tested, sequentially through a PC, splitting the audio test files, converting audio information in the split mono character audio test files into character test information, converting audio information in the split mono tone color audio test files into tone color test information, and converting audio information in the split mono tone volume audio test files into sound volume test information; respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, passing the test;
the PC is used for receiving the multi-channel audio file to be detected sent by the server, and splitting and restoring the multi-channel audio file to be detected; according to the split restored mono tone color audio file to be measured and the mono tone volume audio file to be measured, different tone color information to be measured in the mono tone color audio file to be measured and different tone volume information to be measured in the mono tone volume audio file to be measured are identified, the mono text audio file to be measured is played through adjusting the sound card according to the different tone color information to be measured and the different tone volume information to be measured, the recorded audio test file is started, and the recorded audio test file is sent to the server.
The technical scheme adopted by the invention comprises the following technical effects:
1. the invention effectively solves the problem of test failure caused by environmental interference in the prior art, effectively improves the accuracy and reliability of PC sound card test, and further improves the test efficiency of PC sound cards under different sound volumes and different tone colors.
2. According to the technical scheme, the text test information is compared with the text information to be tested, the tone test information is compared with the tone information to be tested, the volume test information is compared with the volume information to be tested, if the comparison results are all larger than the first preset value, the test is passed, the coverage of a plurality of test scenes can be completed at one time, the synchronous test of the PC sound card under the conditions of different volumes and different tone is realized, and the test coverage and the test efficiency are improved.
3. According to the technical scheme, through testing of the PC sound card, the product quality reliability of the PC is improved, and the delivery quality of the PC is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
For a clearer description of embodiments of the invention or of the solutions of the prior art, reference will be made to the accompanying drawings, which are used in the description of the embodiments or of the prior art, and it will be obvious to those skilled in the art that other drawings can be obtained from these without inventive labour.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a flow chart of step S2 in a method according to an embodiment of the invention;
FIG. 4 is a schematic flow chart of step S2 in a method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a second embodiment of the present invention;
FIG. 6 is a schematic diagram of another embodiment of the apparatus according to the present invention;
fig. 7 is a schematic structural diagram of a third system according to an embodiment of the present invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
Example 1
As shown in FIG. 1, the invention provides a PC sound card testing method, which comprises the following steps:
s1, a server generates a mono character audio file to be tested according to a test request sent by a PC, generates a mono tone audio file to be tested according to tone information to be tested, generates a mono volume audio file to be tested according to tone information to be tested, combines the generated mono character audio file to be tested, the mono tone audio file to be tested and the mono volume audio file to be tested into a multi-channel audio file to be tested, and sends the combined multi-channel audio file to the PC;
s2, after receiving audio test files with different sound volumes and different sound colors, which are obtained by splitting and restoring, recognizing tone volume information and playing and recording a mono character audio file to be tested, through a PC, the server splits the audio test files, converts audio information in the split mono character audio test files into character test information, converts audio information in the split mono tone audio test files into tone test information, and converts audio information in the split mono tone audio test files into sound volume test information;
s3, respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, judging whether the comparison results are all larger than a first preset value, and if so, executing the step S4; if the judgment result is negative, executing the step S5;
s4, passing the test;
s5, the test fails.
As shown in fig. 2, before the server according to the test request sent by the PC, the method further includes: s0, shorting the earphone hole and the microphone hole of the PC.
In step S0, the server establishes a communication network with the PC, i.e., the PC can communicate with the server.
In step S1, the text information to be measured is a plurality of characters randomly generated by the server, the volume information to be measured is a first waveform file with different amplitudes, and through the different amplitudes, the different volume information to be measured can be correspondingly used, for example, the amplitudes are from small to large, and sequentially correspond to different volume information (0% -100%); the tone color information to be measured is a second waveform file with different amplitudes, and can be correspondingly different tone color information to be measured through different amplitudes, for example, the amplitudes are sequentially corresponding to different tone color information (male bass, male midrange, male treble, female bass, female midrange, female treble) and the like from small to large, and other corresponding relations can also be adopted, so the invention is not limited herein.
In step S2, as shown in fig. 3, the PC sequentially performs splitting and restoring, tone volume information identifying, playing and recording the mono text audio file to be tested, and the audio test files obtained under different volumes and different tone conditions specifically include:
s201, the PC receives the multi-channel audio file to be detected sent by the server, and splits and restores the multi-channel audio file to be detected;
s202, identifying different to-be-detected tone information in the mono to-be-detected tone audio file and different to-be-detected volume information in the mono to-be-detected volume audio file according to the split restored mono to-be-detected tone audio file and mono to-be-detected volume audio file;
s203, playing the mono text audio file to be tested by adjusting the sound card according to different tone information to be tested and different volume information to be tested, starting to record the audio test file, and sending the recorded audio test file to the server.
In step S201-S203, a first configuration file and a second configuration file are preset in a PC (i.e. a sound card in the PC), where a corresponding relationship between a mono text audio file to be tested, a mono volume audio file to be tested, a mono tone audio file to be tested and a sound channel is configured in the first configuration file; and the second configuration file is configured with a corresponding relation between the volume information to be detected and the amplitude in the mono volume audio file to be detected and a corresponding relation between the tone information to be detected and the amplitude in the mono tone audio file to be detected. Correspondingly, the same first configuration file and second configuration file are also arranged in the server, so that the server can convert the volume information to be measured into a mono volume audio file to be measured according to the first configuration file and the second configuration file, and convert the tone information to be measured into a mono tone audio file to be measured.
Further, as shown in fig. 4, in step S2, according to the monaural to-be-measured tone audio file and the monaural to-be-measured volume audio file after the splitting and restoring, identifying different to-be-measured tone information in the monaural to-be-measured tone audio file and different to-be-measured volume information in the monaural to-be-measured volume audio file specifically includes:
s211, determining a corresponding mono tone to be detected audio file and a mono tone to be detected audio file according to the sound channel corresponding to the split restored mono tone to be detected audio file;
s212, different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected, and different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected.
Specifically, the server and the PC may communicate through message information.
When the server sends the combined multi-channel audio file to be tested to the PC, the server combines the combined multi-channel audio file to be tested into a first message, wherein the first message comprises the following contents: the audio file comprises an audio mark to be detected, an audio start mark, audio file content and an audio file end mark.
The PC analyzes the message, recognizes the audio mark to be detected and confirms the received audio test message, acquires an audio start and end mark so as to accurately acquire the audio file to be detected, plays the acquired voice audio information through the earphone hole, and simultaneously starts the microphone to record the audio.
In the playing process, the volume and tone adjustment is carried out through a sound card by analyzing the information of different volumes in the audio file with the volume to be detected in the single channel and the information of different tone colors in the audio file with the tone color to be detected in the single channel, and the change information of different volumes and different tone colors is recorded in the audio recording process; in the recording process, different volume and tone information can be added when the mono text-to-be-detected audio file is played, specifically, the mono text-to-be-detected audio file can be divided into a plurality of small parts, the first volume information (and/or the first tone information) is used when the first part of the content of the mono text-to-be-detected audio file is played, the second volume information (and/or the second tone information) is used when the second part of the content is played, and the like until all the tests of the different volume and tone information are completed; of course, the different volume information and the different color information can be tested separately or together, and the invention is not limited herein. After recording, combining the recorded mono text audio test file, the mono tone audio test file and the mono volume audio test file into a multi-channel audio test file, and assembling a second message of the recorded multi-channel audio test file to a server, wherein the second message comprises a recorded audio mark, an audio start mark, audio file content and an audio file end mark.
The server analyzes the multi-channel audio test file transmitted by the PC after receiving the multi-channel audio test file, confirms the multi-channel audio test file as a received second message after acquiring the recorded audio mark, and acquires the audio start and end mark so as to accurately acquire the multi-channel audio test file. Splitting an audio test file, converting audio information in the split mono text audio test file into text test information, converting audio information in the split mono tone audio test file into tone test information, and converting audio information in the split mono volume audio test file into volume test information.
In step S3, comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested respectively, if the comparison results are all greater than a first preset value, the test is passed, specifically, the first preset value may be 95%, that is, the comparison consistency of the text test information with the text information to be tested is greater than or equal to 95%, the comparison consistency of the tone test information with the tone information to be tested is greater than or equal to 95%, and the comparison consistency of the volume test information with the volume information to be tested is greater than or equal to 95%, respectively; the first preset value can also be flexibly adjusted according to the actual situation, and the invention is not limited herein.
The invention effectively solves the problem of test failure caused by environmental interference in the prior art, effectively improves the accuracy and reliability of PC sound card test, and further improves the test efficiency of PC sound cards under different sound volumes and different tone colors.
According to the technical scheme, the text test information is compared with the text information to be tested, the tone test information is compared with the tone information to be tested, the volume test information is compared with the volume information to be tested, if the comparison results are all larger than the first preset value, the test is passed, the coverage of a plurality of test scenes can be completed at one time, the synchronous test of the PC sound card under the conditions of different volumes and different tone is realized, and the test coverage and the test efficiency are improved.
According to the technical scheme, through testing of the PC sound card, the product quality reliability of the PC is improved, and the delivery quality of the PC is ensured.
Implement two
As shown in fig. 5, the technical scheme of the present invention further provides a device for testing a sound card of a PC, including:
the generation module 101 is used for generating a mono character audio file to be detected by the server according to a test request sent by the PC, generating a mono tone audio file to be detected by the tone information to be detected, generating a mono volume audio file to be detected by the tone information to be detected, merging the generated mono character audio file to be detected, the mono tone audio file to be detected and the mono volume audio file to be detected into a multi-channel audio file to be detected, and sending the merged multi-channel audio file to the PC;
the splitting conversion module 102 is used for splitting the audio test file after the server receives the audio test file with different volume and different tone conditions obtained by splitting and restoring, tone volume information identification and playing and recording of the mono character audio file to be tested sequentially through the PC, converting the audio information in the split mono character audio test file into character test information, converting the audio information in the split mono tone audio test file into tone test information and converting the audio information in the split mono tone volume audio test file into volume test information;
the comparison module 103 compares the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested respectively, and if the comparison results are all larger than a first preset value, the test is passed.
Further, as shown in fig. 6, the technical scheme of the invention also provides a device for testing a sound card of a PC, which further comprises: the shorting module 100 shorts the earphone hole and the microphone hole of the PC.
The invention effectively solves the problem of test failure caused by environmental interference in the prior art, effectively improves the accuracy and reliability of PC sound card test, and further improves the test efficiency of PC sound cards under different sound volumes and different tone colors.
According to the technical scheme, the text test information is compared with the text information to be tested, the tone test information is compared with the tone information to be tested, the volume test information is compared with the volume information to be tested, if the comparison results are all larger than the first preset value, the test is passed, the coverage of a plurality of test scenes can be completed at one time, the synchronous test of the PC sound card under the conditions of different volumes and different tone is realized, and the test coverage and the test efficiency are improved.
Example III
As shown in fig. 7, the technical scheme of the present invention further provides a sound card testing system of a PC, including: a PC 201 and a server 202; the server 202 is configured to generate a mono text audio file to be tested according to a test request sent by the PC 201, generate a mono audio file to be tested according to the text information to be tested, generate a mono volume audio file to be tested according to the tone information to be tested, combine the generated mono text audio file to be tested, the mono audio file to be tested, and the mono volume audio file to be tested into a multi-channel audio file to be tested, and send the combined multi-channel audio file to the PC 201; after receiving audio test files with different volumes and different timbres, which are obtained by splitting and restoring, timbre volume information identification and playing and recording of a mono character audio file to be tested, sequentially through the PC 201, splitting the audio test files, converting audio information in the split mono character audio test files into text test information, converting audio information in the split mono timbre audio test files into timbre test information, and converting audio information in the split mono volume audio test files into volume test information; respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, passing the test;
the PC 201 is configured to receive the multi-channel audio file to be detected sent by the server 202, and split and restore the multi-channel audio file to be detected; and according to the different tone information to be detected in the monaural tone audio file to be detected and the different volume information to be detected in the monaural tone audio file to be detected, playing the monaural text audio file to be detected by adjusting the sound card according to the different tone information to be detected and the different volume information to be detected, starting the recorded audio test file, and sending the recorded audio test file to the server 202.
The invention effectively solves the problem of test failure caused by environmental interference in the prior art, effectively improves the accuracy and reliability of PC sound card test, and further improves the test efficiency of PC sound cards under different sound volumes and different tone colors.
According to the technical scheme, the text test information is compared with the text information to be tested, the tone test information is compared with the tone information to be tested, the volume test information is compared with the volume information to be tested, if the comparison results are all larger than the first preset value, the test is passed, the coverage of a plurality of test scenes can be completed at one time, the synchronous test of the PC sound card under the conditions of different volumes and different tone is realized, and the test coverage and the test efficiency are improved.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.

Claims (7)

1. A PC sound card testing method is characterized by comprising the following steps:
the server generates a mono-channel to-be-tested text audio file according to a test request sent by the PC, generates a mono-channel to-be-tested tone audio file according to the to-be-tested tone information, generates a mono-channel to-be-tested volume audio file according to the to-be-tested tone information, combines the generated mono-channel to-be-tested text audio file, the mono-channel to-be-tested tone audio file and the mono-channel to-be-tested volume audio file into a multi-channel to-be-tested audio file, and sends the combined multi-channel to the PC; the method comprises the steps that character information to be detected is a plurality of characters randomly generated by a server, volume information to be detected is a first waveform file with different amplitudes, and tone information to be detected is a second waveform file with different amplitudes;
after receiving audio test files with different sound volumes and different tone colors, which are obtained by splitting and restoring, tone color volume information identification and playing and recording of a mono-channel to-be-tested text audio file, through a PC (personal computer), a server splits the audio test files, converts audio information in the split mono-channel text audio test files into text test information, converts audio information in the split mono-channel tone color audio test files into tone color test information, and converts audio information in the split mono-channel tone volume audio test files into sound volume test information; the PC machine sequentially carries out splitting restoration, tone volume information identification and audio test files with different volumes and different tone colors, which are obtained after the single-channel text audio file to be tested is played and recorded, specifically comprises the following steps:
the PC receives the multi-channel audio file to be detected sent by the server, and splits and restores the multi-channel audio file to be detected; the PC is preset with a first configuration file and a second configuration file, wherein the first configuration file is configured with a corresponding relation of a single-channel text audio file to be tested, a single-channel volume audio file to be tested, a single-channel tone audio file to be tested and a sound channel; the second configuration file is configured with a corresponding relation between the volume information to be detected and the amplitude in the mono volume audio file to be detected and a corresponding relation between the tone information to be detected and the amplitude in the mono tone audio file to be detected;
identifying different to-be-detected tone information in the mono to-be-detected tone audio file and different to-be-detected volume information in the mono to-be-detected volume audio file according to the split restored mono to-be-detected tone audio file and mono to-be-detected volume audio file;
according to different tone information to be measured and different volume information to be measured, playing the mono text audio file to be measured by adjusting the sound card, starting to record an audio test file, and sending the recorded audio test file to a server;
and respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, passing the test.
2. The method for testing a sound card of a PC according to claim 1, wherein the server further comprises, before the step of receiving the test request from the PC: and shorting the earphone hole and the microphone hole of the PC.
3. The method for testing a sound card of a PC according to claim 1, wherein identifying different to-be-tested tone information in the mono to-be-tested tone audio file and different to-be-tested volume information in the mono to-be-tested tone audio file according to the split restored mono to-be-tested tone audio file and mono to-be-tested volume audio file specifically includes:
determining a corresponding mono tone to be detected audio file and a mono tone to be detected audio file according to the sound channel corresponding to the split restored mono tone to be detected audio file;
different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected, and different tone information to be detected is identified through the second configuration file according to the amplitude information in the mono tone audio file to be detected.
4. The method for testing a sound card of a PC according to claim 1, wherein the server communicates with the PC via message.
5. The PC sound card testing device is characterized by comprising:
the server generates a mono character audio file to be tested according to the test request sent by the PC, generates a mono tone audio file to be tested according to the tone information to be tested, generates a mono volume audio file to be tested according to the tone information to be tested, combines the generated mono character audio file to be tested, the mono tone audio file to be tested and the mono volume audio file to be tested into a multi-channel audio file to be tested, and sends the combined multi-channel audio file to the PC; the method comprises the steps that character information to be detected is a plurality of characters randomly generated by a server, volume information to be detected is a first waveform file with different amplitudes, and tone information to be detected is a second waveform file with different amplitudes;
the splitting conversion module is used for splitting the audio test file after receiving the audio test file with different sound volumes and different sound colors obtained by sequentially carrying out splitting reduction, tone volume information identification and playing and recording of the mono character audio file to be tested through the PC, converting the audio information in the split mono character audio test file into character test information, converting the audio information in the split mono tone audio test file into tone test information, and converting the audio information in the split mono tone audio test file into sound volume test information; the PC machine sequentially carries out splitting restoration, tone volume information identification and audio test files with different volumes and different tone colors, which are obtained after the single-channel text audio file to be tested is played and recorded, specifically comprises the following steps:
the PC receives the multi-channel audio file to be detected sent by the server, and splits and restores the multi-channel audio file to be detected; the PC is preset with a first configuration file and a second configuration file, wherein the first configuration file is configured with a corresponding relation of a single-channel text audio file to be tested, a single-channel volume audio file to be tested, a single-channel tone audio file to be tested and a sound channel; the second configuration file is configured with a corresponding relation between the volume information to be detected and the amplitude in the mono volume audio file to be detected and a corresponding relation between the tone information to be detected and the amplitude in the mono tone audio file to be detected;
identifying different to-be-detected tone information in the mono to-be-detected tone audio file and different to-be-detected volume information in the mono to-be-detected volume audio file according to the split restored mono to-be-detected tone audio file and mono to-be-detected volume audio file;
according to different tone information to be measured and different volume information to be measured, playing the mono text audio file to be measured by adjusting the sound card, starting to record an audio test file, and sending the recorded audio test file to a server;
and the comparison module is used for respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, the test is passed.
6. The sound card testing apparatus of claim 5, further comprising: and the short circuit module is used for shorting the earphone hole and the microphone hole of the PC.
7. A PC sound card testing system is characterized by comprising: a PC and a server; the server is used for generating a mono character audio file to be tested according to the test request sent by the PC, generating a mono tone audio file to be tested according to the tone information to be tested, generating a mono volume audio file to be tested according to the tone information to be tested, merging the generated mono character audio file to be tested, the mono tone audio file to be tested and the mono volume audio file to be tested into a multi-channel audio file to be tested, and sending the merged multi-channel audio file to the PC; the method comprises the steps that character information to be detected is a plurality of characters randomly generated by a server, volume information to be detected is a first waveform file with different amplitudes, and tone information to be detected is a second waveform file with different amplitudes; after receiving audio test files with different sound volumes and different tone colors, which are obtained by splitting and restoring, tone color volume information identification and playing and recording of a mono character audio file to be tested, sequentially through a PC, splitting the audio test files, converting audio information in the split mono character audio test files into character test information, converting audio information in the split mono tone color audio test files into tone color test information, and converting audio information in the split mono tone volume audio test files into sound volume test information; respectively comparing the text test information with the text information to be tested, the tone test information with the tone information to be tested, and the volume test information with the volume information to be tested, and if the comparison results are all larger than a first preset value, passing the test;
a first configuration file and a second configuration file are preset in the PC, and the corresponding relation between a single-channel text audio file to be tested, a single-channel volume audio file to be tested, a single-channel tone audio file to be tested and a sound channel is configured in the first configuration file; the PC is used for receiving the multi-channel audio file to be detected sent by the server and splitting and restoring the multi-channel audio file to be detected; according to the split restored mono tone color audio file to be measured and the mono tone volume audio file to be measured, identifying different tone color information to be measured in the mono tone color audio file to be measured and different tone volume information to be measured in the mono tone volume audio file to be measured, playing the mono text audio file to be measured by adjusting a sound card according to the different tone color information to be measured and the different tone volume information to be measured, starting a recorded audio test file, and sending the recorded audio test file to a server; the PC machine sequentially carries out splitting restoration, tone volume information identification and audio test files with different volumes and different tone colors, which are obtained after the single-channel text audio file to be tested is played and recorded, specifically comprises the following steps:
the PC receives the multi-channel audio file to be detected sent by the server, and splits and restores the multi-channel audio file to be detected;
identifying different to-be-detected tone information in the mono to-be-detected tone audio file and different to-be-detected volume information in the mono to-be-detected volume audio file according to the split restored mono to-be-detected tone audio file and mono to-be-detected volume audio file;
according to different tone information to be measured and different volume information to be measured, playing the mono text audio file to be measured by adjusting the sound card, starting to record the audio test file, and sending the recorded audio test file to the server.
CN202110194018.XA 2021-02-20 2021-02-20 PC sound card testing method, device and system Active CN112969135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110194018.XA CN112969135B (en) 2021-02-20 2021-02-20 PC sound card testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110194018.XA CN112969135B (en) 2021-02-20 2021-02-20 PC sound card testing method, device and system

Publications (2)

Publication Number Publication Date
CN112969135A CN112969135A (en) 2021-06-15
CN112969135B true CN112969135B (en) 2023-04-25

Family

ID=76285297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110194018.XA Active CN112969135B (en) 2021-02-20 2021-02-20 PC sound card testing method, device and system

Country Status (1)

Country Link
CN (1) CN112969135B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676595B (en) * 2021-07-12 2023-07-21 杭州逗酷软件科技有限公司 Volume adjustment method, terminal device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7593781B1 (en) * 2003-02-05 2009-09-22 American Megatrends, Inc. Audio feedback test
CN104854635A (en) * 2012-11-20 2015-08-19 庞巴迪运输有限公司 Safe audio playback in a human-machine interface
CN108564966A (en) * 2018-02-02 2018-09-21 安克创新科技股份有限公司 The method and its equipment of tone testing, the device with store function
CN109979427A (en) * 2017-12-28 2019-07-05 东莞迪芬尼电声科技有限公司 The system and method for detection of sound
CN111274073A (en) * 2020-01-19 2020-06-12 苏州浪潮智能科技有限公司 Server sound card audio function diagnosis method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100554916C (en) * 2006-04-28 2009-10-28 孙盈军 A kind of method of testing of digital product and isolated plant thereof
CN101592693B (en) * 2008-05-30 2013-11-06 鸿富锦精密工业(深圳)有限公司 System and method for audio tests
US20110013779A1 (en) * 2009-07-17 2011-01-20 Apple Inc. Apparatus for testing audio quality of an electronic device
CN102014333A (en) * 2009-09-04 2011-04-13 鸿富锦精密工业(深圳)有限公司 Test method for sound system of computer
CN102572672A (en) * 2010-12-21 2012-07-11 鸿富锦精密工业(深圳)有限公司 Audio frequency module test system and method
TW201340677A (en) * 2012-03-16 2013-10-01 Askey Technology Jiangsu Ltd Sound quality testing method and system
JP6950226B2 (en) * 2017-03-27 2021-10-13 カシオ計算機株式会社 Audio equipment, optimization processing methods and programs for audio equipment
CN112073888A (en) * 2020-08-06 2020-12-11 深圳市天视通技术有限公司 Audio testing method, system, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7593781B1 (en) * 2003-02-05 2009-09-22 American Megatrends, Inc. Audio feedback test
CN104854635A (en) * 2012-11-20 2015-08-19 庞巴迪运输有限公司 Safe audio playback in a human-machine interface
CN109979427A (en) * 2017-12-28 2019-07-05 东莞迪芬尼电声科技有限公司 The system and method for detection of sound
CN108564966A (en) * 2018-02-02 2018-09-21 安克创新科技股份有限公司 The method and its equipment of tone testing, the device with store function
CN111274073A (en) * 2020-01-19 2020-06-12 苏州浪潮智能科技有限公司 Server sound card audio function diagnosis method and system

Also Published As

Publication number Publication date
CN112969135A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US8879744B2 (en) Audio testing system and audio testing method for device under test
CN108564966B (en) Voice test method and device with storage function
CN109326305B (en) Method and system for batch testing of speech recognition and text synthesis
CN112969135B (en) PC sound card testing method, device and system
CN103179495A (en) Audio test method and system for earphone microphone and receiver of mobile terminal
CN103179240A (en) Audio test method and system for mobile terminal
CN108091352B (en) Audio file processing method and device, storage medium and terminal equipment
US20190266988A1 (en) Chord Identification Method and Chord Identification Apparatus
CN113823334A (en) Environment simulation method applied to vehicle-mounted equipment, related device and equipment
CN112802497A (en) Audio quality detection method and device, computer equipment and storage medium
CN111445906A (en) Big data-based voice generation method, device, equipment and medium
CN106708741B (en) The test method and system of voice application
CN112261566B (en) AI intelligent glasses audio test method based on cloud service
CN110996244A (en) Microphone array performance test method, device and system
CN112581924A (en) Audio processing method and device based on point-to-sing equipment, storage medium and equipment
CN111274073A (en) Server sound card audio function diagnosis method and system
CN113141547A (en) Real-time detection of interfering devices
CN109427327B (en) Audio call evaluation method, evaluation device, and computer storage medium
CN112995882A (en) Intelligent equipment audio open loop test method
CN111986657B (en) Audio identification method and device, recording terminal, server and storage medium
CN110913211A (en) Method for detecting MIC of set top box, computer readable storage medium and set top box
CN111863041B (en) Sound signal processing method, device and equipment
JP2019074865A (en) Conversation collection device, conversation collection system, and conversation collection method
Wang et al. Multi-Modal Multi-Correlation Learning for Audio-Visual Speech Separation
JP2002300259A (en) Method and system for evaluation test of voice speech equipment

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
GR01 Patent grant
GR01 Patent grant