TWI827997B - Recording method, and associated integrated circuit - Google Patents
Recording method, and associated integrated circuit Download PDFInfo
- Publication number
- TWI827997B TWI827997B TW110140876A TW110140876A TWI827997B TW I827997 B TWI827997 B TW I827997B TW 110140876 A TW110140876 A TW 110140876A TW 110140876 A TW110140876 A TW 110140876A TW I827997 B TWI827997 B TW I827997B
- 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 44
- 230000005236 sound signal Effects 0.000 claims description 51
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 description 7
- 239000000306 component Substances 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000000750 progressive effect Effects 0.000 description 3
- 239000008358 core component Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Images
Abstract
Description
本發明係有關於錄音控制,尤指一種錄音方法以及相關的音頻處理電路。 The present invention relates to recording control, and in particular, to a recording method and related audio processing circuit.
依據相關技術,一可攜式錄音裝置可用於在各種場合中錄音。然而,可能發生某些問題。例如,當使用者控制開始使用該可攜式錄音裝置來錄音時,使用者需要等待該可攜式錄音裝置預備進入工作狀態,這很浪費使用者的時間。相關技術中提出了某些建議以嘗試解決這個問題,但可能導致額外的問題諸如某些副作用,例如,在控制不當的情況下所產生的雜訊被錄在錄音的檔案中。因此,需要一種新穎的方法及相關架構,以在沒有副作用或較不可能帶來副作用之狀況下實現精巧(compact)且可靠的錄音裝置。 According to related technologies, a portable recording device can be used for recording in various situations. However, certain problems may occur. For example, when the user controls the portable recording device to start recording, the user needs to wait for the portable recording device to prepare to enter the working state, which wastes the user's time. Some suggestions have been made in the related art to try to solve this problem, but they may cause additional problems such as certain side effects, for example, noise generated under improper control is recorded in the recording file. Therefore, a novel method and related architecture are needed to realize a compact and reliable recording device without side effects or less likely to cause side effects.
本發明之一目的在於提供一種錄音方法以及相關的音頻處理電路,以解決上述問題。 One 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, completes the initialization of the audio processing circuit; and at a fifth time point, the audio The gain of the processing circuit is adjusted to a second value; wherein the second value is greater than the first value; wherein the first time point and the second time point are earlier than the third time point, and the fourth time point Later than the third time point, and the fifth time point is later than the third time point.
本發明之一實施例另提供依據上述之錄音方法來操作之該音頻處理電路,其中該音頻處理電路可包含:至少一放大器;至少一類比數位轉換器,耦接至該至少一放大器;以及一處理器,耦接至該至少一類比數位轉換器。例如,該至少一放大器可用來對至少一音頻訊號進行增益調整以產生至少一調整的音頻訊號;該至少一類比數位轉換器可用來對該至少一調整的音頻訊號進行類比數位轉換以產生至少一數位音頻訊號;以及該處理器可用來控制該音頻處理電路的操作,且依據該至少一數位音頻訊號所載有的音頻樣本進行音頻處理。 An embodiment of the present invention further provides the audio processing circuit operating according to the above-mentioned recording method, wherein the audio processing circuit may include: at least one amplifier; at least one analog-to-digital converter coupled to the at least one amplifier; and 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 can be used to control the operation of the audio processing circuit and perform audio processing based on the audio samples carried by the at least one digital audio signal.
本發明的好處之一是,透過仔細設計之控制機制,本發明的錄音方法及音頻處理電路能妥善管理開始錄音以前和以後的相關設定之排程。相較於相關技術,本發明的錄音方法及音頻處理電路能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的錄音裝置。 One of the benefits 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 schedule of relevant settings before and after starting recording. Compared with related technologies, the recording method and audio processing circuit of the present invention can realize a compact and reliable recording device without side effects or with less possibility of side effects.
10:電子裝置 10: Electronic devices
10B:主要電路板 10B: Main circuit board
10P:電源模組 10P:Power module
10U:使用者介面模組 10U: User interface module
12:積體電路 12:Integrated circuit
12S:儲存介面電路 12S: Storage interface circuit
12U:使用者介面電路 12U: User interface circuit
14:麥克風 14:Microphone
15:聲音輸入埠 15: Sound input port
16:揚聲器 16: Speaker
18:儲存裝置 18:Storage device
100:音頻處理電路 100:Audio processing circuit
110:處理器 110: Processor
112:動態隨機存取記憶體(DRAM) 112: Dynamic Random Access Memory (DRAM)
120:前置放大器 120: Preamplifier
122:多工器電路 122:Multiplexer circuit
124:主要放大器 124: Main amplifier
126L,126R:類比數位轉換器(ADC) 126L, 126R: Analog-to-digital converter (ADC)
130:數位類比轉換器(DAC) 130:Digital-to-analog converter (DAC)
S11~S15:步驟 S11~S15: Steps
PA,PB,PC:時間點 P A , P B , P C : time point
Vol:等效音量 Vol: equivalent volume
t:時間 t: time
第1圖為依據本發明一實施例之一種電子裝置的示意圖。 Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention.
第2圖為依據本發明一實施例繪示之一種錄音方法之流程圖,其中該錄音方法係應用於諸如第1圖所示之電子裝置。 Figure 2 is a flow chart 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 Figure 1 .
第3圖為依據本發明一實施例繪示第2圖所示的錄音方法之一設定控制方案。 Figure 3 illustrates a setting control scheme of the recording method shown in Figure 2 according to an embodiment of the present invention.
第4圖為繪示在未採用該錄音方法的情況下的音頻波形的例子。 Figure 4 shows an example of an audio waveform without using this recording method.
第5圖為繪示在採用該錄音方法的情況下的音頻波形的例子。 Figure 5 shows an example of an audio waveform when this recording method is adopted.
第1圖為依據本發明一實施例之一種電子裝置10的示意圖。電子裝置10可包含多個元件諸如一使用者介面模組10U、一電源模組10P、一積體電路12、一麥克風14、一聲音輸入埠15、一揚聲器16以及一儲存裝置18,而該多個元件中之至少一部分元件,諸如積體電路12、麥克風14、聲音輸入埠15、揚聲器16以及儲存裝置18,可被安裝於電子裝置10之一主要(main)電路板10B上,但本發明不限於此。於某些實施例中,該多個元件中之全部元件可被安裝於主要電路板10B上。另外,電子裝置10的例子可包含(但不限於):攝影機、可攜式錄音裝置、可穿戴裝置、多功能行動電話等。
Figure 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 FIG. 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 above-mentioned at least one amplifier (such as 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可依據該錄音方法來操作。
Figure 2 is a flow chart of a recording method according to an embodiment of the present invention, wherein the
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 . Additionally, the initialization may include enabling the at least one ADC (eg,
為了更好地理解,該方法可用第2圖所示之工作流程來說明,但本發明不限於此。依據某些實施例,一個或多個步驟可於第2圖所示之工作流程中增加。 For better understanding, the method can be illustrated by the workflow shown in Figure 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 Figure 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可進行分別對應於時間點PA、PB和PC之一第一組音頻處理操作、一第二組音頻處理操作和一第三組音頻處理操作中之至少一部分操作,例如這三組音頻處理操作中之任一組音頻處理操作、任兩組音頻處理操作、或所有音頻處理操作。較佳地,音頻處理電路100可至少進行對應於時間點PA之第一組音頻處理操作。
Figure 3 illustrates a setting control scheme of the recording method shown in Figure 2 according to an embodiment of the present invention. For ease of understanding, energy waves generated by the system (such as noise generated when the entire system hardware structure has not reached a steady state during boot-up) may be recorded in a recording file, and therefore the equivalent volume can be used To represent, the horizontal axis can represent time, and the vertical axis can 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
在硬體初始化階段中,例如在時間點PA,音頻處理電路100可進行音頻電路初始設定以壓制系統產生的能量波,而該音頻電路初始設定可包含該第一組音頻處理操作:1.設定淡入淡出,舉例來說,配置該多個硬體參數中之關於淡入淡出的硬體參數;2.將類比增益AGain及/或數位增益DGain調低,例如設定至最小值,舉例來說,配置該多個硬體參數中之關於增益的硬體參數,諸如類比增益AGain和數位增益DGain;以及3.啟用上述至少一ADC(例如ADC 126L和126R);但本發明不限於此。如第3圖所示,系統的能量波被壓制之結果也可用等效音量來表示,且典型地小於在沒有進行該音頻電路初始設定的情況下之系統產生的能量波。
In the hardware initialization phase, for example, at time point PA , the
在系統軟體初始化階段中,例如在時間點PB,音頻處理電路100可進行軟體設定以確保音頻處理之整體效能,而該軟體設定可包含該第二組音頻處理操作:1.音頻默入(silence),舉例來說,強制地關閉任何可能的音量,尤其,將類比增益AGain及/或數位增益DGain維持在低值,例如最小值;以及2.漸進式提升音量(smooth up),其中該增益諸如數位增益DGain是在單位時間內增加一定量值;但本發明不限於此。如第3圖所示,音頻樣本的音量上限不會超過系統的能量波被壓制之結果。在從時間點PB開始到音頻樣本還沒產生以前的時間區間內,音頻樣本的音量上限係典型地等於零,這是因為在這個時間區間內不存在任何音頻樣本。另外,音頻樣本的音量大小不會超過音頻樣本的音量上限,且可隨著漸進式提升音量之操作而漸漸地增加。漸進式提升音量可以避免在音頻默入以
後一開始正常地錄音時錄到突然出現的聲音,因此可帶來更好的使用者體驗。於一實施例中,音頻處理電路100可依照比例計算在此階段裡的音頻樣本,尤其,將音頻樣本以預定義的單位點數(例如資料點數),透過逐步提高用於計算音量的比例(Proportion)參數PROPORTION來調整比例,以將音頻樣本從小音量值慢慢放大到實際的音量值(此情況下,比例達到100%),例如,音頻處理電路100可以透過方程式EQU(1)及EQU(2),以調整比例的方式來逐步地調升音量值,以避免少數過大的音量數值造成爆音,如下所示:Valnew=Valold * PROPORTION>>15;以及.....................EQU(1)
In the system software initialization phase, for example, at time point P B , the
PROPORTION+=PROPORTION_step_size;..................EQU(2)其中符號「Valnew」和「Valold」分別代表新的增益值和舊的增益值,符號「>>」代表位元右移(bitwise right shift)操作(例如,以朝向最低有效位元(least significant bit,LSB)的方向來進行之位元平移(bit shifting)操作,其可使數值變小),而符號「+=」代表以和賦值(addition assignment)操作(例如,將分別位於「+=」左側和右側的兩個數值相加以作為位於「+=」左側的數值的最新值)。方程式EQU(1)是用來依據舊的增益值Valold控制新的增益值Valnew的大小,而方程式EQU(2)則是用來透過比例參數PROPORTION的步進值PROPORTION_step_size來控制比例參數PROPORTION,以控制每次計算最新增益值(例如方程式EQU(1)中之新的增益值Valnew)時之增加的大小。依據方程式EQU(2),音頻處理電路100可逐步地提高於方程式EQU(1)中之(PROPORTION>>15)所呈現的比例,例如,由最小值諸如0.003%逐步放大到最大值諸如100%,來控制新的增益值Valnew的大小。
PROPORTION+=PROPORTION_step_size;............EQU(2)The symbols "Val new " and "Val old " represent the new gain value and the old gain value respectively. The symbols ">>" represents a bitwise right shift operation (for example, a bit shifting operation in the direction toward the least significant bit (LSB), which can change the value small), and the symbol "+=" represents an addition assignment operation (for example, adding the two values to the left and right of "+=" respectively as the latest value of the value to the left of "+=") . The equation EQU(1) is used to control the size of the new gain value Val new based on the old gain value Val old , and the equation EQU(2) is used to control the proportion parameter PROPORTION through the step value PROPORTION_step_size of the proportion parameter PROPORTION. To control the size of the increase each time the latest gain value (such as the new gain value Val new in equation EQU(1)) is calculated. According to equation EQU(2), 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 PROPORTION_step_size of the proportion parameter PROPORTION can be set to 1, and taking the current proportion parameter PROPORTION rising to 16 as an example, firstly, the audio samples contained in an audio chunk (audio chunk), Take 8 data points as one
The groups are split, and multiple groups (each group of 8 data points) in this audio block are calculated separately. When the current proportion 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 proportion parameter PROPORTION (for example, 16) and then the bit right shift is performed. , where the bit shift amount to the right may be equal to 15 bits; then, the next set of proportion parameters PROPORTION to be used may be equal to increasing the previous value of the proportion parameter PROPORTION (for example, 16) by a predetermined increment such as a step The value of PROPORTION_step_size (e.g., 1) results in a sum (e.g., 17). The
在系統軟體初始化階段以後,例如在時間點PC,音頻處理電路100可設定工作錄音量值以確保錄音操作可被正常地進行,而設定工作錄音量值可包含該第三組音頻處理操作:1.將類比增益AGain及/或數位增益DGain調高至預定值(例如:基於預設設定或使用者設定之預定值,其係典型地不等於零);但本發明不限於此。在音頻處理電路100完成硬體初始化後且電子裝置10尚未完成軟體初始化時於一預定時間後,音頻處理電路100可將該增益(例如類比增益AGain或數位增益DGain)設定為一預定數值,尤其,將類比增益AGain及或數位增益DGain分別設定為預定值(例如:基於預設設定或使用者設定之預定值)。
After the system software initialization phase, for example, at time point PC , the
請注意,音頻處理電路100對於開始錄音的時間點(該第三時間點)之配置可以很有彈性。舉例來說,步驟S11中所述之初始化可包含硬體初始化,該第一時間點可代表時間點PA之前的某一時間點,而該第二時間點可代表時間點PA。此情況下,音頻處理電路100可被配置成在時間點PA以後開始錄音(例如,該第三時間點可在時間點PA之後)。由於音頻處理電路100已經在時間點PA將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可在還沒完成初始
化就開始錄音。如第3圖所示,由於音頻處理電路100可於步驟S12中預先進行增益設定,尤其,在時間點PA將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音,以節省使用者的時間。
Please note that the
又例如,步驟S11中所述之初始化可包含系統軟體初始化,該第一時間點可代表時間點PB之前的某一時間點(例如:系統軟體初始化的開始時間點),而該第二時間點可代表時間點PB。此情況下,音頻處理電路100可被配置成在時間點PB以後開始錄音(例如,該第三時間點可在時間點PB之後),尤其,可被配置成在時間點PB和PC之間的某一時間點開始錄音(例如,該第三時間點可在時間點PB和PC之間)。由於音頻處理電路100已經在時間點PB進行該音頻默入,舉例來說,強制地關閉任何可能的音量,尤其,將類比增益AGain及/或數位增益DGain維持在低值,故音頻處理電路100可在還沒完成初始化就開始錄音。如第3圖所示,由於音頻處理電路100可於步驟S12中預先進行增益設定,尤其,在時間點PB將類比增益AGain及/或數位增益DGain維持在最小值。
For another example, the initialization described in step S11 may include system software initialization. The first time point may represent a time point before time point P B (for example: the start time point of system software initialization), and the second time point may A point may represent a time point P B . In this case, the
再舉一例,步驟S11中所述之初始化可包含第一階段初始化諸如硬體初始化,尤其,另包含後續的第二階段初始化諸如系統軟體初始化,該第一時間點可代表時間點PA之前的某一時間點,而該第二時間點可代表時間點PA。此情況下,音頻處理電路100可被配置成在時間點PA以後開始錄音(例如,該第三時間點可在時間點PA之後),尤其,可被配置成在時間點PA和PC之間的某一時間點開始錄音(例如,該第三時間點可在時間點PA和PC之間)。由於音頻處理電路100已經在時間點PA將類比增益AGain及/或數位增益DGain調低且音頻處理電路100已經在時間點PB進行該音頻默入,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音。
As another example, the initialization described in step S11 may include a first-stage initialization such as hardware initialization, and in particular, may also include a subsequent second-stage initialization such as system software initialization. The first time point may represent the time before time point P A. a certain point in time, and the second point in time may represent the point in time P A . In this case, the
為了便於理解,第3圖所示之四個曲線可被繪示來分別指出系統產生
的能量波、系統的能量波被壓制之結果、音頻樣本的音量上限以及音頻樣本的音量大小之各自的趨勢,但本發明不限於此。依據某些實施例,這四個曲線可予以變化。例如,透過進行該漸進式提升音量,音頻處理電路100可避免在音頻默入以後一開始正常地錄音時錄到突然出現的聲音,因此可帶來更好的使用者體驗。不論該第三時間點在時間點PB和PC之間的哪一個時間點(例如:在時間點PB以後,指出音頻樣本的音量上限之曲線從零變成非零的時間點),音頻樣本的音量可隨著該漸進式提升音量之操作而漸漸地增加,其中,指出音頻樣本的音量上限之曲線可對應地調整,例如,從第3圖中指出音頻樣本的音量上限之曲線遇到指出音頻樣本的音量大小之曲線的時間點開始,變成漸漸地上升,以容許指出音頻樣本的音量大小之曲線繼續上升,尤其,依照該漸進式提升音量之方程式EQU(1)中之(PROPORTION>>15)所呈現的比例來上升。
In order to facilitate understanding, the four curves shown in Figure 3 can be drawn to respectively indicate the respective trends of the energy wave generated by the system, the result of the energy wave being suppressed by the system, the upper limit of the volume of the audio sample, and the volume of the audio sample. , but the present invention is not limited to this. According to some embodiments, these four curves may be varied. For example, by performing the progressive volume increase, the
如第3圖所示,時間點PB可被繪示於時間點PC之前,但本發明不限於此。依據某些實施例,時間點PB的可被往右移動,也可以被往右移動到時間點PC之後。 As shown in FIG. 3 , time point PB may be drawn before time point PC , but the invention is not limited thereto. According to some embodiments, the time point P B may be moved to the right, or may be moved to the right after the time point PC .
第4圖為繪示在未採用該錄音方法的情況下的音頻波形的例子,其中橫軸和縱軸可分別代表時間和等效音量(分別標示為「t」和「Vol」以求簡明)。在未採用該錄音方法的情況下,系統產生的能量波被錄在錄音的檔案中。由於整個系統的硬體架構尚未達到穩態,在錄音的檔案中錄下了雜訊諸如系統產生的能量波,這可使得使用者在聆聽錄音的檔案時聽到短暫爆音(例如,類似「滋」的一聲,在音軌上的波形上則會呈現出一短時間的突波)。如果使用者正在使用音響系統來進行播放,會突然產生刺耳的爆音,這可帶來極差的使用者體驗。 Figure 4 shows an example of an audio waveform without using this recording method. The horizontal and vertical axes represent time and equivalent volume respectively (marked as "t" and "Vol" respectively for simplicity) . Without this recording method, the energy waves generated by the system are recorded in the recording file. Since the hardware structure of the entire system has not yet reached a steady state, noise such as energy waves generated by the system are recorded in the recorded files, which can cause users to hear short bursts of sound (for example, similar to "Zhi") when listening to the recorded files. There will be a short burst on the waveform on the audio track). If the user is using the sound system for playback, a harsh popping sound will suddenly occur, which can bring an extremely poor user experience.
第5圖為繪示在採用該錄音方法的情況下的音頻波形的例子,其中橫軸和縱軸可分別代表時間和等效音量(分別標示為「t」和「Vol」以求簡明)。相較於第4圖所示之音頻波形,這個例子中的音頻波形相當平緩。在採用該錄音 方法的情況下,系統產生的能量波被壓制,而音頻樣本的音量上限不會超過系統的能量波被壓制之結果,並且音頻樣本的音量大小不會超過音頻樣本的音量上限,所以系統產生的能量波無法被錄在錄音的檔案中。尤其,音頻樣本的音量大小可隨著漸進式提升音量之操作而漸漸地增加,而不會突然增加到預定音量,這可進一步提升使用者體驗。 Figure 5 shows an example of an audio waveform when this recording method is adopted, in which the horizontal axis and the vertical axis represent time and equivalent volume respectively (marked as "t" and "Vol" respectively for simplicity). Compared to the audio waveform shown in Figure 4, the audio waveform in this example is quite flat. using this recording In the case of the 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 energy wave of the system being suppressed, and the volume of the audio sample will not exceed the upper limit of the audio sample volume, so the volume of the audio sample generated by the system will not exceed the upper limit of the volume of the audio sample. Energy waves cannot be recorded in the recording file. In particular, the volume of the audio sample can gradually increase with the operation of gradually increasing the volume instead of suddenly increasing to a predetermined volume, which can further enhance the user experience.
本發明的好處之一是,透過仔細設計之控制機制,該錄音方法、音頻處理電路100、積體電路12以及電子裝置10能妥善管理開始錄音以前和以後的相關設定之排程。相較於相關技術,本發明的錄音方法、音頻處理電路100、積體電路12以及電子裝置10能在沒有副作用或較不可能帶來副作用之狀況下實現精巧且可靠的錄音裝置。
One of the benefits of the present invention is that through a carefully designed control mechanism, the recording method, the
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the patentable scope of the present invention shall fall within the scope of the present invention.
S11~S15:步驟 S11~S15: Steps
Claims (13)
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 TW202320555A (en) | 2023-05-16 |
TWI827997B true 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) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991979A (en) * | 2005-12-30 | 2007-07-04 | 宏碁股份有限公司 | Method and device for eliminating surge in sound recording |
CN102008820A (en) * | 2009-09-07 | 2011-04-13 | 骅讯电子企业股份有限公司 | Sound source signal transmission device for preventing crackle generation and method for preventing crackle generation |
CN102457239A (en) * | 2010-11-02 | 2012-05-16 | 安凯(广州)微电子技术有限公司 | 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
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1991979A (en) * | 2005-12-30 | 2007-07-04 | 宏碁股份有限公司 | Method and device for eliminating surge in sound recording |
CN102008820A (en) * | 2009-09-07 | 2011-04-13 | 骅讯电子企业股份有限公司 | Sound source signal transmission device for preventing crackle generation and method for preventing crackle generation |
CN102457239A (en) * | 2010-11-02 | 2012-05-16 | 安凯(广州)微电子技术有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
TW202320555A (en) | 2023-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8737642B2 (en) | Audio reproducing apparatus | |
US8565449B2 (en) | System and method for digital signal processing | |
EP1753130B1 (en) | Analog-to-digital converter with dynamic range extension | |
CN110677804A (en) | System and method for digital signal processing | |
KR20090101209A (en) | System and method for digital signal processing | |
CN110741432B (en) | Apparatus and method for providing an output signal to an audio transducer and electronic device | |
JP2007325057A (en) | Electronic volume device, electronic volume control method, and electronics using them | |
TWI827997B (en) | Recording method, and associated integrated circuit | |
US20120033835A1 (en) | System and method for modifying an audio signal | |
CN114023357B (en) | Recording method and audio processing circuit | |
US10938363B2 (en) | Audio circuit | |
US10680640B2 (en) | Power-saving current-mode digital-to-analog converter (DAC) | |
JP5062055B2 (en) | Audio signal processing apparatus and method | |
GB2581119A (en) | Audio signal processing | |
US10506340B2 (en) | Digital signal processor for audio, in-vehicle audio system and electronic apparatus including the same | |
TWI454045B (en) | Multi-mode audio amplifiers | |
JP2008219713A (en) | Noise cancel headphone | |
CN113890492A (en) | Power supply voltage control method and controller of audio power amplifier and audio equipment | |
US10405091B2 (en) | Input of time delay values to signal processor | |
US11889280B2 (en) | Filters and filter chains | |
KR100667814B1 (en) | Portable audio apparatus having tone and effect function of electric guitar | |
KR100650938B1 (en) | A noraebang system on digital audio devices and controlling method thereof | |
JP2001127571A (en) | Variable amplifier | |
JP2014116693A (en) | Mixing circuit, and on-vehicle audio apparatus, audio component apparatus and electronic apparatus using the same | |
TWI407769B (en) | Method for controlling audio gain of a mobile phone and mobile phone capable of controlling audio gain thereof |