1. Technical Field
The present disclosure relates to a device for automatically testing audio format compatibility of an audio player device and a method thereof.
2. Description of Related Art
In general, manufacturers will enable audio player devices to play audio files of different formats. Accordingly, a corresponding test is needed to check whether the audio player device is able to play audio files of all the audio formats that it is supposed to.
Typically, audio format testing of an audio player device requires an operator firstly to load audio files of the audio formats the audio player device is designed to be compatible with, and then open audio files one at a time to listen and judge whether the audio player device actually supports the audio format of the audio file. This process repeats till all the audio files are finished, which consumes a lot of time and manpower.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of a device and a method for automatically testing an audio player device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The system includes an audio player device 10 and a test device 20 interconnected with the audio player device 10, for testing what audio formats the audio player device 10 actually supports. The audio player device 10 can be an electronic apparatus, such as, but is not limited to, a MP3, a MP4, and so on. The audio player device 10 includes an audio file storage 101, an audio file decoding module 102, and an audio file player module 103.
The audio file storage 101 is configured for storing a plurality of special audio files with different audio formats which are supposed to be supported by the audio player device. Each of the audio files is assigned an identification (ID) code according to frequency information of the audio files. For example, if the frequency 1 Khz is coded as number “1”, the frequency 1.5 Khz as number “2”, the frequency 2 Khz as number “3”, the frequency 2.5 Khz as number “4”, and the frequency 3 Khz as number “5”, an audio file whose frequency varies in a sequence of 1 Khz, 1.5 Khz, 1 Khz, 1.5 Khz, and 1 Khz in every section of the audio file is assigned an ID code “12121”.
The audio file decoding module 102 is configured for decoding the audio files.
The audio file player module 103 is configured for reproducing the decoded audio files into sound signals in turn. The sound signals are transmitted to the test device 20.
The test device 20 includes a storage 201, a transcribing module 202, an ID code determining module 203, a comparison module 204, a test result feedback module 205.
The transcribing module 202 is configured for receiving and transcribing the sound signals from the audio player device 10. Sound signals reproduced from one audio file are saved as a sound file. In the exemplary embodiment, the lengths of all the audio files are the same and the reproduce of each of the audio files lasts the same amount of time. The transcribing module 202 begins to transcribe sound signals when the transcribing module 202 detects the audio player module begins to play an audio file. Upon expiration of the amount of time, the transcribing module 202 stops transcribing the sound signals and saves the sound signals as a sound file.
The storage 201 is configured for storing the sound files and an audio format table. The audio format table records relationships between the ID codes and audio formats which are supposed to be supported by the audio player device 10. An exemplary example of the audio format table is shown below.
The ID code determining module 203 is configured for determining an ID code of each of the sound files. In the exemplary embodiment, the ID code determining module 203 employs the Fourier Transform Algorithm or the Fast Fourier Transform Algorithm to process each of the sound files, thus to obtain frequency information of the sound files. The ID code determining module 203 then determines the ID code of each of the sound files according to their frequency information as described above.
The comparison module 204 is configured for determining whether the ID code of each of the sound files has been listed on the audio format table by comparing the ID code of each of the sound files with the ID codes listed on the audio format table, thus to determine which of the audio formats is supported by the audio player device 10. In detail, if the ID code of a sound file has been listed on the audio format table, the comparison module 204 determines the audio format corresponding to the ID code in the audio format table is supported by the audio player device.
The test result feedback module 205 is configured for producing a test result file and outputting the test result file to the user. The test result file records which of the audio formats are supported and/or which of the audio formats are not supported by the audio player device 10. An exemplary form of the test result file is a test result table of which an example is particularly shown below. In an alternative embodiment, the test result feedback module 205 is also configured for outputting a prompt signal, such as an audible alert if the comparison module 204 determines no audio format is supported by the audio player device 10.
In step S201, the transcribing module 202 receives and transcribes sound signals of each of the audio files reproduced by the audio player device 10, and saves the sound signals of each of the audio files as a sound file.
In step S202, the ID code determining module 203 employs the Fourier Transform Algorithm or the Fast Fourier Transform Algorithm to process each of the sound files to obtain frequency information of the sound files, and determines an ID code of each of the sound files according to their frequency information.
In step S203, the comparison module 204 determining whether the ID codes of each of the sound files has been listed on the audio format table by comparing the ID code of each of the sound files with the ID codes listed on the audio format table, thus to determine which of the audio formats is supported by the audio player device 10.
In step S204, the test result feedback module 205 produces a test result file recording which of the audio formats are supported and/or which of the audio formats are not supported by the audio player device, and outputs the test result file.
In an alternative embodiment, in step S203, if the comparison module 204 determines no audio format is supported by the audio player device 10, the test result feedback module 205 outputs a prompt signal, such as an audible alert, to notify users that no audio format is supported by the audio player device 10.
Although the present disclosure has been specifically described on the basis of preferred embodiments and method thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2008 1 0304752 | Oct 2008 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
7593781 | Rhea | Sep 2009 | B1 |
20060080104 | Dang | Apr 2006 | A1 |
Number | Date | Country |
---|---|---|
1983520 | Oct 2008 | EP |
Number | Date | Country | |
---|---|---|---|
20100086142 A1 | Apr 2010 | US |