Test method of audio chip, storage medium and computer device

By inputting a standard audio signal into the audio chip and performing a Fourier transform, the output capability of the left and right channels of the audio chip is detected, solving the problem of unbalanced channel output in existing technologies, ensuring balanced channel output of headphones, and improving headphone quality.

CN114900782BActive Publication Date: 2026-01-09SHENZHEN SHOKZ CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210389824.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-23
Publication Date
2026-01-09
Estimated Expiration
2039-07-23

AI Technical Summary

Technical Problem

Existing technology cannot effectively detect the difference in output capability between the left and right channels of an audio chip, which affects headphone quality.

Method used

By inputting a standard audio signal into the audio chip, the amplitude values ​​of the left and right channel output signals are obtained, and the amplitude values ​​at specific frequency points are obtained through Fourier transform. The difference in amplitude values ​​is compared to determine whether the channel output capability meets the requirements.

Benefits of technology

It enables precise detection of the left and right channel output capabilities of the audio chip, ensuring balanced channel output of the headphones and improving headphone quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114900782B_ABST
    Figure CN114900782B_ABST
Patent Text Reader

Abstract

The application discloses a kind of audio chip test method, storage medium and computer equipment.The audio chip test method includes: first audio signal is input to audio chip, wherein first audio signal is standard audio signal;Second audio signal is obtained from left channel and right channel output after being processed by audio chip respectively;First amplitude value and second amplitude value on specific frequency point of second audio signal output by left channel and right channel respectively are obtained, wherein specific frequency point is the frequency value of first audio signal;Whether the difference of first amplitude value and second amplitude value is less than first amplitude threshold value is determined;If yes, the performance of left channel and right channel of audio chip meets the requirement.By determining whether the difference of first amplitude value and second amplitude value on specific frequency point of second audio signal output from left channel and right channel is less than first amplitude threshold value, the audio chip with similar left and right channel output capabilities can be detected by the application.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of audio chip testing, in particular to an audio chip testing method, a storage medium and a computer device. BACKGROUND

[0002] With the rapid development of electronic technology, the functional complexity of electronic products is increasing, and the production testing requirements of electronic products are also increasing. In order to meet the production testing requirements of audio electronic products, fine and automatic testing functions need to be realized in the production process.

[0003] The audio chip has left and right channel output capabilities. If the left and right channel output capabilities differ too much, the performance will not meet the requirements, which will seriously affect the quality of the earphone. Therefore, a method for detecting the left and right channel output capabilities of the audio chip is needed. SUMMARY

[0004] The present application mainly provides an audio chip testing method, a storage medium and a computer device to solve the problem of how to detect the left and right channel output capabilities of the audio chip.

[0005] To solve the above technical problems, one technical solution adopted by the present application is to provide an audio chip testing method. The audio chip testing method comprises: inputting a first audio signal to the audio chip, wherein the first audio signal is a standard audio signal; obtaining a second audio signal output from the left channel and the right channel respectively after being processed by the audio chip; obtaining a first amplitude value and a second amplitude value of the second audio signal output from the left channel and the right channel respectively at a specific frequency point, wherein the specific frequency point is the frequency value of the first audio signal; determining whether the difference between the first amplitude value and the second amplitude value is less than a first amplitude threshold value; if yes, the performance of the left channel and the right channel of the audio chip meets the requirements.

[0006] To solve the above technical problems, another technical solution adopted by the present application is to provide a storage medium. The storage medium stores a program, and the program can implement the above method when executed.

[0007] To solve the above technical problems, still another technical solution adopted by the present application is to provide a computer device. The computer device comprises a processor and a memory, the processor is coupled to the memory, the memory is used to store a program, and the processor is used to execute the program to implement the above method.

[0008] The beneficial effects of the present application are: different from the prior art, the present application discloses a test method of an audio chip, a storage medium and a computer device. By acquiring the first amplitude value and the second amplitude value of the second audio signal output by the left channel and the right channel of the audio chip at a specific frequency point, and by determining whether the difference between the first amplitude value and the second amplitude value is less than the first amplitude threshold, the output capability of the left and right channels of the audio chip is distinguished, and therefore the test method of the audio chip provided by the present application can detect the difference degree of the output capability of the left and right channels of the audio chip, and then select the audio chip with the required performance, so as to ensure the quality of the earphone. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0010] Figure 1 is a flowchart of an embodiment of the test method of the audio chip provided by the present application;

[0011] Figure 2 is Figure 1 is a detailed flowchart of step S13 in the flowchart;

