1. Field of the Invention
Embodiments of the present disclosure relate to testing audio systems, and more particularly to an audio testing system and method.
2. Description of Related Art
An audio signal from a set-top-box (STB) requires thorough testing to guarantee the quality of the audio signal. A break, a pause, or a spike in the flow of the audio signal indicates that the audio signal from the STB has been distorted.
At the present time, the audio signal from the STB is tested manually or via expensive machinery. Manual tests are very time-consuming and are likely to produce inaccurate results, while tests conducted via machinery are too costly. Furthermore, extended exposure to audio signal testing may have harmful effect on the testers' health.
What is needed, therefore, is an audio testing system and method to address the aforementioned deficiencies.
The computer system 10 comprises various modules to determine if the audio signal has been distorted. In one embodiment, the computer system 10 comprises a receiving module 11, a sampling module 12, a processing module 14, and a recording module 16. One or more general processors or specialized processors, such as a processor 18 may execute the sampling module 12, the processing module 14, and the recording module 16.
The receiving module 11 is configured for receiving an attenuated signal from the attenuation circuit 50. The sampling module 12 is configured for sampling the audio signal from the STB 40 via the sound card 20 and obtaining sampling points from the audio signal. The sampling module 12 stores the sampling points in the memory 30. The processing module 14 is configured for processing the sampling points stored in the memory 30 and determines if the audio signal is distorted. The recording module 16 is configured for recording a section of the distorted audio signal into log file. Depending on the embodiment, the memory 30 may comprise a hard disk drive, a flash drive, or a compact disc, for example.
The attenuation circuit 50 attenuates noises in the audio signal from the STB 40. In one exemplary embodiment, the computer system 10 may sample the audio signal from the STB 40 at a sampling rate of 44.1 KHz (44,100 samples per second) and a 16-bit resolution. One theoretical dynamic range of the audio signal is between −32768 and 32767.
In step S1, the STB 40 plays a sound file, such as a section of music. Accordingly, the sound emitted by the STB 40 flows are attenuated by the attenuation circuit 50 and then flows to the computer system 10 where it is received by the receiving module 11.
In step S2, the sampling module 12 samples the audio signal from the STB 40 via the sound card 20 and obtains sampling points from the sampled audio signal. It may be understood that the number of sampling points and the method of sampling may depend on different embodiments.
In step S3, the sampling module 12 stores the sampling points in the memory 30.
In step S4, the processing module 13 processes the sampling points stored in the memory 30 and determines if the audio signal has been distorted. Specifically, the processing module 13 determines if there is a break, a pause, or a spike existing in the flow of the audio signal from the STB 40.
In step S5, if the audio signal has been distorted, the recording module 16 records the audio signal as a digital audio signal, such as in a waveform audio form (way) file.
In step S6, the recording module 16 records a section of the distorted audio signal into a log file. If the audio signal from the STB 40 has been distorted, a tester can replay the way file to examine the distorted audio signal.
In step S12, the processing module 14 takes maximum amplitude values and minimum amplitude values from the 441 sampling points, and stores them in the memory 30.
In step S13, the processing module 14 processes the absolute values of the maximum amplitude values and the minimum amplitude values, and checks if the absolute values are equal to 32767 or 32768. If the absolute values are both less than 32767, the processing module 14 determines that there is no break in the audio signal section that lasts 10 ms. Subsequently, the process of testing for a break has been completed.
In step S14, if the absolute values are equal to 32767 or 32768 in one embodiment. The processing module 14 further determines if the sampling points, having the maximum absolute amplitude values or absolute minimum amplitude values, are continuous along more than a Y number of sampling points. Depending on the embodiment, Y may range between 3-10. In the embodiment of
In step S15, if there are more than or equal to Y number of continuous sampling points, the processing module 14 determines that there is a break in the audio signal section that lasts 10 ms. Subsequently, the process of testing for a break has been completed.
In step S16, if there are less than Y number of continuous sampling points, the processing module 14 determines that there is no break in the audio signal section that lasts 10 ms. Subsequently, the process of testing for a break has been completed.
For balancing the testing time and the test precision, X is equal to 5 ms in one embodiment. In step S14, Y may range between 3-10 based on a typical person's hearing ability. If there are less than 3 number of continuous sampling points having the maximum absolute amplitude values or absolute minimum amplitude values, it would be difficult for a typical person to identify this break.
In step S22, the processing module 14 takes the absolute values of differences between the amplitude values of each two adjacent sampling points, subsequently adding up all 881 absolute values, namely SUM. Next, the processing module 14 processes the average value of the 881 absolute values, namely SUM/881.
In step S23, the processing module 14 checks if SUM/881 is less than N, and N may range between 5-20. In this embodiment, N is equal to 10.
In step S24, if SUM/881 is less than 10, the processing module 14 determines that there is a pause in the audio signal section that lasts 20 ms.
In step S25, if SUM/881 is equal to or more than 10, the processing module 14 determines that there is no pause in the audio signal section that lasts 20 ms.
It may be understood that M may range from 20 ms-30 ms based on a typical person's hearing ability. If the pause in audio lasts less than 20 ms, it would be difficult for a typical person to identify this pause. In step S23, N should be equal to 0. In this embodiment, because of the direct current bias in the testing system, N may range between 5-20.
In step S32, the processing module 14 takes the absolute values of differences between the amplitude values of each two adjacent sampling points, and adds up all 219 absolute values, then stores the summation of the 219 absolute values in the memory 30.
In step S33, the processing module 14 determines if it has processed sampling points for Q times. If the processing module 14 has processed sampling points for Q times, the process goes to step S34. If the processing module 14 has not processed sampling points for Q times, the process returns to step S31. Q may range between 5-10. In this embodiment, Q is equal to 10.
In step S34, there are 10 summations in the memory 30. The processing module 14 takes maximum values and minimum values from the 10 summations, namely Max and Min, and stores them in the memory 30.
In step S35, the processing module 14 determines if the Max/Min is equal to S. S may range between 20-30 in one embodiment. In this embodiment, S is equal to 20.
In step S36, if the Max/Min is more than 20, the processing module 14 determines that there is a spike in the audio signal section that lasts 50 ms.
In step S37, if the Max/Min is equal to or less than 20, the processing module 14 determines that there is no spike in the audio signal section that lasts 50 ms.
For balancing the testing time and the test precision, P is equal to 5 ms and Q is equal to 10. In step S35, S may range between 20-30 based on a typical person's hearing ability. If the spike audio lasts less than 20 ms, it would be difficult for a typical person to identify this spike audio.
The aforementioned testing process includes the process for testing a break in audio, the process for testing a pause in audio, and the process for testing a spike audio. Testers can choose one or more processes for testing audio according to specific needs.
The foregoing description of various inventive embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others of ordinary skill in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those of ordinary skill in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the various inventive embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
2008 1 0302233 | Jun 2008 | CN | national |
This present application is a divisional application of U.S. patent application, entitled “AUDIO TESTING SYSTEM AND METHOD”, with application Ser. No. 12/198,031, filed on Aug. 25, 2008, which claims foreign priority based on Chinese Patent application No. 200810302233.1, filed in China on Jun. 19, 2008. The contents of the above-referenced applications are hereby incorporated by reference. Relevant subject matter is disclosed in the co-pending U.S. patent applications having the same title and assigned to the same assignee as named herein.
Number | Name | Date | Kind |
---|---|---|---|
4713771 | Crop | Dec 1987 | A |
6137992 | Mohan et al. | Oct 2000 | A |
6512472 | Smith et al. | Jan 2003 | B1 |
6668027 | Scarpa | Dec 2003 | B1 |
7546173 | Waserblat et al. | Jun 2009 | B2 |
8036765 | Joly | Oct 2011 | B2 |
8126578 | Atlas et al. | Feb 2012 | B2 |
20020131604 | Amine | Sep 2002 | A1 |
20020188365 | Kuwaoda | Dec 2002 | A1 |
20050063276 | Ogura | Mar 2005 | A1 |
20060147032 | McCree et al. | Jul 2006 | A1 |
20060212295 | Wasserblat et al. | Sep 2006 | A1 |
20070047731 | Lipari | Mar 2007 | A1 |
20070293960 | Fujii | Dec 2007 | A1 |
20080120528 | Sawada | May 2008 | A1 |
20080137873 | Goldstein | Jun 2008 | A1 |
20100198377 | Seefeldt et al. | Aug 2010 | A1 |
20110032793 | Moore et al. | Feb 2011 | A1 |
Entry |
---|
AP 2700 manual; copyright 2004 and available for sale at least 2007. |
AP 2700 datasheet available for sale at least 2007. |
Number | Date | Country | |
---|---|---|---|
20120281846 A1 | Nov 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12198031 | Aug 2008 | US |
Child | 13550236 | US |