TW202320555A - Recording method, and associated audio processing circuit - Google Patents

Recording method, and associated audio processing circuit Download PDF

Info

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
Application number
TW110140876A
Other languages
Chinese (zh)
Other versions
TWI827997B (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

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

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 method and audio processing circuit

本發明係有關於錄音控制,尤指一種錄音方法以及相關的音頻處理電路。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 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 components, such as the integrated circuit 12, the microphone 14, the audio input port 15, the speaker 16, and the storage device 18, may be mounted on a main (main) circuit board 10B of the electronic device 10, but this The invention is not limited thereto. 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 not limited to): a video camera, a portable recording device, a wearable device, a multifunctional mobile phone, and the like.

如第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 integrated circuit 12 may include an audio processing circuit 100, a user interface circuit 12U, and a storage interface circuit 12S, and the audio processing circuit 100 may include a processor 110, a dynamic random access memory Body (Dynamic Random Access Memory, referred to as DRAM) 112, at least one amplifier such as a preamplifier (preamplifier) 120 and a main amplifier 124, a multiplexer circuit 122 (marked as "MUX" for simplicity), at least one analog The digital converter (analog-to-digital converter, ADC for short) such as a plurality of ADCs 126L and 126R, and a digital-to-analog converter (DAC for short) 130 , but the invention is not limited thereto. For example, one or more bus bars may be provided in the architecture shown in FIG. 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 may be implemented by a touch panel, buttons, etc., and the display device may be implemented by a display panel. In some examples, the touch panel and the display panel can 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 certain components coupled to the integrated circuit 12 . The microphone 14 can 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, it can be implemented as a stereo microphone to generate audio signals respectively corresponding to the left channel and the right channel. a first group of audio signals. The audio 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) 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 a plurality of audio files such as a plurality of recording files for the electronic device 10 (such as the audio processing circuit 100), wherein the audio processing circuit 100 can perform processing according to 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 can be implemented by means of non-volatile memory such as flash memory. In addition, the speaker 16 can be used to play any audio file in the plurality of audio files for the electronic device 10 (such as the audio processing circuit 100 ), especially, receiving the audio file corresponding to any one of the audio files from the audio processing circuit 100 (such as the DAC 130 ). The 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, so as to allow the audio processing circuit 100 to use the storage device 18 to store files such as the multiple audio files. In addition, the audio processing circuit 100 can be used for 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, 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 at least one amplifier (eg, the preamplifier 120 and the main amplifier 124 ) can be used to adjust the gain of at least one audio signal to generate at least one adjusted audio signal. In particular, the preamplifier 120 may perform gain adjustments on the first set of audio signals to generate an adjusted set of audio signals corresponding to the first set of audio signals as a first adjusted version of the first set of audio signals , and, in the event that multiplexer circuit 122 selects and outputs the first adjusted version of the first set of audio signals, main amplifier 124 may perform gain adjustments on the first adjusted version of the first set of audio signals to generate another set of adjusted audio signals, which can be regarded as a second adjusted version of the first set of audio signals, 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 this The invention is not limited thereto. In the case that 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 a set of adjusted audio signals corresponding to the second set of audio signals , wherein this group of adjusted audio signals can also be used as an example of the at least one adjusted audio signal. In addition, the at least one ADC (such as ADC 126L and 126R) can be used to perform analog-to-digital conversion on the at least one adjusted audio signal to generate at least one digital audio signal. In the case that 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 correspond Analog-to-digital conversion is performed on a first adjusted audio signal of the left channel to generate a first digital audio signal corresponding to the left channel, and the ADC 126R can be used for either set of audio signals corresponding to the right The second adjusted audio signal of one of the channels is analog-to-digital converted 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 contained in the at least one digital audio signal (eg, 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 an audio output port (not shown in FIG. 1 ), and the audio output port can be used to couple the electronic device 10 (such as the audio processing circuit 100 ) to the electronic device 10. One of the external sound output devices, such as headphones, external speakers, sound system, etc.

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

在步驟S11中,音頻處理電路100可於一第一時間點,進行初始化。In step S11, the audio processing circuit 100 can 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, especially, 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, especially, 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, especially, in order to start recording earlier, the initialization is started but not completed Just start recording. Assuming that no gain setting is performed in step S12, a popping sound will be generated when recording starts. 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 earlier without generating popping sound, so as 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 . In addition, the initialization may include enabling the at least one ADC (such as 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, if the gain is the analog gain, the analog gain may represent the gain of at least one amplifier (such as 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 aforementioned core elements of the electronic device 10 can be regarded as the digital signal processing circuit, and the digital signal processing circuit can include a processor 110, a DRAM 112, and the like. In case the gain is the digital gain, the digital gain may represent the gain of the 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 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 audio processing circuit 100 , and the plurality of hardware parameters may include the value of the gain. For the sake of brevity, 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可進行分別對應於時間點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 audio processing circuit 100 can perform at least a part of a first group of audio processing operations, a second group of audio processing operations and a third group of audio processing operations respectively corresponding to time points PA , P B and PC , for example Any one of the three groups of audio processing operations, any two groups of audio processing operations, or all of the audio processing operations. Preferably, the audio processing circuit 100 can at least perform the first set of audio processing operations corresponding to the time point PA .

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

在系統軟體初始化階段中,例如在時間點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 audio processing circuit 100 can perform software settings to ensure the overall performance of audio processing, and the software settings can include the second group of audio processing operations: 1. Audio mute ( silence), for example, to forcibly turn off any possible volume, in particular, to maintain the analog gain AGain and/or the digital gain DGain at a low value, such as a minimum value; and 2. Gradually increase the volume (smooth up), wherein the A gain such as a digital gain DGain increases a certain value per unit time; but the present invention is not limited thereto. As shown in Figure 3, the upper volume limit of the audio samples will not exceed the result of the system's energy waves being suppressed. In the time interval from the time point P B until the audio sample is not generated, the volume upper limit 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 volume of the audio sample, and can be gradually increased with the operation of increasing the volume gradually. Gradual volume increase can avoid the sudden appearance of sound when recording normally after the audio is muted, so it can bring a better user experience. In one embodiment, the audio processing circuit 100 can calculate the audio samples in this stage according to the ratio, especially, by gradually increasing the ratio used to calculate the volume by gradually increasing the audio samples with a predefined unit point (such as data points) (Proportion) parameter PROPORTION adjusts the ratio, so that the audio sample is gradually amplified from the small volume value to the actual volume value (in this case, the ratio reaches 100%). For example, the audio processing circuit 100 can pass the equation EQU (1) and EQU (2) Gradually increase the volume value by adjusting the ratio to avoid a few too large volume values causing crackling, as shown below: Val new = Val old * PROPORTION >> 15; and……………… EQU(1) PROPORTION += PROPORTTION_step_size ;……………… EQU(2) The symbols "Val new " and "Val old " represent the new gain value and the old gain value respectively, and the symbol ">>" represents the bit A bitwise right shift operation (for example, a bit shifting operation in the direction towards the least significant bit (LSB), which makes the value smaller), and the symbol "+ =" represents an addition assignment operation (for example, adding two numbers to the left and right of "+=" to make the latest value of the number to the left of "+="). The equation EQU(1) is used to control the size of the new gain value Val new according to the old gain value Val old , and the equation EQU(2) is used to control the proportional parameter PROPORTION through the step value PROPORTION_step_size of the proportional parameter PROPORTION, To control the size of the increase each time the latest gain value is calculated (for example, the new gain value Val new in the equation EQU(1)). According to the equation EQU(2), the audio processing circuit 100 can gradually increase the ratio presented by (PROPORTION >> 15) in the equation EQU(1), for example, gradually amplify 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 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 audio processing circuit 100 can perform similar operations for the next group of 8 data points, until each data point in this audio block has been scaled The calculation is converted to a volume adjustment result for the progressive volume increase.

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

請注意,音頻處理電路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 audio processing circuit 100 for the time point (the third time point) of recording can be very flexible. 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 PA (for example, the third time point may be after the time point PA ). Since the audio processing circuit 100 has turned down the analog gain AGain and/or the digital gain DGain at the time point PA , the audio processing circuit 100 can start recording before the initialization is completed. As shown in FIG. 3, since the audio processing circuit 100 can pre-set the gain in step S12, especially, at the time point PA , the analog gain AGain and/or the digital gain DGain are adjusted down, so the audio processing circuit 100 can be used at different times. Start recording early in the event of a pop to save the user's time.

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

再舉一例,步驟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 audio processing circuit 100 can be configured to start recording after the time point PA (for example, the third time point can be after the time point PA ), especially, can be configured to start recording after the time point PA and P Recording starts at a certain time point between C (for example, the third time point may be between time points PA and P C ). Since the audio processing circuit 100 has already turned down the analog gain AGain and/or the digital gain DGain at the time point PA and the audio processing circuit 100 has already performed the audio input at the time point P B , the audio processing circuit 100 can generate no popping sound. start recording early.

為了便於理解,第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 audio processing circuit 100 can avoid recording a sudden sound when recording normally after the audio is muted, thus bringing better user experience. No matter which time point this third time point is between time points P B and P C (for example: after time point P B , the curve indicating the volume upper limit of the audio sample changes from zero to non-zero time point), the audio The volume of the sample can be gradually increased with the operation of gradually increasing the volume, wherein the curve indicating the upper volume limit of the audio sample can be correspondingly adjusted, for example, from Fig. 3 the curve indicating the upper limit of the volume of the audio sample encounters The time point of the curve indicating the volume of the audio sample starts to gradually rise to allow the curve indicating the volume of the audio sample to continue to rise, especially, according to (PROPORTION >> 15) to increase the proportion presented.

如第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, audio processing circuit 100, integrated circuit 12 and electronic device 10 can properly manage the scheduling of related settings before and after 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 or less likely to cause side effects. The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

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: electronic device 10B: main circuit board 10P: power supply module 10U: user interface module 12: integrated circuit 12S: storage interface circuit 12U: user interface circuit 14: microphone 15: sound input port 16: speaker 18: Storage device 100: audio processing circuit 110: processor 112: dynamic random access memory (DRAM) 120: preamplifier 122: multiplexer circuit 124: main amplifier 126L, 126R: analog-to-digital converter (ADC) 130: Digital-to-analog converter (DAC) S11~S15: steps P A , P B , P C : time point Vol: equivalent volume t: time

第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)

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

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

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