[0012] Figure 3 is Figure 2 is a flowchart after step S133 in the flowchart;

[0013] Figure 4 is Figure 2 is another flowchart after step S133 in the flowchart;

[0014] Figure 5 is a structural diagram of an embodiment of the computer device provided by the present application;

[0015] Figure 6 is a structural diagram of an embodiment of the storage medium provided by the present application. DETAILED DESCRIPTION

[0016] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0017] The terms "first", "second", "third", etc., in the embodiments of the present application are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Thus, the features defined with "first", "second", "third" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "a plurality of" is at least two, such as two, three, etc., unless otherwise explicitly specified. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.

[0018] Reference herein to "embodiments" means that the particular features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily independent or alternative to other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0019] Please refer to Figure 1 , Figure 1 A flowchart of a test method of an audio chip is provided in the present application. In the embodiment, the test method comprises:

[0020] S11: inputting a first audio signal to the audio chip.

[0021] The first audio signal input to the audio chip is a standard audio signal. For example, the first audio signal is a 1KHz audio signal, and the first audio signal input to the audio chip each time is the same.

[0022] The audio chip can be an independent chip, or it can be one of a plurality of audio chips in a to-be-tested board. For example, the test method of the present application can simultaneously test a plurality of audio chips arranged in the to-be-tested board.

[0023] Specifically, the first audio signal is input to the audio chip, specifically comprising: inputting a plurality of first audio signals from two opposite sides of the to-be-tested board, each first audio signal corresponding to an audio chip, so as to simultaneously test the plurality of audio chips by using the first audio signal.

[0024] Alternatively, a plurality of first audio signals can also be input from one side of the test board to simultaneously test the plurality of audio chips by using the first audio signal.

[0025] S12: Obtain the second audio signal output from the left channel and the right channel respectively after being processed by the audio chip.

[0026] Obtain the second audio signal output from the left channel and the right channel respectively after being processed by the audio chip, wherein the audio chip comprises the left channel and the right channel, thus the audio chip receives the first audio signal, and after being processed, outputs the respective second audio signal from the left channel and the right channel respectively.

[0027] The second audio signal may be different due to the physical difference between the left channel and the right channel, which will cause the difference in the sound received by the human ear, and if the difference is too large, the information heard by the human ear will be disturbed. For example, the sound emitted by the left channel is large and the sound emitted by the right channel is small; or the sound emitted by the left channel carries a lot of noise, while the sound emitted by the right channel is in good condition. These conditions will seriously affect the user's experience and damage the quality of the product. Therefore, it is necessary to test the output audio capability of the left channel and the right channel of the audio chip to eliminate the audio chip that does not meet the quality requirements.

[0028] S13: Obtain the first amplitude value and the second amplitude value of the second audio signal output from the left channel and the right channel respectively at a specific frequency point.

[0029] Obtain the first amplitude value and the second amplitude value of the second audio signal output from the left channel and the right channel respectively at a specific frequency point, wherein the specific frequency point is the frequency value of the first audio signal, the first amplitude value is the amplitude peak value of the second audio signal corresponding to the left channel, and the second amplitude value is the amplitude peak value of the second audio signal corresponding to the right channel.

[0030] Specifically, the first audio signal is a sine wave signal, and the signal output by the audio chip is a square wave signal. After filtering, the square wave signal is output as a sine wave signal. The output sine wave signal needs to be converted into audio frequency domain information, and then the first amplitude value and the second amplitude value of the audio frequency domain information corresponding to the left channel and the right channel at the specific frequency point are collected.

[0031] Specifically, referring to Figure 2 , the method for collecting the first amplitude value and the second amplitude value is as follows:

[0032] S131: Collect multiple data points of the second audio signal of the left channel and the right channel in time sequence.

[0033] Collect the data points corresponding to multiple time points in sequence from any time point of the second audio signal. The data point is the amplitude information of the corresponding time point of the second audio signal.

[0034] For example, 1024 data points can be continuously collected within a period, or 512 data points can be continuously collected within a period.

[0035] S132: Fourier transform is performed on the plurality of data points to obtain audio frequency domain information corresponding to the second audio signals of the left channel and the right channel.

[0036] The plurality of data points collected from the second audio signals output from the left channel are subjected to Fourier transform to obtain audio frequency domain information corresponding thereto. The plurality of data points collected from the second audio signals output from the right channel are subjected to Fourier transform to obtain audio frequency domain information corresponding thereto.

