200926875 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種揚聲器音效自動調整系統及方法。 【先前技術】 音箱,係家庭影院系統中聲音部分最重要的一個環 節,直接關係到聲音效果還原的水準,一直是影音愛好 者選擇器材中的重點。要獲得稱心如意的影院效果,音 箱部分是個不容忽視的因素。 音箱一般有多個揚聲器組成。例如,2.1聲道音箱 包括右聲道揚聲器、左聲道揚聲器及超低音聲道揚聲 器;4.1聲道音箱包括前置右聲道揚聲器、前置左聲道 揚聲器、後置右聲道揚聲器、後置左聲道揚聲器及超低 音聲道揚聲器;5.1聲道音箱包括前置右聲道揚聲器、 前置左聲道揚聲器、中置聲道揚聲器、後置右聲道揚聲 器、後置左聲道揚聲器及超低音聲道揚聲器;7.1聲道 音箱包括前置右聲道揚聲器、前置左聲道揚聲器、中置 左聲道揚聲器、中置聲道揚聲器、中置右聲道揚聲器、 後置右聲道揚聲器、後置左聲道揚聲器及超低音聲道揚 聲器。 由於在生產過程中,很難保證音箱中每個揚聲器播 放音頻信號的時間和音高完全一樣,這就導致輸出的音 頻5虎不協調’達不到南品質的要求。 【發明内容】 鑒於以上内容,有必要提供一種揚聲器音效自動調 7 200926875 整系統及方法’其可自_整各揚聲li播放音頻信號的 時間和音保證各揚聲器㈣同音高輸出音頻信號。 -種揚聲器音效自動調整系統,該系統包括電腦、 麥克風及資料庫,所述之電腦與所述之麥克風、資料庫 及多個音效待調整的揚聲器相連,所.述之資料庫甲儲存 有音源播案’所述之電腦包括:開啟模組,用於從所述 之多個揚聲器中選擇—個揚聲器開啟;播放模組,用於 =放貝料庫中的音源檀案,從所開啟的揚聲器中輸出該 曰源檀案之音趣號,並記錄音源檔㈣_放時間; i錄模組’詩透過所叙麥克雌製揚聲ϋ所輸出的 曰頻仏5虎’亚記錄音頻信號開始錄製時間;延時計算模 =用於計算音頻錢開域料間與音源财開=播 之間的時間f;音高獲取模組,用於獲取所錄製 、曰頻仏摘音向;及調整模組,用於當所有揚聲器 均測試完畢後根制試每個揚聲科職取的各時間差 Ο 調整各相應的揚聲器的延時及音高,使每個揚聲 為同日守同音尚輪出音頻信號。 一種揚聲器音效自動調整方法,利用電腦以及盘電 腦相連的麥克風與資料庫自動調整多個揚聲哭的立;;文 戶^述之資料庫中儲存有音源標案,該方法包括^步 :访:啟步驟:從多個揚聲器中選擇—個揚聲器開啟·, 驟:播放資料庫中的音源槽案,從所開啟的揚聲 =中輸出該音源健之音頻信號’並記錄音源標宰㈣ 播放時間;錄製步驟:透過所述之麥克風錄製從揚β 200926875 • 中輪出的音頻信號,並記錄音頻信號開始錄製時間;時 間差計算步驟:計算音頻信號開始錄製時間與音源檔= ^始播放時間之間的時間差;音高獲取步驟:獲取^錄 至丨的g頻诮號的音高;重複上述開啟步驟、播放步驟、 錄製步驟、時間差計算步驟及音高獲取步驟,繼續對未 測試揚聲器進行測試,並獲取相應的時間差及音高;及 當所有揚聲器均測試完畢後,根據測試每個揚聲器時所 ,取的各時間差及音高調整各相應的揚聲器的延時及音 高,使每個揚聲器同時同音高輸出音頻信號。 曰 相較於習知技術,所述之揚聲器音效自動調整系統 ^方法a可自動調整各揚聲器播放音頻信號的時間和音 同,保證各揚聲器同時同音高輸出音頻信號。 【實施方式】 ^參閱圖1所示,係本發明揚聲器音效自動調整系統 心佳實施例的系統架_。所述之揚聲器音效自動調整 ❹系統包括電腦10、麥克風30及資料庫4〇。所述之電腦 ^與多個音效待調整的揚聲器20相連,且該多個揚聲 立、、,成在起,开> 成一個可應用於家庭影院中的多媒 體曰相。所述之麥克風3〇與所述之電腦ίο相連,用於 錄製從揚+盗20中播放的音源檔案。所述之資料庫4〇 與所述^電腦10相連,該資料庫4〇預先儲存有音源槽 案’該責料庫40還用於儲存麥克風30所錄製的音頻檔 案。· 所述之電腦10包括開啟模組110,播放模組120, 200926875 錄製模組13 〇,延時钟置描知】j Λ . _ 難κ 音高獲取模組150, 列斷模組160及調整模組17〇。 所述之開啟模組11〇,用於從多個揚聲器 一個揚聲器30開啟。 进擇 所述之播放模組120,用於播放資料庫 f,從所開啟的揚聲^中輸出該音《案之音^ Ο ❹ 二=錄Γ播放時間。在本較佳實施例中,該音源 =係H頻財;在其他實施财,射採用其他 如MIDI、MPI格式等。波形音案也稱為WAVE 格式的檔案,即以wav A s丨浐 由操μ 文件。㈣音頻檔案 :二:二等參數決定聲音的品質,相比較其他 格式9頻播案如咖1格式播案或者刪格式槽案來 :,波形音頻權案在音頻錄製方面能保證良 料完整性。 貝貝 ★所述之錄製模組130,用於透過麥克風刊錄製從揚 230中輸出的音頻信號,並將所錄製的音頻信號於資 製時Γ。中為錄製,音頻標案,並記錄音頻信號開始錄 衣…錄實施财,該錄製音賴㈣波形音 頻檔案;在其他實施例中,還可採用其他格式,如 MPI格式等。 ㈣時計算㈣140,用於計算音頻信號開始 錄I時間與曰源擋案開始播放時間之間的時間差。 所述之音高獲取模組150,用於獲取所錄製到的音 頻信號的音高。其巾,所収音高獲取模纟U5Q首先透 200926875 ,:速傅立葉轉換(fast Fourier transf〇rm ,附)將錄 =曰頻播案從時域變換到頻域,然後再在頻域下獲取該 播案的音高。其中,時域係指音頻信號隨著時 2麦換而變換,頻域係指音頻信號隨著頻率的變換而 變換。在頻域下獲取的音高比時域下獲取的音高更準確。 :述之判斷模組160’用於判斷是否還有揚聲器 ❹ ❹ 1用。右還有揚聲器3G沒有進行測試,則重新 ⑽模組110,播放模組12〇,錄製模組13〇,延時 關^組14G及音高獲取模組⑼對該揚聲器3G執行相 1: H周整模組17 0,用於當所有揚聲器3 0均測試 敕^測試每個揚聲器30時獲取的各時間差及音 门凋正各相應的揚聲器的延時及音高 聲器同時同音高輪出音頻信號。字及w k而使母個揚 較佳ϋ圖I所示’係本發明揚聲器音效自動調整方法 從4:: 圖。首先,步驟S11,開啟模組U。 夕牛 器3〇中選擇一個揚聲器30開啟。 牵^驟SU’播放模組120播放資料庫40中的音源槽’ =斤:啟的揚聲器3〇中輸出該音 號,並記錄開始播放時間。 步驟 器魏麥克風3G錄製從揚聲 庫中儲存為錚製將所錄製的音頻信號於資料 時間。 1 3頻檔案’並記錄音頻信號開始錄製 200926875 步驟S14,延時計算模組140計算音頻信號開始錄 ‘ 製時間與音源檔案開始播放時間之間的時間差。 步驟S15,音高獲取模組150獲取所錄製到的音頻 信號的音高。其中,所述之音高獲取模組150首先透過 快速傅立葉轉換(fast Fourier transform,FFT)將錄製 音頻檔案從時域變換到頻域,然後再在頻域下獲取該錄 製音頻檔案的音高。 步驟S16,判斷模組160判斷是否還有揚聲器30沒 ❹ 有進行測試。若還有揚聲器30沒有進行測試,則返回至 步驟S11繼續測試下一個揚聲器30。 步驟S17,若所有揚聲器30都已測試完畢,則調整 模組170根據測試每個揚聲器30時獲取的各時間差及音 高來調整各相應的揚聲器的延時及音高,使每個揚聲器 同時同音高輸出音頻信號,並結束流程。 【圖式簡單說明】 圖1係本發明揚聲器音效自動調整系統較佳實施例 的糸統架構圖。 圖2係本發明揚聲器音效自動調整方法較佳實施例 的流程圖。 【主要元件符號說明】 電腦 10 揚聲器 20 麥克風 30 資料庫 40 12 200926875 開啟模組 播放模組 11 〇 錄製模組 120 延時计异模組 13〇 音高獲取模組 140 判斷模組 150 調整模組 160 選擇開啟一個揚聲器 17〇 ❸ Ο 播放音源槽案,從所開啟的揚 S11 音頻信號,並記錄開始播放時間。中輪出該音源槽案的 透過麥克風錄製揚聲器中輸㈣ = 的音頻信號於資料庫中儲存 ’亚將所錄衣 頻信號開始錄製製時帛 、9賴案,並紀錄音 513 開始錄製時間與音源槽案開始播放時間之 514 S15 獲取所錄製到的音頻信號的音高 是否還有揚聲器未測試? 同時同音高 根據測試每個揚聲n時獲取的各時間差及音高來調= 相應的揚聲益的延時及音高,使每個揚聲哭 輸出音頻信號 S17 13200926875 IX. Description of the Invention: [Technical Field] The present invention relates to a speaker sound effect automatic adjustment system and method. [Prior Art] The speaker, which is the most important part of the sound part of the home theater system, is directly related to the level of sound effect reduction, and has always been the focus of audio-visual enthusiasts in selecting equipment. To get the best cinema effect, the sound box is a factor that cannot be ignored. Speakers generally consist of multiple speakers. For example, 2.1 channel speakers include right channel speakers, left channel speakers, and subwoofer channels; 4.1 channel speakers include front right channel speakers, front left channel speakers, rear right channel speakers, and rear Left channel speaker and subwoofer speaker; 5.1 channel speaker including front right channel speaker, front left channel speaker, center channel speaker, rear right channel speaker, rear left channel speaker And subwoofer speakers; 7.1-channel speakers include front right channel speakers, front left channel speakers, center left channel speakers, center channel speakers, center right channel speakers, rear right speakers Channel speaker, rear left channel speaker and subwoofer channel speaker. In the production process, it is difficult to ensure that each speaker in the speaker plays the same audio signal with the same pitch and pitch, which results in the output audio frequency being uncoordinated and unable to meet the requirements of the South quality. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide an automatic adjustment of the speaker sound effect. The system and method of the audio signal can be used to ensure that each speaker (four) has the same pitch output audio signal. - a speaker sound effect automatic adjustment system, the system comprises a computer, a microphone and a database, the computer is connected with the microphone, the database and a plurality of speakers whose sound effects are to be adjusted, wherein the data library A stores the sound source The computer described in the broadcast case includes: an opening module for selecting from the plurality of speakers - a speaker is turned on; a playing module for using the sound source in the shell library, from the opened The sound source of the source of the Tanyuan file is outputted from the speaker, and the audio source file is recorded (4) _ release time; the i-recorded module's poem is outputted by the microphone of the female singer. Start recording time; delay calculation mode = used to calculate the time f between the audio money source and the audio source = broadcast; the pitch acquisition module is used to obtain the recorded, 曰 frequency picking direction; and adjust Module, used to test the time difference of each speaker when all the speakers are tested, adjust the delay and pitch of each corresponding speaker, so that each speaker sounds the same day. signal. A method for automatically adjusting the sound effect of a speaker, using a microphone and a database connected to a computer and a computer to automatically adjust a plurality of sounds to cry;; the source of the file is stored in the database of the household, the method includes: step: visit : Start step: select from a plurality of speakers - one speaker is turned on, and then: play the sound source slot in the database, output the audio signal of the sound source from the turned-on speaker = and record the sound source (4) Time; recording step: recording the audio signal from the middle of the beta 200926875 • through the microphone, and recording the audio signal to start recording time; time difference calculation step: calculating the audio signal starting recording time and the audio source file = ^ starting time Time difference between steps; pitch acquisition step: obtaining the pitch of the g-frequency number recorded by ^; repeating the above-mentioned opening step, playing step, recording step, time difference calculation step and pitch acquisition step, and continuing to test the untested speaker And get the corresponding time difference and pitch; and when all the speakers are tested, according to each speaker tested, The time difference and pitch are adjusted to adjust the delay and pitch of each corresponding speaker, so that each speaker outputs the audio signal at the same pitch.曰 Compared with the prior art, the speaker sound effect automatic adjustment system ^ method a can automatically adjust the time and the sound of each speaker to play the audio signal, to ensure that each speaker simultaneously outputs the audio signal with the same pitch. [Embodiment] FIG. 1 is a system frame of an embodiment of the speaker sound effect automatic adjustment system of the present invention. The speaker sound effect automatic adjustment system includes a computer 10, a microphone 30 and a database. The computer ^ is connected to a plurality of speakers 20 whose sound effects are to be adjusted, and the plurality of sounds are turned on, and turned into a multimedia phase which can be applied to a home theater. The microphone 3 is connected to the computer ίο for recording a sound source file played from the Yang + Pirates 20. The database 4 is connected to the computer 10, and the database 4 is pre-stored with a sound source slot. The library 40 is also used to store the audio file recorded by the microphone 30. The computer 10 includes an open module 110, a play module 120, a 200926875 recording module 13 〇, a delay clock description, a j Λ . _ a hard κ pitch acquisition module 150, a break module 160 and an adjustment Module 17〇. The opening module 11 is configured to be opened from a plurality of speakers and a speaker 30. The playing module 120 is used to play the data library f, and output the sound from the opened speaker sound ^ "the sound of the case ^ Ο = 2 = recording time. In the preferred embodiment, the source is H-frequency; in other implementations, the other uses, for example, MIDI, MPI format, and the like. The waveform file is also called the WAVE format file, which is the wav A s丨浐 file. (4) Audio file: 2: The second parameter determines the quality of the sound. Compared with other formats, the 9-frequency broadcast case, such as the coffee 1 format broadcast or the delete format, the waveform audio rights can guarantee the integrity of the audio recording. . Beibei ★ The recording module 130 is configured to record an audio signal output from the Yang 230 through a microphone, and to record the recorded audio signal. In the middle of recording, the audio standard, and recording the audio signal to start recording... recording the implementation, the recording sounds (4) waveform audio file; in other embodiments, other formats, such as MPI format, can also be used. (4) Time calculation (4) 140, used to calculate the time difference between the recording of the audio signal and the start time of the recording of the source code. The pitch acquisition module 150 is configured to acquire the pitch of the recorded audio signal. The towel, the received sound acquisition module U5Q first through 200926875,: fast Fourier transform (fast Fourier transf〇rm, attached) will record the video = frequency broadcast from the time domain to the frequency domain, and then obtain the frequency domain The pitch of the broadcast. The time domain means that the audio signal is changed with time, and the frequency domain means that the audio signal is transformed with the frequency conversion. The pitch acquired in the frequency domain is more accurate than the pitch acquired in the time domain. The judgment module 160' is used to determine whether or not the speaker ❹ ❹ 1 is used. On the right, if the speaker 3G is not tested, then the (10) module 110, the playback module 12〇, the recording module 13〇, the delay switch group 14G and the pitch acquisition module (9) perform phase 1: H week on the speaker 3G. The whole module 170 is used to test the time difference obtained when all the speakers 30 are tested, and the time delays of the respective speakers and the pitch of the corresponding speakers, and the pitch sounds simultaneously with the pitch. The word and w k are used to make the mother a better. Figure 1 shows the automatic adjustment method of the speaker sound effect of the present invention from 4:: Fig. First, in step S11, the module U is turned on. One of the speakers 30 is selected to be turned on. The SU' playback module 120 plays the sound source slot in the database 40. The sound is outputted from the speaker 3, and the start time is recorded. The stepper Wei microphone 3G recording is stored from the speaker library to control the recorded audio signal to the data time. 1 3 frequency file ′ and recording the audio signal to start recording 200926875 Step S14, the delay calculation module 140 calculates the time difference between the audio signal and the start time of the recording of the audio source file. In step S15, the pitch acquisition module 150 acquires the pitch of the recorded audio signal. The pitch acquisition module 150 first converts the recorded audio file from the time domain to the frequency domain through a fast Fourier transform (FFT), and then acquires the pitch of the recorded audio file in the frequency domain. In step S16, the judging module 160 judges whether or not the speaker 30 is still not tested. If the speaker 30 is not tested, the process returns to step S11 to continue testing the next speaker 30. In step S17, if all the speakers 30 have been tested, the adjustment module 170 adjusts the delay and pitch of each corresponding speaker according to the time difference and pitch acquired when testing each speaker 30, so that each speaker simultaneously has the same pitch. The audio signal is output and the process ends. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic view showing the structure of a preferred embodiment of the speaker sound effect automatic adjustment system of the present invention. Fig. 2 is a flow chart showing a preferred embodiment of the method for automatically adjusting the sound effect of the speaker of the present invention. [Main component symbol description] Computer 10 Speaker 20 Microphone 30 Database 40 12 200926875 Open Module Playback Module 11 〇 Recording Module 120 Delay Metering Module 13 〇 Pitch Acquisition Module 140 Judging Module 150 Adjustment Module 160 Select to turn on a speaker 17〇❸ 播放 Play the source slot, from the opened S11 audio signal, and record the start playback time. The middle wheel out of the sound source slot case through the microphone recording speaker in the input (four) = audio signal stored in the database 'Azerbaijan recorded frequency signal began recording system 帛, 9 案, and record sound 513 start recording time and The sound source slot starts playing time 514 S15 Is the pitch of the recorded audio signal still having the speaker not tested? At the same time, the same pitch is adjusted according to the time difference and pitch obtained when testing each speaker n = the delay and pitch of the corresponding Yang sound, so that each speaker sounds to output the audio signal S17 13