TW202320555A - Recording method, and associated audio processing circuit - Google Patents
Recording method, and associated audio processing circuit Download PDFInfo
- Publication number
- TW202320555A TW202320555A TW110140876A TW110140876A TW202320555A TW 202320555 A TW202320555 A TW 202320555A TW 110140876 A TW110140876 A TW 110140876A TW 110140876 A TW110140876 A TW 110140876A TW 202320555 A TW202320555 A TW 202320555A
- Authority
- TW
- Taiwan
- Prior art keywords
- processing circuit
- audio processing
- gain
- time point
- audio
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000005236 sound signal Effects 0.000 claims description 48
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 230000003213 activating effect Effects 0.000 claims 1
- 239000000523 sample Substances 0.000 description 18
- 239000000306 component Substances 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 239000008358 core component Substances 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 231100000957 no side effect Toxicity 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
本發明係有關於錄音控制,尤指一種錄音方法以及相關的音頻處理電路。The invention relates to recording control, in particular to a recording method and related audio processing circuits.
依據相關技術,一可攜式錄音裝置可用於在各種場合中錄音。然而,可能發生某些問題。例如,當使用者控制開始使用該可攜式錄音裝置來錄音時,使用者需要等待該可攜式錄音裝置預備進入工作狀態,這很浪費使用者的時間。相關技術中提出了某些建議以嘗試解決這個問題,但可能導致額外的問題諸如某些副作用,例如,在控制不當的情況下所產生的雜訊被錄在錄音的檔案中。因此,需要一種新穎的方法及相關架構,以在沒有副作用或較不可能帶來副作用之狀況下實現精巧(compact)且可靠的錄音裝置。According to the related art, a portable recording device can be used for recording in various occasions. However, certain problems may occur. For example, when the user controls to start using the portable recording device to record, the user needs to wait for the portable recording device to be ready to enter the working state, which wastes the user's time. Some proposals have been made in the related art to try to solve this problem, but may cause additional problems such as some side effects, for example, noise generated in the case of improper control is recorded in the recording file. Therefore, there is a need for a novel method and related architecture to realize a compact and reliable recording device with no side effects or less likely to cause side effects.
本發明之一目的在於提供一種錄音方法以及相關的音頻處理電路,以解決上述問題。An object of the present invention is to provide a recording method and related audio processing circuit to solve the above problems.
本發明之一實施例提供一種錄音方法,其中該錄音方法係應用於一種電子裝置,而該電子裝置包含一音頻處理電路。該錄音方法可包含:於一第一時間點,初始化該音頻處理電路;於一第二時間點,將該音頻處理電路之一增益設為一第一數值;於一第三時間點,利用該音頻處理電路開始錄音;於一第四時間點,完成該音頻處理電路的初始化;以及於一第五時間點,將該音頻處理電路之該增益調整為一第二數值;其中,該第二數值大於該第一數值;其中,該第一時間點及該第二時間點早於該第三時間點,該第四時間點晚於該第三時間點,且該第五時間點晚於該第三時間點。An embodiment of the present invention provides a recording method, wherein the recording method is applied to an electronic device, and the electronic device includes an audio processing circuit. The recording method may include: at a first time point, initializing the audio processing circuit; at a second time point, setting a gain of the audio processing circuit to a first value; at a third time point, using the The audio processing circuit starts recording; at a fourth time point, the initialization of the audio processing circuit is completed; and at a fifth time point, the gain of the audio processing circuit is adjusted to a second value; wherein, the second value greater than the first numerical value; wherein, the first time point and the second time point are earlier than the third time point, the fourth time point is later than the third time point, and the fifth time point is later than the first time point three time points.
本發明之一實施例另提供依據上述之錄音方法來操作之該音頻處理電路,其中該音頻處理電路可包含:至少一放大器;至少一類比數位轉換器,耦接至該至少一放大器;以及一處理器,耦接至該至少一類比數位轉換器。例如,該至少一放大器可用來對至少一音頻訊號進行增益調整以產生至少一調整的音頻訊號;該至少一類比數位轉換器可用來對該至少一調整的音頻訊號進行類比數位轉換以產生至少一數位音頻訊號;以及該處理器可用來控制該音頻處理電路的操作,且依據該至少一數位音頻訊號所載有的音頻樣本進行音頻處理。An embodiment of the present invention further provides the audio processing circuit operating according to the above recording method, wherein the audio processing circuit may include: at least one amplifier; at least an analog-to-digital converter coupled to the at least one amplifier; and a A processor coupled to the at least one analog-to-digital converter. For example, the at least one amplifier can be used to perform gain adjustment on at least one audio signal to generate at least one adjusted audio signal; the at least one analog-to-digital converter can be used to perform analog-to-digital conversion on the at least one adjusted audio signal to generate at least one a digital audio signal; and the processor is operable to control the operation of the audio processing circuit and perform audio processing based on audio samples carried by the at least one digital audio signal.
本發明的好處之一是,透過仔細設計之控制機制,本發明的錄音方法及音頻處理電路能妥善管理開始錄音以前和以後的相關設定之排程。相較於相關技術,本發明的錄音方法及音頻處理電路能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的錄音裝置。One of the advantages of the present invention is that, through a carefully designed control mechanism, the recording method and audio processing circuit of the present invention can properly manage the scheduling of related settings before and after recording. Compared with the related art, the recording method and the audio processing circuit of the present invention can realize a compact and reliable recording device without side effects or less likely to cause side effects.
第1圖為依據本發明一實施例之一種電子裝置10的示意圖。電子裝置10可包含多個元件諸如一使用者介面模組10U、一電源模組10P、一積體電路12、一麥克風14、一聲音輸入埠15、一揚聲器16以及一儲存裝置18,而該多個元件中之至少一部分元件,諸如積體電路12、麥克風14、聲音輸入埠15、揚聲器16以及儲存裝置18,可被安裝於電子裝置10之一主要(main)電路板10B上,但本發明不限於此。於某些實施例中,該多個元件中之全部元件可被安裝於主要電路板10B上。另外,電子裝置10的例子可包含(但不限於):攝影機、可攜式錄音裝置、可穿戴裝置、多功能行動電話等。FIG. 1 is a schematic diagram of an
如第1圖所示,積體電路12可包含一音頻處理電路100、一使用者介面電路12U以及一儲存介面電路12S,而音頻處理電路100可包含一處理器110、一動態隨機存取記憶體(Dynamic Random Access Memory,簡稱DRAM)112、至少一放大器諸如一前置放大器(preamplifier)120和一主要放大器124、一多工器電路122(標示為「MUX」以求簡明)、至少一類比數位轉換器(analog-to-digital converter,簡稱ADC)諸如多個ADC 126L和126R、以及一數位類比轉換器(digital-to-analog converter,簡稱DAC)130,但本發明不限於此。舉例來說,一或多個匯流排可被設置於第1圖所示之架構中,以容許其內的相關元件彼此耦接。As shown in Figure 1, the
使用者介面模組10U可包含至少一使用者輸入裝置(未顯示),以供接收使用者輸入,且可包含一顯示裝置(未顯示),以供顯示資訊來通知使用者。例如,該至少一使用者輸入裝置可藉由觸控面板、按鈕等方式來實施,而該顯示裝置可藉由顯示面板等來實施。在某些例子中,該觸控面板和該顯示面板可被整合為一觸敏(touch-sensitive)顯示裝置諸如觸控螢幕。另外,電源模組10P可提供電源給電子裝置10中的其它元件,諸如積體電路12及其內的子電路以及耦接至積體電路12的某些元件。麥克風14可用來為電子裝置10(例如音頻處理電路100)接收音頻波以產生一或多個音頻訊號,尤其,可實施成立體聲(stereo)麥克風以產生分別對應於左聲道和右聲道之一第一組音頻訊號。聲音輸入埠15可用來將電子裝置10(例如音頻處理電路100)耦接至位於電子裝置10外部之一音源裝置(未顯示),以從該音源裝置接收一第二組音頻訊號。儲存裝置18可用來為電子裝置10(例如音頻處理電路100)儲存多個音頻檔案諸如多個錄音的檔案,其中音頻處理電路100可依據該第一組音頻訊號或該第二組音頻訊號來進行錄音操作以產生該多個音頻檔案。例如,儲存裝置18可藉由非揮發性記憶體諸如快閃記憶體等方式來實施。此外,揚聲器16可用來為電子裝置10(例如音頻處理電路100)播放該多個音頻檔案中之任一音頻檔案,尤其,從音頻處理電路100(例如DAC 130)接收對應於該任一音頻檔案之至少一音頻輸出訊號以輸出音頻波,以供使用者聆聽。The
在積體電路12中,使用者介面電路12U可用來將使用者介面模組10U耦接至音頻處理電路100,且於音頻處理電路100和使用者介面模組10U之間進行訊號轉換,以容許使用者透過使用者介面電路12U和電子裝置10互動。儲存介面電路12S可用來將儲存裝置18耦接至音頻處理電路100,且於音頻處理電路100和儲存裝置18之間進行訊號轉換,以容許音頻處理電路100利用儲存裝置18來儲存檔案諸如該多個音頻檔案。另外,音頻處理電路100可用來進行音頻處理,但本發明不限於此。如第1圖所示,音頻處理電路100包含電子裝置10的核心元件,諸如處理器110、DRAM 112等,而處理器110(例如,運行於其上的程式模組)可用來控制電子裝置10的操作。In the
針對音頻處理,上述至少一放大器(例如前置放大器120和主要放大器124)可用來對至少一音頻訊號進行增益調整以產生至少一調整的音頻訊號。尤其,前置放大器120可對該第一組音頻訊號進行增益調整以產生對應於該第一組音頻訊號之一組調整的音頻訊號,以作為該第一組音頻訊號之一第一調整的版本,並且,在多工器電路122選擇且輸出該第一組音頻訊號之該第一調整的版本的情況下,主要放大器124可對該第一組音頻訊號之該第一調整的版本進行增益調整以產生另一組調整的音頻訊號,其可視為該第一組音頻訊號之一第二調整的版本,其中該另一組調整的音頻訊號可作為上述至少一調整的音頻訊號的例子,但本發明不限於此。在多工器電路122選擇且輸出該第二組音頻訊號的情況下,主要放大器124可對該第二組音頻訊號進行增益調整以產生對應於該第二組音頻訊號之一組調整的音頻訊號,其中這一組調整的音頻訊號亦可作為上述至少一調整的音頻訊號的例子。另外,上述至少一ADC(例如ADC 126L和126R)可用來對上述至少一調整的音頻訊號進行類比數位轉換以產生至少一數位音頻訊號。在該第一組音頻訊號和該第二組音頻訊號中之任一組音頻訊號(例如每一組音頻訊號)是立體聲音頻訊號的情況下,ADC 126L可對該任一組音頻訊號中之對應於該左聲道之一第一調整的音頻訊號進行類比數位轉換以產生對應於該左聲道之一第一數位音頻訊號,且ADC 126R可對該任一組音頻訊號中之對應於該右聲道之一第二調整的音頻訊號進行類比數位轉換以產生對應於該右聲道之一第二數位音頻訊號。此外,處理器110可用來控制音頻處理電路100的操作,且依據上述至少一數位音頻訊號(例如該第一數位音頻訊號和該第二數位音頻訊號)所載有的音頻樣本進行音頻處理。For audio processing, the at least one amplifier (eg, the
依據某些實施例,主要放大器124可被實施成一立體聲音效放大器(stereo boost amplifier)。According to some embodiments, the
依據某些實施例,揚聲器16可被取代為一聲音輸出埠(未顯示於第1圖),而該聲音輸出埠可用來將電子裝置10(例如音頻處理電路100)耦接至位於電子裝置10外部之一聲音輸出裝置,諸如耳機、外部揚聲器、音響系統等。According to some embodiments, the
第2圖為依據本發明一實施例繪示之一種錄音方法之流程圖,其中該錄音方法係應用於諸如第1圖所示之電子裝置10,尤其,其內的音頻處理電路100,而音頻處理電路100可依據該錄音方法來操作。FIG. 2 is a flow chart of a recording method according to an embodiment of the present invention, wherein the recording method is applied to the
在步驟S11中,音頻處理電路100可於一第一時間點,進行初始化。In step S11, the
在步驟S12中,音頻處理電路100可於一第二時間點,將一增益設為一第一數值。例如,該增益係為一類比增益,尤其,該類比增益的該第一數值係為可設定的最小值,但本發明不限於此。又例如,該增益係為一數位增益,尤其,該數位增益的該第一數值係為可設定的最小值。In step S12, the
在步驟S13中,在該第一時間點及該第二時間點以後,音頻處理電路100可於一第三時間點開始錄音,尤其,為了可以提早開始錄音,在開始進行初始化但還沒完成初始化就開始錄音。假設在步驟S12中沒有進行增益設定,則在開始錄音時會產生爆音。如第2圖所示,由於音頻處理電路100在步驟S12中預先進行增益設定,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音,以節省使用者的時間。In step S13, after the first time point and the second time point, the
在步驟S14中,音頻處理電路100可於一第四時間點完成初始化。In step S14, the
在步驟S15中,音頻處理電路100可於一第五時間點,將該增益調整為一第二數值,其中,該第二數值大於該第一數值。In step S15, the
依據本實施例,該第一時間點及該第二時間點早於該第三時間點,該第四時間點晚於該第三時間點,且該第五時間點晚於該第三時間點。另外,該初始化可包含啟用(enable)上述至少一ADC(例如ADC 126L和126R),例如,打開音頻處理電路100中之至少一開關(未顯示)以開始供電給上述至少一ADC。尤其,在該增益係為該類比增益的情況下,該類比增益可代表上述至少一放大器(例如前置放大器120和主要放大器124)之增益,但本發明不限於此。舉例來說,音頻處理電路100可包含一數位訊號處理電路(Digital Signal Processing IC)。電子裝置10的上述核心元件可視為該數位訊號處理電路,而該數位訊號處理電路可包含處理器110、DRAM 112等。在該增益係為該數位增益的情況下,該數位增益可代表該數位訊號處理電路(例如處理器110)所進行的數位音頻處理之增益。According to this embodiment, the first time point and the second time point are earlier than the third time point, the fourth time point is later than the third time point, and the fifth time point is later than the third time point . In addition, the initialization may include enabling the at least one ADC (such as
為了更好地理解,該方法可用第2圖所示之工作流程來說明,但本發明不限於此。依據某些實施例,一個或多個步驟可於第2圖所示之工作流程中增加。For better understanding, the method can be illustrated by the workflow shown in FIG. 2 , but the present invention is not limited thereto. According to some embodiments, one or more steps may be added to the workflow shown in FIG. 2 .
依據某些實施例,該初始化可包含配置音頻處理電路100中之多個儲存單元所儲存的多個硬體參數,而該多個硬體參數可包含該增益的數值。為了簡明起見,於這些實施例中類似的內容在此不重複贅述。According to some embodiments, the initialization may include configuring a plurality of hardware parameters stored in a plurality of storage units in the
依據某些實施例,音頻處理電路100的該初始化屬於一第一階段初始化,且運行於音頻處理電路100中之處理器110上之系統程式碼的初始化屬於一第二階段初始化。該錄音方法可另包含:將運行著該系統程式碼的處理器110所進行的數位音頻處理之增益設定為零。例如,該第二階段初始化可另包含利用音頻處理電路100將該數位音頻處理之該增益從零開始逐漸地增加。According to some embodiments, the initialization of the
第3圖為依據本發明一實施例繪示第2圖所示的錄音方法之一設定控制方案。為了便於理解,系統產生的能量波(例如在開機的期間整個系統的硬體架構尚未達到穩態的情況下所產生的雜訊)可能被錄於一錄音的檔案中,且因此可用等效音量來表示,其中橫軸可代表時間,而縱軸可代表等效音量。另外,類比增益AGain和數位增益DGain可分別作為上述之類比增益和數位增益的例子。音頻處理電路100可進行分別對應於時間點P
A、P
B和P
C之一第一組音頻處理操作、一第二組音頻處理操作和一第三組音頻處理操作中之至少一部分操作,例如這三組音頻處理操作中之任一組音頻處理操作、任兩組音頻處理操作、或所有音頻處理操作。較佳地,音頻處理電路100可至少進行對應於時間點P
A之第一組音頻處理操作。
FIG. 3 shows a setting control scheme of the recording method shown in FIG. 2 according to an embodiment of the present invention. In order to facilitate understanding, the energy waves generated by the system (such as the noise generated when the hardware structure of the entire system has not yet reached a steady state during power-on) may be recorded in a recording file, and therefore the equivalent volume can be used to represent, where the horizontal axis may represent time, and the vertical axis may represent equivalent volume. In addition, the analog gain AGain and the digital gain DGain can be used as examples of the above-mentioned analog gain and digital gain, respectively. The
在硬體初始化階段中,例如在時間點P
A,音頻處理電路100可進行音頻電路初始設定以壓制系統產生的能量波,而該音頻電路初始設定可包含該第一組音頻處理操作:
1. 設定淡入淡出,舉例來說,配置該多個硬體參數中之關於淡入淡出的硬體參數;
2. 將類比增益AGain及/或數位增益DGain調低,例如設定至最小值,舉例來說,配置該多個硬體參數中之關於增益的硬體參數,諸如類比增益AGain和數位增益DGain;以及
3. 啟用上述至少一ADC(例如ADC 126L和126R);
但本發明不限於此。如第3圖所示,系統的能量波被壓制之結果也可用等效音量來表示,且典型地小於在沒有進行該音頻電路初始設定的情況下之系統產生的能量波。
In the hardware initialization phase, for example at the time point PA , the
在系統軟體初始化階段中,例如在時間點P
B,音頻處理電路100可進行軟體設定以確保音頻處理之整體效能,而該軟體設定可包含該第二組音頻處理操作:
1. 音頻默入(silence),舉例來說,強制地關閉任何可能的音量,尤其,將類比增益AGain及/或數位增益DGain維持在低值,例如最小值;以及
2. 漸進式提升音量(smooth up),其中該增益諸如數位增益DGain是在單位時間內增加一定量值;
但本發明不限於此。如第3圖所示,音頻樣本的音量上限不會超過系統的能量波被壓制之結果。在從時間點P
B開始到音頻樣本還沒產生以前的時間區間內,音頻樣本的音量上限係典型地等於零,這是因為在這個時間區間內不存在任何音頻樣本。另外,音頻樣本的音量大小不會超過音頻樣本的音量上限,且可隨著漸進式提升音量之操作而漸漸地增加。漸進式提升音量可以避免在音頻默入以後一開始正常地錄音時錄到突然出現的聲音,因此可帶來更好的使用者體驗。於一實施例中,音頻處理電路100可依照比例計算在此階段裡的音頻樣本,尤其,將音頻樣本以預定義的單位點數(例如資料點數),透過逐步提高用於計算音量的比例(Proportion)參數PROPORTION來調整比例,以將音頻樣本從小音量值慢慢放大到實際的音量值(此情況下,比例達到100%),例如,音頻處理電路100可以透過方程式EQU(1)及EQU(2),以調整比例的方式來逐步地調升音量值,以避免少數過大的音量數值造成爆音,如下所示:
Val
new= Val
old* PROPORTION >> 15;以及…………………EQU(1)
PROPORTION += PROPORTION_step_size ;………………EQU(2)
其中符號「Val
new」和「Val
old」分別代表新的增益值和舊的增益值,符號「>>」代表位元右移(bitwise right shift)操作(例如,以朝向最低有效位元(least significant bit, LSB)的方向來進行之位元平移(bit shifting)操作,其可使數值變小),而符號「+=」代表以和賦值(addition assignment)操作(例如,將分別位於「+=」左側和右側的兩個數值相加以作為位於「+=」左側的數值的最新值)。方程式EQU(1)是用來依據舊的增益值Val
old控制新的增益值Val
new的大小,而方程式EQU(2)則是用來透過比例參數PROPORTION的步進值PROPORTION_step_size來控制比例參數PROPORTION,以控制每次計算最新增益值(例如方程式EQU(1)中之新的增益值Val
new)時之增加的大小。依據方程式EQU(2),音頻處理電路100可逐步地提高於方程式EQU(1)中之(PROPORTION >> 15)所呈現的比例,例如,由最小值諸如0.003%逐步放大到最大值諸如100%,來控制新的增益值Val
new的大小。
In the system software initialization stage, for example, at time point P B , the
以單位點數等於8為例,比例參數PROPORTION的步進值PROPORTION_step_size可設定為1,並且,以目前比例參數PROPORTION上升到16為例,先把一個音頻塊(audio chunk)所包含的音頻樣本,以8個資料點為一組拆開,分別對這個音頻塊中之多組(每組8個資料點)進行計算。當目前的比例參數PROPORTION是16,則此組在此階段產出的音頻樣本可等於這組內的各個原始音頻樣本乘以比例參數PROPORTION的目前數值(例如,16)再進行該位元右移,其中該位元右移之位移量可等於15位元;然後,下一組要使用的比例參數PROPORTION可等於將比例參數PROPORTION的先前的數值(例如,16)增加一預定增量諸如步進值PROPORTION_step_size(例如,1)所得到之和數(例如,17),然後,音頻處理電路100可針對下一組8個資料點進行類似的操作,直到這個音頻塊裡每個資料點都經過比例計算被轉換為該漸進式提升音量之音量調整結果。Taking the unit point equal to 8 as an example, the step value PROPORTTION_step_size of the proportional parameter PROPORTION can be set to 1, and, taking the current proportional parameter PROPORTION increased to 16 as an example, first the audio samples contained in an audio chunk (audio chunk), Take 8 data points as a group to disassemble, and calculate multiple groups (each group of 8 data points) in this audio block. When the current ratio parameter PROPORTION is 16, the audio samples produced by this group at this stage can be equal to each original audio sample in this group multiplied by the current value of the ratio parameter PROPORTION (for example, 16) and then the bit is shifted right , where the displacement of the bit to the right can be equal to 15 bits; then, the next set of proportional parameter PROPORTION to be used can be equal to increasing the previous value of the proportional parameter PROPORTION (for example, 16) by a predetermined increment such as a step Value PROPORTION_step_size (for example, 1) and the number (for example, 17), then, the
在系統軟體初始化階段以後,例如在時間點P
C,音頻處理電路100可設定工作錄音量值以確保錄音操作可被正常地進行,而設定工作錄音量值可包含該第三組音頻處理操作:
1. 將類比增益AGain及/或數位增益DGain調高至預定值(例如:基於預設設定或使用者設定之預定值,其係典型地不等於零);
但本發明不限於此。在音頻處理電路100完成硬體初始化後且電子裝置10尚未完成軟體初始化時於一預定時間後,音頻處理電路100可將該增益(例如類比增益AGain或數位增益DGain)設定為一預定數值,尤其,將類比增益AGain及或數位增益DGain分別設定為預定值(例如:基於預設設定或使用者設定之預定值)。
After the system software initialization stage, for example, at time point P C , the
請注意,音頻處理電路100對於開始錄音的時間點(該第三時間點)之配置可以很有彈性。舉例來說,步驟S11中所述之初始化可包含硬體初始化,該第一時間點可代表時間點P
A之前的某一時間點,而該第二時間點可代表時間點P
A。此情況下,音頻處理電路100可被配置成在時間點P
A以後開始錄音(例如,該第三時間點可在時間點P
A之後)。由於音頻處理電路100已經在時間點P
A將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可在還沒完成初始化就開始錄音。如第3圖所示,由於音頻處理電路100可於步驟S12中預先進行增益設定,尤其,在時間點P
A將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音,以節省使用者的時間。
Please note that the configuration of the
又例如,步驟S11中所述之初始化可包含系統軟體初始化,該第一時間點可代表時間點P
B之前的某一時間點(例如:系統軟體初始化的開始時間點),而該第二時間點可代表時間點P
B。此情況下,音頻處理電路100可被配置成在時間點P
B以後開始錄音(例如,該第三時間點可在時間點P
B之後),尤其,可被配置成在時間點P
B和P
C之間的某一時間點開始錄音(例如,該第三時間點可在時間點P
B和P
C之間)。由於音頻處理電路100已經在時間點P
B進行該音頻默入,舉例來說,強制地關閉任何可能的音量,尤其,將類比增益AGain及/或數位增益DGain維持在低值,故音頻處理電路100可在還沒完成初始化就開始錄音。如第3圖所示,由於音頻處理電路100可於步驟S12中預先進行增益設定,尤其,在時間點P
B將類比增益AGain及/或數位增益DGain維持在最小值。
For another example, the initialization described in step S11 may include system software initialization, the first time point may represent a certain time point before time point P B (for example: the start time point of system software initialization), and the second time point The point may represent a point in time P B . In this case, the
再舉一例,步驟S11中所述之初始化可包含第一階段初始化諸如硬體初始化,尤其,另包含後續的第二階段初始化諸如系統軟體初始化,該第一時間點可代表時間點P
A之前的某一時間點,而該第二時間點可代表時間點P
A。此情況下,音頻處理電路100可被配置成在時間點P
A以後開始錄音(例如,該第三時間點可在時間點P
A之後),尤其,可被配置成在時間點P
A和P
C之間的某一時間點開始錄音(例如,該第三時間點可在時間點P
A和P
C之間)。由於音頻處理電路100已經在時間點P
A將類比增益AGain及/或數位增益DGain調低且音頻處理電路100已經在時間點P
B進行該音頻默入,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音。
For another example, the initialization described in step S11 may include the first-stage initialization such as hardware initialization, especially, it also includes the subsequent second-stage initialization such as system software initialization. The first time point may represent the time before the time point PA A certain time point, and the second time point may represent the time point P A . In this case, the
為了便於理解,第3圖所示之四個曲線可被繪示來分別指出系統產生的能量波、系統的能量波被壓制之結果、音頻樣本的音量上限以及音頻樣本的音量大小之各自的趨勢,但本發明不限於此。依據某些實施例,這四個曲線可予以變化。例如,透過進行該漸進式提升音量,音頻處理電路100可避免在音頻默入以後一開始正常地錄音時錄到突然出現的聲音,因此可帶來更好的使用者體驗。不論該第三時間點在時間點P
B和P
C之間的哪一個時間點(例如:在時間點P
B以後,指出音頻樣本的音量上限之曲線從零變成非零的時間點),音頻樣本的音量可隨著該漸進式提升音量之操作而漸漸地增加,其中,指出音頻樣本的音量上限之曲線可對應地調整,例如,從第3圖中指出音頻樣本的音量上限之曲線遇到指出音頻樣本的音量大小之曲線的時間點開始,變成漸漸地上升,以容許指出音頻樣本的音量大小之曲線繼續上升,尤其,依照該漸進式提升音量之方程式EQU(1)中之(PROPORTION >> 15)所呈現的比例來上升。
For ease of understanding, the four curves shown in Figure 3 can be drawn to indicate the energy waves generated by the system, the result of the energy waves being suppressed by the system, the upper limit of the volume of the audio samples, and the respective trends of the volume of the audio samples , but the present invention is not limited thereto. According to some embodiments, these four curves can be varied. For example, by gradually increasing the volume, the
如第3圖所示,時間點P B可被繪示於時間點P C之前,但本發明不限於此。依據某些實施例,時間點P B的可被往右移動,也可以被往右移動到時間點P C之後。 As shown in FIG. 3 , the time point P B may be shown before the time point P C , but the invention is not limited thereto. According to some embodiments, the time point P B can be moved to the right, and can also be moved right after the time point P C .
第4圖為繪示在未採用該錄音方法的情況下的音頻波形的例子,其中橫軸和縱軸可分別代表時間和等效音量(分別標示為「t」和「Vol」以求簡明)。在未採用該錄音方法的情況下,系統產生的能量波被錄在錄音的檔案中。由於整個系統的硬體架構尚未達到穩態,在錄音的檔案中錄下了雜訊諸如系統產生的能量波,這可使得使用者在聆聽錄音的檔案時聽到短暫爆音(例如,類似「滋」的一聲,在音軌上的波形上則會呈現出一短時間的突波)。如果使用者正在使用音響系統來進行播放,會突然產生刺耳的爆音,這可帶來極差的使用者體驗。Figure 4 shows an example of an audio waveform without using this recording method, where the horizontal and vertical axes represent time and equivalent volume, respectively (marked as "t" and "Vol" for clarity) . In the absence of this recording method, the energy waves produced by the system are recorded in the archive of the recording. Since the hardware structure of the entire system has not yet reached a steady state, noises such as energy waves generated by the system are recorded in the recording files, which can cause users to hear short bursts (for example, similar to "Zi") when listening to the recording files beep, there will be a short spike in the waveform on the track). If the user is using the audio system to play, harsh popping sound will be generated suddenly, which can bring extremely poor user experience.
第5圖為繪示在採用該錄音方法的情況下的音頻波形的例子,其中橫軸和縱軸可分別代表時間和等效音量(分別標示為「t」和「Vol」以求簡明)。相較於第4圖所示之音頻波形,這個例子中的音頻波形相當平緩。在採用該錄音方法的情況下,系統產生的能量波被壓制,而音頻樣本的音量上限不會超過系統的能量波被壓制之結果,並且音頻樣本的音量大小不會超過音頻樣本的音量上限,所以系統產生的能量波無法被錄在錄音的檔案中。尤其,音頻樣本的音量大小可隨著漸進式提升音量之操作而漸漸地增加,而不會突然增加到預定音量,這可進一步提升使用者體驗。Figure 5 shows an example of an audio waveform when this recording method is used, where the horizontal and vertical axes represent time and equivalent volume (marked as "t" and "Vol" respectively for clarity). Compared to the audio waveform shown in Figure 4, the audio waveform in this example is quite flat. In the case of using this recording method, the energy wave generated by the system is suppressed, and the upper limit of the volume of the audio sample will not exceed the result of the suppression of the energy wave of the system, and the volume of the audio sample will not exceed the upper limit of the volume of the audio sample. So the energy waves generated by the system cannot be recorded in the audio file. In particular, the volume of the audio sample can be increased gradually with the operation of increasing the volume gradually, instead of suddenly increasing to a predetermined volume, which can further improve user experience.
本發明的好處之一是,透過仔細設計之控制機制,該錄音方法、音頻處理電路100、積體電路12以及電子裝置10能妥善管理開始錄音以前和以後的相關設定之排程。相較於相關技術,本發明的錄音方法、音頻處理電路100、積體電路12以及電子裝置10能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的錄音裝置。
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。
One of the advantages of the present invention is that, through a carefully designed control mechanism, the recording method,
10:電子裝置
10B:主要電路板
10P:電源模組
10U:使用者介面模組
12:積體電路
12S:儲存介面電路
12U:使用者介面電路
14:麥克風
15:聲音輸入埠
16:揚聲器
18:儲存裝置
100:音頻處理電路
110:處理器
112:動態隨機存取記憶體(DRAM)
120:前置放大器
122:多工器電路
124:主要放大器
126L,126R:類比數位轉換器(ADC)
130:數位類比轉換器(DAC)
S11~S15:步驟
P
A,P
B,P
C:時間點
Vol:等效音量
t:時間
10:
第1圖為依據本發明一實施例之一種電子裝置的示意圖。 第2圖為依據本發明一實施例繪示之一種錄音方法之流程圖,其中該錄音方法係應用於諸如第1圖所示之電子裝置。 第3圖為依據本發明一實施例繪示第2圖所示的錄音方法之一設定控制方案。 第4圖為繪示在未採用該錄音方法的情況下的音頻波形的例子。 第5圖為繪示在採用該錄音方法的情況下的音頻波形的例子。 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a flowchart of a recording method according to an embodiment of the present invention, wherein the recording method is applied to an electronic device such as that shown in FIG. 1 . FIG. 3 shows a setting control scheme of the recording method shown in FIG. 2 according to an embodiment of the present invention. Fig. 4 shows an example of an audio waveform without using this recording method. Fig. 5 shows an example of an audio waveform in the case of adopting this recording method.
S11~S15:步驟 S11~S15: Steps
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110140876A TWI827997B (en) | 2021-11-03 | 2021-11-03 | Recording method, and associated integrated circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110140876A TWI827997B (en) | 2021-11-03 | 2021-11-03 | Recording method, and associated integrated circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202320555A true TW202320555A (en) | 2023-05-16 |
TWI827997B TWI827997B (en) | 2024-01-01 |
Family
ID=87379098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110140876A TWI827997B (en) | 2021-11-03 | 2021-11-03 | Recording method, and associated integrated circuit |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI827997B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100580774C (en) * | 2005-12-30 | 2010-01-13 | 宏碁股份有限公司 | Method and device for eliminating surge in sound recording |
CN102008820B (en) * | 2009-09-07 | 2013-04-10 | 骅讯电子企业股份有限公司 | Sound source signal transmission device for preventing crackle generation and method for preventing crackle generation |
CN102457239B (en) * | 2010-11-02 | 2014-06-04 | 安凯(广州)微电子技术有限公司 | Gain control system and method |
CN106507242A (en) * | 2016-12-12 | 2017-03-15 | 捷开通讯(深圳)有限公司 | A kind of audio devices and terminal |
CN112925500A (en) * | 2021-01-20 | 2021-06-08 | 深圳康佳电子科技有限公司 | Conference equipment |
-
2021
- 2021-11-03 TW TW110140876A patent/TWI827997B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI827997B (en) | 2024-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1753130B1 (en) | Analog-to-digital converter with dynamic range extension | |
CN110677804A (en) | System and method for digital signal processing | |
US11064293B2 (en) | Systems, apparatus and methods for dynamic range enhancement of audio signals | |
JP2006033796A (en) | Amplifying device with alc and electronic apparatus using it | |
JP2007325057A (en) | Electronic volume device, electronic volume control method, and electronics using them | |
US7154308B2 (en) | Driver circuit with gradual voltage ramp up and ramp down | |
TWI827997B (en) | Recording method, and associated integrated circuit | |
US20120033835A1 (en) | System and method for modifying an audio signal | |
CN109756198B (en) | Audio circuit, and in-vehicle audio device, audio module device, and electronic device using the same | |
US8514017B2 (en) | Variable gain amplifier and audio device | |
JP5510072B2 (en) | Speaker device | |
CN114023357B (en) | Recording method and audio processing circuit | |
US20110058688A1 (en) | Audio processing apparatus and method | |
US10506340B2 (en) | Digital signal processor for audio, in-vehicle audio system and electronic apparatus including the same | |
TWI454045B (en) | Multi-mode audio amplifiers | |
US20180175879A1 (en) | Power-saving current-mode digital-to-analog converter (dac) | |
US10405091B2 (en) | Input of time delay values to signal processor | |
JP3975233B2 (en) | Audio equipment and audio output control method | |
JP5993733B2 (en) | Mixing circuit, in-vehicle audio device, audio component device, and electronic device using the same | |
CN103001588A (en) | Dynamic sound source amplifying circuit and method thereof | |
JP2001127571A (en) | Variable amplifier | |
KR100667814B1 (en) | Portable audio apparatus having tone and effect function of electric guitar | |
JP2023098384A (en) | Loudspeaker system and control method for the same | |
JP2020184707A (en) | Music playback device | |
KR100650938B1 (en) | A noraebang system on digital audio devices and controlling method thereof |