[0037] After obtaining the audio frequency domain information corresponding to the second audio signals of the left channel and the right channel, the amplitude value at a specific frequency point can be collected, and step S133 is performed.

[0038] S133: The first amplitude value and the second amplitude value of the audio frequency domain information of the left channel and the right channel at a specific frequency point are obtained.

[0039] The first amplitude value of the audio frequency domain information of the left channel at the specific frequency point is obtained, and the second amplitude value of the audio frequency domain information of the right channel at the specific frequency point is obtained, i.e., the first amplitude value and the second amplitude value correspond to the left channel and the right channel respectively at the same specific frequency point.

[0040] The specific frequency point is the frequency value of the first audio signal. For example, if the first audio signal is 1 kHz, the specific frequency point is 1 kHz. After Fourier transform, the audio frequency domain information curve obtained has an amplitude value at 0 and the frequency point corresponding to the frequency value of the first audio signal, and the amplitude values of the remaining frequency points are almost zero, and the amplitude value at the frequency point corresponding to the frequency value of the first audio signal can reflect the amplification capability of the audio chip.

[0041] Further, referring to Figure 3 The amplification capability of the audio chip can also be determined whether it meets the performance requirement, and the method is as follows:

[0042] S134: It is determined whether the first amplitude value and the second amplitude value are within a preset amplitude threshold range, respectively.

[0043] That is, the first amplitude value and the second amplitude value are compared with the preset amplitude threshold range, respectively, to determine whether they fall within the preset amplitude threshold range. The preset amplitude threshold range is the amplification capability required by the chip set by man.

[0044] S135: If yes, the amplification capability of the audio chip meets the performance requirement.

[0045] If yes, the amplification capability of the audio chip meets the performance requirement; if any one of the first amplitude value and the second amplitude value does not meet the requirement, the amplification capability of the audio chip does not meet the performance requirement.

[0046] Further, referring toFigure 4 The noise conditions of the left channel and the right channel can also be tested in the following manner:

[0047] S136: Obtain a plurality of third amplitude values on other frequency points of the second audio signal.

[0048] The plurality of third amplitude values on other frequency points of the second audio signal are obtained, i.e., a plurality of third amplitude values on other frequency points of the audio frequency domain information of the left channel and the right channel are obtained respectively. The other frequency points are frequency points other than the specific frequency point. Since the amplitude values on the other frequency points are close to zero, if the amplitude values on the other frequency points are too large, it indicates that the noise carried in the audio information emitted by the left channel or the right channel is large, which also does not meet the performance requirements of the audio chip.

[0049] S137: Determine whether the plurality of third amplitude values are less than a second amplitude threshold value.

[0050] It is determined whether the plurality of third amplitude values are less than a second amplitude threshold value. The second amplitude threshold value is an audio amplitude value at a noise level that is tolerable by human ears, which is measured through experiments. Thus, if it is determined that the plurality of third amplitude values are less than the second amplitude threshold value, it indicates that the noise of the audio chip is small, and the left channel or the right channel corresponding thereto meets the performance requirements of the audio chip. If the audio emitted by the left channel and the right channel both meet the performance requirements of the audio chip, the audio chip meets the required performance requirements. If the third amplitude value corresponding to any one of the left channel and the right channel exceeds the second amplitude threshold value, the audio chip does not meet the required performance requirements.

[0051] S138: If yes, it indicates that the noise of the audio chip is small.

[0052] S14: Determine whether the difference between the first amplitude value and the second amplitude value is less than a first amplitude threshold value.

[0053] The difference between the first amplitude value and the second amplitude value is obtained, and it is determined whether the difference is less than a first amplitude threshold value. The difference between the first amplitude value and the second amplitude value can be used as an index for judging the similarity of the left channel and the right channel of the audio chip. If the amplification capabilities of the left channel and the right channel of the audio chip are greatly different, it will inevitably affect the use of the user.

[0054] Thus, if the difference is less than the first amplitude threshold value, the amplification capabilities of the left channel and the right channel of the audio chip are similar, and the audio chip meets the performance requirements. If the difference is greater than or equal to the first amplitude threshold value, the amplification capabilities of the left channel and the right channel of the audio chip are greatly different, and the audio chip does not meet the performance requirements.

[0055] S15: If yes, the performance of the left channel and the right channel of the audio chip meets the requirements.

[0056] By acquiring the first amplitude value and the second amplitude value of the second audio signal output by the audio chip from the left channel and the right channel at a specific frequency point, and by determining whether the difference between the first amplitude value and the second amplitude value is less than the first amplitude threshold, whether the output capabilities of the left channel and the right channel of the audio chip are similar is determined. Therefore, the test method of the audio chip provided by the application can detect the difference degree of the output capabilities of the left channel and the right channel of the audio chip, and then select the audio chip with the performance meeting the requirements, so as to ensure the quality of the earphone.

[0057] Based on this, the application further provides a computer device 100, please refer to Figure 5 , Figure 5 is a structural schematic diagram of the first embodiment of the computer device of the application. In this embodiment, the computer device 100 comprises a processor 110 and a memory 120, the processor 110 is coupled to the memory 120, the memory 120 is used to store programs, and the processor 110 is used to execute programs to realize the intra prediction method or the video encoding method of any one of the above-mentioned embodiments.

[0058] The computer device 100 can be a codec. The processor 110 can also be called CPU (Central Processing Unit, central processing unit). The processor 110 can be an integrated circuit chip with signal processing capability. The processor 110 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a ready-to-program gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor 110 can be a microprocessor or the processor can also be any conventional processor or the like.

[0059] Based on this, the application further provides a storage medium 200, please refer to Figure 6 , Figure 6 is a structural schematic diagram of an embodiment of the storage medium provided by the application. In this embodiment, the storage medium 200 stores a program 210, and the program 210 can realize the intra prediction method or the video encoding method of any one of the above-mentioned embodiments when executed.

[0060] The program 210 can be stored in the above-mentioned storage medium 200 in the form of a software product, including a plurality of instructions for causing a device or a processor to execute all or part of the steps of the method of each embodiment of the application.

[0061] The storage medium 200 is a medium for storing certain discontinuous physical quantities in a computer memory. The aforementioned storage medium 200 having a storage function includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program 210 codes.

[0062] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the above-described device embodiment is merely illustrative, and the division of the modules or units can be different, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling or direct coupling or communication connection between the units can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0063] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.

[0064] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0065] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0066] The above merely describes the embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which is made by using the content of the present application specification and drawings, is also included in the patent protection scope of the present application.

Claims

1. A method of testing an audio chip, the method comprising: The method comprises: inputting a first audio signal to an audio chip, wherein the first audio signal is a standard audio signal; obtaining a second audio signal output from left and right channels respectively after processing by the audio chip; obtaining a first amplitude value and a second amplitude value of the second audio signal output from the left and right channels respectively at a specific frequency point, and determining whether the first amplitude value and the second amplitude value are within a preset amplitude threshold range, wherein the specific frequency point is a frequency value of the first audio signal, the first amplitude value is an amplitude peak value of the second audio signal corresponding to the left channel, and the second amplitude value is an amplitude peak value of the second audio signal corresponding to the right channel; the preset amplitude threshold range is a range of amplification capacity required by the audio chip; if yes, the amplification capacity of the audio chip meets the performance requirement; obtaining a plurality of third amplitude values at other frequency points of the second audio signal, wherein the other frequency points are frequency points other than the specific frequency point; determining whether the plurality of third amplitude values are less than a second amplitude threshold value; if yes, it indicates that the audio chip has low noise.

2. The test method of claim 1, wherein, After the step of obtaining the second audio signal output from the left and right channels respectively after processing by the audio chip, the method further comprises: collecting a plurality of data points of the second audio signal of the left and right channels in time sequence; performing Fourier transform on the plurality of data points to obtain audio frequency domain information corresponding to the second audio signal of the left and right channels.

3. The test method of claim 2, wherein, The step of obtaining the first amplitude value and the second amplitude value of the second audio signal output from the left and right channels respectively at the specific frequency point comprises: obtaining the first amplitude value and the second amplitude value of the audio frequency domain information of the left and right channels at the specific frequency point.

4. The test method of claim 1, wherein, The test method simultaneously tests a plurality of audio chips arranged on a to-be-tested board, wherein the step of inputting the first audio signal to the audio chip comprises: inputting a plurality of first audio signals from two opposite sides of the to-be-tested board respectively, each first audio signal corresponding to one audio chip, so as to simultaneously test the plurality of audio chips by using the first audio signals.

5. A storage medium, characterized by The storage medium stores a program, and the program is executed to implement the method of any one of claims 1-4.

6. A computer device, comprising: The computer device comprises a processor and a memory, the processor is coupled to the memory, the memory is used to store a program, and the processor is used to execute the program to implement the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Method and system for detecting sound recording equipment

    CN104485117A

  • Left and right channel balance degree regulation method and device, control chip and earphone

    CN108810717A