TWI383693B - Testing device capable of testing audio formats supported by an audio player device and method thereof - Google Patents

Testing device capable of testing audio formats supported by an audio player device and method thereof Download PDF

Info

Publication number
TWI383693B
TWI383693B TW97142191A TW97142191A TWI383693B TW I383693 B TWI383693 B TW I383693B TW 97142191 A TW97142191 A TW 97142191A TW 97142191 A TW97142191 A TW 97142191A TW I383693 B TWI383693 B TW I383693B
Authority
TW
Taiwan
Prior art keywords
audio
file
identifier
sound
audio file
Prior art date
Application number
TW97142191A
Other languages
Chinese (zh)
Other versions
TW201018261A (en
Inventor
Xiao-Man Pu
jin-quan Qiu
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW97142191A priority Critical patent/TWI383693B/en
Publication of TW201018261A publication Critical patent/TW201018261A/en
Application granted granted Critical
Publication of TWI383693B publication Critical patent/TWI383693B/en

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

音頻播放器支援的音頻檔案格式的測試設備及方法 Test device and method for audio file format supported by audio player

本發明涉及一種測試設備及方法,尤其是一種對音頻播放器支援的音頻檔案所屬的音頻格式進行測試的設備及方法。 The present invention relates to a test apparatus and method, and more particularly to an apparatus and method for testing an audio format to which an audio file supported by an audio player belongs.

隨著科學技術的發展和人們娛樂要求的升級,音頻播放器的發展也越來越快,生產廠家為了在激烈的競爭中取得優勢,吸引更多的顧客,研發生產的音頻播放器支援的音頻檔案格式也越來越多。而每種格式的音頻檔案,如MP3格式,又因比特率、採樣率等的不同而存在差異,而不同的MP3產品對比特率和採樣率的支援範圍也不盡相同,當然支援的範圍越廣越好。例如,某一廠家生產的MP3播放器支援比特率為320Kpbs、採樣率為16KH至48KHz的MP3格式的音頻檔案,為了保證出廠的每台MP3播放器都能正常播放上述MP3格式的音頻檔案,生產廠家就必須對上述MP3格式的音頻檔案逐一進行測試。現有的測試方法是人工測試,這種測試方法給生產廠家造成一定困擾:1、每台音頻播放器支援的每種音頻檔案格式均需要人工測試,增加了人力成本且造成產能瓶頸;2、無法保證測試品質,可能由於環境幹擾或不易判斷導致人為疏忽而使有問題的裝置通過質檢。 With the development of science and technology and the upgrading of people's entertainment requirements, the development of audio players is getting faster and faster. Manufacturers in order to gain advantages in the fierce competition, attract more customers, develop and produce audio supported by audio players. There are more and more file formats. The audio files of each format, such as the MP3 format, vary in bit rate and sampling rate, and different MP3 products have different support ranges for bit rate and sampling rate. Of course, the range of support is more. The wider the better. For example, an MP3 player produced by a certain manufacturer supports MP3 format audio files with a bit rate of 320Kpbs and a sampling rate of 16KH to 48KHz. In order to ensure that each MP3 player in the factory can play the audio files of the above MP3 format normally, the production is performed. Manufacturers must test the audio files of the above MP3 format one by one. The existing test method is manual test, which causes some troubles for the manufacturer: 1. Each audio file format supported by each audio player requires manual test, which increases labor cost and causes capacity bottleneck; To ensure the quality of the test, the device in question may pass the quality inspection due to human disturbance or difficulty in judging human error.

本發明的目的在於提供一種音頻播放器支援的音頻檔案格式的測試設備及方法,以解決習知技術中人工檢測音 頻播放器支援的音頻檔案格式存在的問題。 It is an object of the present invention to provide a test apparatus and method for an audio file format supported by an audio player to solve the artificial detection sound in the prior art. There is a problem with the audio file format supported by the frequency player.

該音頻播放器支援的音頻檔案格式的測試設備包括:一音頻格式轉換模組,用於將每一用於測試的聲音檔案轉換為每一音頻檔案;一錄音模組,用於將一音頻播放器播放的每一音頻檔案錄製為一聲音檔案;一標識符形成模組,用於對每一用於測試的聲音檔案進行處理以生成初始標識符,還用於對每一錄製的聲音檔案進行處理以獲得每一錄製的聲音檔案的標識符;一記憶體,用於存儲由每一用於測試的聲音檔案轉換的每一音頻檔案及記錄有每一用於測試的聲音檔案的初始標識符與由每一用於測試的聲音檔案轉換後的每一音頻檔案的音頻檔案格式關係的對應關係表;以及一比對模組,用於比較每一錄製的聲音檔案的標識符與該對應關係表中的初始標識符是否相同,若一標識符與其中一初始標識符相同,按照該初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器支援的音頻檔案格式。 The audio file format test device supported by the audio player includes: an audio format conversion module for converting each sound file used for testing into each audio file; and a recording module for playing an audio file Each audio file played by the device is recorded as a sound file; an identifier forming module for processing each sound file for testing to generate an initial identifier, and for performing each recorded sound file Processing to obtain an identifier of each recorded sound file; a memory for storing each audio file converted by each sound file for testing and recording an initial identifier of each sound file for testing a correspondence table with an audio file format relationship of each audio file converted by each sound file for testing; and a comparison module for comparing identifiers of each recorded sound file with the corresponding relationship Whether the initial identifiers in the table are the same, if an identifier is the same as one of the initial identifiers, according to the correspondence between the initial identifier and the audio file format, The audio player supports the audio file formats.

該音頻播放器支援的音頻檔案格式的測試方法包括以下步驟:在一測試設備上輸出每一音頻檔案至一音頻播放器,每一音頻檔案具有一初始標識符對應每一音頻檔案所屬的音頻格式;利用該測試設備接收該音頻播放器播放每一音頻檔案時輸出的聲音訊號;在該測試設備上將接收的該音頻播放器播放每一音頻檔案時輸出的聲音訊號錄製為每一聲音檔案;處理每一錄製的聲音檔案以獲取每一錄製的聲音檔案的標識符;比較每一錄製的聲音檔案的標識符與每一音頻檔案的初始標識符,根據比較 結果確定該音頻播放器支援的音頻格式;以及輸出該音頻播放器支援的音頻格式。 The audio file format test method supported by the audio player includes the following steps: outputting each audio file to an audio player on a test device, each audio file having an initial identifier corresponding to the audio format to which each audio file belongs. Receiving, by the test device, the sound signal output by the audio player when playing each audio file; recording, on the test device, the sound signal output by the audio player when each audio file is played as each sound file; Processing each recorded sound file to obtain an identifier of each recorded sound file; comparing the identifier of each recorded sound file with the initial identifier of each audio file, according to comparison The result determines the audio format supported by the audio player; and outputs the audio format supported by the audio player.

本發明提供的測試設備及方法,對音頻播放器支援的音頻檔案格式進行自動測試,降低了人力成本,解決了人工檢測造成產能瓶頸的問題,還有效地解決了可能因為人為疏忽等原因而造成有問題的裝置通過質檢的問題。 The test device and method provided by the invention automatically test the audio file format supported by the audio player, reduce the labor cost, solve the problem of the production bottleneck caused by the manual detection, and effectively solve the problem that may be caused by human negligence or the like. The problematic device passed the quality check problem.

如圖1所示,為本發明一實施方式下音頻播放器與測試設備連接的硬體架構示意圖。 FIG. 1 is a schematic diagram of a hardware architecture of an audio player connected to a test device according to an embodiment of the present invention.

該音頻播放器10包括一音頻記憶體101、一音頻播放模組102、一音頻檔案輸入埠103及一聲音訊號輸出埠104。該測試設備20包括一記憶體201、一錄音模組202、一音頻檔案輸出埠207及一聲音訊號輸入埠208。該測試設備20可以為一電腦。該音頻檔案輸入埠103與該音頻檔案輸出埠207連接,該聲音訊號輸出埠104與該聲音訊號輸入埠208連接。該音頻檔案輸入埠103與該音頻檔案輸出埠207可為USB等資料傳輸介面。該記憶體201用於存儲由用於測試的聲音檔案(以下簡稱第一聲音檔案)轉換後的音頻檔案以及記錄有該第一聲音檔案的初始標識符與由該第一聲音檔案轉換後的音頻檔案的音頻檔案格式關係的對應關係表。其中,所述音頻檔案是指將該第一聲音檔案進行以MP3、WMA……等編碼技術編碼後得到的檔案。所述音頻檔案的格式即MP3、WMA……等編碼格式。該音頻記憶體101用於存儲經該測試設備20的該音頻檔案輸出埠207傳輸的音頻檔案,並將該音頻檔案傳輸至該音 頻播放模組102進行播放。該音頻播放模組102播放該音頻檔案時,聲音訊號由該聲音訊號輸出埠104輸出,經由傳導線傳輸由該聲音訊號輸入埠208輸入,該錄音模組202對接收的聲音訊號進行錄製,產生一聲音檔案(以下簡稱為第二聲音檔案)。當該音頻播放模組102順序播放多個音頻檔案,該錄音模組202可根據每一音頻檔案播放的時間長度將每一音頻檔案錄製為一第二聲音檔案。例如,設置用於測試的多個第一聲音檔案的時間長度均為4秒,將該多個第一聲音檔案轉換為多個音頻檔案,該多個音頻檔案的時間長度也均為4秒。如此,該錄音模組202偵測到該音頻播放模組102開始播放音頻檔案時,對接收的聲音訊號開始進行錄製,當錄製時間長度為4秒時,停止錄製,同時將錄製的聲音訊號保存為一個第二聲音檔案,直至該錄音模組202再次偵測到該音頻播放模組102開始播放音頻檔案時,對接收的聲音訊號再次進行錄製。 The audio player 10 includes an audio memory 101, an audio playback module 102, an audio file input port 103, and an audio signal output port 104. The test device 20 includes a memory 201, a recording module 202, an audio file output port 207, and an audio signal input port 208. The test device 20 can be a computer. The audio file input port 103 is connected to the audio file output port 207, and the audio signal output port 104 is connected to the audio signal input port 208. The audio file input port 103 and the audio file output port 207 can be a data transmission interface such as a USB. The memory 201 is configured to store an audio file converted by a sound file for testing (hereinafter referred to as a first sound file) and an initial identifier recorded with the first sound file and audio converted by the first sound file Correspondence table of the audio file format relationship of the file. The audio file refers to a file obtained by encoding the first sound file by using an encoding technique such as MP3, WMA, and the like. The format of the audio file is an encoding format such as MP3, WMA, and the like. The audio memory 101 is configured to store an audio file transmitted by the audio file output port 207 of the test device 20, and transmit the audio file to the sound The frequency playing module 102 plays. When the audio play module 102 plays the audio file, the audio signal is output by the audio signal output 104, and is input by the audio signal input port 208 via the conductive line, and the recording module 202 records the received sound signal to generate A sound file (hereinafter referred to as the second sound file). When the audio playing module 102 sequentially plays a plurality of audio files, the recording module 202 can record each audio file as a second sound file according to the length of time each audio file is played. For example, the plurality of first sound files set for testing have a time length of 4 seconds, and the plurality of first sound files are converted into a plurality of audio files, and the plurality of audio files also have a time length of 4 seconds. In this way, the recording module 202 detects that the audio file is started when the audio playing module 102 starts playing the audio file, and stops recording when the recording time is 4 seconds, and saves the recorded sound signal. As a second sound file, until the recording module 202 detects that the audio playing module 102 starts playing the audio file, the received sound signal is recorded again.

該測試設備20還包括一標識符形成模組203、一比對模組204、一輸出模組205及一音頻格式轉換模組206。該標識符形成模組203用於對該第一聲音檔案進行頻譜分析得到該第一聲音檔案的頻率資訊,並根據該頻率資訊對該第一聲音檔案進行初始標識,不同的第一聲音檔案具有不同的初始標識符,該標識符形成模組203還用於對該錄音模組202錄製的該第二聲音檔案進行分析,得到該第二聲音檔案的標識符。若該錄音模組202錄製了多個不同的第二聲音檔案,該標識符形成模組203對該多個不同的第 二聲音檔案進行分析,得到該多個不同的第二聲音檔案的多個標識符。該比對模組204用於接收由該標識符形成模組203得到的該第二聲音檔案的標識符,並從該記憶體201中獲取該初始標識符與音頻檔案格式對應關係表,比較該第二聲音檔案的標識符與該對應關係表中的初始標識符是否相同,若該第二聲音檔案的標識符與其中一初始標識符相同,按照初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器10支援的音頻檔案格式。若該比對模組204接收該標識符形成模組203得到的多個不同的第二聲音檔案的多個標識符,該比對模組204比較每一標識符與該對應關係表中的初始標識符是否相同,若一標識符與其中一初始標識符相同,按照初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器10支援的音頻檔案格式。該輸出模組205用於輸出該音頻播放器10支援的音頻檔案格式,以供測試人員知曉該音頻播放器10支援的音頻檔案格式。該音頻格式轉換模組206用於將該第一聲音檔案轉換為音頻檔案,具有不同初始標識符的該第一聲音檔案轉換為不同格式的音頻檔案,或者轉換為格式相同但比特率、採樣率等不同的音頻檔案。 The test device 20 further includes an identifier forming module 203, a matching module 204, an output module 205, and an audio format conversion module 206. The identifier forming module 203 is configured to perform spectrum analysis on the first sound file to obtain frequency information of the first sound file, and initially identify the first sound file according to the frequency information, and the different first sound files have The identifier forming module 203 is further configured to analyze the second sound file recorded by the recording module 202 to obtain an identifier of the second sound file. If the recording module 202 records a plurality of different second sound files, the identifier forming module 203 pairs the plurality of different The second sound file is analyzed to obtain a plurality of identifiers of the plurality of different second sound files. The comparison module 204 is configured to receive an identifier of the second sound file obtained by the identifier forming module 203, and obtain a correspondence table between the initial identifier and the audio file format from the memory 201, and compare the Whether the identifier of the second sound file is the same as the initial identifier in the correspondence table, and if the identifier of the second sound file is the same as one of the initial identifiers, according to the correspondence between the initial identifier and the audio file format, The audio file format supported by the audio player 10. If the comparison module 204 receives the plurality of identifiers of the plurality of different second sound files obtained by the identifier forming module 203, the comparison module 204 compares each identifier with an initial in the correspondence table. Whether the identifiers are the same or not, if an identifier is identical to one of the initial identifiers, the audio file format supported by the audio player 10 is obtained according to the correspondence between the initial identifier and the audio file format. The output module 205 is configured to output an audio file format supported by the audio player 10 for the tester to know the audio file format supported by the audio player 10. The audio format conversion module 206 is configured to convert the first sound file into an audio file, and the first sound file having different initial identifiers is converted into an audio file of a different format, or converted to the same format but with a bit rate and a sampling rate. Wait for different audio files.

如圖2所示,為本發明一實施例中音頻播放器支援的音頻檔案格式的測試方法流程圖。 FIG. 2 is a flowchart of a method for testing an audio file format supported by an audio player according to an embodiment of the present invention.

步驟S201中,在該測試設備20上製作一個具有初始標識符的音頻檔案,並將該音頻檔案及其初始標識符與音頻檔案格式的對應關係表存儲於該記憶體201中。其製作流程如圖3所示。 In step S201, an audio file having an initial identifier is created on the test device 20, and a correspondence table of the audio file and its initial identifier and the audio file format is stored in the memory 201. The production process is shown in Figure 3.

步驟S202中,將該音頻檔案輸出埠207與該音頻檔案輸入埠103連接,將該聲音訊號輸出埠104與該聲音訊號輸入埠208連接。 In step S202, the audio file output port 207 is connected to the audio file input port 103, and the audio signal output port 104 is connected to the audio signal input port 208.

步驟S203中,將該記憶體201中存儲的一個音頻檔案由該音頻檔案輸出埠207傳輸至該音頻記憶體101,該音頻記憶體101將該音頻檔案傳輸至該音頻播放模組102進行播放,並由該聲音訊號輸出埠104輸出聲音訊號。 In step S203, an audio file stored in the memory 201 is transmitted from the audio file output port 207 to the audio memory 101, and the audio file 101 transmits the audio file to the audio play module 102 for playing. And the sound signal output 埠 104 outputs an audio signal.

步驟S204中,該聲音訊號輸入埠208接收由該聲音訊號輸出埠104輸出的聲音訊號,並將該聲音訊號傳輸至該錄音模組202進行錄製。該錄音模組202將該聲音訊號錄製為一個第二聲音檔案。 In step S204, the audio signal input port 208 receives the audio signal output by the audio signal output port 104, and transmits the audio signal to the recording module 202 for recording. The recording module 202 records the audio signal as a second sound file.

步驟S205中,該標識符形成模組203接收由該錄音模組202錄製的第二聲音檔案並對其進行處理,得到該第二聲音檔案的標識符。一種實施方式中,該標識符形成模組203通過將該第二聲音檔案進行傅氏變換演算法(Fourier Transform Algorithm,FTA)運算或者是快速傅氏變換演算法(Fast Fourier Transform Algorithm,FFTA)運算,得到該第二聲音檔案的頻譜資訊,根據製作流程中對該第一聲音檔案進行初始標識的方法,獲得該第二聲音檔案的標識符。 In step S205, the identifier forming module 203 receives the second sound file recorded by the recording module 202 and processes it to obtain an identifier of the second sound file. In one embodiment, the identifier forming module 203 performs a Fourier Transform Algorithm (FTA) operation or a Fast Fourier Transform Algorithm (FFTA) operation on the second sound file. Obtaining the spectrum information of the second sound file, and obtaining an identifier of the second sound file according to the method for initially identifying the first sound file in the production process.

步驟S206中,該比對模組204接收該第二聲音檔案的標識符,並從該記憶體201中獲取該初始標識符與音頻檔案格式的對應關係表,比較該第二聲音檔案的標識符與該對應關係表中的初始標識符是否相同,若該第二聲音檔案 的標識符與其中一初始標識符相同,按照初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器10支援的音頻檔案格式。若該第二聲音檔案的標識符與所有的初始標識符都不相同,該比對模組204則判斷該音頻播放器10不支援當前播放的音頻檔案所屬的音頻格式。當該音頻播放器10支援該音頻檔案格式時,執行步驟S207,否則流程結束。 In step S206, the comparison module 204 receives the identifier of the second sound file, and obtains a correspondence table between the initial identifier and the audio file format from the memory 201, and compares the identifier of the second sound file. Whether the initial identifier in the correspondence table is the same, if the second sound file The identifier is the same as one of the initial identifiers, and the audio file format supported by the audio player 10 is obtained according to the correspondence between the initial identifier and the audio file format. If the identifier of the second sound file is different from all the initial identifiers, the comparison module 204 determines that the audio player 10 does not support the audio format to which the currently played audio file belongs. When the audio player 10 supports the audio file format, step S207 is performed, otherwise the flow ends.

步驟S207中,該輸出模組205將由該比對模組204得到的該音頻播放器10支持的音頻檔案格式輸出在該測試設備20的一顯示幕(未示出)上,以供測試人員知曉該音頻播放器10支援的音頻檔案格式。在其他實施方式中,該輸出模組205也可將該音頻播放器10支援的音頻檔案格式以聲音的形式進行輸出。在上述實施方式中,用戶也可在該測試設備20上製作多個具有初始標識符的音頻檔案,該多個音頻檔案可相互具有不同的音頻格式,也可為格式相同但比特率、採樣率等不同的音頻檔案。該測試設備20順序輸出該多個音頻檔案至該音頻播放器10進行播放,並在該音頻播放器10進行播放的同時將每一音頻檔案錄製為一個第二聲音檔案。在所有聲音檔案錄製完畢後,該標識符形成模組203對錄製的多個第二聲音檔案進行分析,得到該多個第二聲音檔案的多個標識符。該比對模組204比較每一標識符與存儲的該初始標識符與音頻檔案格式對應關係表中的初始標識符是否相同,若一標識符與其中一初始標識符相同,按照初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器10支援的音 頻檔案格式。 In step S207, the output module 205 outputs the audio file format supported by the audio player 10 obtained by the comparison module 204 on a display screen (not shown) of the test device 20 for the tester to know. The audio file format supported by the audio player 10. In other embodiments, the output module 205 can also output the audio file format supported by the audio player 10 in the form of sound. In the above embodiment, the user may also create a plurality of audio files with initial identifiers on the test device 20, and the multiple audio files may have different audio formats, or may have the same format but bit rate and sampling rate. Wait for different audio files. The test device 20 sequentially outputs the plurality of audio files to the audio player 10 for playback, and records each audio file as a second sound file while the audio player 10 is playing. After all the sound files are recorded, the identifier forming module 203 analyzes the recorded plurality of second sound files to obtain a plurality of identifiers of the plurality of second sound files. The comparison module 204 compares whether each identifier is the same as the initial identifier stored in the initial identifier and the audio file format correspondence table. If an identifier is the same as one of the initial identifiers, the initial identifier is used. The correspondence of the audio file format, and the sound supported by the audio player 10 is obtained. Frequency file format.

如圖3所示,為本發明一實施例中製作具有初始標識符的音頻檔案的方法流程圖。 As shown in FIG. 3, a flowchart of a method for creating an audio file having an initial identifier in accordance with an embodiment of the present invention.

步驟S301中,該標識符形成模組203對一個第一聲音檔案進行初始標識。一種實施方式中,該標識符形成模組203對該第一聲音檔案進行頻譜分析得到該聲音檔案的頻率資訊,根據得到的頻率資訊對該第一聲音檔案進行初始標識。該初始標識符的一種實現方式見表一所示: In step S301, the identifier forming module 203 performs initial identification on a first sound file. In one embodiment, the identifier forming module 203 performs spectrum analysis on the first sound file to obtain frequency information of the sound file, and initially identifies the first sound file according to the obtained frequency information. An implementation of this initial identifier is shown in Table 1:

例如若該第一聲音檔案的時間長度為4秒,對該第一聲音檔案進行頻譜分析得到的該第一聲音檔案的頻率資訊如下:在4秒內每隔0.8秒的頻率分別為1Khz、1.5Khz、1Khz、1.5Khz及1Khz。按照表一中頻率與標識用數位關係對應表中的對應關係,得到該第一聲音檔案的初始標識符為12121。當然,在其他實施方式中,可以有不同的標識方式。 For example, if the length of the first sound file is 4 seconds, the frequency information of the first sound file obtained by performing spectrum analysis on the first sound file is as follows: the frequency of each 0.8 seconds in each of 4 seconds is 1Khz, 1.5. Khz, 1Khz, 1.5Khz and 1Khz. According to the correspondence between the frequency and the identifier in the correspondence table of the first table, the initial identifier of the first sound file is 12121. Of course, in other embodiments, different identification methods may be used.

若待測的音頻播放器10支援多種音頻檔案格式,可對多個時間長度相同但頻譜不同的第一聲音檔案分別進行初 始標識。 If the audio player 10 to be tested supports multiple audio file formats, the first sound files having the same time length but different spectrums may be separately The initial logo.

步驟S302中,該音頻格式轉換模組206將具有初始標識符的該第一聲音檔案轉換為音頻檔案,具有不同初始標識符的第一聲音檔案轉換為不同格式的音頻檔案,或者轉換為格式相同但比特率、採樣率等不同的音頻檔案。其中,所述音頻檔案是指將該第一聲音檔案進行以MP3、WMA……等編碼技術編碼後得到的檔案,所述音頻檔案的格式即MP3、WMA……等編碼格式。在本實施方式下的一種轉換關係如表二所示: In step S302, the audio format conversion module 206 converts the first sound file having the initial identifier into an audio file, and the first sound file having different initial identifiers is converted into an audio file of a different format, or converted into the same format. But different audio files such as bit rate and sampling rate. The audio file refers to a file obtained by encoding the first sound file by using an encoding technology such as MP3, WMA, etc., and the format of the audio file is an encoding format such as MP3, WMA, and the like. A conversion relationship in this embodiment is shown in Table 2:

步驟S303,該記憶體201存儲由具有初始標識符的第一聲音檔案轉換的音頻檔案及該初始標識符與音頻檔案格式的對應關係表。 In step S303, the memory 201 stores an audio file converted by the first sound file having the initial identifier and a correspondence table between the initial identifier and the audio file format.

10‧‧‧音頻播放器 10‧‧‧Audio player

101‧‧‧音頻記憶體 101‧‧‧Audio Memory

102‧‧‧音頻播放模組 102‧‧‧Audio playback module

103‧‧‧音頻檔案輸入埠 103‧‧‧Audio file input埠

104‧‧‧聲音訊號輸出埠 104‧‧‧Sound signal output埠

20‧‧‧測試設備 20‧‧‧Test equipment

201‧‧‧記憶體 201‧‧‧ memory

202‧‧‧錄音模組 202‧‧‧Recording module

203‧‧‧標識符形成模組 203‧‧‧Identifier forming module

204‧‧‧比對模組 204‧‧‧ alignment module

205‧‧‧輸出模組 205‧‧‧Output module

206‧‧‧音頻格式轉換模組 206‧‧‧Audio format conversion module

207‧‧‧音頻檔案輸出埠 207‧‧‧Audio file output埠

208‧‧‧聲音訊號輸入埠 208‧‧‧Sound signal input埠

圖1為本發明一實施方式下音頻播放器與測試設備連接的硬體架構示意圖。 FIG. 1 is a schematic diagram of a hardware architecture of an audio player connected to a test device according to an embodiment of the present invention.

圖2為本發明一實施例中音頻播放器支援的音頻檔案格式的測試方法流程圖。 2 is a flow chart of a test method for an audio file format supported by an audio player according to an embodiment of the present invention.

圖3為本發明一實施例中製作具有初始標識符的音頻檔案的方法流程圖。 3 is a flow chart of a method of making an audio file with an initial identifier in accordance with an embodiment of the present invention.

10‧‧‧音頻播放器 10‧‧‧Audio player

101‧‧‧音頻記憶體 101‧‧‧Audio Memory

102‧‧‧音頻播放模組 102‧‧‧Audio playback module

103‧‧‧音頻檔案輸入埠 103‧‧‧Audio file input埠

104‧‧‧聲音訊號輸出埠 104‧‧‧Sound signal output埠

20‧‧‧測試設備 20‧‧‧Test equipment

201‧‧‧記憶體 201‧‧‧ memory

202‧‧‧錄音模組 202‧‧‧Recording module

203‧‧‧標識符形成模組 203‧‧‧Identifier forming module

204‧‧‧比對模組 204‧‧‧ alignment module

205‧‧‧輸出模組 205‧‧‧Output module

206‧‧‧音頻格式轉換模組 206‧‧‧Audio format conversion module

207‧‧‧音頻檔案輸出埠 207‧‧‧Audio file output埠

208‧‧‧聲音訊號輸入埠 208‧‧‧Sound signal input埠

Claims (7)

一種音頻播放器支援的音頻檔案格式的測試設備,該測試設備包括:一音頻格式轉換模組,用於將每一用於測試的聲音檔案轉換為每一音頻檔案;一錄音模組,用於將一音頻播放器播放的每一音頻檔案錄製為一聲音檔案;一標識符形成模組,用於對每一用於測試的聲音檔案進行頻譜分析,根據頻率與標識用數字的對應關係確定每一聲音檔案的初始標識符,還用於對每一錄製的聲音檔案進行頻譜分析,根據頻率與標識用數字的對應關係確定每一錄製的聲音檔案的標識符;一記憶體,用於存儲由每一用於測試的聲音檔案轉換的每一音頻檔案及記錄有每一用於測試的聲音檔案的初始標識符與由每一用於測試的聲音檔案轉換後的每一音頻檔案的音頻檔案格式關係的對應關係表;以及一比對模組,用於比較每一錄製的聲音檔案的標識符與該對應關係表中的初始標識符是否相同,若一標識符與其中一初始標識符相同,按照該初始標識符與音頻檔案格式的對應關係,獲得該音頻播放器支援的音頻檔案格式。 A test device for an audio file format supported by an audio player, the test device comprising: an audio format conversion module for converting each sound file used for testing into each audio file; a recording module for Recording each audio file played by an audio player as a sound file; an identifier forming module for performing spectrum analysis on each sound file used for testing, and determining each frequency according to the correspondence between the frequency and the identification number An initial identifier of a sound file is further used for performing spectrum analysis on each recorded sound file, and determining an identifier of each recorded sound file according to a correspondence relationship between the frequency and the identification number; a memory for storing Each audio file and record for each sound file conversion for testing has an initial identifier for each sound file used for testing and an audio file format for each audio file converted by each sound file for testing a correspondence table of relationships; and a comparison module for comparing the identifier of each recorded sound file with the initial in the correspondence table Identifier is identical, and wherein if an identifier of an initial identifier according to the identifier correspondence between the initial audio file format, the audio player to obtain a supported audio file formats. 如申請專利範圍第1項所述音頻播放器支援的音頻檔案格式的測試設備,其中,每一用於測試的聲音檔案均為時間長度相同的聲音檔案,由每一用於測試的聲音檔案轉換的每一音頻檔案均為時間長度相同的音頻檔案。 The test device of the audio file format supported by the audio player described in claim 1, wherein each sound file used for testing is a sound file of the same length of time, converted by each sound file for testing Each audio file is an audio file of the same length. 如申請專利範圍第2項所述音頻播放器支援的音頻檔案格 式的測試設備,其中,該錄音模組用於偵測到該音頻播放器開始播放每一音頻檔案時根據每一音頻檔案的時間長度對每一音頻檔案進行錄製。 Audio file supported by the audio player as described in item 2 of the patent application scope The test device is configured to detect each audio file according to the length of time of each audio file when the audio player starts to play each audio file. 如申請專利範圍第1項所述音頻播放器支援的音頻檔案格式的測試設備,其中,該標識符形成模組對每一錄製的聲音檔案進行傅氏變換演算法得到該錄製的聲音檔案的頻率資訊。 The test device of the audio file format supported by the audio player according to claim 1, wherein the identifier forming module performs a Fourier transform algorithm on each recorded sound file to obtain the frequency of the recorded sound file. News. 如申請專利範圍第1項所述音頻播放器支援的音頻檔案格式的測試設備,其中,該測試設備還包括一輸出模組,用於輸出該音頻播放器支援的音頻檔案格式。 The test device of the audio file format supported by the audio player of claim 1, wherein the test device further comprises an output module for outputting an audio file format supported by the audio player. 一種音頻播放器支援的音頻檔案格式的測試方法,該方法包括以下步驟:在一測試設備上對每一用於測試的聲音檔案進行頻譜分析並根據每一用於測試的聲音檔案的頻譜進行初始標識生成初始標識符;將具有初始標識符的每一用於測試的聲音檔案轉換為每一音頻檔案;以及存儲每一音頻檔案及記錄有每一用於測試的聲音檔案的初始標識符與由每一用於測試的聲音檔案轉換後的每一音頻檔案的音頻檔案格式關係的對應關係表;在該測試設備上輸出每一音頻檔案至一音頻播放器,每一音頻檔案具有一初始標識符對應每一音頻檔案所屬的音頻格式;利用該測試設備接收該音頻播放器播放每一音頻檔案時輸出的聲音訊號;在該測試設備上將接收的該音頻播放器播放每一音頻檔案 時輸出的聲音訊號錄製為每一聲音檔案;獲得每一錄製的聲音檔案的頻率資訊,根據頻率與標識用數字的對應關係確定每一錄製的聲音檔案的標識符;比較每一錄製的聲音檔案的標識符與每一音頻檔案的初始標識符,按照該初始標識符與音頻檔案格式的對應關係確定該音頻播放器支援的音頻格式;以及輸出該音頻播放器支援的音頻格式。 A method for testing an audio file format supported by an audio player, the method comprising the steps of: performing spectrum analysis on each sound file for testing on a test device and initializing according to a spectrum of each sound file used for testing Identifying an initial identifier; converting each sound file for testing with an initial identifier into each audio file; and storing each audio file and recording an initial identifier of each sound file for testing and a correspondence table of audio file format relationships of each audio file converted for each of the tested sound files; outputting each audio file to an audio player on the test device, each audio file having an initial identifier Corresponding to an audio format to which each audio file belongs; using the test device to receive an audio signal output by the audio player when playing each audio file; and playing the audio player on the test device to play each audio file The output audio signal is recorded as each sound file; the frequency information of each recorded sound file is obtained, and the identifier of each recorded sound file is determined according to the correspondence between the frequency and the identification number; and each recorded sound file is compared And an initial identifier of each audio file, determining an audio format supported by the audio player according to the correspondence between the initial identifier and the audio file format; and outputting an audio format supported by the audio player. 如申請專利範圍第6項所述音頻播放器支援音頻檔案格式的測試方法,其中,獲得每一錄製的聲音檔案的頻率資訊的步驟是為:對每一錄製的聲音檔案進行傅氏變換演算法運算得到每一錄製的聲音檔案的頻率資訊。 The audio player supports the audio file format test method according to claim 6, wherein the step of obtaining the frequency information of each recorded sound file is: performing a Fourier transform algorithm on each recorded sound file. The operation obtains the frequency information of each recorded sound file.
TW97142191A 2008-10-31 2008-10-31 Testing device capable of testing audio formats supported by an audio player device and method thereof TWI383693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97142191A TWI383693B (en) 2008-10-31 2008-10-31 Testing device capable of testing audio formats supported by an audio player device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97142191A TWI383693B (en) 2008-10-31 2008-10-31 Testing device capable of testing audio formats supported by an audio player device and method thereof

Publications (2)

Publication Number Publication Date
TW201018261A TW201018261A (en) 2010-05-01
TWI383693B true TWI383693B (en) 2013-01-21

Family

ID=44831162

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97142191A TWI383693B (en) 2008-10-31 2008-10-31 Testing device capable of testing audio formats supported by an audio player device and method thereof

Country Status (1)

Country Link
TW (1) TWI383693B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020107261A1 (en) * 2018-11-28 2020-06-04 华为技术有限公司 Probabilistic silent failure detection method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080104A1 (en) * 2004-10-08 2006-04-13 Hon Hai Precision Industry Co., Ltd. Method for testing an audio device associated to a computer
TWI265295B (en) * 2005-08-12 2006-11-01 Hon Hai Prec Ind Co Ltd Method for testing audio frequency of a precision audio analyzer
TW200813759A (en) * 2006-05-23 2008-03-16 Creative Tech Ltd A method and apparatus for accessing an audio file from a collection of audio files using tonal matching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080104A1 (en) * 2004-10-08 2006-04-13 Hon Hai Precision Industry Co., Ltd. Method for testing an audio device associated to a computer
TWI265295B (en) * 2005-08-12 2006-11-01 Hon Hai Prec Ind Co Ltd Method for testing audio frequency of a precision audio analyzer
TW200813759A (en) * 2006-05-23 2008-03-16 Creative Tech Ltd A method and apparatus for accessing an audio file from a collection of audio files using tonal matching

Also Published As

Publication number Publication date
TW201018261A (en) 2010-05-01

Similar Documents

Publication Publication Date Title
CN101714380B (en) Testing device and testing method of audio file formats supported by audio player
US8879744B2 (en) Audio testing system and audio testing method for device under test
US20080144847A1 (en) Apparatus and method for playback test of an audio device
CN100437506C (en) Method for detecting audio connection function of audio receiver and computer mainframe board
US20070129951A1 (en) System and method for testing a motherboard audio module
US20110060432A1 (en) Method for testing audio function of computer
US8271113B2 (en) Audio testing system and method
CN110337055A (en) Detection method, device, electronic equipment and the storage medium of speaker
US20060080104A1 (en) Method for testing an audio device associated to a computer
CN104661169A (en) Audio testing method and device
US20080133036A1 (en) Apparatus and method for playback test
CN113259832A (en) Microphone array detection method and device, electronic equipment and storage medium
CN111276160A (en) Audio detection method and device
TW201409227A (en) Testing device and testing method of the Disc-Player timbre
TWI383693B (en) Testing device capable of testing audio formats supported by an audio player device and method thereof
Dineley et al. Towards robust paralinguistic assessment for real-world mobile health (mHealth) monitoring: an initial study of reverberation effects on speech
CN107403629B (en) Far-field pickup performance evaluation method and system, and electronic device
CN112261566B (en) AI intelligent glasses audio test method based on cloud service
CN117746902A (en) Method, system, equipment and medium for automatically testing pure software audio
CN111163310B (en) Television audio test method, device, equipment and computer readable storage medium
CN111868821B (en) Method and apparatus for extracting tone-independent timbre attributes from a media signal
KR102243124B1 (en) User authentication methodo using ultrasonics wave
TW202043785A (en) Test audio generation method and analysis method
CN111953967A (en) Method for automatically testing microphone and loudspeaker of network camera
CN111885474A (en) Microphone testing method and device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees