TWI827997B - Recording method, and associated integrated circuit - Google Patents

Recording method, and associated integrated circuit Download PDF

Info

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
Application number
TW110140876A
Other languages
Chinese (zh)
Other versions
TW202320555A (en
Inventor
呂俊男
張峻嘉
王科方
Original Assignee
大陸商星宸科技股份有限公司
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 大陸商星宸科技股份有限公司 filed Critical 大陸商星宸科技股份有限公司
Priority to TW110140876A priority Critical patent/TWI827997B/en
Publication of TW202320555A publication Critical patent/TW202320555A/en
Application granted granted Critical
Publication of TWI827997B publication Critical patent/TWI827997B/en

Links

Images

Abstract

A recording method and an associated audio processing circuit are provided. 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 be a first value; at a third time point, utilizing the audio processing circuit to start recording; at a fourth time point, completing the initialization of the audio processing circuit; and at a fifth time point, adjusting the gain of the audio processing circuit to be 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, the fourth time point is later than the third time point, and the fifth time point is later than the third time point.

Description

錄音方法及積體電路 Recording methods and integrated circuits

本發明係有關於錄音控制,尤指一種錄音方法以及相關的音頻處理電路。 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 electronic device 10 according to an embodiment of the present invention. The electronic device 10 may include a plurality of components such as a user interface module 10U, a power module 10P, an integrated circuit 12, a microphone 14, a sound input port 15, a speaker 16 and a storage device 18, and the At least some of the plurality of components, such as the integrated circuit 12, the microphone 14, the sound input port 15, the speaker 16 and the storage device 18, may be installed on a main circuit board 10B of the electronic device 10, but this invention The invention is not limited to this. In some embodiments, all of the plurality of components may be mounted on the main circuit board 10B. In addition, examples of the electronic device 10 may include (but are not limited to): cameras, portable recording devices, wearable devices, multifunctional mobile phones, etc.

如第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 integrated circuit 12 may include an audio processing circuit 100 , a user interface circuit 12U and a storage interface circuit 12S. The audio processing circuit 100 may include a processor 110 , a dynamic random access memory. Dynamic Random Access Memory (DRAM) 112, at least one amplifier such as a preamplifier 120 and a main amplifier 124, a multiplexer circuit 122 (labeled "MUX" for simplicity), at least one analog A digital converter (analog-to-digital converter, ADC for short) such as a plurality of ADCs 126L and 126R, and a digital-to-analog converter (digital-to-analog converter, DAC for short) 130, but the invention is not limited thereto. For example, one or more busbars may be disposed in the architecture shown in Figure 1 to allow related components therein to be coupled to each other.

使用者介面模組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 user interface module 10U may include at least one user input device (not shown) for receiving user input, and may include a display device (not shown) for displaying information to notify the user. For example, the at least one user input device can be implemented by a touch panel, a button, etc., and the display device can be implemented by a display panel, etc. In some examples, the touch panel and the display panel may be integrated into a touch-sensitive display device such as a touch screen. In addition, the power module 10P can provide power to other components in the electronic device 10, such as the integrated circuit 12 and its sub-circuits and coupled to certain components of integrated circuit 12 . The microphone 14 may be used to receive audio waves for the electronic device 10 (such as the audio processing circuit 100) to generate one or more audio signals. In particular, the microphone 14 may be implemented as a stereo microphone to generate audio signals corresponding to the left channel and the right channel respectively. a first set of audio signals. The sound input port 15 can be used to couple the electronic device 10 (such as the audio processing circuit 100) to an audio source device (not shown) located outside the electronic device 10 to receive a second set of audio signals from the audio source device. The storage device 18 can be used to store multiple audio files such as multiple recording files for the electronic device 10 (such as the audio processing circuit 100), wherein the audio processing circuit 100 can perform processing based on the first set of audio signals or the second set of audio signals. A recording operation is performed to generate the plurality of audio files. For example, the storage device 18 may be implemented by a non-volatile memory such as a flash memory. In addition, the speaker 16 can be used to play any one of the plurality of audio files for the electronic device 10 (such as the audio processing circuit 100), and in particular, receive an audio signal corresponding to any one of the audio files from the audio processing circuit 100 (such as the DAC 130). At least one audio output signal is used to output audio waves for the user to listen to.

在積體電路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 integrated circuit 12, the user interface circuit 12U can be used to couple the user interface module 10U to the audio processing circuit 100, and perform signal conversion between the audio processing circuit 100 and the user interface module 10U to allow The user interacts with the electronic device 10 through the user interface circuit 12U. The storage interface circuit 12S can be used to couple the storage device 18 to the audio processing circuit 100 and perform signal conversion between the audio processing circuit 100 and the storage device 18 to allow the audio processing circuit 100 to utilize the storage device 18 to store files such as the plurality of files. audio files. In addition, the audio processing circuit 100 can be used to perform audio processing, but the invention is not limited thereto. As shown in FIG. 1 , the audio processing circuit 100 includes core components of the electronic device 10 , such as a processor 110 , a DRAM 112 , etc., and the processor 110 (for example, a program module running on it) can be used to control the electronic device 10 operation.

針對音頻處理,上述至少一放大器(例如前置放大器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 preamplifier 120 and the main amplifier 124) can be used to perform gain adjustment on at least one audio signal to generate at least one adjusted audio signal. In particular, the preamplifier 120 may perform gain adjustment on the first set of audio signals to generate an audio signal corresponding to the first set of audio signals. A set of adjusted audio signals of the set of audio signals is used as a first adjusted version of one of the first set of audio signals, and the first adjusted version of the first set of audio signals is selected and output in the multiplexer circuit 122 version, the main amplifier 124 may perform gain adjustment on the first adjusted version of the first set of audio signals to produce another set of adjusted audio signals, which may be regarded as a second adjusted version of the first set of audio signals. version, wherein the other set of adjusted audio signals can be used as an example of the above-mentioned at least one adjusted audio signal, but the invention is not limited thereto. In the case where the multiplexer circuit 122 selects and outputs the second set of audio signals, the main amplifier 124 can perform gain adjustment on the second set of audio signals to generate an adjusted set of audio signals corresponding to the second set of audio signals. , wherein this set of adjusted audio signals can also be used as an example of the above-mentioned at least one adjusted audio signal. In addition, the above-mentioned at least one ADC (such as ADC 126L and 126R) may be used to perform analog-to-digital conversion on the above-mentioned at least one adjusted audio signal to generate at least one digital audio signal. In the case where any one of the first set of audio signals and the second set of audio signals (for example, each set of audio signals) is a stereo audio signal, the ADC 126L can The first adjusted audio signal in the left channel is subjected to analog-to-digital conversion to generate a first digital audio signal corresponding to the left channel, and the ADC 126R can be used in any set of audio signals corresponding to the right The second adjusted audio signal of one of the channels is subjected to analog-to-digital conversion to generate a second digital audio signal corresponding to the right channel. In addition, the processor 110 can be used to control the operation of the audio processing circuit 100 and perform audio processing according to the audio samples carried in the at least one digital audio signal (such as the first digital audio signal and the second digital audio signal).

依據某些實施例,主要放大器124可被實施成一立體聲音效放大器(stereo boost amplifier)。 According to some embodiments, the main amplifier 124 may be implemented as a stereo boost amplifier.

依據某些實施例,揚聲器16可被取代為一聲音輸出埠(未顯示於第1圖),而該聲音輸出埠可用來將電子裝置10(例如音頻處理電路100)耦接至位於電子裝置10外部之一聲音輸出裝置,諸如耳機、外部揚聲器、音響系統等。 According to some embodiments, the speaker 16 can be replaced by a sound output port (not shown in FIG. 1 ), and the sound output port can be used to couple the electronic device 10 (such as the audio processing circuit 100 ) to the electronic device 10 An external sound output device, such as headphones, external speakers, sound systems, etc.

第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 electronic device 10 shown in FIG. 1 , in particular, the audio processing circuit 100 therein, and the audio processing circuit 100 can operate according to the recording method.

在步驟S11中,音頻處理電路100可於一第一時間點,進行初始化。 In step S11, the audio processing circuit 100 may be initialized at a first time point.

在步驟S12中,音頻處理電路100可於一第二時間點,將一增益設為一第一數值。例如,該增益係為一類比增益,尤其,該類比增益的該第一數值係為可設定的最小值,但本發明不限於此。又例如,該增益係為一數位增益,尤其,該數位增益的該第一數值係為可設定的最小值。 In step S12, the audio processing circuit 100 may set a gain to a first value at a second time point. For example, the gain is an analog gain, and in particular, the first value of the analog gain is a settable minimum value, but the invention is not limited thereto. For another example, the gain is a digital gain, and in particular, the first value of the digital gain is a settable minimum value.

在步驟S13中,在該第一時間點及該第二時間點以後,音頻處理電路100可於一第三時間點開始錄音,尤其,為了可以提早開始錄音,在開始進行初始化但還沒完成初始化就開始錄音。假設在步驟S12中沒有進行增益設定,則在開始錄音時會產生爆音。如第2圖所示,由於音頻處理電路100在步驟S12中預先進行增益設定,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音,以節省使用者的時間。 In step S13, after the first time point and the second time point, the audio processing circuit 100 can start recording at a third time point. In particular, in order to start recording early, initialization is performed at the beginning but has not yet been completed. Just start recording. Assuming that no gain setting is performed in step S12, popping sounds will occur when recording is started. As shown in FIG. 2 , since the audio processing circuit 100 pre-sets the gain in step S12 , the audio processing circuit 100 can start recording early without generating popping sounds to save the user's time.

在步驟S14中,音頻處理電路100可於一第四時間點完成初始化。 In step S14, the audio processing circuit 100 may complete initialization at a fourth time point.

在步驟S15中,音頻處理電路100可於一第五時間點,將該增益調整為一第二數值,其中,該第二數值大於該第一數值。 In step S15, the audio processing circuit 100 may adjust the gain to a second value at a fifth time point, wherein the second value is greater than the first value.

依據本實施例,該第一時間點及該第二時間點早於該第三時間點,該第四時間點晚於該第三時間點,且該第五時間點晚於該第三時間點。另外,該初始化可包含啟用(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, ADCs 126L and 126R), for example, turning on at least one switch (not shown) in the audio processing circuit 100 to start supplying power to the at least one ADC. In particular, when the gain is an analog gain, the analog gain may represent the gain of at least one amplifier (eg, the preamplifier 120 and the main amplifier 124), but the invention is not limited thereto. For example, the audio processing circuit 100 may include a digital signal processing circuit (Digital Signal Processing IC). The above-mentioned core components of the electronic device 10 can be regarded as the digital signal processing circuit, and the The digital signal processing circuit may include the processor 110, DRAM 112, etc. In the case where the gain is a digital gain, the digital gain may represent a gain of digital audio processing performed by the digital signal processing circuit (eg, processor 110).

為了更好地理解,該方法可用第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 audio processing circuit 100, and the plurality of hardware parameters may include the value of the gain. For the sake of simplicity, similar content in these embodiments will not be repeated here.

依據某些實施例,音頻處理電路100的該初始化屬於一第一階段初始化,且運行於音頻處理電路100中之處理器110上之系統程式碼的初始化屬於一第二階段初始化。該錄音方法可另包含:將運行著該系統程式碼的處理器110所進行的數位音頻處理之增益設定為零。例如,該第二階段初始化可另包含利用音頻處理電路100將該數位音頻處理之該增益從零開始逐漸地增加。 According to some embodiments, the initialization of the audio processing circuit 100 is a first-stage initialization, and the initialization of the system code running on the processor 110 in the audio processing circuit 100 is a second-stage initialization. The recording method may further include setting the gain of the digital audio processing performed by the processor 110 running the system code to zero. For example, the second stage initialization may further include using the audio processing circuit 100 to gradually increase the gain of the digital audio processing from zero.

第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 audio processing circuit 100 may perform at least part of a first set of audio processing operations, a second set of audio processing operations, and a third set of audio processing operations respectively corresponding to time points PA , PB , and PC , such as Any set of audio processing operations, any two sets of audio processing operations, or all audio processing operations among the three sets of audio processing operations. Preferably, the audio processing circuit 100 may perform at least a first set of audio processing operations corresponding to the time point P A.

在硬體初始化階段中,例如在時間點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 audio processing circuit 100 may perform audio circuit initialization to suppress energy waves generated by the system, and the audio circuit initialization may include the first set of audio processing operations: 1. Set the fade-in and fade-out, for example, configure the hardware parameters related to fade-in and fade-out among the multiple hardware parameters; 2. Lower the analog gain AGain and/or the digital gain DGain, for example, set it to the minimum value, for example, Configure the hardware parameters related to gain among the plurality of hardware parameters, such as the analog gain AGain and the digital gain DGain; and 3. Enable the above-mentioned at least one ADC (such as ADC 126L and 126R); but the invention is not limited thereto. As shown in Figure 3, the result of the system's energy wave being suppressed can also be expressed as an equivalent volume, and is typically smaller than the energy wave generated by the system without initial settings of the audio circuit.

在系統軟體初始化階段中,例如在時間點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 audio processing circuit 100 can perform software settings to ensure the overall performance of audio processing, and the software settings can include the second set of audio processing operations: 1. Audio default ( silence), for example, forcibly turning off any possible volume, in particular, maintaining the analog gain AGain and/or the digital gain DGain at a low value, such as the minimum value; and 2. Gradually increase the volume (smooth up), where the Gain such as digital gain DGain increases by a certain amount per unit time; but the present invention is not limited thereto. As shown in Figure 3, the upper limit of the audio sample volume will not exceed the result of the energy wave of the system being suppressed. In the time interval from time point P B until the audio sample is not generated, the upper limit of the volume of the audio sample is typically equal to zero, because there is no audio sample in this time interval. In addition, the volume of the audio sample will not exceed the upper limit of the audio sample volume, and can gradually increase with the operation of gradually increasing the volume. Gradually increasing the volume can avoid recording sudden sounds when recording normally after the audio is muted, thus providing a better user experience. In one embodiment, the audio processing circuit 100 can calculate the audio samples in this stage according to a ratio. In particular, the audio samples are divided into predefined unit points (such as data points) by gradually increasing the ratio used to calculate the volume. (Proportion) parameter PROPORTION to adjust the proportion to slowly amplify the audio sample from a small volume value to an actual volume value (in this case, the proportion reaches 100%). For example, the audio processing circuit 100 can use the equations EQU (1) and EQU (2), gradually increase the volume value by adjusting the proportion to avoid popping sounds caused by a few excessively large volume values, as shown below: Val new =Val old * PROPORTION>>15; and.... ............EQU(1)

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 audio processing circuit 100 can gradually increase the ratio represented by (PROPORTION>>15) in equation EQU(1), for example, from a minimum value such as 0.003% to a maximum value such as 100%. , to control the size of the new gain value Val new .

以單位點數等於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 audio processing circuit 100 can then perform similar operations on the next set of 8 data points until each data point in this audio block has been scaled. Calculates the volume adjustment result that is converted into a progressive increase in volume.

在系統軟體初始化階段以後,例如在時間點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 audio processing circuit 100 can set the working recording level to ensure that the recording operation can be performed normally, and setting the working recording level can include the third set of audio processing operations: 1. Increase the analog gain AGain and/or the digital gain DGain to a predetermined value (for example: a predetermined value based on default settings or user settings, which is typically not equal to zero); but the invention is not limited thereto. After the audio processing circuit 100 completes the hardware initialization and the electronic device 10 has not completed the software initialization, after a predetermined time, the audio processing circuit 100 can set the gain (such as the analog gain AGain or the digital gain DGain) to a predetermined value, especially , the analog gain AGain and/or the digital gain DGain are respectively set to predetermined values (for example: based on default settings or predetermined values set by the user).

請注意,音頻處理電路100對於開始錄音的時間點(該第三時間點)之配置可以很有彈性。舉例來說,步驟S11中所述之初始化可包含硬體初始化,該第一時間點可代表時間點PA之前的某一時間點,而該第二時間點可代表時間點PA。此情況下,音頻處理電路100可被配置成在時間點PA以後開始錄音(例如,該第三時間點可在時間點PA之後)。由於音頻處理電路100已經在時間點PA將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可在還沒完成初始 化就開始錄音。如第3圖所示,由於音頻處理電路100可於步驟S12中預先進行增益設定,尤其,在時間點PA將類比增益AGain及/或數位增益DGain調低,故音頻處理電路100可以在不產生爆音的情況下提早開始錄音,以節省使用者的時間。 Please note that the audio processing circuit 100 can be very flexible in the configuration of the time point when recording is started (the third time point). For example, the initialization described in step S11 may include hardware initialization, the first time point may represent a time point before the time point PA , and the second time point may represent the time point PA . In this case, the audio processing circuit 100 may be configured to start recording after the time point P A (for example, the third time point may be after the time point P A ). Since the audio processing circuit 100 has already lowered the analog gain AGain and/or the digital gain DGain at time point P A , the audio processing circuit 100 can start recording before initialization is completed. As shown in FIG. 3 , since the audio processing circuit 100 can pre-set the gain in step S12 , in particular, the analog gain AGain and/or the digital gain DGain is lowered at the time point P A , the audio processing circuit 100 can be set at any time. Start recording early when popping sounds occur to save the user's time.

又例如,步驟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 audio processing circuit 100 may be configured to start recording after time point P B (for example, the third time point may be after time point P B ). In particular, it may be configured to start recording between time points P B and P Recording starts at a certain time point between C (for example, the third time point can be between time points PB and PC ). Since the audio processing circuit 100 has already performed the audio muting at time point P B , for example, forcibly turning off any possible volume, and in particular, maintaining the analog gain AGain and/or the digital gain DGain at a low value, the audio processing circuit 100 can start recording before initialization is completed. As shown in FIG. 3 , since the audio processing circuit 100 can pre-set the gain in step S12 , in particular, the analog gain AGain and/or the digital gain DGain are maintained at the minimum value at time point P B .

再舉一例,步驟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 audio processing circuit 100 may be configured to start recording after time point P A (for example, the third time point may be after time point P A ). In particular, it may be configured to start recording between time points P A and P Recording starts at a certain time point between C (for example, the third time point can be between time points P A and P C ). Since the audio processing circuit 100 has lowered the analog gain AGain and/or the digital gain DGain at the time point P A and the audio processing circuit 100 has already performed the audio muting at the time point P B , the audio processing circuit 100 can operate without generating popping sound. start recording early.

為了便於理解,第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 audio processing circuit 100 can avoid recording sudden sounds when recording normally after the audio is muted, thereby providing a better user experience. No matter which time point the third time point is between time points P B and P C (for example: after time point P B , the curve indicating the upper limit of the volume of the audio sample changes from zero to non-zero time point), the audio The volume of the sample can gradually increase with the operation of gradually increasing the volume, and the curve indicating the upper limit of the volume of the audio sample can be adjusted accordingly. For example, from Figure 3, the curve indicating the upper limit of the volume of the audio sample encounters The curve indicating the volume of the audio sample starts at the time point and gradually rises to allow the curve indicating the volume of the audio sample to continue to rise. In particular, according to the (PROPORTION> in the equation EQU(1) of the progressive volume increase, >15) to rise in proportion.

如第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 audio processing circuit 100, the integrated circuit 12 and the electronic device 10 can properly manage the schedule of relevant settings before and after starting recording. Compared with related technologies, the recording method, audio processing circuit 100, integrated circuit 12 and electronic device 10 of the present invention can realize a compact and reliable recording device without side effects or less likely to cause side effects.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 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)

一種錄音方法,應用於一種電子裝置,該電子裝置包含一音頻處理電路,該音頻處理電路包含至少一類比數位轉換器、至少一放大器以及一數位訊號處理電路,該錄音方法包含:於一第一時間點,初始化該音頻處理電路中之該至少一類比數位轉換器、該至少一放大器以及該數位訊號處理電路;於一第二時間點,將該音頻處理電路之一增益設為一第一數值;於一第三時間點,利用該音頻處理電路開始錄音;於一第四時間點,完成該音頻處理電路的初始化;以及於一第五時間點,將該音頻處理電路之該增益調整為一第二數值;其中,該第二數值大於該第一數值;其中,該第一時間點及該第二時間點早於該第三時間點,該第四時間點晚於該第三時間點,且該第五時間點晚於該第三時間點。 A recording method applied to an electronic device. The electronic device includes an audio processing circuit. The audio processing circuit includes at least one analog-to-digital converter, at least one amplifier and a digital signal processing circuit. The recording method includes: in a first At a time point, initialize the at least one analog-to-digital converter, the at least one amplifier and the digital signal processing circuit in the audio processing circuit; at a second time point, set a gain of the audio processing circuit to a first value ; At a third time point, use the audio processing circuit to start recording; at a fourth time point, complete the initialization of the audio processing circuit; and at a fifth time point, adjust the gain of the audio processing circuit to a second numerical value; wherein the second numerical value is greater than the first numerical value; wherein the first time point and the second time point are earlier than the third time point, and the fourth time point is later than the third time point, And the fifth time point is later than the third time point. 如申請專利範圍第1項所述之錄音方法,其中該增益係為一類比增益。 For the recording method described in item 1 of the patent application, the gain is an analog gain. 如申請專利範圍第2項所述之錄音方法,其中該類比增益的該第一數值係為可設定的最小值。 For the recording method described in item 2 of the patent application, the first value of the analog gain is a settable minimum value. 如申請專利範圍第1項所述之錄音方法,其中該增益係為一數位增益。 For the recording method described in item 1 of the patent application, the gain is a digital gain. 如申請專利範圍第4項所述之錄音方法,其中該數位增益的該第 一數值係為可設定的最小值。 For example, the recording method described in item 4 of the patent application scope, wherein the digital gain of the A value is the minimum value that can be set. 如申請專利範圍第2項所述之錄音方法,其中該類比增益代表該至少一放大器之增益。 For the recording method described in item 2 of the patent application, the analog gain represents the gain of the at least one amplifier. 如申請專利範圍第4項所述之錄音方法,其中該數位增益代表該數位訊號處理電路所進行的數位音頻處理之增益。 For example, in the recording method described in item 4 of the patent application, the digital gain represents the gain of digital audio processing performed by the digital signal processing circuit. 如申請專利範圍第1項所述之錄音方法,其中該初始化包含配置該音頻處理電路中之多個儲存單元所儲存的多個硬體參數,而該多個硬體參數包含該增益的數值。 For the recording method described in Item 1 of the patent application, the initialization includes configuring a plurality of hardware parameters stored in a plurality of storage units in the audio processing circuit, and the plurality of hardware parameters include the value of the gain. 如申請專利範圍第1項所述之錄音方法,其中該增益是在單位時間內增加一定量值。 For the recording method described in item 1 of the patent application, the gain is increased by a certain amount per unit time. 如申請專利範圍第1項所述之錄音方法,其另包含:在該音頻處理電路完成硬體初始化後且該電子裝置尚未完成軟體初始化時於一預定時間後將該增益設定為一預定數值。 The recording method described in item 1 of the patent application further includes: setting the gain to a predetermined value after a predetermined time after the audio processing circuit completes hardware initialization and the electronic device has not completed software initialization. 如申請專利範圍第1項所述之錄音方法,其中該音頻處理電路的該初始化屬於一第一階段初始化,且運行於該音頻處理電路中之一處理器上之系統程式碼的初始化屬於一第二階段初始化;以及該錄音方法另包含:將運行著該系統程式碼的該處理器所進行的數位音頻處理之增益設定 為零。 For the recording method described in item 1 of the patent application, the initialization of the audio processing circuit belongs to a first-stage initialization, and the initialization of the system program code running on a processor in the audio processing circuit belongs to a first-stage initialization. Two-stage initialization; and the recording method further includes: setting the gain of digital audio processing performed by the processor running the system code is zero. 如申請專利範圍第11項所述之錄音方法,其中該第二階段初始化另包含利用該音頻處理電路將該數位音頻處理之該增益從零開始逐漸地增加。 For the recording method described in claim 11 of the patent application, the second stage initialization further includes using the audio processing circuit to gradually increase the gain of the digital audio processing from zero. 一種積體電路,其使用如申請專利範圍第1項所述之錄音方法,其中該積體電路包含該音頻處理電路,以供設置於該電子裝置中,以及該音頻處理電路包含:該至少一放大器,用來對至少一音頻訊號進行增益調整以產生至少一調整的音頻訊號;該至少一類比數位轉換器,耦接至該至少一放大器,用來對該至少一調整的音頻訊號進行類比數位轉換以產生至少一數位音頻訊號;以及一處理器,耦接至該至少一類比數位轉換器,用來控制該音頻處理電路的操作,且依據該至少一數位音頻訊號所載有的音頻樣本進行音頻處理,其中該數位訊號處理電路包含該處理器。 An integrated circuit that uses the recording method as described in item 1 of the patent application, wherein the integrated circuit includes the audio processing circuit for being disposed in the electronic device, and the audio processing circuit includes: the at least one An amplifier is 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 is coupled to the at least one amplifier and is used to perform analog-to-digital conversion on the at least one adjusted audio signal. Converting to generate at least one digital audio signal; and a processor coupled to the at least one analog-to-digital converter for controlling the operation of the audio processing circuit and performing operations based on audio samples carried by the at least one digital audio signal Audio processing, wherein the digital signal processing circuit includes the processor.
TW110140876A 2021-11-03 2021-11-03 Recording method, and associated integrated circuit TWI827997B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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