Abstract:
A audio test method for decreasing noise influence, which includes the following steps: obtaining analog signals; converting the analog signals into digital signals; intercepting digital signals of a first predetermined length and executing a first Fast Fourier Transform (FFT), then obtaining an first Fourier spectrum; recording the amplitudes of frequency values of the first Fourier spectrum; intercepting digital signals of a second predetermined length and executing the second FFT, then obtaining an second Fourier spectrum; recording the amplitudes of the frequency values belonging to odd points of the second frequency spectrum, which are the amplitudes of the noise composition; subtracting the amplitudes of the noise composition from the amplitudes of frequency values of the first Fourier spectrum and obtaining a frequency domain signals without noise composition; executing inverse Fast Flourier Transform (iFFT) for the frequency domain signals and obtaining time domain signals, testing each parameter of the time domain signals.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    The present invention relates to audio test apparatuses, and particularly relates to an audio test apparatus capable of decreasing noise influence in the process of audio device testing and a method thereof. 
         [0003]    2. General Background 
         [0004]    Nowadays, computers and handheld devices (e.g., mobile phone) are becoming more and more popular. People typically use computers to watch movies or listen to music, while mobile phones are mainly used as a means of communication. As a result, the sound quality output by computers and handheld devices is an important factor in determining user satisfaction. The quality of an audio device, such as a sound box or a speaker, directly correlates to the overall sound quality. Therefore, it is necessary to perform a thorough quality testing on a sound box and a mobile phone&#39;s speaker prior to selling them. 
         [0005]    Currently, there are two methods of testing the quality of an audio device. The first method of testing simply involves an operator testing whether the sound output by the audio device is acceptable. Although this method is simple, the possibility of damaging the operator&#39;s hearing still exists. Another method is to utilize a precision audio testing device, such as “AP2700”, which was produced by the Audio Precision Company. A big drawback of using such a testing device, however, is its high cost. 
         [0006]    Therefore, there is a need to provide a test apparatus and a method which can achieve better test results without having the above-mentioned shortcomings. 
       SUMMARY 
       [0007]    An audio test apparatus capable of decreasing noise influence in process of audio testing, the apparatus includes: a storage unit, an audio collection device, an audio processing device, a storing module, a Fast Fourier Transform (FFT) module, a calculating module, and a testing module. 
         [0008]    The audio collection device is used for collecting analog audio signals. The audio processing device is used for converting analog audio signals into digital audio signals or converting the digital audio signals into the analog audio signals; the storing module is used for storing the digital audio signals in the storage unit. 
         [0009]    The Fast Fourier Transform (FFT) module is used for invoking the digital audio signals stored in the storage unit, intercepting digital audio signals of a first predetermined length, and converting the digital audio signals of the first predetermined length into frequency domain signals through a first FFT to obtain a first Fourier spectrum; and also used for intercepting digital audio signals of a second predetermined length and converting the digital audio signals of the second predetermined length into frequency domain signals through a second FFT to obtain a second Fourier spectrum. The storing module is further used for storing amplitudes corresponding to frequency values of the first Fourier spectrum, and amplitudes corresponding to frequency values belonging to odd points of the second Fourier spectrum. 
         [0010]    The calculating module is used for subtracting the amplitudes corresponding to the frequency values belonging to odd points of the second Fourier spectrum from the corresponding amplitudes of the frequency values of the first Fourier spectrum, to obtain frequency domain signals without noise composition. The FFT module being further used for converting the frequency domain signals into time domain signals though an inverse Fast Fourier Transform (iFFT). The testing module is used for testing parameters of the time domain signals. 
         [0011]    A method for decreasing noise influence in process of audio testing is also provided. 
         [0012]    Other advantages and novel features will become more apparent from the following detailed description of embodiments when taken in conjunction with the accompanying drawings. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]    The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present test apparatus. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views. 
           [0014]      FIG. 1  is a schematic block diagram of an audio device test system capable of decreasing noise influence in accordance with an exemplary embodiment of the present invention; 
           [0015]      FIG. 2  is a spectrum diagram of frequency domain signals, produced by a first Fast Flourier Transform (FFT) in the audio device test system of  FIG. 1 ; 
           [0016]      FIG. 3  is a spectrum diagram of frequency domain signals, produced by a second FFT in the audio device test system of  FIG. 1 ; 
           [0017]      FIG. 4  is a flow chart illustrating an audio test method in accordance with an exemplary embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0018]      FIG. 1  is a schematic block diagram of an audio test system capable of decreasing noise influence in accordance with an exemplary embodiment of the present invention. The audio test system includes an audio test apparatus  1  and an audio device. The audio device can be a first audio device  2   a  or a second audio device  2   b . The first audio device  2   a  can be a handheld device, such as a mobile phone or a media player, among other devices, which is capable of playing media files stored therein. The second audio device  2   b  can be an audio output device, such as a sound box configured for sound output. 
         [0019]    The audio test apparatus  1  includes a processor  10 , an audio collection device  20 , an audio processing device  30 , and a storage unit  40 . The audio collection device  20  is used to collect analog audio signals output by the first audio device  2   a  or the second audio device  2   b . In this exemplary embodiment, the audio collection device  20  is a heart-shaped microphone. The audio processing device  30 , such as a sound card, is used to convert the analog audio signals into digital audio signals or vice versa. A frequency of the analog audio signals is predetermined, such as 1000 HZ, and a particular media file is provided for generating the analog audio signals. 
         [0020]    When the audio device is the first audio device  2   a , the particular media file is stored in the first audio device  2   a , the first audio device  2   a  plays the particular media file and outputs the analog audio signals with the predetermined frequency. When the audio device is the second audio device  2   b , the particular media file can be stored in the storage unit  40  of the audio test apparatus  1  or the first audio device  2   a . Further, the second audio device  2   b  can be directly connected to the audio test apparatus  1  or connected to the first audio device  2   a  to obtain the analog audio signals and output sound. 
         [0021]    The processor  10  includes a storing module  101 , a playback module  102 , a Fast Fourier Transform (FFT) module  103 , a calculating module  104 , and a testing module  105 . The storing module  101  is used to store the digital audio signals converted by the audio processing unit  30  to the storage unit  40 . When the audio device (i.e., the second audio device  2   b ) is connected to the audio test apparatus  1  for testing, the playback module  102  plays the particular media file stored in the storage unit  40  and produces digital audio signals for the media file. The audio processing unit  30  converts the digital audio signals into analog audio signals, and transmits the analog audio signals to the second audio device  2   b  for output as sound. The FFT module  103  is used to convert the digital audio signals stored in the storage unit  40  into frequency domain signals through a first FFT and a second FFT. The detailed description of the first FFT and the second FFT is described later with references to  FIG. 2  and  FIG. 3 . 
         [0022]      FIG. 2  is showing a first Fourier spectrum of frequency domain signals obtained through the first FFT. The FFT module  103  obtains digital audio signals stored in the storage unit  40 , and intercepts digital audio signals of a first predetermined length (hereinafter, first digital audio signals), and converts the first digital audio signals into the frequency domain signals through the first FFT, thus obtaining the first Fourier spectrum as shown in  FIG. 2 . In order to avoid spectrum leakage, the first digital audio signals are windowed based on a window function before performing the first FFT. The window function can be a Hamming window function, a Hanning window function, or other suitable window function. 
         [0023]    In  FIG. 2 , a x-axis of the Fourier spectrum represents a frequency value, a y-axis of the first spectrum diagram represents an amplitude F a  corresponding to the frequency value, and DB (decibel) is the unit for F a . The frequency value in the x-axis 
         [0000]    
       
         
           
             
               f 
               i 
             
             = 
             
               
                 
                   f 
                   s 
                 
                 
                   N 
                   * 
                   2 
                 
               
               * 
               i 
                
               
                   
               
                
               
                 ( 
                 
                   0 
                   ≤ 
                   i 
                   ≤ 
                   N 
                 
                 ) 
               
             
           
         
       
     
         [0000]    is determined by a first Fourier formula as follows:
 
In the first Fourier formula:
 
         [0024]    i is a whole number and represents a point in the x-axis; 
         [0025]    f i  is a frequency value corresponding to point i; 
         [0026]    N represents the first predetermined length of the digital audio signals that the FFT module  103  intercepts; and 
         [0027]    f s  is a sampled frequency. 
         [0000]    The storing module  101  records the amplitudes (F a ) corresponding to the frequency values to the storage unit  40 . 
         [0028]      FIG. 3  is showing a second Fourier spectrum of frequency domain signals produced by the second FFT. With the second FFT, the FFT module  103  invokes the digital audio signals stored in the storage unit  40 , and intercepts digital audio signals of a second predetermined length (hereinafter, second digital audio signals). The second predetermined length is twice as long as the first predetermined length. After the second digital audio signal are windowed based on the window function, the FFT module  103  converts the windowed second digital audio signals into frequency domain signals through the second FFT, thus obtaining the second Fourier spectrum 
         [0000]    
       
         
           
             i 
             = 
             
               
                 
                   
                     N 
                     ′ 
                   
                   * 
                   2 
                 
                 
                   f 
                   s 
                 
               
               * 
               
                 f 
                 i 
               
                
               
                   
               
                
               
                 ( 
                 
                   0 
                   ≤ 
                   i 
                   ≤ 
                   
                     N 
                     ′ 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    as shown in  FIG. 3 . Through the first Fourier formula, a second Fourier formula can be obtained as follows:
 
In the second Fourier formula:
 
         [0029]    i is also a whole number and represents a point in the x-axis; 
         [0030]    f i  is also a frequency value corresponding to point i; 
         [0031]    N′ represents the second predetermined length of the digital audio signals that the FFT module  103  intercepts; and 
         [0032]    f s  is also a sampled frequency. 
         [0000]    Because N′ is twice than N in the first Fourier formula. So, a value of i in the second Fourier formula is twice the value of i in the first Fourier formula. In other words, the frequency value corresponding to point  2   i  in the second Fourier spectrum corresponds to point i in the first Fourier spectrum. For example, in the first Fourier spectrum, the frequency values f 1 , f 2 , . . . , f i , f N  correspond to point  1 , point  2 , point i, point N respectively. In the second Fourier spectrum, the same frequency values f 1 , f 2 , . . . , f i , f N  correspond to point  2 , point  4 , . . . , point  2   i , point  2 N (namely N′) respectively. The frequency values corresponding to odd points i, e.g., point  1 , point  3  . . . , point  2   i− 1, point  2 N−1 of the second Fourier spectrum are regarded as noise composition, which are separated from the corresponding frequency values f 1 , f 2 , . . . , f i , f N  of the first Fourier spectrum. The storing module  101  records the amplitudes N a  of the noise composition (i.e., the amplitudes of odd points i of the second Fourier spectrum) in the storage unit  40 . 
         [0033]    The calculating module  104  subtracts N a  from the corresponding F a . For example, the calculating module  104  subtracts the amplitude of point  1  of the second Fourier spectrum from the amplitude of point  1  of the first Fourier spectrum, subtracts the amplitude of point  3  of the second Fourier spectrum from the amplitude of point  2  of the first Fourier spectrum, and so on, and subtracts the amplitude of point  2   i− 1 of the second Fourier spectrum from the amplitude of point i of the first Fourier spectrum. 
         [0034]    After subtracting the noise composition, the FFT module  103  converts the frequency domain signals into time domain signals through inverse Fast Fourier Transform (iFFT). Because N a , which is deemed as noise composition, has been eliminated from the frequency domain signals, the time domain signals are regarded as pure signals without noise interference. The FFT module  103  transmits the time domain signals to the testing module  105 , the testing module  105  tests parameters of the time domain signals, for example, a parameter of “Signal to Noise”, a parameter of “Total Harmonic Distortion”, etc. Because the parameter test is a well-known technique, a detailed description of the parameter test has been omitted therein. 
         [0035]      FIG. 4  is a flowchart illustrating an audio device test method in accordance with an exemplary embodiment of the present invention. In step S 401 , the audio device outputs the analog audio signals. 
         [0036]    In step S 402 , the audio collection device  20  collects the analog audio signals and the audio processing device  30  converts the analog audio signals into digital audio signals. 
         [0037]    In step S 403 , the storing module  101  stores the digital audio signals in the storage unit  40 . 
         [0038]    In step S 404 , the FFT module  103  invokes the digital audio signals stored in the storage unit  40 , and intercepts the digital audio signals of the first predetermined length (namely first digital audio signals), and converts the first digital audio signals into the frequency domain signals through the first FFT to obtain the first Fourier spectrum. 
         [0039]    In step S 405 , the storing module  101  stores the amplitudes F a  corresponding to the frequency values according to the first Fourier spectrum in the storage unit  40 . 
         [0040]    In step S 406 , the FFT module  103  invokes the digital audio signals stored in the storage unit  40 , and intercepts the digital audio signals of the second predetermined length (namely second digital audio signals), and converts the second digital audio signals into the frequency domain signals through the second FFT to obtain the second Fourier spectrum. 
         [0041]    In step S 407 , the storing module  101  stores the amplitudes N a  corresponding to the frequency values according to the second Fourier spectrum in the storage unit  40 . 
         [0042]    In step S 408 , the calculating module  104  subtracts N a  from the corresponding F a  to obtain the frequency domain signals. 
         [0043]    In step S 409 , the FFT module  103  converts the frequency domain signals into time domain signals through iFFT. 
         [0044]    In step S 410 , the testing module  105  tests parameters of the time domain signals, for example, “Signal to Noise”, “Total Harmonic Distortion”, etc. 
         [0045]    In addition, before the first FFT and the second FFT, the first digital audio signals and the second digital audio signals are windowed based on a window function to avoid spectrum leakage. The window function could be the Hamming window function or the Hanning window function. 
         [0046]    It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the invention or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the invention.